DocMkrText Class Reference documentation

- Main Page
- Namespaces
- Classes
- Files

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

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

the main class to read the text part of DocMaker file More...

`#include <DocMkrText.hxx>`

## Public Member Functions
| DocMkrText (DocMkrParser &parser)
| constructor More...
virtual | ~DocMkrText ()
| destructor More...
int | version () const
| returns the file version More...
int | numPages () const
| returns the number of pages More...
int | numChapters () const
| returns the number of chapter More...
void | sendComment (std::string const &str)
| send a string as comment 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 | computeNumPages (DocMkrTextInternal::Zone const &zone) const
| compute the number of page of a zone More...
void | updatePageSpanList (std::vector< MWAWPageSpan > &spanList)
| update the page span list More...
bool | sendText (DocMkrTextInternal::Zone const &zone)
| try to send the text corresponding to a zone More...
bool | readFontNames (MWAWEntry const &entry)
| try to read the font name ( resource rQDF ) More...
bool | readStyles (MWAWEntry const &entry)
| try to read the styles ( resource styl ) More...
bool | readTOC (MWAWEntry const &entry)
| try to read a TOC zone? ( resource cnt# ) More...
bool | sendTOC ()
| try to send a TOC zone More...
bool | readWindows (MWAWEntry const &entry)
| try to read the windows information zone? ( resource Wndo ) More...
bool | readFooter (MWAWEntry const &entry)
| try to read the footer zone ( resource foot ) More...
bool | sendFooter (int zId)
| try to send a footer corresponding to a zone id More...
void | sendString (std::string const &str) const
| send a string to the listener More...

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

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

## Friends
class | DocMkrTextInternal::SubDocument
class | DocMkrParser

## Detailed Description

the main class to read the text part of DocMaker file

## Constructor & Destructor Documentation

DocMkrText::DocMkrText | ( | DocMkrParser & | parser | ) |

constructor

DocMkrText::~DocMkrText | ( |  | ) |
| virtual

destructor

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

## Member Function Documentation

void DocMkrText::computeNumPages | ( | DocMkrTextInternal::Zone const & | zone | ) | const
| protected

compute the number of page of a zone

Referenced by numPages().

bool DocMkrText::createZones | ( |  | ) |
| protected

finds the different text zones

void DocMkrText::flushExtra | ( |  | ) |
| protected

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

int DocMkrText::numChapters | ( |  | ) | const

returns the number of chapter

int DocMkrText::numPages | ( |  | ) | const

returns the number of pages

Referenced by updatePageSpanList().

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

bool DocMkrText::readFontNames | ( | MWAWEntry const & | entry | ) |
| protected

try to read the font name ( resource rQDF )

Referenced by createZones().

bool DocMkrText::readFooter | ( | MWAWEntry const & | entry | ) |
| protected

try to read the footer zone ( resource foot )

Referenced by createZones().

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

try to read the styles ( resource styl )

Referenced by createZones().

bool DocMkrText::readTOC | ( | MWAWEntry const & | entry | ) |
| protected

try to read a TOC zone? ( resource cnt# )

Referenced by createZones().

bool DocMkrText::readWindows | ( | MWAWEntry const & | entry | ) |
| protected

try to read the windows information zone? ( resource Wndo )

Referenced by createZones().

void DocMkrText::sendComment | ( | std::string const & | str | ) |

send a string as comment

bool DocMkrText::sendFooter | ( | int | zId | ) |
| protected

try to send a footer corresponding to a zone id

Referenced by DocMkrTextInternal::SubDocument::parse().

bool DocMkrText::sendMainText | ( |  | ) |
| protected

send a main zone

void DocMkrText::sendString | ( | std::string const & | str | ) | const
| protected

send a string to the listener

Referenced by DocMkrTextInternal::SubDocument::parse(), sendFooter(), and sendTOC().

bool DocMkrText::sendText | ( | DocMkrTextInternal::Zone const & | zone | ) |
| protected

try to send the text corresponding to a zone

Referenced by sendMainText().

bool DocMkrText::sendTOC | ( |  | ) |
| protected

try to send a TOC zone

void DocMkrText::updatePageSpanList | ( | std::vector< MWAWPageSpan > & | spanList | ) |
| protected

update the page span list

int DocMkrText::version | ( |  | ) | const

returns the file version

## Friends And Related Function Documentation

friend class DocMkrParser
| friend

friend class DocMkrTextInternal::SubDocument
| friend

## Member Data Documentation

DocMkrParser* DocMkrText::m_mainParser
| protected

the main parser;

Referenced by computeNumPages(), createZones(), readFontNames(), readFooter(), readStyles(), readTOC(), readWindows(), sendComment(), sendFooter(), sendMainText(), sendText(), and updatePageSpanList().

MWAWParserStatePtr DocMkrText::m_parserState
| protected

the parser state

Referenced by readFooter(), readStyles(), sendComment(), sendFooter(), sendMainText(), sendString(), sendText(), sendTOC(), and version().

shared_ptr<DocMkrTextInternal::State> DocMkrText::m_state
| protected

the state

Referenced by createZones(), numChapters(), numPages(), readFooter(), readStyles(), readTOC(), readWindows(), sendFooter(), sendMainText(), sendText(), sendTOC(), updatePageSpanList(), and version().

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

- DocMkrText.hxx
- DocMkrText.cxx