the main class to read the graphic part of Claris Works file More...
#include <ClarisWksGraph.hxx>
Public Member Functions | |
| ClarisWksGraph (ClarisWksDocument &document) | |
| constructor | |
| virtual | ~ClarisWksGraph () |
| destructor | |
| int | version () const |
| returns the file version | |
| int | numPages () const |
| returns the number of pages | |
| bool | getPageDimension (MWAWVec2f &dim) const |
| returns the page dimension if known (in point) | |
| void | computePositions () const |
| compute the pages position | |
| void | findMasterPage () const |
| find the master zone to the content zones in a graphic document | |
| std::shared_ptr< ClarisWksStruct::DSET > | readGroupZone (ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete) |
| reads the zone Group DSET | |
| std::shared_ptr< ClarisWksStruct::DSET > | readBitmapZone (ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete) |
| reads the zone Bitmap DSET | |
| bool | readDatabasePictZone () |
| try to read a database picture zone, v5-v6 | |
| bool | getSurfaceColor (ClarisWksGraphInternal::Style const &style, MWAWColor &col) const |
| return the surface color which corresponds to some ids (if possible) | |
Protected Member Functions | |
| bool | canSendGroupAsGraphic (int number) const |
| check if we can send a group as graphic | |
| bool | sendPageGraphics (int groupId) |
| sends the page element | |
| bool | sendMaster (int pg) |
| sends the master zone (ie. the background zone in a graphic document) | |
| bool | sendDatabasePictZone (int pictId, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition()) |
| sends the database zone if known | |
| bool | sendGroup (int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition()) |
| sends the zone data to the listener (if it exists ) | |
| bool | canSendBitmapAsGraphic (int number) const |
| check if we can send a group as graphic | |
| bool | sendBitmap (int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition()) |
| sends the bitmap data to the listener (if it exists ) | |
| void | flushExtra () |
| sends the data which have not yet been sent to the listener | |
| void | askToSend (int number, MWAWListenerPtr listener, MWAWPosition const &pos=MWAWPosition()) |
| ask the main parser to send a zone | |
| void | updateGroup (ClarisWksGraphInternal::Group &group) const |
| update the group information to choose how to send the group data | |
| bool | canSendAsGraphic (ClarisWksGraphInternal::Group &group) const |
| check if we can send a group as graphic | |
| bool | sendGroup (ClarisWksGraphInternal::Group &group, MWAWPosition const &position) |
| send a group | |
| bool | sendGroupChild (std::vector< std::shared_ptr< ClarisWksGraphInternal::Zone > > const &lChild, MWAWListenerPtr listener, MWAWVec2f const &leftTop) |
| send a child group as graphic or as presentation | |
| bool | sendGroupChild (std::shared_ptr< ClarisWksGraphInternal::Zone > zone, MWAWPosition position) |
| send a group child | |
| bool | sendPageChild (ClarisWksGraphInternal::Group &group) |
| send the child element corresponding to some page | |
| std::shared_ptr< ClarisWksGraphInternal::Zone > | readGroupDef (MWAWEntry const &entry) |
| bool | readGroupData (ClarisWksGraphInternal::Group &group, long beginGroupPos) |
| bool | readShape (MWAWEntry const &entry, ClarisWksGraphInternal::ZoneShape &zone) |
| bool | readChartData (std::shared_ptr< ClarisWksGraphInternal::Zone > zone) |
| bool | readPictData (std::shared_ptr< ClarisWksGraphInternal::Zone > zone) |
| bool | readPolygonData (std::shared_ptr< ClarisWksGraphInternal::Zone > zone) |
| bool | readPICT (ClarisWksGraphInternal::ZonePict &zone) |
| bool | readPS (ClarisWksGraphInternal::ZonePict &zone) |
| bool | readOLE (ClarisWksGraphInternal::ZonePict &zone) |
| bool | readQTimeData (std::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 | |
| bool | sendShape (ClarisWksGraphInternal::ZoneShape const &pict, MWAWPosition pos) |
| sends a basic graphic zone | |
| bool | sendBitmap (ClarisWksGraphInternal::Bitmap &pict, MWAWListener &listener, MWAWPosition pos) |
| sends a bitmap graphic zone | |
Protected Attributes | |
| ClarisWksDocument & | m_document |
| the document | |
| MWAWParserStatePtr | m_parserState |
| the parser state | |
| std::shared_ptr< ClarisWksGraphInternal::State > | m_state |
| the state | |
| MWAWParser * | m_mainParser |
| the main parser; | |
Private Member Functions | |
| ClarisWksGraph (ClarisWksGraph const &orig)=delete | |
| ClarisWksGraph & | operator= (ClarisWksGraph const &orig)=delete |
Friends | |
| class | ClarisWksGraphInternal::SubDocument |
| class | ClarisWksDocument |
| class | ClarisWksParser |
the main class to read the graphic part of Claris Works file
|
explicit |
constructor
Referenced by ClarisWksDocument::ClarisWksDocument(), ClarisWksGraph(), ClarisWksParser, and operator=().
|
virtual |
destructor
|
privatedelete |
|
protected |
ask the main parser to send a zone
Referenced by ClarisWksParser, and ClarisWksGraphInternal::SubDocument::parse().
|
protected |
check if we can send a group as graphic
Referenced by canSendGroupAsGraphic(), ClarisWksParser, and sendGroup().
|
protected |
check if we can send a group as graphic
Referenced by ClarisWksParser.
|
protected |
check if we can send a group as graphic
Referenced by ClarisWksParser, and sendGroupChild().
| void ClarisWksGraph::computePositions | ( | ) | const |
compute the pages position
Referenced by ClarisWksParser, and numPages().
| void ClarisWksGraph::findMasterPage | ( | ) | const |
find the master zone to the content zones in a graphic document
Referenced by ClarisWksParser.
|
protected |
sends the data which have not yet been sent to the listener
Referenced by ClarisWksParser.
| bool ClarisWksGraph::getPageDimension | ( | MWAWVec2f & | dim | ) | const |
returns the page dimension if known (in point)
Referenced by ClarisWksParser.
| bool ClarisWksGraph::getSurfaceColor | ( | ClarisWksGraphInternal::Style const & | style, |
| MWAWColor & | col ) const |
return the surface color which corresponds to some ids (if possible)
Referenced by ClarisWksParser, and sendGroupChild().
| int ClarisWksGraph::numPages | ( | ) | const |
returns the number of pages
Referenced by ClarisWksParser.
|
privatedelete |
|
protected |
Referenced by ClarisWksParser, and readBitmapZone().
|
protected |
Referenced by ClarisWksParser, and readBitmapZone().
| std::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 ....
Referenced by ClarisWksParser.
|
protected |
Referenced by ClarisWksParser, and readGroupData().
| bool ClarisWksGraph::readDatabasePictZone | ( | ) |
try to read a database picture zone, v5-v6
Referenced by ClarisWksParser.
|
protected |
Referenced by ClarisWksParser, and readGroupZone().
|
protected |
Referenced by ClarisWksParser, and readGroupZone().
|
protected |
not frequent but we can find a list of int16 as 00320060 00480060 0048ffe9 013a0173 01ba0173 01ea02a0 01f8ffe7 02080295 020c012c 02140218 02ae01c1 02ca02c9-02cc02c6-02400000 03f801e6 8002e3ff e0010000 ee02e6ff
Referenced by ClarisWksParser, and readGroupData().
|
protected |
find f1=8|9|f|14|15|2a|40|73|e9, f2=0|d4, f5=0|80, f6=0|33
Referenced by ClarisWksParser, readGroupHeader(), and readGroupZone().
| std::shared_ptr< ClarisWksStruct::DSET > ClarisWksGraph::readGroupZone | ( | ClarisWksStruct::DSET const & | zone, |
| MWAWEntry const & | entry, | ||
| bool & | complete ) |
reads the zone Group DSET
Referenced by ClarisWksParser.
|
protected |
Referenced by ClarisWksParser, and readQTimeData().
|
protected |
Referenced by ClarisWksParser, and readPictData().
|
protected |
Referenced by ClarisWksParser, and readPictData().
|
protected |
Referenced by ClarisWksParser, readDatabasePictZone(), and readGroupData().
|
protected |
Referenced by ClarisWksParser, and readGroupData().
|
protected |
Referenced by ClarisWksParser, and readPictData().
|
protected |
Referenced by ClarisWksParser, readDatabasePictZone(), and readGroupData().
|
protected |
Referenced by ClarisWksParser, and readGroupDef().
|
protected |
sends a bitmap graphic zone
let go
|
protected |
sends the bitmap data to the listener (if it exists )
Referenced by ClarisWksParser, sendBitmap(), sendGroupChild(), and sendGroupChild().
|
protected |
sends the database zone if known
Referenced by ClarisWksParser.
|
protected |
send a group
|
protected |
sends the zone data to the listener (if it exists )
Referenced by ClarisWksParser, flushExtra(), sendGroup(), and sendGroupChild().
|
protected |
send a group child
|
protected |
send a child group as graphic or as presentation
Referenced by ClarisWksParser, sendGroup(), sendGroup(), and sendPageChild().
|
protected |
sends the master zone (ie. the background zone in a graphic document)
Referenced by ClarisWksParser.
|
protected |
send the child element corresponding to some page
Referenced by ClarisWksParser, sendMaster(), and sendPageGraphics().
|
protected |
sends the page element
Referenced by ClarisWksParser.
|
protected |
sends a picture zone
Referenced by ClarisWksParser, sendDatabasePictZone(), and sendGroupChild().
|
protected |
sends a basic graphic zone
Referenced by ClarisWksParser, and sendGroupChild().
|
protected |
update the group information to choose how to send the group data
Referenced by canSendAsGraphic(), ClarisWksParser, computePositions(), sendGroup(), and sendPageChild().
| int ClarisWksGraph::version | ( | ) | const |
returns the file version
Referenced by ClarisWksParser, findMasterPage(), readBitmapZone(), readChartData(), readGroupData(), readGroupDef(), and readShape().
|
friend |
Referenced by ClarisWksDocument, ClarisWksGraph(), and ClarisWksParser.
|
friend |
|
friend |
Referenced by ClarisWksParser.
|
protected |
the document
Referenced by askToSend(), canSendAsGraphic(), ClarisWksGraph(), findMasterPage(), readChartData(), readGroupDef(), readGroupUnknown(), sendGroup(), sendGroup(), sendGroupChild(), sendGroupChild(), sendMaster(), sendPageChild(), and updateGroup().
|
protected |
the main parser;
Referenced by ClarisWksGraph(), sendBitmap(), and sendGroup().
|
protected |
the parser state
Referenced by canSendAsGraphic(), canSendBitmapAsGraphic(), ClarisWksGraph(), findMasterPage(), flushExtra(), readBitmapColorMap(), readBitmapData(), readBitmapZone(), readChartData(), readDatabasePictZone(), readGroupData(), readGroupDef(), readGroupHeader(), readGroupUnknown(), readGroupZone(), readNamedPict(), readOLE(), readPICT(), readPictData(), readPolygonData(), readPS(), readQTimeData(), readShape(), sendBitmap(), sendBitmap(), sendDatabasePictZone(), sendGroup(), sendGroup(), sendGroupChild(), sendGroupChild(), sendMaster(), sendPageChild(), sendPicture(), sendShape(), and version().
|
protected |
the state
Referenced by canSendBitmapAsGraphic(), canSendGroupAsGraphic(), ClarisWksGraph(), computePositions(), findMasterPage(), flushExtra(), getPageDimension(), numPages(), readBitmapZone(), readDatabasePictZone(), readGroupZone(), sendBitmap(), sendDatabasePictZone(), sendGroup(), sendGroup(), sendMaster(), sendPageChild(), sendPageGraphics(), and updateGroup().