the main class to read the style part of Canvas file More...
#include <CanvasStyleManager.hxx>
Public Member Functions | |
| CanvasStyleManager (CanvasParser &parser) | |
| constructor | |
| virtual | ~CanvasStyleManager () |
| destructor | |
| int | version () const |
| returns the file version | |
Protected Member Functions | |
| void | setInput (MWAWInputStreamPtr &input) |
| store the actual input | |
| MWAWInputStreamPtr & | getInput () |
| returns the current input | |
| bool | get (int index, MWAWColor &color) const |
| try to retrieve a color from the color index | |
| std::vector< MWAWColor > const & | getColorsList () const |
| returns the list of colors | |
| bool | get (int index, MWAWGraphicStyle::Pattern &pattern) const |
| try to retrieve a pattern from the pattern index | |
| bool | readArrows () |
| read the arrow shapes | |
| bool | readArrow (MWAWGraphicStyle::Arrow &arrow, std::string &extra) |
| read an arrow shape | |
| bool | readColors (int numColors) |
| try to read the colors list | |
| bool | readDashes (int numDashes, bool user=false) |
| try to read the dash list | |
| bool | readGradient (MWAWEntry const &entry, MWAWGraphicStyle::Gradient &gradient) |
| try to read a gradient (ObFL) | |
| bool | readPatterns (int numPatterns) |
| try to read the pattern list | |
| bool | readPenSize () |
| read the pen size | |
| bool | readSprays () |
| try to read the spray | |
| bool | readFonts (int numFonts) |
| try to read the fonts names | |
| bool | readColorValues (MWAWEntry const &entry) |
| read the Windows CVal RSRC: v3 (a list of color) | |
Protected Attributes | |
| MWAWParserStatePtr | m_parserState |
| the parser state | |
| std::shared_ptr< CanvasStyleManagerInternal::State > | m_state |
| the state | |
| CanvasParser * | m_mainParser |
| the main parser; | |
Private Member Functions | |
| CanvasStyleManager (CanvasStyleManager const &orig)=delete | |
| CanvasStyleManager & | operator= (CanvasStyleManager const &orig)=delete |
Friends | |
| class | CanvasGraph |
| class | CanvasParser |
the main class to read the style part of Canvas file
|
explicit |
constructor
Referenced by CanvasStyleManager(), and operator=().
|
virtual |
destructor
|
privatedelete |
|
protected |
try to retrieve a color from the color index
|
protected |
try to retrieve a pattern from the pattern index
|
protected |
returns the list of colors
|
protected |
returns the current input
Referenced by readArrow(), readArrows(), readColors(), readColorValues(), readDashes(), readFonts(), readGradient(), readPatterns(), and readPenSize().
|
privatedelete |
|
protected |
read an arrow shape
Referenced by readArrows().
|
protected |
read the arrow shapes
|
protected |
try to read the colors list
|
protected |
read the Windows CVal RSRC: v3 (a list of color)
|
protected |
try to read the dash list
|
protected |
try to read the fonts names
|
protected |
try to read a gradient (ObFL)
|
protected |
try to read the pattern list
|
protected |
read the pen size
|
protected |
try to read the spray
|
protected |
store the actual input
| int CanvasStyleManager::version | ( | ) | const |
returns the file version
|
friend |
Referenced by CanvasGraph.
|
friend |
Referenced by CanvasParser, and CanvasStyleManager().
|
protected |
the main parser;
Referenced by CanvasStyleManager(), readColors(), readDashes(), readFonts(), and readPatterns().
|
protected |
the parser state
Referenced by CanvasStyleManager(), readArrows(), readColors(), readColorValues(), readDashes(), readFonts(), readGradient(), readPatterns(), readPenSize(), and version().
|
protected |
the state
Referenced by CanvasStyleManager(), get(), get(), getColorsList(), getInput(), readColors(), readPatterns(), and setInput().