the main class to read the text part of BeagleWorks Text file More...
#include <BeagleWksText.hxx>
Public Member Functions | |
| BeagleWksText (BeagleWksParser &parser) | |
| constructor | |
| virtual | ~BeagleWksText () |
| destructor | |
| int | version () const |
| returns the file version | |
| int | numPages () const |
| returns the number of pages | |
Protected Member Functions | |
| bool | createZones (MWAWEntry &entry) |
| try to create the text zones | |
| bool | sendMainText () |
| send a main zone | |
| void | flushExtra () |
| sends the data which have not yet been sent to the listener | |
| void | countPages () |
| update the number of pages and the number of page by section | |
| std::shared_ptr< MWAWSubDocument > | getHeader (int page, int &numSimillar) |
| return an header subdocument | |
| std::shared_ptr< MWAWSubDocument > | getFooter (int page, int &numSimillar) |
| return a footer subdocument | |
| void | updatePageSpanList (std::vector< MWAWPageSpan > &spanList) |
| update the page span list | |
| bool | sendText (MWAWEntry const &entry) |
| try to send a text zone | |
| bool | sendHF (int hfId, int sectId) |
| try to send a header/footer id | |
| MWAWFont | getFont (BeagleWksTextInternal::Font const &ft) const |
| returns the font | |
| bool | readFont (BeagleWksTextInternal::Font &font, long endPos) |
| try to read a font properties | |
| bool | readParagraph (MWAWParagraph ¶, long endPos, bool inSection=false) |
| try to read a paragraph knowing end pos | |
| bool | readSection (MWAWEntry const &entry, BeagleWksTextInternal::Section §ion) |
| try to read a section | |
Protected Attributes | |
| MWAWParserStatePtr | m_parserState |
| the parser state | |
| std::shared_ptr< BeagleWksTextInternal::State > | m_state |
| the state | |
| std::shared_ptr< BeagleWksStructManager > | m_structureManager |
| the structure manager | |
| BeagleWksParser * | m_mainParser |
| the main parser; | |
Private Member Functions | |
| BeagleWksText (BeagleWksText const &orig)=delete | |
| BeagleWksText & | operator= (BeagleWksText const &orig)=delete |
Friends | |
| class | BeagleWksParser |
| class | BeagleWksTextInternal::SubDocument |
the main class to read the text part of BeagleWorks Text file
|
explicit |
constructor
Referenced by BeagleWksText(), numPages(), and operator=().
|
virtual |
destructor
|
privatedelete |
|
protected |
update the number of pages and the number of page by section
Referenced by numPages().
|
protected |
try to create the text zones
|
protected |
sends the data which have not yet been sent to the listener
|
protected |
returns the font
Referenced by sendText().
|
protected |
return a footer subdocument
|
protected |
return an header subdocument
| int BeagleWksText::numPages | ( | ) | const |
returns the number of pages
|
privatedelete |
|
protected |
try to read a font properties
Referenced by countPages(), and sendText().
|
protected |
try to read a paragraph knowing end pos
Referenced by countPages(), readSection(), and sendText().
|
protected |
try to read a section
Referenced by createZones().
|
protected |
try to send a header/footer id
|
protected |
send a main zone
|
protected |
try to send a text zone
Referenced by flushExtra(), sendHF(), and sendMainText().
|
protected |
update the page span list
| int BeagleWksText::version | ( | ) | const |
returns the file version
|
friend |
Referenced by BeagleWksParser, BeagleWksText(), and BeagleWksTextInternal::SubDocument.
|
friend |
|
protected |
the main parser;
Referenced by BeagleWksText(), readSection(), and sendText().
|
protected |
the parser state
Referenced by BeagleWksText(), countPages(), createZones(), flushExtra(), getFooter(), getHeader(), readFont(), readParagraph(), readSection(), sendHF(), sendText(), and version().
|
protected |
the state
Referenced by BeagleWksText(), countPages(), createZones(), flushExtra(), getFooter(), getHeader(), numPages(), sendHF(), sendMainText(), sendText(), and version().
|
protected |
the structure manager
Referenced by BeagleWksText(), and getFont().