the main class to read the graphic part of Canvas v5-v11 file More...
#include <Canvas5Graph.hxx>
Classes | |
struct | LocalState |
Internal: the local state of a Canvas5Graph. More... | |
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 (std::shared_ptr< Canvas5Structure::Stream > stream, long len, Canvas5GraphInternal::ShapeData &data, std::string &extra) |
try to read a special shape data More... | |
std::shared_ptr< Canvas5GraphInternal::PseudoShape > | readSpecialData (std::shared_ptr< Canvas5Structure::Stream > stream, long len, unsigned type, MWAWBox2f const &box, std::string &extra) |
try to read a special shape data (internal helper to understand vkfl structure) More... | |
bool | readShapes (Canvas5Structure::Stream &stream, int numShapes) |
try to read the different shapes More... | |
bool | readMatrices (std::shared_ptr< Canvas5Structure::Stream > stream) |
try to read the different matrix More... | |
bool | readDeR3 (std::shared_ptr< Canvas5Structure::Stream > stream, Canvas5StyleManager::StyleList &styles) |
try to read a complementary styles zone: DeR3 More... | |
bool | sendShape (int sId, LocalState const &local) |
try to send a shape with a transformation More... | |
bool | send (Canvas5GraphInternal::Shape const &shape, LocalState const &local) |
try to send a shape with a transformation More... | |
bool | sendSpecial (MWAWListenerPtr listener, Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::ShapeData const &data, LocalState const &local) |
try to send a special shape More... | |
bool | sendSpecial (MWAWListenerPtr listener, Canvas5GraphInternal::PseudoShape const &pseudoShape, LocalState const &local) |
try to send a special shape More... | |
bool | sendText (MWAWListenerPtr listener, Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::ShapeData const &data) |
try to send a text zone More... | |
bool | sendCurveText (MWAWListenerPtr listener, Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::ShapeData const &data, LocalState const &local) |
try to send a curve's text zone: CvTe More... | |
bool | sendDimension (MWAWListenerPtr listener, Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::ShapeData const &data, LocalState const &local) |
tries to send the dimension line's special shape: DIMN More... | |
bool | sendDimension9 (MWAWListenerPtr listener, Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::ShapeData const &data, LocalState const &local) |
tries to send the dimension line's special shape: DIMN: v9 More... | |
bool | sendEffect (MWAWListenerPtr listener, Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::ShapeData const &data, LocalState const &local) |
tries to send the effect's special shape: effe More... | |
bool | sendExtrude (MWAWListenerPtr listener, Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::ShapeData const &data, LocalState const &local) |
tries to send the extrude's special shape: Extr (pretty basic) More... | |
bool | sendTechnical (MWAWListenerPtr listener, Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::ShapeData const &data, LocalState const &local) |
tries to send the technical shape: Tech (v7) More... | |
bool | sendGIF (MWAWListenerPtr listener, Canvas5GraphInternal::Shape const &shape, Canvas5GraphInternal::ShapeData const &data, LocalState const &local) |
tries to send the gif's shape: AnGf (v7) More... | |
void | send (MWAWListenerPtr listener, MWAWGraphicShape const &shape, MWAWTransformation const &transform, MWAWGraphicStyle const &style) |
tries to send a basic shape ( applying a transformation if need) More... | |
void | send (MWAWListenerPtr listener, librevenge::RVNGString const &text, MWAWVec2f const ¢er, MWAWTransformation const &transform, MWAWFont const &font, bool addFrame) |
tries to send a measure ( applying a transformation if need) 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< Canvas5Image > | m_imageParser |
the image 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 | Canvas5Image |
class | Canvas5Parser |
the main class to read the graphic part of Canvas v5-v11 file
|
explicit |
constructor
|
virtual |
destructor
|
privatedelete |
|
protected |
try to find the list of data's shape zones
|
privatedelete |
|
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
Referenced by readShapeData(), and readSpecialData().
|
protected |
try to read a special shape data (internal helper to understand vkfl structure)
|
protected |
try to send a shape with a transformation
Referenced by sendDimension(), sendDimension9(), sendExtrude(), sendShape(), sendSpecial(), and sendTechnical().
|
protected |
tries to send a basic shape ( applying a transformation if need)
|
protected |
tries to send a measure ( applying a transformation if need)
|
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 dimension line's special shape: DIMN: v9
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 |
tries to send the gif's shape: AnGf (v7)
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(), and sendSpecial().
|
protected |
try to send a special shape
|
protected |
tries to send the technical shape: Tech (v7)
Referenced by sendSpecial().
|
protected |
try to send a text zone
Referenced by Canvas5GraphInternal::SubDocument::parse().
int Canvas5Graph::version | ( | ) | const |
returns the file version
Referenced by readDeR3(), readMatrices(), readShapeData(), readShapes(), readSpecialData(), send(), sendCurveText(), sendDimension(), sendDimension9(), sendSpecial(), and sendText().
|
friend |
|
friend |
|
friend |
|
protected |
the image parser
Referenced by readSpecialData(), sendEffect(), and sendSpecial().
|
protected |
the main parser;
Referenced by readDeR3(), readMatrices(), readShapeData(), readShapes(), readSpecialData(), sendCurveText(), sendDimension(), sendDimension9(), sendExtrude(), sendTechnical(), and sendText().
|
protected |
the parser state
Referenced by send(), sendCurveText(), sendDimension9(), and version().
|
protected |
the state
Referenced by findShapeDataZones(), readMatrices(), readShapeData(), readShapes(), send(), sendShape(), and sendSpecial().
|
protected |
the style manager
Referenced by readDeR3(), send(), sendCurveText(), and sendText().