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