the main class to read the graphic part of a HanMac Word file More...
#include <HMWKGraph.hxx>
Public Member Functions | |
| HMWKGraph (HMWKParser &parser) | |
| constructor More... | |
| virtual | ~HMWKGraph () |
| 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 (shared_ptr< HMWKZone > zone) |
| try to read the frame definition (type 2) More... | |
| bool | readPicture (shared_ptr< HMWKZone > zone) |
| try to read a picture zone (type d) More... | |
| bool | sendFrame (long frameId, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList()) |
| try to send a frame to the listener More... | |
| bool | sendPicture (long pictId, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList()) |
| try to send a picture to the listener More... | |
| bool | sendText (long textId, long id) |
| 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 | sendPicture (HMWKGraphInternal::Picture const &picture, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList()) |
| try to send a picture to the listener More... | |
| bool | sendFrame (HMWKGraphInternal::Frame const &frame, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList()) |
| try to send a frame to the listener More... | |
| bool | sendBasicGraph (HMWKGraphInternal::BasicGraph const &pict, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList()) |
| try to send a basic picture to the listener More... | |
| bool | sendPictureFrame (HMWKGraphInternal::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 (HMWKGraphInternal::TextBox const &textbox, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList()) |
| try to send a textbox to the listener More... | |
| bool | sendTable (HMWKGraphInternal::Table const &table) |
| try to send a table More... | |
| bool | sendTableUnformatted (long fId) |
| try to send a table unformatted More... | |
| bool | updateTable (HMWKGraphInternal::Table const &table) |
| check if the table is correct and if it can be send to a listener More... | |
| bool | sendPreTableData (HMWKGraphInternal::Table const &table) |
| try to send auxilliary table data More... | |
| bool | sendTableCell (HMWKGraphInternal::TableCell const &cell) |
| try to send a cell in a table More... | |
| shared_ptr < HMWKGraphInternal::BasicGraph > | readBasicGraph (shared_ptr< HMWKZone > zone, HMWKGraphInternal::Frame const &header) |
| try to read the basic graph data More... | |
| shared_ptr < HMWKGraphInternal::FootnoteFrame > | readFootnoteFrame (shared_ptr< HMWKZone > zone, HMWKGraphInternal::Frame const &header) |
| try to read the footnote data More... | |
| shared_ptr < HMWKGraphInternal::Group > | readGroup (shared_ptr< HMWKZone > zone, HMWKGraphInternal::Frame const &header) |
| try to read the group data More... | |
| shared_ptr < HMWKGraphInternal::PictureFrame > | readPictureFrame (shared_ptr< HMWKZone > zone, HMWKGraphInternal::Frame const &header) |
| try to read the picture data More... | |
| shared_ptr < HMWKGraphInternal::Table > | readTable (shared_ptr< HMWKZone > zone, HMWKGraphInternal::Frame const &header) |
| try to read the table data More... | |
| shared_ptr < HMWKGraphInternal::TextBox > | readTextBox (shared_ptr< HMWKZone > zone, HMWKGraphInternal::Frame const &header, bool isMemo) |
| try to read the textbox data More... | |
Protected Attributes | |
| MWAWParserStatePtr | m_parserState |
| the parser state More... | |
| shared_ptr < HMWKGraphInternal::State > | m_state |
| the state More... | |
| HMWKParser * | m_mainParser |
| the main parser; More... | |
Private Member Functions | |
| HMWKGraph (HMWKGraph const &orig) | |
| HMWKGraph & | operator= (HMWKGraph const &orig) |
Friends | |
| class | HMWKParser |
| class | HMWKGraphInternal::SubDocument |
the main class to read the graphic part of a HanMac Word file
| HMWKGraph::HMWKGraph | ( | HMWKParser & | parser | ) |
constructor
|
virtual |
destructor
|
private |
|
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 HMWKGraph::numPages | ( | ) | const |
returns the number of pages
|
protected |
try to read the basic graph data
Referenced by readFrames().
|
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 table data
Referenced by readFrames().
|
protected |
try to read the textbox data
Referenced by readFrames().
|
protected |
try to send a basic picture to the listener
Referenced by sendFrame().
|
protected |
try to send an empty picture
Referenced by HMWKGraphInternal::SubDocument::parse().
|
protected |
try to send a frame to the listener
Referenced by flushExtra(), HMWKGraphInternal::SubDocument::parse(), and sendPageGraphics().
|
protected |
try to send a frame to the listener
|
protected |
try to send the page graphic
|
protected |
try to send a picture to the listener
Referenced by flushExtra(), HMWKGraphInternal::SubDocument::parse(), 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 auxilliary table data
Referenced by sendFrame().
|
protected |
try to send a table
Referenced by sendFrame().
|
protected |
try to send a cell in a table
Referenced by sendTable().
|
protected |
try to send a table unformatted
Referenced by HMWKGraphInternal::SubDocument::parse(), and sendTable().
|
protected |
ask main parser to send a text zone
Referenced by HMWKGraphInternal::SubDocument::parse().
|
protected |
try to send a textbox to the listener
Referenced by sendFrame().
|
protected |
check if the table is correct and if it can be send to a listener
Referenced by sendFrame(), sendPreTableData(), and sendTable().
| int HMWKGraph::version | ( | ) | const |
returns the file version
|
friend |
|
friend |
|
protected |
the main parser;
Referenced by sendTableCell(), sendTableUnformatted(), and sendText().
|
protected |
the parser state
Referenced by sendBasicGraph(), sendEmptyPicture(), sendFrame(), sendPicture(), sendPictureFrame(), sendPreTableData(), sendTable(), sendTableCell(), sendTableUnformatted(), sendTextBox(), and version().
|
protected |
the state
Referenced by flushExtra(), getColor(), getTextFrameInformations(), numPages(), readFrames(), readPicture(), readTable(), sendFrame(), sendPageGraphics(), sendPicture(), and sendTableUnformatted().