the main class to read the graphic of a Microsoft Works file More...
#include <MsWksGraph.hxx>
| Classes | |
| struct | SendData | 
| small struct used which picture need to be send  More... | |
| struct | Style | 
| Internal: the graphic style of MsWksGraph.  More... | |
| Public Member Functions | |
| MsWksGraph (MsWksDocument &document) | |
| constructor  More... | |
| virtual | ~MsWksGraph () | 
| destructor  More... | |
| void | setPageLeftTop (MWAWVec2f const &leftTop) | 
| define the page left top dimension in point  More... | |
| int | version () const | 
| returns the file version  More... | |
| int | numPages (int zoneId) const | 
| returns the number of pages  More... | |
| void | send (int id, MWAWPosition const &pos) | 
| send a zone (textbox, ...).  More... | |
| void | sendAll (int zoneId, bool mainZone) | 
| send all the picture corresponding to a zone  More... | |
| void | sendObjects (SendData const &what) | 
| sends all the object of a page, frame, ...  More... | |
| void | computePositions (int zoneId, std::vector< int > &linesHeight, std::vector< int > &pagesHeight) | 
| try to update positions knowing pages and lines height  More... | |
| Protected Member Functions | |
| void | flushExtra () | 
| sends the data which have not yet been sent to the listener  More... | |
| bool | readPictHeader (MsWksGraphInternal::Zone &pict) | 
| read the picture header  More... | |
| bool | readGradient (Style &style) | 
| read the gradient structure ( v4)  More... | |
| int | getEntryPictureV1 (int zoneId, MWAWEntry &zone, bool autoSend=true) | 
| checks if the next zone is a v1 picture and returns a zone id ( or -1).  More... | |
| int | getEntryPicture (int zoneId, MWAWEntry &zone, bool autoSend=true, int order=-1000) | 
| checks if the next zone is a v2 picture and returns a zone id ( or -1)  More... | |
| bool | readRB (MWAWInputStreamPtr input, MWAWEntry const &entry, int kind) | 
| reads the RBDR or a RBIL zone: a zone which seems to regroup all pages pictures in v3-v4 document  More... | |
| bool | readPictureV4 (MWAWInputStreamPtr input, MWAWEntry const &entry) | 
| reads a Pict zone: a zone which seems to code in v4 : header/footer picture  More... | |
| bool | readText (MsWksGraphInternal::TextBox &textBox) | 
| try to read a text zone  More... | |
| void | sendTextBox (int zId, MWAWListenerPtr listener) | 
| try to send a text box zone v1-3  More... | |
| void | checkTextBoxLinks (MsWksGraphInternal::RBZone &rbZone) | 
| check the text box link v4  More... | |
| bool | getZoneGraphicStyle (int zoneId, MWAWGraphicStyle &style) const | 
| returns the graphic style of the zone defined by zoneId  More... | |
| bool | getZonePosition (int zoneId, MWAWPosition::AnchorTo anchor, MWAWPosition &pos) const | 
| returns the position of the zone defined by zoneId  More... | |
| void | sendFrameText (MWAWEntry const &entry, std::string const &frame) | 
| ask m_mainParser to send a frame text(v4)  More... | |
| void | sendTable (int id) | 
| try to a table zone  More... | |
| void | sendChart (int zoneId) | 
| try to send a chart  More... | |
| std::shared_ptr< MsWksGraphInternal::GroupZone > | readGroup (MsWksGraphInternal::Zone &group) | 
| try to read the group data  More... | |
| void | sendGroup (int zoneId, MWAWPosition const &pos) | 
| try to send a group  More... | |
| void | sendGroupChild (int zoneId, MWAWPosition const &pos) | 
| try to send a group elements by elemenys  More... | |
| bool | canCreateGraphic (MsWksGraphInternal::GroupZone const &group) const | 
| returns true if we can create a graphic for the whole group  More... | |
| void | sendGroup (MsWksGraphInternal::GroupZone const &group, MWAWGraphicListenerPtr &listener) const | 
| send the group as a graphic zone  More... | |
| bool | readFont (MWAWFont &font) | 
| reads the textbox font  More... | |
| Protected Attributes | |
| MWAWParserStatePtr | m_parserState | 
| the parser state  More... | |
| std::shared_ptr< MsWksGraphInternal::State > | m_state | 
| the state  More... | |
| MWAWParser * | m_mainParser | 
| the main parser;  More... | |
| MsWksDocument & | m_document | 
| the main document  More... | |
| std::shared_ptr< MsWksTable > | m_tableParser | 
| the table manager  More... | |
| Private Member Functions | |
| MsWksGraph (MsWksGraph const &orig)=delete | |
| MsWksGraph & | operator= (MsWksGraph const &orig)=delete | 
| Friends | |
| class | MsWksDocument | 
| class | MsWksTable | 
| class | MsWksParser | 
| class | MsWks4Zone | 
| class | MsWksDBParser | 
| class | MsWksDRParser | 
| class | MsWksSSParser | 
| class | MsWksGraphInternal::SubDocument | 
the main class to read the graphic of a Microsoft Works file
| 
 | explicit | 
constructor
| 
 | virtual | 
destructor
| 
 | privatedelete | 
| 
 | protected | 
returns true if we can create a graphic for the whole group
Referenced by sendGroup(), and sendGroupChild().
| 
 | protected | 
check the text box link v4
Referenced by readRB().
| void MsWksGraph::computePositions | ( | int | zoneId, | 
| std::vector< int > & | linesHeight, | ||
| std::vector< int > & | pagesHeight | ||
| ) | 
try to update positions knowing pages and lines height
| 
 | protected | 
sends the data which have not yet been sent to the listener
| 
 | protected | 
checks if the next zone is a v2 picture and returns a zone id ( or -1)
Referenced by MsWksTable::readChart(), readGroup(), and readRB().
| 
 | protected | 
checks if the next zone is a v1 picture and returns a zone id ( or -1).
| 
 | protected | 
returns the graphic style of the zone defined by zoneId
| 
 | protected | 
returns the position of the zone defined by zoneId
Referenced by MsWksTable::sendChart().
| int MsWksGraph::numPages | ( | int | zoneId | ) | const | 
returns the number of pages
| 
 | privatedelete | 
| 
 | protected | 
reads the textbox font
Referenced by readText().
| 
 | protected | 
read the gradient structure ( v4)
Referenced by readPictHeader().
| 
 | protected | 
try to read the group data
Referenced by getEntryPicture().
| 
 | protected | 
read the picture header
Referenced by getEntryPicture().
| 
 | protected | 
reads a Pict zone: a zone which seems to code in v4 : header/footer picture
| 
 | protected | 
reads the RBDR or a RBIL zone: a zone which seems to regroup all pages pictures in v3-v4 document
kind=0: uses entry to define the position kind=1: entry size then data kind=2: marker, entry size then data
| 
 | protected | 
try to read a text zone
Referenced by getEntryPicture().
| void MsWksGraph::send | ( | int | id, | 
| MWAWPosition const & | pos | ||
| ) | 
send a zone (textbox, ...).
Referenced by flushExtra(), sendAll(), MsWksTable::sendChart(), sendGroupChild(), and sendObjects().
| void MsWksGraph::sendAll | ( | int | zoneId, | 
| bool | mainZone | ||
| ) | 
send all the picture corresponding to a zone
| 
 | protected | 
try to send a chart
Referenced by MsWksGraphInternal::SubDocument::parse().
| 
 | protected | 
ask m_mainParser to send a frame text(v4)
Referenced by MsWksGraphInternal::SubDocument::parse().
| 
 | protected | 
try to send a group
Referenced by send(), sendGroup(), and sendGroupChild().
| 
 | protected | 
send the group as a graphic zone
| 
 | protected | 
try to send a group elements by elemenys
Referenced by MsWksGraphInternal::SubDocument::parse(), and sendGroup().
| void MsWksGraph::sendObjects | ( | MsWksGraph::SendData const & | what | ) | 
sends all the object of a page, frame, ...
Referenced by MsWksGraphInternal::SubDocument::parse().
| 
 | protected | 
try to a table zone
Referenced by MsWksGraphInternal::SubDocument::parse().
| 
 | protected | 
try to send a text box zone v1-3
Referenced by MsWksGraphInternal::SubDocument::parse().
| void MsWksGraph::setPageLeftTop | ( | MWAWVec2f const & | leftTop | ) | 
define the page left top dimension in point
| int MsWksGraph::version | ( | ) | const | 
returns the file version
Referenced by getEntryPicture(), readFont(), readGroup(), readPictHeader(), and readRB().
| 
 | friend | 
| 
 | friend | 
| 
 | friend | 
| 
 | friend | 
| 
 | friend | 
| 
 | friend | 
| 
 | friend | 
| 
 | friend | 
Referenced by MsWksGraph().
| 
 | protected | 
the main document
Referenced by getEntryPicture(), getEntryPictureV1(), MsWksGraph(), readFont(), readGradient(), readGroup(), readPictHeader(), readPictureV4(), readRB(), readText(), send(), sendFrameText(), sendGroup(), sendGroupChild(), and sendObjects().
| 
 | protected | 
the main parser;
Referenced by MsWksGraph().
| 
 | protected | 
the parser state
Referenced by canCreateGraphic(), computePositions(), MsWksGraph(), readPictHeader(), readText(), send(), sendGroup(), sendGroupChild(), sendObjects(), and version().
| 
 | protected | 
the state
Referenced by canCreateGraphic(), checkTextBoxLinks(), computePositions(), flushExtra(), getEntryPicture(), getEntryPictureV1(), getZoneGraphicStyle(), getZonePosition(), numPages(), readPictHeader(), readPictureV4(), readRB(), send(), sendAll(), sendGroup(), sendGroupChild(), sendObjects(), sendTextBox(), setPageLeftTop(), and version().
| 
 | protected | 
the table manager
Referenced by getEntryPicture(), MsWksGraph(), send(), sendChart(), and sendTable().