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