the main class to read the graphic part of ClarisDraw file More...
#include <ClarisDrawGraph.hxx>
Public Member Functions | |
ClarisDrawGraph (ClarisDrawParser &parser) | |
constructor | |
virtual | ~ClarisDrawGraph () |
destructor | |
int | version () const |
returns the file version | |
void | resetState () |
resets the current state | |
int | numPages () const |
returns the number of pages | |
std::shared_ptr< ClarisWksStruct::DSET > | readGroupZone (ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool isLibHeader=false) |
reads the zone Group DSET | |
std::shared_ptr< ClarisWksStruct::DSET > | readBitmapZone (ClarisWksStruct::DSET const &zone, MWAWEntry const &entry) |
reads the zone Bitmap DSET | |
bool | readTransformations () |
read the transformations | |
void | updateGroup (bool isLibrary) |
update the group: ie. remove empty group child | |
bool | isEmptyGroup (int gId) const |
returns true if a group does not exist or is empty | |
bool | getSurfaceColor (ClarisDrawGraphInternal::Style const &style, MWAWColor &col) const |
return the surface color which corresponds to some ids (if possible) | |
Protected Member Functions | |
bool | sendBitmap (int number, MWAWPosition const &pos=MWAWPosition()) |
sends the bitmap data to the listener (if it exists ) | |
bool | sendGroup (int number, MWAWPosition const &pos=MWAWPosition()) |
sends the zone data to the listener (if it exists ) | |
bool | sendMainGroupChild (int childId, MWAWPosition const &pos=MWAWPosition()) |
sends the ith child of the root (if it exists ) | |
void | flushExtra () |
sends the data which have not yet been sent to the listener | |
bool | sendTextZone (int number, int subZone=-1) |
sends a text box content (via the main parser ) | |
std::shared_ptr< ClarisDrawGraphInternal::Zone > | readGroupDef (MWAWEntry const &entry) |
bool | readGroupData (ClarisDrawGraphInternal::Group &group, long beginGroupPos, bool isLibHeader) |
bool | readShape (MWAWEntry const &entry, ClarisDrawGraphInternal::ZoneShape &zone) |
bool | readPolygonData (std::shared_ptr< ClarisDrawGraphInternal::Zone > zone) |
bool | readBitmapColorMap (std::vector< MWAWColor > &cMap) |
bool | readBitmapData (ClarisDrawGraphInternal::Bitmap &zone) |
bool | readGroupHeader (ClarisDrawGraphInternal::Group &group) |
bool | readGroupUnknown (ClarisDrawGraphInternal::Group &group, int zoneSz, int id) |
bool | sendShape (ClarisDrawGraphInternal::ZoneShape &pict, MWAWPosition pos) |
sends a basic graphic zone | |
bool | sendBitmap (ClarisDrawGraphInternal::Bitmap &pict, MWAWPosition pos) |
sends a bitmap graphic zone | |
Protected Attributes | |
MWAWParserStatePtr | m_parserState |
the parser state | |
std::shared_ptr< ClarisDrawGraphInternal::State > | m_state |
the state | |
ClarisDrawParser * | m_mainParser |
the main parser; | |
std::shared_ptr< ClarisDrawStyleManager > | m_styleManager |
the style manager | |
Private Member Functions | |
ClarisDrawGraph (ClarisDrawGraph const &orig)=delete | |
ClarisDrawGraph & | operator= (ClarisDrawGraph const &orig)=delete |
Friends | |
class | ClarisDrawGraphInternal::SubDocument |
class | ClarisDrawParser |
class | ClarisWksParser |
the main class to read the graphic part of ClarisDraw file
|
explicit |
constructor
|
virtual |
destructor
|
privatedelete |
|
protected |
sends the data which have not yet been sent to the listener
bool ClarisDrawGraph::getSurfaceColor | ( | ClarisDrawGraphInternal::Style const & | style, |
MWAWColor & | col | ||
) | const |
return the surface color which corresponds to some ids (if possible)
bool ClarisDrawGraph::isEmptyGroup | ( | int | gId | ) | const |
returns true if a group does not exist or is empty
int ClarisDrawGraph::numPages | ( | ) | const |
returns the number of pages
|
privatedelete |
|
protected |
Referenced by readBitmapZone().
|
protected |
Referenced by readBitmapZone().
std::shared_ptr< ClarisWksStruct::DSET > ClarisDrawGraph::readBitmapZone | ( | ClarisWksStruct::DSET const & | zone, |
MWAWEntry const & | entry | ||
) |
reads the zone Bitmap DSET
the end of this block is very simillar to a bitmapdef, excepted maybe the first integer ....
|
protected |
Referenced by readGroupZone().
|
protected |
Referenced by readGroupZone().
|
protected |
Referenced by readGroupData().
|
protected |
find f1=8|9|f|14|15|2a|40|73|e9, f2=0|d4, f5=0|80, f6=0|33
Referenced by readGroupHeader(), and readGroupZone().
std::shared_ptr< ClarisWksStruct::DSET > ClarisDrawGraph::readGroupZone | ( | ClarisWksStruct::DSET const & | zone, |
MWAWEntry const & | entry, | ||
bool | isLibHeader = false |
||
) |
reads the zone Group DSET
|
protected |
Referenced by readGroupData().
|
protected |
Referenced by readGroupDef().
bool ClarisDrawGraph::readTransformations | ( | ) |
read the transformations
void ClarisDrawGraph::resetState | ( | ) |
resets the current state
|
protected |
sends a bitmap graphic zone
let go
|
protected |
sends the bitmap data to the listener (if it exists )
Referenced by flushExtra(), sendBitmap(), sendGroup(), and sendMainGroupChild().
|
protected |
sends the zone data to the listener (if it exists )
Referenced by flushExtra(), sendGroup(), and sendMainGroupChild().
|
protected |
sends the ith child of the root (if it exists )
|
protected |
sends a basic graphic zone
Referenced by sendGroup(), and sendMainGroupChild().
|
protected |
sends a text box content (via the main parser )
Referenced by ClarisDrawGraphInternal::SubDocument::parse().
void ClarisDrawGraph::updateGroup | ( | bool | isLibrary | ) |
update the group: ie. remove empty group child
int ClarisDrawGraph::version | ( | ) | const |
returns the file version
|
friend |
|
friend |
|
friend |
|
protected |
the main parser;
Referenced by flushExtra(), sendBitmap(), sendGroup(), sendMainGroupChild(), sendShape(), sendTextZone(), and updateGroup().
|
protected |
the parser state
Referenced by readBitmapColorMap(), readBitmapData(), readBitmapZone(), readGroupData(), readGroupDef(), readGroupHeader(), readGroupUnknown(), readGroupZone(), readPolygonData(), readShape(), readTransformations(), sendBitmap(), sendGroup(), sendMainGroupChild(), sendShape(), and version().
|
protected |
the state
Referenced by flushExtra(), isEmptyGroup(), numPages(), readBitmapZone(), readGroupZone(), readShape(), readTransformations(), resetState(), sendBitmap(), sendGroup(), sendMainGroupChild(), and updateGroup().
|
protected |
the style manager
Referenced by readGroupDef(), and readShape().