the main class to read the text part of GreatWorks Text file More...
#include <GreatWksText.hxx>
Public Member Functions | |
| GreatWksText (GreatWksDocument &document) | |
| constructor | |
| virtual | ~GreatWksText () |
| destructor | |
| int | version () const |
| returns the file version | |
| int | numPages () const |
| returns the number of pages | |
Protected Member Functions | |
| bool | createZones (int expectedHF) |
| finds the different objects zones | |
| bool | sendMainText () |
| send a main zone | |
| int | numHFZones () const |
| return the number of header/footer zones | |
| bool | sendHF (int id) |
| try to send the i^th header/footer | |
| bool | canSendTextBoxAsGraphic (MWAWEntry const &entry) |
| check if a textbox can be send in a graphic zone, ie. does not contains any graphic | |
| bool | sendTextbox (MWAWEntry const &entry, MWAWListenerPtr listener=MWAWListenerPtr()) |
| try to send the textbox text | |
| void | flushExtra () |
| sends the data which have not yet been sent to the listener | |
| int | getFontId (int fileId) const |
| read the final font id corresponding to a file id | |
| bool | readFontNames () |
| try to read the font names zone | |
| bool | readZone (GreatWksTextInternal::Zone &zone) |
| try to read a zone ( textheader+fonts+rulers) | |
| bool | readZonePositions (GreatWksTextInternal::Zone &zone) |
| try to read the end of a zone ( line + frame position ) | |
| bool | sendZone (GreatWksTextInternal::Zone const &zone, MWAWListenerPtr listener=MWAWListenerPtr()) |
| try to send a zone | |
| bool | sendSimpleTextbox (MWAWEntry const &entry, MWAWListenerPtr listener=MWAWListenerPtr()) |
| try to send simplified textbox zone | |
| bool | readFont (MWAWFont &font) |
| try to read a font | |
| bool | readRuler (MWAWParagraph ¶) |
| try to read a ruler | |
| bool | readToken (GreatWksTextInternal::Token &token, long &nChar) |
| try to read a token | |
| bool | findNextZone () |
| heuristic function used to find the next zone | |
Protected Attributes | |
| GreatWksDocument & | m_document |
| the document | |
| MWAWParserStatePtr | m_parserState |
| the parser state | |
| shared_ptr < GreatWksTextInternal::State > | m_state |
| the state | |
| MWAWParser * | m_mainParser |
| the main parser; | |
Private Member Functions | |
| GreatWksText (GreatWksText const &orig) | |
| GreatWksText & | operator= (GreatWksText const &orig) |
Friends | |
| class | GreatWksDocument |
| class | GreatWksParser |
| class | GreatWksDBParser |
| class | GreatWksDRParser |
| class | GreatWksSSParser |
the main class to read the text part of GreatWorks Text file
| GreatWksText::GreatWksText | ( | GreatWksDocument & | document | ) |
constructor
| GreatWksText::~GreatWksText | ( | ) | [virtual] |
destructor
| GreatWksText::GreatWksText | ( | GreatWksText const & | orig | ) | [private] |
| bool GreatWksText::canSendTextBoxAsGraphic | ( | MWAWEntry const & | entry | ) | [protected] |
check if a textbox can be send in a graphic zone, ie. does not contains any graphic
| bool GreatWksText::createZones | ( | int | expectedHF | ) | [protected] |
finds the different objects zones
| bool GreatWksText::findNextZone | ( | ) | [protected] |
heuristic function used to find the next zone
Referenced by createZones().
| void GreatWksText::flushExtra | ( | ) | [protected] |
sends the data which have not yet been sent to the listener
| int GreatWksText::getFontId | ( | int | fileId | ) | const [protected] |
read the final font id corresponding to a file id
| int GreatWksText::numHFZones | ( | ) | const [protected] |
return the number of header/footer zones
| int GreatWksText::numPages | ( | ) | const |
returns the number of pages
| GreatWksText& GreatWksText::operator= | ( | GreatWksText const & | orig | ) | [private] |
| bool GreatWksText::readFont | ( | MWAWFont & | font | ) | [protected] |
try to read a font
Referenced by readZone().
| bool GreatWksText::readFontNames | ( | ) | [protected] |
try to read the font names zone
Referenced by createZones().
| bool GreatWksText::readRuler | ( | MWAWParagraph & | para | ) | [protected] |
try to read a ruler
Referenced by readZone().
| bool GreatWksText::readToken | ( | GreatWksTextInternal::Token & | token, |
| long & | nChar | ||
| ) | [protected] |
try to read a token
Referenced by readZone().
| bool GreatWksText::readZone | ( | GreatWksTextInternal::Zone & | zone | ) | [protected] |
try to read a zone ( textheader+fonts+rulers)
Referenced by canSendTextBoxAsGraphic(), createZones(), findNextZone(), and sendTextbox().
| bool GreatWksText::readZonePositions | ( | GreatWksTextInternal::Zone & | zone | ) | [protected] |
try to read the end of a zone ( line + frame position )
Referenced by readZone().
| bool GreatWksText::sendHF | ( | int | id | ) | [protected] |
try to send the i^th header/footer
| bool GreatWksText::sendMainText | ( | ) | [protected] |
send a main zone
| bool GreatWksText::sendSimpleTextbox | ( | MWAWEntry const & | entry, |
| MWAWListenerPtr | listener = MWAWListenerPtr() |
||
| ) | [protected] |
try to send simplified textbox zone
Referenced by sendTextbox().
| bool GreatWksText::sendTextbox | ( | MWAWEntry const & | entry, |
| MWAWListenerPtr | listener = MWAWListenerPtr() |
||
| ) | [protected] |
try to send the textbox text
| bool GreatWksText::sendZone | ( | GreatWksTextInternal::Zone const & | zone, |
| MWAWListenerPtr | listener = MWAWListenerPtr() |
||
| ) | [protected] |
try to send a zone
Referenced by flushExtra(), sendHF(), sendMainText(), and sendTextbox().
| int GreatWksText::version | ( | ) | const |
returns the file version
friend class GreatWksDBParser [friend] |
friend class GreatWksDocument [friend] |
friend class GreatWksDRParser [friend] |
friend class GreatWksParser [friend] |
friend class GreatWksSSParser [friend] |
GreatWksDocument& GreatWksText::m_document [protected] |
the document
Referenced by sendZone().
MWAWParser* GreatWksText::m_mainParser [protected] |
the main parser;
MWAWParserStatePtr GreatWksText::m_parserState [protected] |
the parser state
Referenced by canSendTextBoxAsGraphic(), createZones(), findNextZone(), flushExtra(), readFont(), readFontNames(), readRuler(), readToken(), readZone(), readZonePositions(), sendSimpleTextbox(), sendTextbox(), sendZone(), and version().
shared_ptr<GreatWksTextInternal::State> GreatWksText::m_state [protected] |
the state
Referenced by createZones(), flushExtra(), getFontId(), numHFZones(), numPages(), readFont(), readFontNames(), sendHF(), sendMainText(), sendSimpleTextbox(), and version().