the main class to read the graphic part of Canvas file More...
#include <CanvasGraph.hxx>
Public Member Functions | |
CanvasGraph (CanvasParser &parser) | |
constructor | |
virtual | ~CanvasGraph () |
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 | sendShape (int id) |
tries to send a shape with id | |
bool | readShapes (int numShapes, unsigned long shapeLength, unsigned long dataLength) |
try to read the shapes: in fact, the compression header + the list of shapes | |
bool | readShape (int n, std::vector< MWAWEntry > const &dataZonesList) |
try to read a shape: to do | |
bool | readShapeData (CanvasGraphInternal::Shape &shape) |
try to read the shapes data | |
bool | getBitmapBW (CanvasGraphInternal::Shape const &shape, MWAWEmbeddedObject &obj) |
tries to read a bitmap stored in the rectangle's data | |
bool | getBitmap (CanvasGraphInternal::Shape const &shape, MWAWEmbeddedObject &obj) |
tries to read the color bitmap stored in 55's shape: v3.5 | |
bool | readFileBitmap (long length) |
tries to read the file bitmap: windows v3.5 | |
bool | getPicture (CanvasGraphInternal::Shape const &shape, MWAWEmbeddedObject &obj) |
tries to read a picture stored in the picture's data | |
void | update (CanvasGraphInternal::Shape const &shape, MWAWGraphicStyle &style) const |
updates the style corresponding to a shape | |
bool | send (CanvasGraphInternal::Shape const &shape, CanvasGraphInternal::LocalTransform const *local=nullptr) |
tries to send a shape | |
bool | sendDimension (CanvasGraphInternal::Shape const &shape, CanvasGraphInternal::LocalTransform const &local) |
tries the dimension line's special shape: DIMN | |
bool | sendMultiLines (CanvasGraphInternal::Shape const &shape, CanvasGraphInternal::LocalTransform const &local) |
tries the multiligne's special shape: Palm | |
bool | sendSpecial (CanvasGraphInternal::Shape const &shape, CanvasGraphInternal::LocalTransform const &local) |
tries to send the special content | |
bool | sendText (CanvasGraphInternal::Shape const &shape) |
tries to send the text of a text's shape | |
bool | sendText (int zId) |
tries to send the text of a text's shape given a zone id | |
void | markSent (int id) |
mark the id's shape as read in debug mode | |
void | checkUnsent () const |
look for unsent shapes in debug mode | |
Protected Attributes | |
MWAWParserStatePtr | m_parserState |
the parser state | |
std::shared_ptr< CanvasGraphInternal::State > | m_state |
the state | |
CanvasParser * | m_mainParser |
the main parser; | |
std::shared_ptr< CanvasStyleManager > | m_styleManager |
the style manager | |
Private Member Functions | |
CanvasGraph (CanvasGraph const &orig)=delete | |
CanvasGraph & | operator= (CanvasGraph const &orig)=delete |
Friends | |
class | CanvasGraphInternal::SubDocument |
class | CanvasParser |
the main class to read the graphic part of Canvas file
|
explicit |
constructor
|
virtual |
destructor
|
privatedelete |
|
protected |
look for unsent shapes in debug mode
|
protected |
tries to read the color bitmap stored in 55's shape: v3.5
Referenced by send().
|
protected |
tries to read a bitmap stored in the rectangle's data
Referenced by getBitmap(), and send().
|
protected |
returns the current input
Referenced by getBitmap(), getBitmapBW(), getPicture(), readFileBitmap(), readShape(), readShapeData(), readShapes(), send(), sendDimension(), sendMultiLines(), and sendText().
|
protected |
tries to read a picture stored in the picture's data
Referenced by send().
|
protected |
mark the id's shape as read in debug mode
Referenced by markSent(), and send().
|
privatedelete |
|
protected |
tries to read the file bitmap: windows v3.5
|
protected |
try to read a shape: to do
Referenced by readShapes().
|
protected |
try to read the shapes data
Referenced by readShape().
|
protected |
try to read the shapes: in fact, the compression header + the list of shapes
|
protected |
tries to send a shape
Referenced by send(), and sendShape().
|
protected |
tries the dimension line's special shape: DIMN
Referenced by sendSpecial().
|
protected |
tries the multiligne's special shape: Palm
Referenced by sendSpecial().
|
protected |
tries to send a shape with id
|
protected |
tries to send the special content
Referenced by send().
|
protected |
tries to send the text of a text's shape
Referenced by CanvasGraphInternal::SubDocument::parse(), and sendText().
|
protected |
tries to send the text of a text's shape given a zone id
|
protected |
store the actual input
|
protected |
updates the style corresponding to a shape
Referenced by send().
int CanvasGraph::version | ( | ) | const |
returns the file version
Referenced by readShape(), send(), and sendText().
|
friend |
|
friend |
|
protected |
the main parser;
Referenced by getBitmap(), getBitmapBW(), readShape(), readShapeData(), readShapes(), sendDimension(), and sendMultiLines().
|
protected |
the parser state
Referenced by getBitmap(), getBitmapBW(), getPicture(), readFileBitmap(), readShape(), readShapeData(), readShapes(), send(), sendDimension(), sendMultiLines(), sendSpecial(), sendText(), and version().
|
protected |
the state
Referenced by checkUnsent(), getInput(), markSent(), readShape(), readShapeData(), send(), sendShape(), sendText(), and setInput().
|
protected |
the style manager
Referenced by getBitmap(), readShapeData(), sendMultiLines(), and update().