the main class to read a ClarisDraw style More...
#include <ClarisDrawStyleManager.hxx>
Public Member Functions | |
ClarisDrawStyleManager (ClarisDrawParser &parser) | |
constructor | |
virtual | ~ClarisDrawStyleManager () |
destructor | |
void | setDefaultNumbers (int nColors, int nGradients) |
set the default number of color, ... | |
bool | getColor (int cId, MWAWColor &color) const |
tries to return the color corresponding to an id | |
bool | getDash (int dId, std::vector< float > &dash) const |
tries to return the dash definition corresponding to an id | |
bool | getFont (int fId, MWAWFont &font) const |
tries to return the font corresponding to an id | |
bool | getParagraph (int pId, MWAWParagraph ¶) const |
tries to return the paragraph corresponding to an id | |
bool | getPattern (int pId, MWAWGraphicStyle::Pattern &pattern) const |
tries to return the pattern corresponding to an id | |
bool | updateGradient (int gId, MWAWGraphicStyle &style) const |
tries to update the style gradient | |
Protected Member Functions | |
bool | readFontStyles () |
tries to read the font style | |
bool | readParagraphStyles () |
tries to read the paragraph style | |
bool | readFontNames () |
tries to read the font names zone | |
bool | readColorList () |
bool | readPatternList () |
bool | readGradientList () |
bool | readArrows () |
tries to read the Arrow styles | |
bool | readDashs () |
tries to read the dash settings | |
bool | readRulers () |
tries to read the Ruler styles | |
Protected Attributes | |
ClarisDrawParser & | m_parser |
the main parser | |
MWAWParserStatePtr | m_parserState |
the parser state | |
std::shared_ptr< ClarisDrawStyleManagerInternal::State > | m_state |
the state | |
Friends | |
class | ClarisDrawParser |
the main class to read a ClarisDraw style
|
explicit |
constructor
|
virtual |
destructor
bool ClarisDrawStyleManager::getColor | ( | int | cId, |
MWAWColor & | color | ||
) | const |
tries to return the color corresponding to an id
bool ClarisDrawStyleManager::getDash | ( | int | dId, |
std::vector< float > & | dash | ||
) | const |
tries to return the dash definition corresponding to an id
bool ClarisDrawStyleManager::getFont | ( | int | fId, |
MWAWFont & | font | ||
) | const |
tries to return the font corresponding to an id
bool ClarisDrawStyleManager::getParagraph | ( | int | pId, |
MWAWParagraph & | para | ||
) | const |
tries to return the paragraph corresponding to an id
bool ClarisDrawStyleManager::getPattern | ( | int | pId, |
MWAWGraphicStyle::Pattern & | pattern | ||
) | const |
tries to return the pattern corresponding to an id
|
protected |
tries to read the Arrow styles
|
protected |
|
protected |
tries to read the dash settings
|
protected |
tries to read the font names zone
|
protected |
tries to read the font style
|
protected |
|
protected |
tries to read the paragraph style
|
protected |
|
protected |
tries to read the Ruler styles
void ClarisDrawStyleManager::setDefaultNumbers | ( | int | nColors, |
int | nGradients | ||
) |
set the default number of color, ...
bool ClarisDrawStyleManager::updateGradient | ( | int | gId, |
MWAWGraphicStyle & | style | ||
) | const |
tries to update the style gradient
|
friend |
|
protected |
the main parser
|
protected |
the parser state
Referenced by readArrows(), readColorList(), readDashs(), readFontNames(), readFontStyles(), readGradientList(), readPatternList(), and readRulers().
|
protected |
the state
Referenced by getColor(), getDash(), getFont(), getParagraph(), getPattern(), readColorList(), readDashs(), readGradientList(), readPatternList(), setDefaultNumbers(), and updateGradient().