the main class to read the text part of ZWrite Text file More...
#include <ZWText.hxx>
Public Member Functions | |
ZWText (ZWParser &parser) | |
constructor | |
virtual | ~ZWText () |
destructor | |
int | version () const |
returns the file version | |
int | numPages () const |
returns the number of pages | |
Protected Types | |
enum | TextCode { None, Center, BookMark, NewPage, Tag, Link } |
the list of code in the text More... | |
Protected Member Functions | |
bool | createZones () |
finds the different text zones | |
bool | sendMainText () |
send a main zone | |
void | flushExtra () |
sends the data which have not yet been sent to the listener | |
void | computePositions () |
compute the positions | |
bool | sendText (ZWTextInternal::Section const &zone, MWAWEntry const &entry) |
try to send a section | |
bool | sendText (int sectionId, MWAWEntry const &entry) |
try to send a section using an id | |
TextCode | isTextCode (MWAWInputStreamPtr &input, long endPos, MWAWEntry &dPos) const |
check if a character after '<' corresponds to a text code | |
bool | readHFZone (MWAWEntry const &entry) |
read the header/footer zone | |
bool | hasHeaderFooter (bool header) const |
returns true if there is a header/footer | |
bool | sendHeaderFooter (bool header) |
try to send the header/footer | |
bool | readStyles (MWAWEntry const &entry) |
read the styles | |
bool | readSectionFonts (MWAWEntry const &entry) |
read a section fonts | |
Protected Attributes | |
MWAWParserStatePtr | m_parserState |
the parser state | |
shared_ptr< ZWTextInternal::State > | m_state |
the state | |
ZWParser * | m_mainParser |
the main parser; | |
Private Member Functions | |
ZWText (ZWText const &orig) | |
ZWText & | operator= (ZWText const &orig) |
Friends | |
class | ZWParser |
class | ZWTextInternal::SubDocument |
the main class to read the text part of ZWrite Text file
enum ZWText::TextCode [protected] |
ZWText::ZWText | ( | ZWParser & | parser | ) |
constructor
ZWText::~ZWText | ( | ) | [virtual] |
destructor
ZWText::ZWText | ( | ZWText const & | orig | ) | [private] |
void ZWText::computePositions | ( | ) | [protected] |
compute the positions
Referenced by createZones(), and numPages().
bool ZWText::createZones | ( | ) | [protected] |
finds the different text zones
void ZWText::flushExtra | ( | ) | [protected] |
sends the data which have not yet been sent to the listener
bool ZWText::hasHeaderFooter | ( | bool | header | ) | const [protected] |
returns true if there is a header/footer
ZWText::TextCode ZWText::isTextCode | ( | MWAWInputStreamPtr & | input, |
long | endPos, | ||
MWAWEntry & | dPos | ||
) | const [protected] |
check if a character after '<' corresponds to a text code
Referenced by sendText().
int ZWText::numPages | ( | ) | const |
returns the number of pages
bool ZWText::readHFZone | ( | MWAWEntry const & | entry | ) | [protected] |
read the header/footer zone
Referenced by createZones().
bool ZWText::readSectionFonts | ( | MWAWEntry const & | entry | ) | [protected] |
read a section fonts
Referenced by createZones().
bool ZWText::readStyles | ( | MWAWEntry const & | entry | ) | [protected] |
read the styles
Referenced by createZones().
bool ZWText::sendHeaderFooter | ( | bool | header | ) | [protected] |
try to send the header/footer
bool ZWText::sendMainText | ( | ) | [protected] |
send a main zone
bool ZWText::sendText | ( | ZWTextInternal::Section const & | zone, |
MWAWEntry const & | entry | ||
) | [protected] |
try to send a section
Referenced by ZWTextInternal::SubDocument::parse(), sendMainText(), and sendText().
bool ZWText::sendText | ( | int | sectionId, |
MWAWEntry const & | entry | ||
) | [protected] |
try to send a section using an id
int ZWText::version | ( | ) | const |
returns the file version
friend class ZWParser [friend] |
friend class ZWTextInternal::SubDocument [friend] |
ZWParser* ZWText::m_mainParser [protected] |
the main parser;
Referenced by computePositions(), createZones(), readHFZone(), readSectionFonts(), readStyles(), sendHeaderFooter(), and sendText().
MWAWParserStatePtr ZWText::m_parserState [protected] |
the parser state
Referenced by readHFZone(), readSectionFonts(), sendHeaderFooter(), sendMainText(), sendText(), and version().
shared_ptr<ZWTextInternal::State> ZWText::m_state [protected] |
the state
Referenced by computePositions(), createZones(), hasHeaderFooter(), numPages(), readHFZone(), readSectionFonts(), sendHeaderFooter(), sendMainText(), sendText(), and version().