MsWrdTextStyles.hxx Source File documentation

MsWrdTextStyles.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33
34 /*
35 * Class to read/store the text font and paragraph styles
36 */
37
38 #ifndef MS_WRD_TEXT_STYLES
39 # define MS_WRD_TEXT_STYLES
40
41 #include <iostream>
42 #include <map>
43 #include <string>
44
45 #include "libmwaw_internal.hxx"
46
47 #include "MWAWEntry.hxx"
48 #include "MWAWParagraph.hxx"
49
50 class MsWrdParser;
51 class MsWrdText;
52
53 namespace MsWrdStruct
54 {
55 struct Font;
56 struct Paragraph;
57 struct Section;
58 }
59
60 namespace MsWrdTextStylesInternal
61 {
62 struct State;
63 }
64
66 class MsWrdTextStyles
67 {
68 friend class MsWrdText;
69 public:
70 enum ZoneType { TextZone, TextStructZone, StyleZone, InParagraphDefinition };
72 explicit MsWrdTextStyles(MsWrdText &textParser);
74 virtual ~MsWrdTextStyles();
75
77 int version() const;
78
79 protected:
80 // font:
82 MWAWFont const &getDefaultFont() const;
84 bool getFont(ZoneType type, int id, MsWrdStruct::Font &actFont);
85
86 /* send a font */
87 void setProperty(MsWrdStruct::Font const &font);
91 bool readFont(MsWrdStruct::Font &font, ZoneType type);
92
93 // pararagraph:
95 bool getParagraph(ZoneType type, int id, MsWrdStruct::Paragraph &para);
97 bool readParagraph(MsWrdStruct::Paragraph &para, int dataSz=-1);
99 void sendDefaultParagraph();
100
102 bool readPLCList(MsWrdEntry &entry);
104 bool readTextStructList(MsWrdEntry &entry);
107 int readPropertyModifier(bool &complex, std::string &extra);
109 bool readPLC(MsWrdEntry &entry, int type, MWAWVec2<long> const &fileLimit);
110
111 // section:
113 bool getSection(ZoneType type, int id, MsWrdStruct::Section &section);
115 bool getSectionParagraph(ZoneType type, int id, MsWrdStruct::Paragraph &para);
117 bool getSectionFont(ZoneType type, int id, MsWrdStruct::Font &font);
119 bool readSection(MsWrdEntry &entry, std::vector<long> &cLimits);
121 bool sendSection(int id, int textStructId);
122
124 bool readSection(MsWrdStruct::Section &section, long pos);
126 void setProperty(MsWrdStruct::Section const &sec);
127
128 // style
130 bool readStyles(MsWrdEntry &entry);
132 bool readStylesHierarchy(MsWrdEntry &entry, int N, std::vector<int> &orig);
134 bool readStylesNames(MsWrdEntry const &zone, int N, int &Nnamed);
136 bool readStylesFont(MsWrdEntry &zone, int N, std::vector<int> const &previous,
137 std::vector<int> const &order);
139 bool readStylesParagraph(MsWrdEntry &zone, int N, std::vector<int> const &previous,
140 std::vector<int> const &order);
142 std::map<int,int> const &getNextStyleMap() const;
144 static std::vector<int> orderStyles(std::vector<int> const &previous);
145
146 private:
147 MsWrdTextStyles(MsWrdTextStyles const &orig) = delete;
148 MsWrdTextStyles &operator=(MsWrdTextStyles const &orig) = delete;
149
150 protected:
151 //
152 // data
153 //
155 MWAWParserStatePtr m_parserState;
156
158 std::shared_ptr<MsWrdTextStylesInternal::State> m_state;
159
161 MsWrdParser *m_mainParser;
162
164 MsWrdText *m_textParser;
165 };
166 #endif
167 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWTextListenerPtr
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
MsWrdTextStylesInternal::State::m_paragraphList
std::vector< MsWrdStruct::Paragraph > m_paragraphList
the list of paragraph
Definition: MsWrdTextStyles.cxx:76
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
MsWrdTextStyles::readPropertyModifier
int readPropertyModifier(bool &complex, std::string &extra)
read the property modifier (2 bytes last bytes of text struct ).
Definition: MsWrdTextStyles.cxx:867
MsWrdTextStyles::getDefaultFont
const MWAWFont & getDefaultFont() const
returns the default font
Definition: MsWrdTextStyles.cxx:113
MsWrdTextStyles::StyleZone
@ StyleZone
Definition: MsWrdTextStyles.hxx:70
MWAWFont::set
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
MWAWFont::setUnderlineType
void setUnderlineType(Line::Type type=Line::Single)
sets the underline type
Definition: MWAWFont.hxx:474
MsWrdTextStyles::TextStructZone
@ TextStructZone
Definition: MsWrdTextStyles.hxx:70
MsWrdTextStyles::m_textParser
MsWrdText * m_textParser
the text parser;
Definition: MsWrdTextStyles.hxx:164
MsWrdStruct::Paragraph
the paragraph structure of a Microsoft Word file
Definition: MsWrdStruct.hxx:312
MWAWFont::smallCapsBit
@ smallCapsBit
Definition: MWAWFont.hxx:192
MsWrdText::getTextPLCMap
std::multimap< long, MsWrdText::PLC > & getTextPLCMap()
returns the text correspondance zone ( textpos, plc )
Definition: MsWrdText.cxx:543
MsWrdTextStyles::TextZone
@ TextZone
Definition: MsWrdTextStyles.hxx:70
MsWrdTextStyles::getSectionParagraph
bool getSectionParagraph(ZoneType type, int id, MsWrdStruct::Paragraph &para)
return a paragraph corresponding to the section
Definition: MsWrdTextStyles.cxx:927
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MsWrdStruct::Font::m_extra
std::string m_extra
extra data
Definition: MsWrdStruct.hxx:114
MWAWListener::ColumnBreak
@ ColumnBreak
Definition: MWAWListener.hxx:58
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MsWrdTextStylesInternal::State::State
State()
constructor
Definition: MsWrdTextStyles.cxx:51
MsWrdTextStylesInternal::State::m_version
int m_version
the file version
Definition: MsWrdTextStyles.cxx:64
MsWrdTextStylesInternal::State::m_textstructParagraphList
std::vector< MsWrdStruct::Paragraph > m_textstructParagraphList
the list of paragraph in textstruct
Definition: MsWrdTextStyles.cxx:82
MsWrdTextStyles::readStylesNames
bool readStylesNames(MsWrdEntry const &zone, int N, int &Nnamed)
try to read the styles names and fill the number of "named" styles...
Definition: MsWrdTextStyles.cxx:1178
MsWrdTextStylesInternal
Internal: the structures of a MsWrdTextStyles.
Definition: MsWrdTextStyles.cxx:45
MsWrdTextStyles::readStyles
bool readStyles(MsWrdEntry &entry)
try to read the styles zone
Definition: MsWrdTextStyles.cxx:1099
MWAWFont::id
int id() const
returns the font id
Definition: MWAWFont.hxx:259
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:190
MsWrdStruct::Font::m_font
MWAWVariable< MWAWFont > m_font
the font
Definition: MsWrdStruct.hxx:102
MWAWFont::setColor
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
MsWrdTextStyles::sendSection
bool sendSection(int id, int textStructId)
try to send a section
Definition: MsWrdTextStyles.cxx:1072
MsWrdTextStyles::getSection
bool getSection(ZoneType type, int id, MsWrdStruct::Section &section)
return a section corresponding to an index
Definition: MsWrdTextStyles.cxx:906
MWAWEntry::id
int id() const
returns the id
Definition: MWAWEntry.hxx:164
MWAWEntry.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
MsWrdTextStyles::m_mainParser
MsWrdParser * m_mainParser
the main parser;
Definition: MsWrdTextStyles.hxx:161
MWAWFont::outlineBit
@ outlineBit
Definition: MWAWFont.hxx:191
MsWrdStruct::Paragraph::m_font
MWAWVariable< Font > m_font
the font
Definition: MsWrdStruct.hxx:371
MsWrdTextStyles.hxx
MsWrdStruct::Section::read
bool read(MWAWInputStreamPtr &input, long endPos)
try to read a data
Definition: MsWrdStruct.cxx:168
MsWrdTextStyles::sendDefaultParagraph
void sendDefaultParagraph()
send a default paragraph
Definition: MsWrdTextStyles.cxx:383
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
MsWrdTextStylesInternal::State::m_nextStyleMap
std::map< int, int > m_nextStyleMap
a map styleId to next styleId
Definition: MsWrdTextStyles.cxx:70
MsWrdTextStyles::ZoneType
ZoneType
Definition: MsWrdTextStyles.hxx:70
MWAWEntry::setParsed
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWFont::setDeltaLetterSpacing
void setDeltaLetterSpacing(float d, librevenge::RVNGUnit unit=librevenge::RVNG_POINT)
sets the letter spacing ( delta value in point )
Definition: MWAWFont.hxx:292
MWAWEntry::type
const std::string & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
MsWrdTextStyles::readParagraph
bool readParagraph(MsWrdStruct::Paragraph &para, int dataSz=-1)
try to read a paragraph
Definition: MsWrdTextStyles.cxx:389
MsWrdStruct::Section::m_paragraphId
MWAWVariable< int > m_paragraphId
the paragraph id
Definition: MsWrdStruct.hxx:159
MsWrdStruct::Section::readV3
bool readV3(MWAWInputStreamPtr &input, long endPos)
try to read a data ( v3 code )
Definition: MsWrdStruct.cxx:234
MWAWFont::uppercaseBit
@ uppercaseBit
Definition: MWAWFont.hxx:192
MsWrdStruct::Font::m_picturePos
MWAWVariable< long > m_picturePos
a picture file position (if this corresponds to a picture)
Definition: MsWrdStruct.hxx:110
MsWrdTextStylesInternal::State::m_defaultFont
MWAWFont m_defaultFont
the default font ( NewYork 12pt)
Definition: MsWrdTextStyles.cxx:67
MsWrdTextStyles::readTextStructList
bool readTextStructList(MsWrdEntry &entry)
read the paragraphs at the beginning of the text structure zone
Definition: MsWrdTextStyles.cxx:808
MWAWFont::setStrikeOutStyle
void setStrikeOutStyle(Line::Style style=Line::None, bool doReset=true)
sets the strikeoutline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:427
MWAWVariable::isSet
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:635
MsWrdParser.hxx
MWAWParser::getPageWidth
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
MsWrdTextStyles::readPLCList
bool readPLCList(MsWrdEntry &entry)
read the main char/paragraph plc list
Definition: MsWrdTextStyles.cxx:601
MWAWFont::Line::None
@ None
Definition: MWAWFont.hxx:49
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:191
MWAWEntry::setType
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:132
MWAWParagraph.hxx
MsWrdText::PLC::Section
@ Section
Definition: MsWrdText.hxx:71
MsWrdStruct
namespace to store the main structure which appears in a Microsoft Word 3.0-5.0 file
Definition: MsWrdStruct.cxx:41
MsWrdTextStyles::readStylesFont
bool readStylesFont(MsWrdEntry &zone, int N, std::vector< int > const &previous, std::vector< int > const &order)
try to read the styles fonts
Definition: MsWrdTextStyles.cxx:1224
libmwaw_internal.hxx
MWAWEntry::setEnd
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:77
MsWrdText::PLC
Internal: the plc.
Definition: MsWrdText.hxx:70
MsWrdTextStylesInternal::State::m_styleFontMap
std::map< int, MsWrdStruct::Font > m_styleFontMap
the list of fonts in style
Definition: MsWrdTextStyles.cxx:85
MsWrdStruct::Paragraph::m_styleId
MWAWVariable< int > m_styleId
the style id (if known)
Definition: MsWrdStruct.hxx:363
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
MsWrdText::PLC::m_id
int m_id
the identificator
Definition: MsWrdText.hxx:94
MsWrdStruct::Paragraph::read
bool read(MWAWInputStreamPtr &input, long endPos)
try to read a data
Definition: MsWrdStruct.cxx:730
MsWrdStruct::Font::updateFontToFinalState
void updateFontToFinalState(Font const *styleFont=nullptr)
update the font to obtain the final font
Definition: MsWrdStruct.cxx:99
MsWrdStruct::Font
the font structure of a Microsoft Word file
Definition: MsWrdStruct.hxx:57
MsWrdText::PLC::Font
@ Font
Definition: MsWrdText.hxx:71
MsWrdTextStyles::readFont
bool readFont(MsWrdStruct::Font &font, ZoneType type)
try to read a font.
Definition: MsWrdTextStyles.cxx:121
MsWrdTextStyles::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition: MsWrdTextStyles.hxx:155
MsWrdStruct::Section::getSection
MWAWSection getSection(double pageWidth) const
returns a section
Definition: MsWrdStruct.cxx:151
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
MWAWVec2< long >
MWAWFont::size
float size() const
returns the font size
Definition: MWAWFont.hxx:270
MsWrdParser::getColor
bool getColor(int id, MWAWColor &col) const
returns the color corresponding to an id
Definition: MsWrdParser.cxx:380
MsWrdStruct::Paragraph::m_section
MWAWVariable< Section > m_section
the section
Definition: MsWrdStruct.hxx:373
MsWrdStruct::Section::m_id
MWAWVariable< int > m_id
the identificator
Definition: MsWrdStruct.hxx:155
MWAWFont::getDebugString
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MsWrdTextStyles::setProperty
void setProperty(MsWrdStruct::Font const &font)
Definition: MsWrdTextStyles.cxx:340
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
MsWrdTextStyles::getNextStyleMap
const std::map< int, int > & getNextStyleMap() const
returns the style id to next style id map
Definition: MsWrdTextStyles.cxx:1094
MsWrdText::getMainTextLength
long getMainTextLength() const
returns the main text length
Definition: MsWrdText.cxx:492
MWAWVariable::get
const T & get() const
return the current value
Definition: libmwaw_internal.hxx:630
MsWrdTextStyles::readPLC
bool readPLC(MsWrdEntry &entry, int type, MWAWVec2< long > const &fileLimit)
read the char/paragraph plc : type=0: char, type=1: parag
Definition: MsWrdTextStyles.cxx:652
MWAWColor::black
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MsWrdText
the main class to read the text part of Microsoft Word file
Definition: MsWrdText.hxx:64
MWAWFont::Line::m_style
Style m_style
the style
Definition: MWAWFont.hxx:95
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
MsWrdStruct::Paragraph::m_info
MWAWVariable< ParagraphInfo > m_info
the dimension
Definition: MsWrdStruct.hxx:369
MWAWEntry::setId
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:169
MsWrdParser::checkPicturePos
bool checkPicturePos(long pos, int type)
check if a position corresponds or not to a picture entry
Definition: MsWrdParser.cxx:1760
MsWrdText::getFilePLCMap
std::multimap< long, MsWrdText::PLC > & getFilePLCMap()
returns the file correspondance zone ( filepos, plc )
Definition: MsWrdText.cxx:548
MsWrdStruct::Section::m_type
MWAWVariable< int > m_type
the type
Definition: MsWrdStruct.hxx:157
MsWrdStruct::Section::m_colBreak
MWAWVariable< bool > m_colBreak
only a column break
Definition: MsWrdStruct.hxx:165
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
MWAWFont::getStrikeOut
const Line & getStrikeOut() const
returns the strikeoutline
Definition: MWAWFont.hxx:417
MsWrdStruct::Paragraph::print
void print(std::ostream &o, MWAWFontConverterPtr converter) const
operator<<
Definition: MsWrdStruct.cxx:1197
MsWrdTextStylesInternal::State::m_fontList
std::vector< MsWrdStruct::Font > m_fontList
the list of fonts
Definition: MsWrdTextStyles.cxx:73
MWAWFont::getUnderline
const Line & getUnderline() const
returns the underline
Definition: MWAWFont.hxx:456
MsWrdTextStyles::orderStyles
static std::vector< int > orderStyles(std::vector< int > const &previous)
try to reorder the styles to find a good order
Definition: MsWrdTextStyles.cxx:1438
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
MWAWFont::Line::Dot
@ Dot
Definition: MWAWFont.hxx:49
MsWrdTextStyles
the main class to read/store the text font, paragraph, section stylesread
Definition: MsWrdTextStyles.hxx:66
MsWrdStruct::Section::m_col
MWAWVariable< int > m_col
the num of columns
Definition: MsWrdStruct.hxx:161
MWAWTextListener.hxx
MsWrdTextStyles::readStylesParagraph
bool readStylesParagraph(MsWrdEntry &zone, int N, std::vector< int > const &previous, std::vector< int > const &order)
try to read the styles fonts
Definition: MsWrdTextStyles.cxx:1285
MsWrdParser
the main class to read a Microsoft Word file
Definition: MsWrdParser.hxx:97
MsWrdTextStylesInternal::State
Internal: the state of a MsWrdTextStylesInternal.
Definition: MsWrdTextStyles.cxx:49
MWAWSection.hxx
MWAWParserStatePtr
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MWAWFont::setUnderlineWordFlag
void setUnderlineWordFlag(bool wordFlag=false)
sets the underline word flag
Definition: MWAWFont.hxx:479
MsWrdTextStyles::version
int version() const
returns the file version
Definition: MsWrdTextStyles.cxx:106
libmwaw::DebugFile
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
MsWrdStruct::Section
the section structure of a Microsoft Word file
Definition: MsWrdStruct.hxx:118
MWAWFont::Script
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
MWAWFont::Line::Double
@ Double
Definition: MWAWFont.hxx:51
MsWrdTextStyles::readSection
bool readSection(MsWrdEntry &entry, std::vector< long > &cLimits)
read the text section
Definition: MsWrdTextStyles.cxx:953
MsWrdStruct.hxx
MsWrdTextStyles::readStylesHierarchy
bool readStylesHierarchy(MsWrdEntry &entry, int N, std::vector< int > &orig)
try to read the styles hierachy
Definition: MsWrdTextStyles.cxx:1372
MsWrdStruct::Paragraph::m_modFont
MWAWVariable< Font > m_modFont
font (modifier)
Definition: MsWrdStruct.hxx:371
MWAWFont::flags
uint32_t flags() const
returns the font flags
Definition: MWAWFont.hxx:320
MsWrdTextStylesInternal::State::m_styleParagraphMap
std::map< int, MsWrdStruct::Paragraph > m_styleParagraphMap
the list of paragraph in style
Definition: MsWrdTextStyles.cxx:88
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:43
MsWrdTextStyles::operator=
MsWrdTextStyles & operator=(MsWrdTextStyles const &orig)=delete
MWAWParagraph::m_extra
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:190
MsWrdTextStyles::MsWrdTextStyles
MsWrdTextStyles(MsWrdText &textParser)
constructor
Definition: MsWrdTextStyles.cxx:95
MsWrdEntry
the entry of MsWrdParser
Definition: MsWrdParser.hxx:63
MsWrdTextStyles::getSectionFont
bool getSectionFont(ZoneType type, int id, MsWrdStruct::Font &font)
return a font corresponding to the section
Definition: MsWrdTextStyles.cxx:935
MsWrdStruct::Font::m_unknown
MWAWVariable< int > m_unknown
some unknown flag
Definition: MsWrdStruct.hxx:112
MsWrdTextStyles::getParagraph
bool getParagraph(ZoneType type, int id, MsWrdStruct::Paragraph &para)
return a paragraph corresponding to an index
Definition: MsWrdTextStyles.cxx:353
MsWrdStruct::Font::m_size
MWAWVariable< float > m_size
a second size
Definition: MsWrdStruct.hxx:104
MsWrdTextStyles::getFont
bool getFont(ZoneType type, int id, MsWrdStruct::Font &actFont)
return a font corresponding to an index
Definition: MsWrdTextStyles.cxx:304
MsWrdStruct::Section::m_flag
MWAWVariable< int > m_flag
some flag ( in the main position)
Definition: MsWrdStruct.hxx:167
MWAWFont::hiddenBit
@ hiddenBit
Definition: MWAWFont.hxx:191
MsWrdTextStyles::InParagraphDefinition
@ InParagraphDefinition
Definition: MsWrdTextStyles.hxx:70
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MsWrdText.hxx
MsWrdTextStylesInternal::State::m_sectionList
std::vector< MsWrdStruct::Section > m_sectionList
the list of section
Definition: MsWrdTextStyles.cxx:79
MWAWFont::setUnderlineStyle
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:466
MsWrdText::PLC::Paragraph
@ Paragraph
Definition: MsWrdText.hxx:71
MsWrdTextStyles::~MsWrdTextStyles
virtual ~MsWrdTextStyles()
destructor
Definition: MsWrdTextStyles.cxx:103
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
MsWrdTextStyles::m_state
std::shared_ptr< MsWrdTextStylesInternal::State > m_state
the state
Definition: MsWrdTextStyles.hxx:158