the main class to read/store the text font, paragraph, section stylesread More...
#include <MsWrdTextStyles.hxx>
| Public Types | |
| enum | ZoneType { TextZone, TextStructZone, StyleZone, InParagraphDefinition } | 
| Public Member Functions | |
| MsWrdTextStyles (MsWrdText &textParser) | |
| constructor  More... | |
| virtual | ~MsWrdTextStyles () | 
| destructor  More... | |
| int | version () const | 
| returns the file version  More... | |
| Protected Member Functions | |
| MWAWFont const & | getDefaultFont () const | 
| returns the default font  More... | |
| bool | getFont (ZoneType type, int id, MsWrdStruct::Font &actFont) | 
| return a font corresponding to an index  More... | |
| void | setProperty (MsWrdStruct::Font const &font) | 
| bool | readFont (MsWrdStruct::Font &font, ZoneType type) | 
| try to read a font.  More... | |
| bool | getParagraph (ZoneType type, int id, MsWrdStruct::Paragraph ¶) | 
| return a paragraph corresponding to an index  More... | |
| bool | readParagraph (MsWrdStruct::Paragraph ¶, int dataSz=-1) | 
| try to read a paragraph  More... | |
| void | sendDefaultParagraph () | 
| send a default paragraph  More... | |
| bool | readPLCList (MsWrdEntry &entry) | 
| read the main char/paragraph plc list  More... | |
| bool | readTextStructList (MsWrdEntry &entry) | 
| read the paragraphs at the beginning of the text structure zone  More... | |
| int | readPropertyModifier (bool &complex, std::string &extra) | 
| read the property modifier (2 bytes last bytes of text struct ).  More... | |
| bool | readPLC (MsWrdEntry &entry, int type, MWAWVec2< long > const &fileLimit) | 
| read the char/paragraph plc : type=0: char, type=1: parag  More... | |
| bool | getSection (ZoneType type, int id, MsWrdStruct::Section §ion) | 
| return a section corresponding to an index  More... | |
| bool | getSectionParagraph (ZoneType type, int id, MsWrdStruct::Paragraph ¶) | 
| return a paragraph corresponding to the section  More... | |
| bool | getSectionFont (ZoneType type, int id, MsWrdStruct::Font &font) | 
| return a font corresponding to the section  More... | |
| bool | readSection (MsWrdEntry &entry, std::vector< long > &cLimits) | 
| read the text section  More... | |
| bool | sendSection (int id, int textStructId) | 
| try to send a section  More... | |
| bool | readSection (MsWrdStruct::Section §ion, long pos) | 
| try to read the section data  More... | |
| void | setProperty (MsWrdStruct::Section const &sec) | 
| send section properties  More... | |
| bool | readStyles (MsWrdEntry &entry) | 
| try to read the styles zone  More... | |
| bool | readStylesHierarchy (MsWrdEntry &entry, int N, std::vector< int > &orig) | 
| try to read the styles hierachy  More... | |
| bool | readStylesNames (MsWrdEntry const &zone, int N, int &Nnamed) | 
| try to read the styles names and fill the number of "named" styles...  More... | |
| bool | readStylesFont (MsWrdEntry &zone, int N, std::vector< int > const &previous, std::vector< int > const &order) | 
| try to read the styles fonts  More... | |
| bool | readStylesParagraph (MsWrdEntry &zone, int N, std::vector< int > const &previous, std::vector< int > const &order) | 
| try to read the styles fonts  More... | |
| std::map< int, int > const & | getNextStyleMap () const | 
| returns the style id to next style id map  More... | |
| Static Protected Member Functions | |
| static std::vector< int > | orderStyles (std::vector< int > const &previous) | 
| try to reorder the styles to find a good order  More... | |
| Protected Attributes | |
| MWAWParserStatePtr | m_parserState | 
| the parser state  More... | |
| std::shared_ptr< MsWrdTextStylesInternal::State > | m_state | 
| the state  More... | |
| MsWrdParser * | m_mainParser | 
| the main parser;  More... | |
| MsWrdText * | m_textParser | 
| the text parser;  More... | |
| Private Member Functions | |
| MsWrdTextStyles (MsWrdTextStyles const &orig)=delete | |
| MsWrdTextStyles & | operator= (MsWrdTextStyles const &orig)=delete | 
| Friends | |
| class | MsWrdText | 
the main class to read/store the text font, paragraph, section stylesread
| 
 | explicit | 
constructor
| 
 | virtual | 
destructor
| 
 | privatedelete | 
| 
 | protected | 
returns the default font
| 
 | protected | 
return a font corresponding to an index
| 
 | protected | 
returns the style id to next style id map
| 
 | protected | 
return a paragraph corresponding to an index
Referenced by getSectionFont(), getSectionParagraph(), and sendSection().
| 
 | protected | 
return a section corresponding to an index
Referenced by getSectionFont(), and getSectionParagraph().
| 
 | protected | 
return a font corresponding to the section
| 
 | protected | 
return a paragraph corresponding to the section
| 
 | privatedelete | 
| 
 | staticprotected | 
try to reorder the styles to find a good order
Referenced by readStyles().
| 
 | protected | 
try to read a font.
| font | : the read font, | 
| type | : the zone in which the font is read | 
Referenced by readParagraph(), and readPLC().
| 
 | protected | 
try to read a paragraph
Referenced by readPLC(), readPropertyModifier(), readStylesParagraph(), and readTextStructList().
| 
 | protected | 
read the char/paragraph plc : type=0: char, type=1: parag
Referenced by readPLCList().
| 
 | protected | 
read the main char/paragraph plc list
| 
 | protected | 
read the property modifier (2 bytes last bytes of text struct ).
Returns a textstruct parag id or -1 (PRM)
| 
 | protected | 
read the text section
| 
 | protected | 
try to read the section data
| 
 | protected | 
try to read the styles zone
| 
 | protected | 
try to read the styles fonts
Referenced by readStyles().
| 
 | protected | 
try to read the styles hierachy
Referenced by readStyles().
| 
 | protected | 
try to read the styles names and fill the number of "named" styles...
Referenced by readStyles().
| 
 | protected | 
try to read the styles fonts
osnola: update the font style here or after reading data ?
Referenced by readStyles().
| 
 | protected | 
read the paragraphs at the beginning of the text structure zone
| 
 | protected | 
send a default paragraph
| 
 | protected | 
try to send a section
| 
 | protected | 
Referenced by sendSection().
| 
 | protected | 
send section properties
| int MsWrdTextStyles::version | ( | ) | const | 
returns the file version
Referenced by getSectionFont(), readParagraph(), readPLC(), readPLCList(), readPropertyModifier(), readSection(), readStylesParagraph(), readTextStructList(), sendDefaultParagraph(), and sendSection().
| 
 | friend | 
| 
 | protected | 
the main parser;
Referenced by readFont(), and setProperty().
| 
 | protected | 
the parser state
Referenced by readFont(), readParagraph(), readPLC(), readPLCList(), readPropertyModifier(), readSection(), readStyles(), readStylesHierarchy(), readStylesNames(), readStylesParagraph(), readTextStructList(), sendDefaultParagraph(), sendSection(), setProperty(), and version().
| 
 | protected | 
the state
Referenced by getDefaultFont(), getFont(), getNextStyleMap(), getParagraph(), getSection(), readPLC(), readPropertyModifier(), readSection(), readStyles(), readStylesHierarchy(), readStylesParagraph(), readTextStructList(), sendSection(), setProperty(), and version().
| 
 | protected | 
the text parser;
Referenced by readPLC(), and readSection().