the main class to read the graphic part of Claris Works file More...
#include <ClarisWksGraph.hxx>
Public Member Functions | |
| ClarisWksGraph (ClarisWksDocument &document) | |
| constructor More... | |
| virtual | ~ClarisWksGraph () |
| destructor More... | |
| int | version () const |
| returns the file version More... | |
| int | numPages () const |
| returns the number of pages More... | |
| shared_ptr< ClarisWksStruct::DSET > | readGroupZone (ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete) |
| reads the zone Group DSET More... | |
| shared_ptr< ClarisWksStruct::DSET > | readBitmapZone (ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete) |
| reads the zone Bitmap DSET More... | |
| bool | getSurfaceColor (ClarisWksGraphInternal::Style const &style, MWAWColor &col) const |
| return the surface color which corresponds to some ids (if possible) More... | |
Protected Member Functions | |
| void | setSlideList (std::vector< int > const &slideList) |
| set the slide list ( for presentation ) More... | |
| bool | canSendGroupAsGraphic (int number) const |
| check if we can send a group as graphic More... | |
| bool | sendGroup (int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition()) |
| sends the zone data to the listener (if it exists ) More... | |
| bool | canSendBitmapAsGraphic (int number) const |
| check if we can send a group as graphic More... | |
| bool | sendBitmap (int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition()) |
| sends the bitmap data to the listener (if it exists ) More... | |
| void | flushExtra () |
| sends the data which have not yet been sent to the listener More... | |
| void | askToSend (int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition()) |
| ask the main parser to send a zone More... | |
| void | checkNumberAccrossPages (ClarisWksGraphInternal::Group &group) const |
| check the number of accross page ( for draw document ) More... | |
| void | updateInformation (ClarisWksGraphInternal::Group &group) const |
| update the group information to choose how to send the group data More... | |
| bool | canSendAsGraphic (ClarisWksGraphInternal::Group &group) const |
| check if we can send a group as graphic More... | |
| bool | sendGroup (ClarisWksGraphInternal::Group &group, MWAWPosition const &position) |
| send a group More... | |
| bool | sendGroup (ClarisWksGraphInternal::Group &group, std::vector< size_t > const &lChild, MWAWGraphicListenerPtr listener) |
| send a group as graphic More... | |
| bool | sendGroupChild (ClarisWksGraphInternal::Group &group, size_t child, MWAWPosition position) |
| send a group child More... | |
| shared_ptr < ClarisWksGraphInternal::Zone > | readGroupDef (MWAWEntry const &entry) |
| bool | readShape (MWAWEntry const &entry, ClarisWksGraphInternal::ZoneShape &zone) |
| bool | readGroupData (ClarisWksGraphInternal::Group &group, long beginGroupPos) |
| bool | readPolygonData (shared_ptr< ClarisWksGraphInternal::Zone > zone) |
| bool | readPictData (shared_ptr< ClarisWksGraphInternal::Zone > zone) |
| bool | readPICT (ClarisWksGraphInternal::ZonePict &zone) |
| bool | readPS (ClarisWksGraphInternal::ZonePict &zone) |
| bool | readOLE (ClarisWksGraphInternal::ZonePict &zone) |
| bool | readQTimeData (shared_ptr< ClarisWksGraphInternal::Zone > zone) |
| bool | readNamedPict (ClarisWksGraphInternal::ZonePict &zone) |
| bool | readBitmapColorMap (std::vector< MWAWColor > &cMap) |
| bool | readBitmapData (ClarisWksGraphInternal::Bitmap &zone) |
| bool | readGroupHeader (ClarisWksGraphInternal::Group &group) |
| bool | readGroupUnknown (ClarisWksGraphInternal::Group &group, int zoneSz, int id) |
| bool | sendPicture (ClarisWksGraphInternal::ZonePict &pict, MWAWPosition pos) |
| sends a picture zone More... | |
| bool | sendShape (ClarisWksGraphInternal::ZoneShape &pict, MWAWPosition pos) |
| sends a basic graphic zone More... | |
| bool | sendBitmap (ClarisWksGraphInternal::Bitmap &pict, MWAWListener &listener, MWAWPosition pos) |
| sends a bitmap graphic zone More... | |
Protected Attributes | |
| ClarisWksDocument & | m_document |
| the document More... | |
| MWAWParserStatePtr | m_parserState |
| the parser state More... | |
| shared_ptr < ClarisWksGraphInternal::State > | m_state |
| the state More... | |
| MWAWParser * | m_mainParser |
| the main parser; More... | |
Private Member Functions | |
| ClarisWksGraph (ClarisWksGraph const &orig) | |
| ClarisWksGraph & | operator= (ClarisWksGraph const &orig) |
Friends | |
| class | ClarisWksGraphInternal::SubDocument |
| class | ClarisWksDocument |
| class | ClarisWksParser |
the main class to read the graphic part of Claris Works file
| ClarisWksGraph::ClarisWksGraph | ( | ClarisWksDocument & | document | ) |
constructor
|
virtual |
destructor
|
private |
|
protected |
ask the main parser to send a zone
Referenced by ClarisWksGraphInternal::SubDocument::parse().
|
protected |
check if we can send a group as graphic
Referenced by canSendGroupAsGraphic(), and sendGroup().
|
protected |
check if we can send a group as graphic
|
protected |
check if we can send a group as graphic
Referenced by sendGroupChild().
|
protected |
check the number of accross page ( for draw document )
Referenced by numPages().
|
protected |
sends the data which have not yet been sent to the listener
| bool ClarisWksGraph::getSurfaceColor | ( | ClarisWksGraphInternal::Style const & | style, |
| MWAWColor & | col | ||
| ) | const |
return the surface color which corresponds to some ids (if possible)
Referenced by sendGroupChild().
| int ClarisWksGraph::numPages | ( | ) | const |
returns the number of pages
|
private |
|
protected |
|
protected |
| shared_ptr< ClarisWksStruct::DSET > ClarisWksGraph::readBitmapZone | ( | ClarisWksStruct::DSET const & | zone, |
| MWAWEntry const & | entry, | ||
| bool & | complete | ||
| ) |
reads the zone Bitmap DSET
the end of this block is very simillar to a bitmapdef, excepted maybe the first integer ....
|
protected |
|
protected |
|
protected |
a list of int16 : find 00320060 00480060 0048ffe9 013a0173 01ba0173 01ea02a0 01f8ffe7 02080295 020c012c 02140218 02ae01c1 02ca02c9-02cc02c6-02400000 03f801e6 8002e3ff e0010000 ee02e6ff
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().
| shared_ptr< ClarisWksStruct::DSET > ClarisWksGraph::readGroupZone | ( | ClarisWksStruct::DSET const & | zone, |
| MWAWEntry const & | entry, | ||
| bool & | complete | ||
| ) |
reads the zone Group DSET
|
protected |
Referenced by readQTimeData().
|
protected |
Referenced by readPictData().
|
protected |
Referenced by readPictData().
|
protected |
Referenced by readGroupData().
|
protected |
Referenced by readGroupData().
|
protected |
Referenced by readPictData().
|
protected |
Referenced by readGroupData().
|
protected |
Referenced by readGroupDef().
|
protected |
sends the bitmap data to the listener (if it exists )
Referenced by sendGroup(), and sendGroupChild().
|
protected |
sends a bitmap graphic zone
let go
|
protected |
sends the zone data to the listener (if it exists )
Referenced by flushExtra(), sendGroup(), and sendGroupChild().
|
protected |
send a group
|
protected |
send a group as graphic
|
protected |
send a group child
Referenced by sendGroup().
|
protected |
sends a picture zone
Referenced by sendGroupChild().
|
protected |
sends a basic graphic zone
Referenced by sendGroupChild().
|
protected |
set the slide list ( for presentation )
|
protected |
update the group information to choose how to send the group data
Referenced by canSendAsGraphic(), numPages(), and sendGroup().
| int ClarisWksGraph::version | ( | ) | const |
returns the file version
Referenced by readGroupData(), readGroupDef(), and readShape().
|
friend |
|
friend |
|
friend |
|
protected |
the document
Referenced by askToSend(), canSendAsGraphic(), numPages(), readGroupDef(), readGroupHeader(), readGroupUnknown(), sendGroup(), sendGroupChild(), and updateInformation().
|
protected |
the main parser;
Referenced by checkNumberAccrossPages(), sendBitmap(), sendGroup(), and updateInformation().
|
protected |
the parser state
Referenced by flushExtra(), numPages(), readBitmapColorMap(), readBitmapData(), readGroupData(), readGroupDef(), readGroupHeader(), readGroupUnknown(), readNamedPict(), readOLE(), readPICT(), readPictData(), readPolygonData(), readPS(), readQTimeData(), readShape(), sendBitmap(), sendGroup(), sendGroupChild(), sendPicture(), sendShape(), and version().
|
protected |
the state
Referenced by canSendBitmapAsGraphic(), canSendGroupAsGraphic(), checkNumberAccrossPages(), flushExtra(), numPages(), sendBitmap(), sendGroup(), setSlideList(), and updateInformation().