the main class to read the graphic part of a HanMac Word-J file More...
#include <HMWJGraph.hxx>
Public Member Functions | |
HMWJGraph (HMWJParser &parser) | |
constructor More... | |
virtual | ~HMWJGraph () |
destructor More... | |
int | version () const |
returns the file version More... | |
int | numPages () const |
returns the number of pages More... | |
Protected Member Functions | |
bool | getColor (int colId, int patternId, MWAWColor &color) const |
returns the color associated with a pattern More... | |
void | prepareStructures () |
check the group structures, the linked textbox More... | |
bool | sendPageGraphics (std::vector< long > const &doNotSendIds) |
try to send the page graphic More... | |
void | flushExtra () |
sends the data which have not yet been sent to the listener More... | |
bool | readFrames (MWAWEntry const &entry) |
try to read the frames definition (type 3) More... | |
shared_ptr < HMWJGraphInternal::Frame > | readFrame (int id) |
try to read a frame More... | |
shared_ptr < HMWJGraphInternal::ShapeGraph > | readShapeGraph (HMWJGraphInternal::Frame const &header, long endPos) |
try to read the basic graph data More... | |
shared_ptr < HMWJGraphInternal::CommentFrame > | readCommentData (HMWJGraphInternal::Frame const &header, long endPos) |
try to read the comment data More... | |
shared_ptr < HMWJGraphInternal::PictureFrame > | readPictureData (HMWJGraphInternal::Frame const &header, long endPos) |
try to read the picture data More... | |
shared_ptr < HMWJGraphInternal::TableFrame > | readTableData (HMWJGraphInternal::Frame const &header, long endPos) |
try to read the table data More... | |
shared_ptr < HMWJGraphInternal::TextboxFrame > | readTextboxData (HMWJGraphInternal::Frame const &header, long endPos) |
try to read a textbox data More... | |
shared_ptr < HMWJGraphInternal::TextFrame > | readTextData (HMWJGraphInternal::Frame const &header, long endPos) |
try to read a text data (text, header/footer, footnote) More... | |
bool | readGroupData (MWAWEntry const &entry, int actZone) |
try to read the groupd data ( type 9 ) More... | |
bool | readGraphData (MWAWEntry const &entry, int actZone) |
try to read the graph data (zone 8) More... | |
bool | readPicture (MWAWEntry const &entry, int actZone) |
try to read the pictures definition (type 6) More... | |
bool | readTable (MWAWEntry const &entry, int actZone) |
try to read a table (zone 7) More... | |
bool | readTableFormatsList (HMWJGraphInternal::Table &table, long endPos) |
try to read a list of format More... | |
bool | sendFrame (HMWJGraphInternal::Frame const &frame, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList()) |
try to send a frame to the listener More... | |
bool | sendShapeGraph (HMWJGraphInternal::ShapeGraph const &pict, MWAWPosition pos) |
try to send a basic picture to the listener More... | |
bool | sendComment (HMWJGraphInternal::CommentFrame const &textbox, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList()) |
try to send a comment box to the listener More... | |
bool | sendPictureFrame (HMWJGraphInternal::PictureFrame const &pict, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList()) |
try to send a picture frame More... | |
bool | sendEmptyPicture (MWAWPosition pos) |
try to send an empty picture More... | |
bool | sendTextbox (HMWJGraphInternal::TextboxFrame const &textbox, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList()) |
try to send a textbox to the listener More... | |
bool | sendTableUnformatted (long zId) |
try to send a table unformatted More... | |
bool | sendGroup (long zId, MWAWPosition pos) |
try to send a group to the listener More... | |
bool | sendGroup (HMWJGraphInternal::Group const &group, MWAWPosition pos) |
try to send a group to the listener More... | |
bool | canCreateGraphic (HMWJGraphInternal::Group const &group) |
check if we can send a group as graphic More... | |
void | sendGroupChild (HMWJGraphInternal::Group const &group, MWAWPosition const &pos) |
try to send a group elements by elements More... | |
void | sendGroup (HMWJGraphInternal::Group const &group, MWAWGraphicListenerPtr &listener) |
send the group as a graphic zone More... | |
std::map< long, int > | getTextFrameInformations () const |
return a list textZId -> type which type=0(main), 1(header), 2(footer), 3(footnote), 4(textbox), 9(table), 10(comment) More... | |
bool | getFootnoteInformations (long &textZId, std::vector< long > &fPosList) const |
return the footnote text zone id and the list of first char position More... | |
bool | sendFrame (long frameId, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList()) |
try to send a frame to the listener More... | |
bool | sendText (long textId, long fPos, bool asGraphic=false) |
ask main parser to send a text zone More... | |
bool | checkGroupStructures (long zId, std::set< long > &seens, bool inGroup) |
check the graph structures: ie. More... | |
Protected Attributes | |
MWAWParserStatePtr | m_parserState |
the parser state More... | |
shared_ptr < HMWJGraphInternal::State > | m_state |
the state More... | |
HMWJParser * | m_mainParser |
the main parser; More... | |
Private Member Functions | |
HMWJGraph (HMWJGraph const &orig) | |
HMWJGraph & | operator= (HMWJGraph const &orig) |
Friends | |
class | HMWJParser |
struct | HMWJGraphInternal::Table |
class | HMWJGraphInternal::SubDocument |
the main class to read the graphic part of a HanMac Word-J file
HMWJGraph::HMWJGraph | ( | HMWJParser & | parser | ) |
constructor
|
virtual |
destructor
|
private |
|
protected |
check if we can send a group as graphic
Referenced by sendFrame(), and sendGroupChild().
|
protected |
|
protected |
sends the data which have not yet been sent to the listener
|
protected |
returns the color associated with a pattern
|
protected |
return the footnote text zone id and the list of first char position
|
protected |
return a list textZId -> type which type=0(main), 1(header), 2(footer), 3(footnote), 4(textbox), 9(table), 10(comment)
int HMWJGraph::numPages | ( | ) | const |
returns the number of pages
|
protected |
check the group structures, the linked textbox
|
protected |
try to read the comment data
Referenced by readFrame().
|
protected |
try to read a frame
Referenced by readFrames().
|
protected |
try to read the frames definition (type 3)
|
protected |
try to read the graph data (zone 8)
|
protected |
try to read the groupd data ( type 9 )
|
protected |
try to read the pictures definition (type 6)
|
protected |
try to read the picture data
Referenced by readFrame().
|
protected |
try to read the basic graph data
Referenced by readFrame().
|
protected |
try to read a table (zone 7)
|
protected |
try to read the table data
Referenced by readFrame().
|
protected |
try to read a list of format
Referenced by readTable().
|
protected |
try to read a textbox data
Referenced by readFrame().
|
protected |
try to read a text data (text, header/footer, footnote)
Referenced by readFrame().
|
protected |
try to send a comment box to the listener
Referenced by sendFrame().
|
protected |
try to send an empty picture
Referenced by HMWJGraphInternal::SubDocument::parse(), and sendPictureFrame().
|
protected |
try to send a frame to the listener
Referenced by flushExtra(), HMWJGraphInternal::SubDocument::parse(), sendFrame(), sendGroup(), sendGroupChild(), and sendPageGraphics().
|
protected |
try to send a frame to the listener
|
protected |
try to send a group to the listener
Referenced by HMWJGraphInternal::SubDocument::parse(), sendFrame(), sendGroup(), and sendGroupChild().
|
protected |
try to send a group to the listener
|
protected |
send the group as a graphic zone
|
protected |
try to send a group elements by elements
Referenced by sendGroup().
|
protected |
try to send the page graphic
|
protected |
try to send a picture frame
Referenced by sendFrame().
|
protected |
try to send a basic picture to the listener
Referenced by sendFrame().
|
protected |
try to send a table unformatted
Referenced by HMWJGraphInternal::SubDocument::parse().
|
protected |
ask main parser to send a text zone
Referenced by HMWJGraphInternal::SubDocument::parse(), HMWJGraphInternal::SubDocument::parseGraphic(), and HMWJGraphInternal::Table::sendText().
|
protected |
try to send a textbox to the listener
Referenced by sendFrame().
int HMWJGraph::version | ( | ) | const |
returns the file version
|
friend |
|
friend |
|
friend |
|
protected |
the main parser;
Referenced by canCreateGraphic(), readFrames(), readGraphData(), readGroupData(), readTable(), readTableFormatsList(), sendFrame(), sendGroupChild(), and sendText().
|
protected |
the parser state
Referenced by flushExtra(), readCommentData(), readFrame(), readFrames(), readGraphData(), readGroupData(), readPicture(), readPictureData(), readShapeGraph(), readTable(), readTableData(), readTableFormatsList(), readTextboxData(), readTextData(), sendComment(), sendEmptyPicture(), sendFrame(), sendGroup(), sendGroupChild(), sendPageGraphics(), sendPictureFrame(), sendShapeGraph(), sendTableUnformatted(), sendTextbox(), and version().
|
protected |
the state
Referenced by canCreateGraphic(), checkGroupStructures(), flushExtra(), getColor(), getFootnoteInformations(), getTextFrameInformations(), numPages(), prepareStructures(), readFrames(), readGraphData(), readGroupData(), readPicture(), readTable(), readTableFormatsList(), sendComment(), sendFrame(), sendGroup(), sendGroupChild(), sendPageGraphics(), sendShapeGraph(), sendTableUnformatted(), and sendTextbox().