the main class to read the graphic part of a HanMac Word file More...
#include <HanMacWrdKGraph.hxx>
Public Member Functions | |
HanMacWrdKGraph (HanMacWrdKParser &parser) | |
constructor More... | |
virtual | ~HanMacWrdKGraph () |
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... | |
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 (std::shared_ptr< HanMacWrdKZone > zone) |
try to read the frame definition (type 2) More... | |
bool | readPicture (std::shared_ptr< HanMacWrdKZone > zone) |
try to read a picture zone (type d) More... | |
void | prepareStructures () |
check the group structures, the linked textbox More... | |
bool | sendFrame (long frameId, MWAWPosition const &pos) |
try to send a frame to the listener More... | |
bool | sendPicture (long pictId, MWAWPosition const &pos) |
try to send a picture to the listener More... | |
bool | sendText (long textId, long id, MWAWListenerPtr const &listener=MWAWListenerPtr()) |
ask main parser to send a text zone More... | |
std::map< long, int > | getTextFrameInformations () const |
return a list textZId -> type which 3(footnote), 4(textbox), 9(table), 10(comment) More... | |
bool | checkGroupStructures (long fileId, long fileSubId, std::multimap< long, long > &seens, bool inGroup) |
check the graph structures: ie. More... | |
bool | sendPicture (HanMacWrdKGraphInternal::Picture const &picture, MWAWPosition const &pos) |
try to send a picture to the listener More... | |
bool | sendFrame (HanMacWrdKGraphInternal::Frame const &frame, MWAWPosition const &pos) |
try to send a frame to the listener More... | |
bool | sendShapeGraph (HanMacWrdKGraphInternal::ShapeGraph const &shape, MWAWPosition const &pos) |
try to send a basic picture to the listener More... | |
bool | sendPictureFrame (HanMacWrdKGraphInternal::PictureFrame const &pict, MWAWPosition const &pos) |
try to send a picture frame More... | |
bool | sendEmptyPicture (MWAWPosition const &pos) |
try to send an empty picture More... | |
bool | sendTextBox (HanMacWrdKGraphInternal::TextBox const &textbox, MWAWPosition const &pos) |
try to send a textbox to the listener More... | |
bool | sendTableUnformatted (long fId) |
try to send a table unformatted More... | |
bool | sendGroup (long fId, MWAWPosition const &pos) |
try to send a group to the listener More... | |
bool | sendGroup (HanMacWrdKGraphInternal::Group const &group, MWAWPosition const &pos) |
try to send a group to the listener More... | |
bool | canCreateGraphic (HanMacWrdKGraphInternal::Group const &group) |
check if we can send a group as graphic More... | |
void | sendGroupChild (HanMacWrdKGraphInternal::Group const &group, MWAWPosition const &pos) |
try to send a group elements by elements More... | |
void | sendGroup (HanMacWrdKGraphInternal::Group const &group, MWAWGraphicListenerPtr &listener) |
send the group as a graphic zone More... | |
std::shared_ptr< HanMacWrdKGraphInternal::ShapeGraph > | readShapeGraph (std::shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header) |
try to read the basic graph data More... | |
std::shared_ptr< HanMacWrdKGraphInternal::FootnoteFrame > | readFootnoteFrame (std::shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header) |
try to read the footnote data More... | |
std::shared_ptr< HanMacWrdKGraphInternal::Group > | readGroup (std::shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header) |
try to read the group data More... | |
std::shared_ptr< HanMacWrdKGraphInternal::PictureFrame > | readPictureFrame (std::shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header) |
try to read the picture data More... | |
std::shared_ptr< HanMacWrdKGraphInternal::Table > | readTable (std::shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header) |
try to read the table data More... | |
std::shared_ptr< HanMacWrdKGraphInternal::TextBox > | readTextBox (std::shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header, bool isMemo) |
try to read the textbox data More... | |
Protected Attributes | |
MWAWParserStatePtr | m_parserState |
the parser state More... | |
std::shared_ptr< HanMacWrdKGraphInternal::State > | m_state |
the state More... | |
HanMacWrdKParser * | m_mainParser |
the main parser; More... | |
Private Member Functions | |
HanMacWrdKGraph (HanMacWrdKGraph const &orig)=delete | |
HanMacWrdKGraph & | operator= (HanMacWrdKGraph const &orig)=delete |
Friends | |
class | HanMacWrdKParser |
class | HanMacWrdKGraphInternal::SubDocument |
struct | HanMacWrdKGraphInternal::Table |
the main class to read the graphic part of a HanMac Word file
|
explicit |
constructor
|
virtual |
destructor
|
privatedelete |
|
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 a list textZId -> type which 3(footnote), 4(textbox), 9(table), 10(comment)
int HanMacWrdKGraph::numPages | ( | ) | const |
returns the number of pages
|
privatedelete |
|
protected |
check the group structures, the linked textbox
|
protected |
try to read the footnote data
Referenced by readFrames().
|
protected |
try to read the frame definition (type 2)
|
protected |
try to read the group data
Referenced by readFrames().
|
protected |
try to read a picture zone (type d)
|
protected |
try to read the picture data
Referenced by readFrames().
|
protected |
try to read the basic graph data
Referenced by readFrames().
|
protected |
try to read the table data
Referenced by readFrames().
|
protected |
try to read the textbox data
Referenced by readFrames().
|
protected |
try to send an empty picture
|
protected |
try to send a frame to the listener
Referenced by flushExtra(), sendGroupChild(), and sendPageGraphics().
|
protected |
try to send a frame to the listener
|
protected |
try to send a group to the listener
Referenced by 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 to the listener
Referenced by flushExtra(), and sendPictureFrame().
|
protected |
try to send a picture to the listener
|
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
|
protected |
ask main parser to send a text zone
Referenced by HanMacWrdKGraphInternal::Table::sendText().
|
protected |
try to send a textbox to the listener
Referenced by sendFrame().
int HanMacWrdKGraph::version | ( | ) | const |
returns the file version
|
friend |
|
friend |
|
friend |
|
protected |
the main parser;
Referenced by canCreateGraphic(), sendFrame(), sendGroupChild(), and sendText().
|
protected |
the parser state
Referenced by sendEmptyPicture(), sendFrame(), sendGroup(), sendGroupChild(), sendPicture(), sendPictureFrame(), sendShapeGraph(), sendTableUnformatted(), sendTextBox(), and version().
|
protected |
the state
Referenced by canCreateGraphic(), checkGroupStructures(), flushExtra(), getColor(), getTextFrameInformations(), numPages(), prepareStructures(), readFrames(), readPicture(), readTable(), sendFrame(), sendGroup(), sendGroupChild(), sendPageGraphics(), sendPicture(), and sendTableUnformatted().