the main class to read the text part of Microsoft Works file More...
#include <MsWks3Text.hxx>
Public Member Functions | |
MsWks3Text (MsWksDocument &zone) | |
constructor | |
virtual | ~MsWks3Text () |
destructor | |
int | version () const |
returns the file version | |
int | numPages (int zoneId) const |
returns the number of pages | |
Protected Member Functions | |
int | createZones (int numLines=-1, bool mainZone=false) |
finds the different text zones. Returns the zoneId or -1. | |
std::string | readHeaderFooterString (bool header) |
reads the header/footer string : version v1-2 | |
void | flushExtra () |
sends the data which have not yet been sent to the listener | |
void | sendZone (int zoneId) |
send a zone | |
void | sendNote (int zoneId, int noteId) |
send a note | |
int | getHeader () const |
returns a header zone id ( or -1 ) | |
int | getFooter () const |
returns a footer zone id ( or -1 ) | |
bool | getLinesPagesHeight (int zoneId, std::vector< int > &lines, std::vector< int > &pages) |
return the lines and pages height ( for v1, ...) | |
bool | readZoneHeader (MsWks3TextInternal::LineZone &zone) const |
try to read a zone header | |
void | update (MsWks3TextInternal::TextZone &zone) |
prepare a zone | |
void | updateNotes (MsWks3TextInternal::TextZone &zone, int firstNote) |
prepare the note zones given a zone and the position of the first note | |
void | send (MsWks3TextInternal::TextZone &zone, MWAWVec2i limit=MWAWVec2i(-1,-1)) |
sends the zone data to the listener. | |
bool | readFont (MsWks3TextInternal::Font &font, long endPos) |
tries to read a font | |
bool | readParagraph (MsWks3TextInternal::LineZone &zone, MWAWParagraph ¶g) |
tries to read a paragraph | |
bool | sendText (MsWks3TextInternal::LineZone &zone, int zoneId) |
tries to send a text zone | |
bool | sendString (std::string &str) |
tries to send a string (for v1-2, header/footer zone) | |
Protected Attributes | |
MWAWParserStatePtr | m_parserState |
the parser state | |
std::shared_ptr< MsWks3TextInternal::State > | m_state |
the state | |
MWAWParser * | m_mainParser |
the main parser; | |
MsWksDocument & | m_document |
the input zone | |
Private Member Functions | |
MsWks3Text (MsWks3Text const &orig)=delete | |
MsWks3Text & | operator= (MsWks3Text const &orig)=delete |
Friends | |
class | MsWksDocument |
class | MsWksParser |
class | MsWksDRParser |
class | MsWksSSParser |
class | MsWks3TextInternal::SubDocument |
the main class to read the text part of Microsoft Works file
|
explicit |
constructor
|
virtual |
destructor
|
privatedelete |
|
protected |
finds the different text zones. Returns the zoneId or -1.
|
protected |
sends the data which have not yet been sent to the listener
|
protected |
returns a footer zone id ( or -1 )
|
protected |
returns a header zone id ( or -1 )
|
protected |
return the lines and pages height ( for v1, ...)
int MsWks3Text::numPages | ( | int | zoneId | ) | const |
returns the number of pages
|
privatedelete |
|
protected |
tries to read a font
Referenced by sendText(), and updateNotes().
|
protected |
reads the header/footer string : version v1-2
|
protected |
tries to read a paragraph
Referenced by send().
|
protected |
try to read a zone header
Referenced by createZones().
|
protected |
sends the zone data to the listener.
You can set limit to send a subzone data ( like note )
Referenced by flushExtra(), sendNote(), and sendZone().
|
protected |
send a note
Referenced by MsWks3TextInternal::SubDocument::parse().
|
protected |
tries to send a string (for v1-2, header/footer zone)
Referenced by send().
|
protected |
tries to send a text zone
Referenced by send().
|
protected |
send a zone
|
protected |
prepare a zone
Referenced by createZones().
|
protected |
prepare the note zones given a zone and the position of the first note
Referenced by createZones().
int MsWks3Text::version | ( | ) | const |
returns the file version
Referenced by readFont(), and sendText().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
the input zone
Referenced by createZones(), readFont(), readHeaderFooterString(), readParagraph(), readZoneHeader(), send(), sendText(), and updateNotes().
|
protected |
the main parser;
Referenced by MsWks3Text(), readParagraph(), and update().
|
protected |
the parser state
Referenced by MsWks3Text(), send(), sendNote(), sendString(), sendText(), and version().
|
protected |
the state
Referenced by createZones(), flushExtra(), getFooter(), getHeader(), getLinesPagesHeight(), numPages(), readHeaderFooterString(), send(), sendNote(), sendZone(), and version().