the main class to read the style part of Canvas 5 file More...
#include <Canvas5StyleManager.hxx>
Classes | |
struct | StyleList |
a structure use to store a list of styles More... | |
Public Member Functions | |
Canvas5StyleManager (Canvas5Parser &parser) | |
constructor More... | |
virtual | ~Canvas5StyleManager () |
destructor More... | |
int | version () const |
returns the file version More... | |
Protected Member Functions | |
bool | updateLineStyle (int sId, MWAWGraphicStyle &style, int &numLines, int lineId=-1, float *offset=nullptr) |
try to update the line style given the stroke id and returns the number of lines(plin) More... | |
bool | updateLineColor (int cId, MWAWGraphicStyle &style) |
try to update the line color given the color id More... | |
bool | updateSurfaceColor (int cId, MWAWGraphicStyle &style) |
try to update the surface color given the color id More... | |
bool | readArrows (Canvas5Structure::Stream &stream) |
try to read the arrows zones More... | |
bool | readCharStyle (Canvas5Structure::Stream &stream, int id, std::pair< MWAWFont, int > &fontId) |
try to read a character style More... | |
bool | readCharStyles (Canvas5Structure::Stream &stream) |
try to read the character styles More... | |
bool | readColors (Canvas5Structure::Stream &stream) |
try to read the ink color zones More... | |
bool | readDashes (Canvas5Structure::Stream &stream) |
try to read the dashes More... | |
bool | readFonts (Canvas5Structure::Stream &stream, int numFonts) |
try to read the fonts names More... | |
bool | readFormats (Canvas5Structure::Stream &stream) |
read the list of formats, mainly an unit's conversion table More... | |
bool | readPenSize (Canvas5Structure::Stream &stream) |
read the pen size (header file) More... | |
bool | readPenStyles (Canvas5Structure::Stream &stream) |
read the pen styles More... | |
bool | readStrokes (Canvas5Structure::Stream &stream) |
try to read the stroke styles More... | |
bool | readStyle (Canvas5Structure::Stream &stream, int id, StyleList *styles=nullptr) |
try to read a style More... | |
bool | readStyles (Canvas5Structure::Stream &stream) |
try to read the styles More... | |
bool | readArrow (Canvas5Structure::Stream &stream, MWAWGraphicStyle::Arrow &arrow, long len) |
try to read an arrow More... | |
bool | readColor (Canvas5Structure::Stream &stream, MWAWColor &color, std::string &extra) |
try to read a color: 12 unknown 4 components followed by a name More... | |
bool | readColorStyle (Canvas5Structure::Stream &stream, Canvas5StyleManagerInternal::ColorStyle &color, long len) |
try to read a color style More... | |
bool | readSymbol (Canvas5Structure::Stream &stream, Canvas5StyleManagerInternal::ColorStyle &color, long len) |
try to read a symbol More... | |
bool | readTexture (Canvas5Structure::Stream &stream, Canvas5StyleManagerInternal::ColorStyle &color, long len) |
try to read a texture More... | |
bool | readVKFL (Canvas5Structure::Stream &stream, Canvas5StyleManagerInternal::ColorStyle &texture, long len, std::vector< int > *typeList=nullptr) |
try to read an unknown vectorized graphic format used to store symbol, texture and arrow More... | |
Protected Attributes | |
MWAWParserStatePtr | m_parserState |
the parser state More... | |
std::shared_ptr< Canvas5StyleManagerInternal::State > | m_state |
the state More... | |
Canvas5Parser * | m_mainParser |
the main parser; More... | |
Private Member Functions | |
Canvas5StyleManager (Canvas5StyleManager const &orig)=delete | |
Canvas5StyleManager & | operator= (Canvas5StyleManager const &orig)=delete |
Friends | |
class | Canvas5Graph |
class | Canvas5Parser |
the main class to read the style part of Canvas 5 file
|
explicit |
constructor
|
virtual |
destructor
|
privatedelete |
|
privatedelete |
|
protected |
try to read an arrow
|
protected |
try to read the arrows zones
|
protected |
try to read a character style
|
protected |
try to read the character styles
|
protected |
try to read a color: 12 unknown 4 components followed by a name
Referenced by readColorStyle(), and readVKFL().
|
protected |
try to read the ink color zones
|
protected |
try to read a color style
Referenced by readColorStyle(), and readSymbol().
|
protected |
try to read the dashes
|
protected |
try to read the fonts names
|
protected |
read the list of formats, mainly an unit's conversion table
|
protected |
read the pen size (header file)
|
protected |
read the pen styles
|
protected |
try to read the stroke styles
|
protected |
try to read a style
|
protected |
try to read the styles
|
protected |
try to read a symbol
Referenced by readColorStyle().
|
protected |
try to read a texture
Referenced by readColorStyle().
|
protected |
try to read an unknown vectorized graphic format used to store symbol, texture and arrow
Referenced by readArrow(), readSymbol(), and readTexture().
|
protected |
try to update the line color given the color id
|
protected |
try to update the line style given the stroke id and returns the number of lines(plin)
|
protected |
try to update the surface color given the color id
int Canvas5StyleManager::version | ( | ) | const |
returns the file version
|
friend |
|
friend |
|
protected |
the main parser;
Referenced by readArrows(), readCharStyles(), readColors(), readDashes(), readFonts(), readPenStyles(), readStrokes(), readStyles(), and readVKFL().
|
protected |
the parser state
Referenced by readCharStyle(), readFonts(), and version().
|
protected |
the state
Referenced by readCharStyle(), readColors(), readDashes(), readPenStyles(), updateLineColor(), updateLineStyle(), and updateSurfaceColor().