38 #ifndef MSW_TEXT_STYLES
39 # define MSW_TEXT_STYLES
60 namespace MSWTextStylesInternal
137 std::vector<int>
const &order);
140 std::vector<int>
const &order);
144 static std::vector<int>
orderStyles(std::vector<int>
const &previous);
158 shared_ptr<MSWTextStylesInternal::State>
m_state;
the section structure of a Microsoft Word file
Definition: MSWStruct.hxx:109
ZoneType
Definition: MSWTextStyles.hxx:70
MSWTextStyles & operator=(MSWTextStyles const &orig)
bool readStylesNames(MSWEntry const &zone, int N, int &Nnamed)
try to read the styles names and fill the number of "named" styles...
Definition: MSWTextStyles.cxx:1142
the main class to read/store the text font, paragraph, section stylesread
Definition: MSWTextStyles.hxx:66
Definition: MSWTextStyles.hxx:70
bool readParagraph(MSWStruct::Paragraph ¶, int dataSz=-1)
try to read a paragraph
Definition: MSWTextStyles.cxx:371
the paragraph structure of a Microsoft Word file
Definition: MSWStruct.hxx:270
bool readTextStructList(MSWEntry &entry)
read the paragraphs at the beginning of the text structure zone
Definition: MSWTextStyles.cxx:779
the main class to read a Microsoft Word file
Definition: MSWParser.hxx:88
int readPropertyModifier(bool &complex, std::string &extra)
read the property modifier (2 bytes last bytes of text struct ).
Definition: MSWTextStyles.cxx:837
the entry of MSWParser
Definition: MSWParser.hxx:63
int version() const
returns the file version
Definition: MSWTextStyles.cxx:97
virtual ~MSWTextStyles()
destructor
Definition: MSWTextStyles.cxx:94
bool readPLC(MSWEntry &entry, int type, Vec2< long > const &fileLimit)
read the char/paragraph plc : type=0: char, type=1: parag
Definition: MSWTextStyles.cxx:633
the main class to read the text part of Microsoft Word file
Definition: MSWText.hxx:64
MWAWFont const & getDefaultFont() const
returns the default font
Definition: MSWTextStyles.cxx:104
Definition: MSWTextStyles.hxx:70
bool readStylesParagraph(MSWEntry &zone, int N, std::vector< int > const &previous, std::vector< int > const &order)
try to read the styles fonts
Definition: MSWTextStyles.cxx:1250
MSWParser * m_mainParser
the main parser;
Definition: MSWTextStyles.hxx:161
shared_ptr< MSWTextStylesInternal::State > m_state
the state
Definition: MSWTextStyles.hxx:158
bool sendSection(int id, int textStructId)
try to send a section
Definition: MSWTextStyles.cxx:1036
static std::vector< int > orderStyles(std::vector< int > const &previous)
try to reorder the styles to find a good order
Definition: MSWTextStyles.cxx:1400
MSWText * m_textParser
the text parser;
Definition: MSWTextStyles.hxx:164
bool getSection(ZoneType type, int id, MSWStruct::Section §ion)
return a section corresponding to an index
Definition: MSWTextStyles.cxx:875
void sendDefaultParagraph()
send a default paragraph
Definition: MSWTextStyles.cxx:365
bool readStylesFont(MSWEntry &zone, int N, std::vector< int > const &previous, std::vector< int > const &order)
try to read the styles fonts
Definition: MSWTextStyles.cxx:1188
bool readStyles(MSWEntry &entry)
try to read the styles zone
Definition: MSWTextStyles.cxx:1063
MSWTextStyles(MSWText &textParser)
constructor
Definition: MSWTextStyles.cxx:88
bool readFont(MSWStruct::Font &font, ZoneType type)
try to read a font.
Definition: MSWTextStyles.cxx:112
bool readStylesHierarchy(MSWEntry &entry, int N, std::vector< int > &orig)
try to read the styles hierachy
Definition: MSWTextStyles.cxx:1337
Definition: MSWTextStyles.hxx:70
void setProperty(MSWStruct::Font const &font)
Definition: MSWTextStyles.cxx:324
Definition: MSWTextStyles.hxx:70
bool readPLCList(MSWEntry &entry)
read the main char/paragraph plc list
Definition: MSWTextStyles.cxx:583
the font structure of a Microsoft Word file
Definition: MSWStruct.hxx:57
bool getFont(ZoneType type, int id, MSWStruct::Font &actFont)
return a font corresponding to an index
Definition: MSWTextStyles.cxx:290
bool getSectionFont(ZoneType type, int id, MSWStruct::Font &font)
return a font corresponding to the section
Definition: MSWTextStyles.cxx:903
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:356
std::map< int, int > const & getNextStyleMap() const
returns the style id to next style id map
Definition: MSWTextStyles.cxx:1058
MWAWParserStatePtr m_parserState
the parser state
Definition: MSWTextStyles.hxx:155
bool getSectionParagraph(ZoneType type, int id, MSWStruct::Paragraph ¶)
return a paragraph corresponding to the section
Definition: MSWTextStyles.cxx:895
bool readSection(MSWEntry &entry, std::vector< long > &cLimits)
read the text section
Definition: MSWTextStyles.cxx:921
bool getParagraph(ZoneType type, int id, MSWStruct::Paragraph ¶)
return a paragraph corresponding to an index
Definition: MSWTextStyles.cxx:337