the main class to read the graphic part of Claris Works file More...
#include <CWGraph.hxx>
Public Member Functions | |
CWGraph (CWParser &parser) | |
constructor | |
virtual | ~CWGraph () |
destructor | |
int | version () const |
returns the file version | |
int | numPages () const |
returns the number of pages | |
shared_ptr< CWStruct::DSET > | readGroupZone (CWStruct::DSET const &zone, MWAWEntry const &entry, bool &complete) |
reads the zone Group DSET | |
shared_ptr< CWStruct::DSET > | readBitmapZone (CWStruct::DSET const &zone, MWAWEntry const &entry, bool &complete) |
reads the zone Bitmap DSET | |
bool | getSurfaceColor (CWGraphInternal::Style const style, MWAWColor &col) const |
return the surface color which corresponds to some ids (if possible) | |
Protected Member Functions | |
void | setSlideList (std::vector< int > const &slideList) |
set the slide list ( for presentation ) | |
bool | canSendGroupAsGraphic (int number) const |
check if we can send a group as graphic | |
bool | sendGroup (int number, bool asGraphic, 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, bool asGraphic, 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, bool asGraphic, MWAWPosition const &pos=MWAWPosition()) |
ask the main parser to send a zone | |
void | checkNumberAccrossPages (CWGraphInternal::Group &group) const |
check the number of accross page ( for draw document ) | |
void | updateInformation (CWGraphInternal::Group &group) const |
update the group information to choose how to send the group data | |
bool | canSendAsGraphic (CWGraphInternal::Group &group) const |
check if we can send a group as graphic | |
bool | sendGroup (CWGraphInternal::Group &group, MWAWPosition const &position) |
send a group | |
bool | sendGroup (CWGraphInternal::Group &group, std::vector< size_t > const &lChild, MWAWGraphicListener &listener) |
send a group as graphic | |
bool | sendGroupChild (CWGraphInternal::Group &group, size_t child, MWAWPosition position) |
send a group child | |
shared_ptr< CWGraphInternal::Zone > | readGroupDef (MWAWEntry const &entry) |
bool | readShape (MWAWEntry const &entry, CWGraphInternal::ZoneShape &zone) |
bool | readGroupData (CWGraphInternal::Group &group, long beginGroupPos) |
bool | readPolygonData (shared_ptr< CWGraphInternal::Zone > zone) |
bool | readPictData (shared_ptr< CWGraphInternal::Zone > zone) |
bool | readPICT (CWGraphInternal::ZonePict &zone) |
bool | readPS (CWGraphInternal::ZonePict &zone) |
bool | readOLE (CWGraphInternal::ZonePict &zone) |
bool | readQTimeData (shared_ptr< CWGraphInternal::Zone > zone) |
bool | readNamedPict (CWGraphInternal::ZonePict &zone) |
bool | readBitmapColorMap (std::vector< MWAWColor > &cMap) |
bool | readBitmapData (CWGraphInternal::Bitmap &zone) |
bool | readGroupHeader (CWGraphInternal::Group &group) |
bool | readGroupUnknown (CWGraphInternal::Group &group, int zoneSz, int id) |
bool | sendPicture (CWGraphInternal::ZonePict &pict, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList()) |
sends a picture zone | |
bool | sendShape (CWGraphInternal::ZoneShape &pict, MWAWPosition pos) |
sends a basic graphic zone | |
bool | sendBitmap (CWGraphInternal::Bitmap &pict, bool asGraphic, MWAWPosition pos) |
sends a bitmap graphic zone | |
Protected Attributes | |
MWAWParserStatePtr | m_parserState |
the parser state | |
shared_ptr < CWGraphInternal::State > | m_state |
the state | |
CWParser * | m_mainParser |
the main parser; | |
shared_ptr< CWStyleManager > | m_styleManager |
the style manager | |
Private Member Functions | |
CWGraph (CWGraph const &orig) | |
CWGraph & | operator= (CWGraph const &orig) |
Friends | |
class | CWGraphInternal::SubDocument |
class | CWParser |
the main class to read the graphic part of Claris Works file
CWGraph::CWGraph | ( | CWParser & | parser | ) |
constructor
CWGraph::~CWGraph | ( | ) | [virtual] |
destructor
CWGraph::CWGraph | ( | CWGraph const & | orig | ) | [private] |
void CWGraph::askToSend | ( | int | number, |
bool | asGraphic, | ||
MWAWPosition const & | pos = MWAWPosition() |
||
) | [protected] |
ask the main parser to send a zone
Referenced by CWGraphInternal::SubDocument::parse().
bool CWGraph::canSendAsGraphic | ( | CWGraphInternal::Group & | group | ) | const [protected] |
check if we can send a group as graphic
Referenced by canSendGroupAsGraphic(), and sendGroup().
bool CWGraph::canSendBitmapAsGraphic | ( | int | number | ) | const [protected] |
check if we can send a group as graphic
bool CWGraph::canSendGroupAsGraphic | ( | int | number | ) | const [protected] |
check if we can send a group as graphic
Referenced by sendGroupChild().
void CWGraph::checkNumberAccrossPages | ( | CWGraphInternal::Group & | group | ) | const [protected] |
check the number of accross page ( for draw document )
Referenced by numPages().
void CWGraph::flushExtra | ( | ) | [protected] |
sends the data which have not yet been sent to the listener
bool CWGraph::getSurfaceColor | ( | CWGraphInternal::Style const | style, |
MWAWColor & | col | ||
) | const |
return the surface color which corresponds to some ids (if possible)
Referenced by sendGroupChild().
int CWGraph::numPages | ( | ) | const |
returns the number of pages
bool CWGraph::readBitmapColorMap | ( | std::vector< MWAWColor > & | cMap | ) | [protected] |
bool CWGraph::readBitmapData | ( | CWGraphInternal::Bitmap & | zone | ) | [protected] |
shared_ptr< CWStruct::DSET > CWGraph::readBitmapZone | ( | CWStruct::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 ....
bool CWGraph::readGroupData | ( | CWGraphInternal::Group & | group, |
long | beginGroupPos | ||
) | [protected] |
shared_ptr< CWGraphInternal::Zone > CWGraph::readGroupDef | ( | MWAWEntry const & | entry | ) | [protected] |
bool CWGraph::readGroupHeader | ( | CWGraphInternal::Group & | group | ) | [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().
bool CWGraph::readGroupUnknown | ( | CWGraphInternal::Group & | group, |
int | zoneSz, | ||
int | id | ||
) | [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< CWStruct::DSET > CWGraph::readGroupZone | ( | CWStruct::DSET const & | zone, |
MWAWEntry const & | entry, | ||
bool & | complete | ||
) |
reads the zone Group DSET
bool CWGraph::readNamedPict | ( | CWGraphInternal::ZonePict & | zone | ) | [protected] |
Referenced by readQTimeData().
bool CWGraph::readOLE | ( | CWGraphInternal::ZonePict & | zone | ) | [protected] |
Referenced by readPictData().
bool CWGraph::readPICT | ( | CWGraphInternal::ZonePict & | zone | ) | [protected] |
Referenced by readPictData().
bool CWGraph::readPictData | ( | shared_ptr< CWGraphInternal::Zone > | zone | ) | [protected] |
Referenced by readGroupData().
bool CWGraph::readPolygonData | ( | shared_ptr< CWGraphInternal::Zone > | zone | ) | [protected] |
Referenced by readGroupData().
bool CWGraph::readPS | ( | CWGraphInternal::ZonePict & | zone | ) | [protected] |
Referenced by readPictData().
bool CWGraph::readQTimeData | ( | shared_ptr< CWGraphInternal::Zone > | zone | ) | [protected] |
Referenced by readGroupData().
bool CWGraph::readShape | ( | MWAWEntry const & | entry, |
CWGraphInternal::ZoneShape & | zone | ||
) | [protected] |
Referenced by readGroupDef().
bool CWGraph::sendBitmap | ( | int | number, |
bool | asGraphic, | ||
MWAWPosition const & | pos = MWAWPosition() |
||
) | [protected] |
sends the bitmap data to the listener (if it exists )
Referenced by sendGroup(), and sendGroupChild().
bool CWGraph::sendBitmap | ( | CWGraphInternal::Bitmap & | pict, |
bool | asGraphic, | ||
MWAWPosition | pos | ||
) | [protected] |
sends a bitmap graphic zone
let go
bool CWGraph::sendGroup | ( | int | number, |
bool | asGraphic, | ||
MWAWPosition const & | pos = MWAWPosition() |
||
) | [protected] |
sends the zone data to the listener (if it exists )
Referenced by flushExtra(), sendGroup(), and sendGroupChild().
bool CWGraph::sendGroup | ( | CWGraphInternal::Group & | group, |
MWAWPosition const & | position | ||
) | [protected] |
send a group
bool CWGraph::sendGroup | ( | CWGraphInternal::Group & | group, |
std::vector< size_t > const & | lChild, | ||
MWAWGraphicListener & | listener | ||
) | [protected] |
send a group as graphic
bool CWGraph::sendGroupChild | ( | CWGraphInternal::Group & | group, |
size_t | child, | ||
MWAWPosition | position | ||
) | [protected] |
send a group child
Referenced by sendGroup().
bool CWGraph::sendPicture | ( | CWGraphInternal::ZonePict & | pict, |
MWAWPosition | pos, | ||
WPXPropertyList | extras = WPXPropertyList() |
||
) | [protected] |
sends a picture zone
Referenced by sendGroupChild().
bool CWGraph::sendShape | ( | CWGraphInternal::ZoneShape & | pict, |
MWAWPosition | pos | ||
) | [protected] |
sends a basic graphic zone
Referenced by sendGroupChild().
void CWGraph::setSlideList | ( | std::vector< int > const & | slideList | ) | [protected] |
set the slide list ( for presentation )
void CWGraph::updateInformation | ( | CWGraphInternal::Group & | group | ) | const [protected] |
update the group information to choose how to send the group data
Referenced by canSendAsGraphic(), numPages(), and sendGroup().
int CWGraph::version | ( | ) | const |
returns the file version
Referenced by readGroupData(), readGroupDef(), and readShape().
friend class CWGraphInternal::SubDocument [friend] |
friend class CWParser [friend] |
CWParser* CWGraph::m_mainParser [protected] |
the main parser;
Referenced by askToSend(), canSendAsGraphic(), checkNumberAccrossPages(), numPages(), readGroupHeader(), readGroupUnknown(), sendGroup(), sendGroupChild(), and updateInformation().
MWAWParserStatePtr CWGraph::m_parserState [protected] |
the parser state
Referenced by flushExtra(), readBitmapColorMap(), readBitmapData(), readGroupData(), readGroupDef(), readGroupHeader(), readGroupUnknown(), readNamedPict(), readOLE(), readPICT(), readPictData(), readPolygonData(), readPS(), readQTimeData(), readShape(), sendBitmap(), sendGroup(), sendGroupChild(), sendPicture(), sendShape(), and version().
shared_ptr<CWGraphInternal::State> CWGraph::m_state [protected] |
the state
Referenced by canSendBitmapAsGraphic(), canSendGroupAsGraphic(), checkNumberAccrossPages(), flushExtra(), numPages(), sendBitmap(), sendGroup(), setSlideList(), and updateInformation().
shared_ptr<CWStyleManager> CWGraph::m_styleManager [protected] |
the style manager
Referenced by readGroupDef().