the main class to read the graphic part of Canvas5 file More...
#include <Canvas5Graph.hxx>
Public Member Functions | |
Canvas5Graph (Canvas5Parser &parser) | |
constructor More... | |
virtual | ~Canvas5Graph () |
destructor More... | |
int | version () const |
returns the file version More... | |
Protected Member Functions | |
bool | sendShape (int sId) |
try to send a shape More... | |
bool | findShapeDataZones (std::shared_ptr< Canvas5Structure::Stream > stream) |
try to find the list of data's shape zones More... | |
bool | readShapeData (int id, Canvas5GraphInternal::Shape const &shape) |
try to read a shape data More... | |
bool | readSpecialData (long len, unsigned type, std::string &extra) |
try to read a special shape data (internal helper to understand vkfl structure) More... | |
bool | readSpecialData (long len, Canvas5GraphInternal::ShapeData &data, std::string &extra) |
try to read a special shape data More... | |
bool | readShapes (Canvas5Structure::Stream &stream, int numShapes) |
try to read the different shapes More... | |
bool | readMatrices (Canvas5Structure::Stream &stream) |
try to read the different matrix More... | |
bool | readBitmaps (Canvas5Structure::Stream &stream) |
try to read the second big block: the bitmap More... | |
bool | readDeR3 (Canvas5Structure::Stream &stream, Canvas5StyleManager::StyleList &styles) |
try to read a complementary styles zone: DeR3 More... | |
bool | sendShape (int sId, Canvas5GraphInternal::LocalTransform const &local) |
try to send a shape with a transformation More... | |
bool | send (Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::LocalTransform const &local) |
try to send a shape with a transformation More... | |
bool | sendSpecial (Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::ShapeData const &data, Canvas5GraphInternal::LocalTransform const &local) |
try to send a special shape More... | |
bool | sendTextZone (int shapeId) |
try to send the content of a text zone More... | |
bool | sendText (Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::ShapeData const &data) |
try to send a text zone More... | |
bool | sendCurveText (Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::ShapeData const &data, Canvas5GraphInternal::LocalTransform const &local) |
try to send a curve's text zone: CvTe More... | |
bool | sendEffect (Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::ShapeData const &data, Canvas5GraphInternal::LocalTransform const &local) |
tries to send the effect's special shape: effe More... | |
bool | sendExtrude (Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::ShapeData const &data, Canvas5GraphInternal::LocalTransform const &local) |
tries to send the extrude's special shape: Extr (pretty basic) More... | |
bool | sendDimension (Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::ShapeData const &data, Canvas5GraphInternal::LocalTransform const &local) |
tries to send the dimension line's special shape: DIMN More... | |
Protected Attributes | |
MWAWParserStatePtr | m_parserState |
the parser state More... | |
std::shared_ptr< Canvas5GraphInternal::State > | m_state |
the state More... | |
Canvas5Parser * | m_mainParser |
the main parser; More... | |
std::shared_ptr< Canvas5StyleManager > | m_styleManager |
the style manager More... | |
Private Member Functions | |
Canvas5Graph (Canvas5Graph const &orig)=delete | |
Canvas5Graph & | operator= (Canvas5Graph const &orig)=delete |
Friends | |
class | Canvas5GraphInternal::SubDocument |
class | Canvas5Parser |
the main class to read the graphic part of Canvas5 file
|
explicit |
constructor
|
virtual |
destructor
|
privatedelete |
|
protected |
try to find the list of data's shape zones
|
privatedelete |
|
protected |
try to read the second big block: the bitmap
|
protected |
try to read a complementary styles zone: DeR3
Referenced by sendText().
|
protected |
try to read the different matrix
|
protected |
try to read a shape data
Referenced by readShapes().
|
protected |
try to read the different shapes
|
protected |
try to read a special shape data
|
protected |
try to read a special shape data (internal helper to understand vkfl structure)
Referenced by readShapeData().
|
protected |
try to send a shape with a transformation
Referenced by sendShape().
|
protected |
try to send a curve's text zone: CvTe
Referenced by sendSpecial().
|
protected |
tries to send the dimension line's special shape: DIMN
Referenced by sendSpecial().
|
protected |
tries to send the effect's special shape: effe
Referenced by sendSpecial().
|
protected |
tries to send the extrude's special shape: Extr (pretty basic)
Referenced by sendSpecial().
|
protected |
try to send a shape
Referenced by send().
|
protected |
try to send a shape with a transformation
|
protected |
try to send a special shape
Referenced by send().
|
protected |
try to send a text zone
Referenced by sendTextZone().
|
protected |
try to send the content of a text zone
Referenced by Canvas5GraphInternal::SubDocument::parse().
int Canvas5Graph::version | ( | ) | const |
returns the file version
|
friend |
|
friend |
|
protected |
the main parser;
Referenced by readBitmaps(), readMatrices(), readShapeData(), sendDimension(), sendEffect(), and sendExtrude().
|
protected |
the parser state
Referenced by send(), sendCurveText(), sendDimension(), sendEffect(), sendExtrude(), sendSpecial(), sendText(), sendTextZone(), and version().
|
protected |
the state
Referenced by findShapeDataZones(), readBitmaps(), readMatrices(), readShapeData(), readShapes(), readSpecialData(), send(), sendCurveText(), sendDimension(), sendEffect(), sendExtrude(), sendShape(), sendSpecial(), sendText(), and sendTextZone().
|
protected |
the style manager
Referenced by readDeR3(), send(), sendCurveText(), and sendText().