44 #include <librevenge/librevenge.h> 55 struct LocalTransform;
100 bool readShapes(
int numShapes,
unsigned long shapeLength,
unsigned long dataLength);
102 bool readShape(
int n, std::vector<MWAWEntry>
const &dataZonesList);
155 std::shared_ptr<CanvasGraphInternal::State>
m_state;
MWAWInputStreamPtr & getInput()
returns the current input
Definition: CanvasGraph.cxx:472
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
CanvasGraph & operator=(CanvasGraph const &orig)=delete
void setInput(MWAWInputStreamPtr &input)
store the actual input
Definition: CanvasGraph.cxx:467
the main class to read a Canvas 2 and 3 files
Definition: CanvasParser.hxx:61
bool readShapeData(CanvasGraphInternal::Shape &shape)
try to read the shapes data
Definition: CanvasGraph.cxx:731
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
bool readShape(int n, std::vector< MWAWEntry > const &dataZonesList)
try to read a shape: to do
Definition: CanvasGraph.cxx:589
void update(CanvasGraphInternal::Shape const &shape, MWAWGraphicStyle &style) const
updates the style corresponding to a shape
Definition: CanvasGraph.cxx:1517
void checkUnsent() const
look for unsent shapes in debug mode
Definition: CanvasGraph.cxx:1495
Internal: the subdocument of a CanvasGraph.
Definition: CanvasGraph.cxx:372
bool sendShape(int id)
tries to send a shape with id
Definition: CanvasGraph.cxx:477
the main class to read the graphic part of Canvas file
Definition: CanvasGraph.hxx:70
Internal: the shape of a CanvasGraph.
Definition: CanvasGraph.cxx:68
the main class to read the style part of Canvas file
Definition: CanvasStyleManager.hxx:66
bool sendText(CanvasGraphInternal::Shape const &shape)
tries to send the text of a text's shape
Definition: CanvasGraph.cxx:2779
virtual ~CanvasGraph()
destructor
Definition: CanvasGraph.cxx:458
bool getBitmap(CanvasGraphInternal::Shape const &shape, MWAWEmbeddedObject &obj)
tries to read the color bitmap stored in 55's shape: v3.5
Definition: CanvasGraph.cxx:1070
Internal: the structures of a CanvasGraph.
Definition: CanvasGraph.cxx:65
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
bool getBitmapBW(CanvasGraphInternal::Shape const &shape, MWAWEmbeddedObject &obj)
tries to read a bitmap stored in the rectangle's data
Definition: CanvasGraph.cxx:1233
CanvasParser * m_mainParser
the main parser;
Definition: CanvasGraph.hxx:158
bool sendSpecial(CanvasGraphInternal::Shape const &shape, CanvasGraphInternal::LocalTransform const &local)
tries to send the special content
Definition: CanvasGraph.cxx:2557
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
std::shared_ptr< CanvasStyleManager > m_styleManager
the style manager
Definition: CanvasGraph.hxx:160
int version() const
returns the file version
Definition: CanvasGraph.cxx:462
bool getPicture(CanvasGraphInternal::Shape const &shape, MWAWEmbeddedObject &obj)
tries to read a picture stored in the picture's data
Definition: CanvasGraph.cxx:1433
void markSent(int id)
mark the id's shape as read in debug mode
Definition: CanvasGraph.cxx:1477
std::shared_ptr< CanvasGraphInternal::State > m_state
the state
Definition: CanvasGraph.hxx:155
bool send(CanvasGraphInternal::Shape const &shape, CanvasGraphInternal::LocalTransform const *local=nullptr)
tries to send a shape
Definition: CanvasGraph.cxx:1596
bool sendMultiLines(CanvasGraphInternal::Shape const &shape, CanvasGraphInternal::LocalTransform const &local)
tries the multiligne's special shape: Palm
Definition: CanvasGraph.cxx:2239
CanvasGraph(CanvasParser &parser)
constructor
Definition: CanvasGraph.cxx:450
MWAWParserStatePtr m_parserState
the parser state
Definition: CanvasGraph.hxx:152
bool readFileBitmap(long length)
tries to read the file bitmap: windows v3.5
Definition: CanvasGraph.cxx:1338
bool sendDimension(CanvasGraphInternal::Shape const &shape, CanvasGraphInternal::LocalTransform const &local)
tries the dimension line's special shape: DIMN
Definition: CanvasGraph.cxx:1907
bool readShapes(int numShapes, unsigned long shapeLength, unsigned long dataLength)
try to read the shapes: in fact, the compression header + the list of shapes
Definition: CanvasGraph.cxx:497