ZWrtText Class Reference documentation

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
ZWrtText Class Reference

the main class to read the text part of ZWrite Text file More...

`#include <ZWrtText.hxx>`

## Public Member Functions
| ZWrtText (ZWrtParser &parser)
| constructor More...
virtual | ~ZWrtText ()
| destructor More...
int | version () const
| returns the file version More...
int | numPages () const
| returns the number of pages More...

## 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 More...
bool | sendMainText ()
| send a main zone More...
void | flushExtra ()
| sends the data which have not yet been sent to the listener More...
void | computePositions ()
| compute the positions More...
bool | sendText (ZWrtTextInternal::Section const &zone, MWAWEntry const &entry)
| try to send a section More...
bool | sendText (int sectionId, MWAWEntry const &entry)
| try to send a section using an id More...
TextCode | isTextCode (MWAWInputStreamPtr &input, long endPos, MWAWEntry &dPos) const
| check if a character after '<' corresponds to a text code More...
bool | readHFZone (MWAWEntry const &entry)
| read the header/footer zone More...
bool | hasHeaderFooter (bool header) const
| returns true if there is a header/footer More...
bool | sendHeaderFooter (bool header)
| try to send the header/footer More...
bool | readStyles (MWAWEntry const &entry)
| read the styles More...
bool | readSectionFonts (MWAWEntry const &entry)
| read a section fonts More...

## Protected Attributes
MWAWParserStatePtr | m_parserState
| the parser state More...
shared_ptr< ZWrtTextInternal::State > | m_state
| the state More...
ZWrtParser * | m_mainParser
| the main parser; More...

## Private Member Functions
| ZWrtText (ZWrtText const &orig)
ZWrtText & | operator= (ZWrtText const &orig)

## Friends
class | ZWrtParser
class | ZWrtTextInternal::SubDocument

## Detailed Description

the main class to read the text part of ZWrite Text file

## Member Enumeration Documentation

enum ZWrtText::TextCode
| protected

the list of code in the text

Enumerator
None |
Center |
BookMark |
NewPage |
Tag |
Link |

## Constructor & Destructor Documentation

ZWrtText::ZWrtText | ( | ZWrtParser & | parser | ) |

constructor

ZWrtText::~ZWrtText | ( |  | ) |
| virtual

destructor

ZWrtText::ZWrtText | ( | ZWrtText const & | orig | ) |
| private

## Member Function Documentation

void ZWrtText::computePositions | ( |  | ) |
| protected

compute the positions

Referenced by createZones(), and numPages().

bool ZWrtText::createZones | ( |  | ) |
| protected

finds the different text zones

void ZWrtText::flushExtra | ( |  | ) |
| protected

sends the data which have not yet been sent to the listener

bool ZWrtText::hasHeaderFooter | ( | bool | header | ) | const
| protected

returns true if there is a header/footer

ZWrtText::TextCode ZWrtText::isTextCode | ( | MWAWInputStreamPtr & | input,
|  | long | endPos,
|  | MWAWEntry & | dPos
| ) |  | const
| protected

check if a character after '<' corresponds to a text code

Referenced by sendText().

int ZWrtText::numPages | ( |  | ) | const

returns the number of pages

ZWrtText& ZWrtText::operator= | ( | ZWrtText const & | orig | ) |
| private

bool ZWrtText::readHFZone | ( | MWAWEntry const & | entry | ) |
| protected

read the header/footer zone

Referenced by createZones().

bool ZWrtText::readSectionFonts | ( | MWAWEntry const & | entry | ) |
| protected

read a section fonts

Referenced by createZones().

bool ZWrtText::readStyles | ( | MWAWEntry const & | entry | ) |
| protected

read the styles

Referenced by createZones().

bool ZWrtText::sendHeaderFooter | ( | bool | header | ) |
| protected

try to send the header/footer

bool ZWrtText::sendMainText | ( |  | ) |
| protected

send a main zone

bool ZWrtText::sendText | ( | ZWrtTextInternal::Section const & | zone,
|  | MWAWEntry const & | entry
| ) |  |
| protected

try to send a section

Referenced by ZWrtTextInternal::SubDocument::parse(), sendMainText(), and sendText().

bool ZWrtText::sendText | ( | int | sectionId,
|  | MWAWEntry const & | entry
| ) |  |
| protected

try to send a section using an id

int ZWrtText::version | ( |  | ) | const

returns the file version

## Friends And Related Function Documentation

friend class ZWrtParser
| friend

friend class ZWrtTextInternal::SubDocument
| friend

## Member Data Documentation

ZWrtParser* ZWrtText::m_mainParser
| protected

the main parser;

Referenced by computePositions(), createZones(), readHFZone(), readSectionFonts(), readStyles(), sendHeaderFooter(), and sendText().

MWAWParserStatePtr ZWrtText::m_parserState
| protected

the parser state

Referenced by readHFZone(), readSectionFonts(), sendHeaderFooter(), sendMainText(), sendText(), and version().

shared_ptr<ZWrtTextInternal::State> ZWrtText::m_state
| protected

the state

Referenced by computePositions(), createZones(), hasHeaderFooter(), numPages(), readHFZone(), readSectionFonts(), sendHeaderFooter(), sendMainText(), sendText(), and version().

The documentation for this class was generated from the following files:

- ZWrtText.hxx
- ZWrtText.cxx