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