the main class to read the text part of More Text file More...
#include <MoreText.hxx>
Public Member Functions | |
| MoreText (MoreParser &parser) | |
| constructor | |
| virtual | ~MoreText () |
| destructor | |
| int | version () const |
| returns the file version | |
| int | numPages () const |
| returns the number of pages | |
Protected Member Functions | |
| bool | createZones () |
| try to create the text zones using read data | |
| bool | sendMainText () |
| send a main zone | |
| shared_ptr< MWAWSubDocument > | getHeaderFooter (bool header) |
| returns a subdocument to send the header or the footer | |
| bool | readTopic (MWAWEntry const &entry) |
| read the list of topic positions | |
| int | getLastTopicChildId (int tId) const |
| returns the last sub topic id corresponding to a topic and its child | |
| int | checkTopicList (size_t tId, std::set< size_t > &parent) |
| check that the topic and its child does not loop (if so, cut some edge), return the number of breakpages in the sublist | |
| bool | readComment (MWAWEntry const &entry) |
| read the list of comment/header/footer zones | |
| bool | readSpeakerNote (MWAWEntry const &entry) |
| read the list of speaker note | |
| bool | sendText (MWAWEntry const &entry, MWAWFont const &font) |
| send a text entry | |
| bool | sendComment (int cId) |
| try to send a comment knowing the comment id | |
| bool | sendSpeakerNote (int nId) |
| try to send a speakernote knowing the note id | |
| bool | sendTopic (int tId, int dLevel, std::vector< MWAWParagraph > ¶Stack) |
| try to send a topic knowing the topic id | |
| bool | readFonts (MWAWEntry const &entry) |
| read the list of fonts | |
| bool | readOutlineList (MWAWEntry const &entry) |
| read the list of outlines | |
| bool | readOutline (MWAWEntry const &entry, MoreTextInternal::Outline &outline) |
| read a outline | |
| bool | readFont (MWAWEntry const &entry, std::string &fName, int &fId) |
| try to read a fontname | |
| bool | readTabs (MWAWEntry const &entry, MoreTextInternal::Paragraph ¶, std::string &mess) |
| try to read some tabs | |
| bool | readCustomListLevel (MWAWEntry const &entry, MWAWListLevel &level) |
| read a custom list level | |
| bool | parseUnknown (MWAWEntry const &entry, long fDecal) |
| try to read either a font, a fontname, a pattern, a int | |
Protected Attributes | |
| MWAWParserStatePtr | m_parserState |
| the parser state | |
| shared_ptr < MoreTextInternal::State > | m_state |
| the state | |
| MoreParser * | m_mainParser |
| the main parser; | |
Private Member Functions | |
| MoreText (MoreText const &orig) | |
| MoreText & | operator= (MoreText const &orig) |
Friends | |
| class | MoreParser |
| class | MoreTextInternal::SubDocument |
the main class to read the text part of More Text file
| MoreText::MoreText | ( | MoreParser & | parser | ) |
constructor
| MoreText::~MoreText | ( | ) | [virtual] |
destructor
| MoreText::MoreText | ( | MoreText const & | orig | ) | [private] |
| int MoreText::checkTopicList | ( | size_t | tId, |
| std::set< size_t > & | parent | ||
| ) | [protected] |
check that the topic and its child does not loop (if so, cut some edge), return the number of breakpages in the sublist
Referenced by createZones().
| bool MoreText::createZones | ( | ) | [protected] |
try to create the text zones using read data
Referenced by numPages().
| shared_ptr< MWAWSubDocument > MoreText::getHeaderFooter | ( | bool | header | ) | [protected] |
returns a subdocument to send the header or the footer
| int MoreText::getLastTopicChildId | ( | int | tId | ) | const [protected] |
returns the last sub topic id corresponding to a topic and its child
Referenced by checkTopicList(), and sendTopic().
| int MoreText::numPages | ( | ) | const |
returns the number of pages
| bool MoreText::parseUnknown | ( | MWAWEntry const & | entry, |
| long | fDecal | ||
| ) | [protected] |
try to read either a font, a fontname, a pattern, a int
Referenced by readOutline().
| bool MoreText::readComment | ( | MWAWEntry const & | entry | ) | [protected] |
read the list of comment/header/footer zones
| bool MoreText::readCustomListLevel | ( | MWAWEntry const & | entry, |
| MWAWListLevel & | level | ||
| ) | [protected] |
read a custom list level
Referenced by readOutline().
| bool MoreText::readFont | ( | MWAWEntry const & | entry, |
| std::string & | fName, | ||
| int & | fId | ||
| ) | [protected] |
try to read a fontname
Referenced by parseUnknown(), and readOutline().
| bool MoreText::readFonts | ( | MWAWEntry const & | entry | ) | [protected] |
read the list of fonts
| bool MoreText::readOutline | ( | MWAWEntry const & | entry, |
| MoreTextInternal::Outline & | outline | ||
| ) | [protected] |
read a outline
Referenced by readOutlineList().
| bool MoreText::readOutlineList | ( | MWAWEntry const & | entry | ) | [protected] |
read the list of outlines
| bool MoreText::readSpeakerNote | ( | MWAWEntry const & | entry | ) | [protected] |
read the list of speaker note
| bool MoreText::readTabs | ( | MWAWEntry const & | entry, |
| MoreTextInternal::Paragraph & | para, | ||
| std::string & | mess | ||
| ) | [protected] |
try to read some tabs
Referenced by parseUnknown(), and readOutline().
| bool MoreText::readTopic | ( | MWAWEntry const & | entry | ) | [protected] |
read the list of topic positions
| bool MoreText::sendComment | ( | int | cId | ) | [protected] |
try to send a comment knowing the comment id
Referenced by MoreTextInternal::SubDocument::parse().
| bool MoreText::sendMainText | ( | ) | [protected] |
send a main zone
| bool MoreText::sendSpeakerNote | ( | int | nId | ) | [protected] |
try to send a speakernote knowing the note id
Referenced by MoreTextInternal::SubDocument::parse().
| bool MoreText::sendText | ( | MWAWEntry const & | entry, |
| MWAWFont const & | font | ||
| ) | [protected] |
send a text entry
Referenced by sendComment(), sendSpeakerNote(), and sendTopic().
| bool MoreText::sendTopic | ( | int | tId, |
| int | dLevel, | ||
| std::vector< MWAWParagraph > & | paraStack | ||
| ) | [protected] |
try to send a topic knowing the topic id
Referenced by MoreTextInternal::SubDocument::parse(), and sendMainText().
| int MoreText::version | ( | ) | const |
returns the file version
Referenced by readOutline().
friend class MoreParser [friend] |
friend class MoreTextInternal::SubDocument [friend] |
MoreParser* MoreText::m_mainParser [protected] |
the main parser;
Referenced by parseUnknown(), readComment(), readOutlineList(), readSpeakerNote(), readTopic(), and sendTopic().
MWAWParserStatePtr MoreText::m_parserState [protected] |
the parser state
Referenced by getHeaderFooter(), parseUnknown(), readComment(), readCustomListLevel(), readFont(), readFonts(), readOutline(), readOutlineList(), readSpeakerNote(), readTabs(), readTopic(), sendComment(), sendMainText(), sendSpeakerNote(), sendText(), sendTopic(), and version().
shared_ptr<MoreTextInternal::State> MoreText::m_state [protected] |
the state
Referenced by checkTopicList(), createZones(), getHeaderFooter(), getLastTopicChildId(), numPages(), readComment(), readOutlineList(), readSpeakerNote(), readTopic(), sendComment(), sendMainText(), sendSpeakerNote(), sendTopic(), and version().