34 #ifndef RAG_TIME_5_STYLE_MANAGER 35 # define RAG_TIME_5_STYLE_MANAGER 82 bool updateSurfaceStyle(
int graphicId,
MWAWGraphicStyle &surfaceStyle)
const;
86 bool updateBorderStyle(
int graphicId,
MWAWGraphicStyle &borderStyle,
bool isLine)
const;
88 bool getLineColor(
int graphicId,
MWAWColor &color)
const;
92 bool getCellBorder(
int graphicId,
MWAWBorder &border)
const;
94 bool getCellBackgroundColor(
int graphicId,
MWAWColor &color)
const;
96 bool updateCellFormat(
int formatId,
MWAWCell &cell)
const;
101 std::vector<RagTime5StyleManager::TextStyle>
const &listReadStyles,
102 std::multimap<size_t, size_t>
const &idToChildIpMap,
103 std::set<size_t> &seens);
106 std::vector<RagTime5StyleManager::GraphicStyle>
const &listReadStyles,
107 std::multimap<size_t, size_t>
const &idToChildIpMap,
108 std::set<size_t> &seens);
120 , m_gradientRotation(-1000)
131 for (
auto &alpha : m_colorsAlpha) alpha=-1;
138 return m_parentId<=-1000 && m_width<0 && !m_dash.isSet() && !m_pattern &&
139 m_gradient<0 && m_gradientRotation<=-1000 && !m_gradientCenter.isSet() &&
140 m_position<0 && m_cap<0 && m_mitter<0 &&
141 !m_colors[0].isSet() && !m_colors[1].isSet() && m_colorsAlpha[0]<0 && m_colorsAlpha[1]<0 &&
142 m_limitPercent<0 && !m_hidden.isSet() && m_extra.empty();
145 bool updateColor(
bool first,
int colorId, std::vector<MWAWColor>
const &colorList);
159 float m_colorsAlpha[2];
195 , m_graphLineStyleId(-1)
196 , m_keepWithNext(false)
203 , m_scriptPosition(0)
208 , m_widthStreching(-1)
213 for (
auto &parentId : m_parentId) parentId=-1;
214 for (
auto &fontFlag : m_fontFlags) fontFlag=0;
215 for (
auto &margin : m_margins) margin=-1;
216 for (
auto &spacing : m_spacings) spacing=-1;
217 for (
auto &spacingUnit : m_spacingUnits) spacingUnit=-1;
218 for (
auto &letterSpacing : m_letterSpacings) letterSpacing=0;
225 if (m_parentId[0]>=0 || m_parentId[1]>=0 || !m_linkIdList.empty() ||
226 m_dateStyleId>=0 || m_graphStyleId>=0 || m_graphLineStyleId>=0 ||
227 m_keepWithNext.isSet() || m_justify>=0 || m_breakMethod>=0 || !m_tabList.empty() ||
228 !m_fontName.empty() || m_fontId>=0 || m_fontSize>=0 || m_fontFlags[0] || m_fontFlags[1] || m_scriptPosition.isSet() ||
229 m_fontScaling>=0 || m_underline>=0 || m_caps>=0 || m_language>=0 || m_widthStreching>=0 ||
230 m_numColumns>=0 || m_columnGap>=0 || !m_extra.empty())
232 for (
int i=0; i<3; ++i) {
233 if (m_margins[i]>=0 || m_spacings[i]>=0 || m_spacingUnits[i]>=0)
236 for (
auto spacing : m_letterSpacings) {
237 if (spacing>0 || spacing<0)
243 static std::string getLanguageLocale(
int id);
248 void insert(
TextStyle const &childStyle);
269 double m_spacings[3];
271 int m_spacingUnits[3];
288 uint32_t m_fontFlags[2];
300 double m_letterSpacings[4];
338 std::shared_ptr<RagTime5StyleManagerInternal::State>
m_state;
MWAWVariable< bool > m_hidden
flag to know if we need to print the shape
Definition: RagTime5StyleManager.hxx:179
static std::string printType(unsigned long fileType)
debug: print a file type
Definition: RagTime5StructManager.cxx:94
int m_fontId
the font id
Definition: RagTime5StyleManager.hxx:284
int m_caps
caps : none, all caps, lower caps, inital caps + other lowers
Definition: RagTime5StyleManager.hxx:296
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
int m_gradient
the gradient 0: none, normal, radial
Definition: RagTime5StyleManager.hxx:165
std::string m_extra
extra data
Definition: RagTime5StyleManager.hxx:181
std::ostream & operator<<(std::ostream &o, Shape const &shape)
Definition: BeagleWksDRParser.cxx:107
MWAWVariable< std::vector< long > > m_dash
the line dash/...
Definition: RagTime5StyleManager.hxx:161
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
MWAWVariable< MWAWVec2f > m_gradientCenter
the rotation center(checkme)
Definition: RagTime5StyleManager.hxx:169
int m_graphLineStyleId
the graphic line style id
Definition: RagTime5StyleManager.hxx:260
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
int m_numColumns
the number of columns
Definition: RagTime5StyleManager.hxx:307
librevenge::RVNGString m_fontName
the font name
Definition: RagTime5StyleManager.hxx:282
RagTime5Document & m_document
the parser
Definition: RagTime5StyleManager.hxx:333
basic class used to read/store RagTime 5/6 styles
Definition: RagTime5StyleManager.hxx:60
int m_breakMethod
the break method 0: asIs, next container, next page, next even page, next odd page ...
Definition: RagTime5StyleManager.hxx:273
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
the class to store a color
Definition: libmwaw_internal.hxx:192
int m_dateStyleId
the date style id
Definition: RagTime5StyleManager.hxx:256
int m_language
the language
Definition: RagTime5StyleManager.hxx:298
int m_graphStyleId
the graphic style id
Definition: RagTime5StyleManager.hxx:258
bool isDefault() const
returns true if the line style is default
Definition: RagTime5StyleManager.hxx:223
MWAWParserStatePtr m_parserState
the parser state
Definition: RagTime5StyleManager.hxx:335
MWAWVariable< bool > m_keepWithNext
the keep with next flag
Definition: RagTime5StyleManager.hxx:265
Class to store font.
Definition: MWAWFont.hxx:43
a border
Definition: libmwaw_internal.hxx:333
float m_width
the line width (in point)
Definition: RagTime5StyleManager.hxx:155
int m_cap
the line caps ( normal=1, round, square)
Definition: RagTime5StyleManager.hxx:173
friend class RagTime5StyleManager
Definition: RagTime5Document.hxx:90
double m_widthStreching
the width streching
Definition: RagTime5StyleManager.hxx:302
std::string m_extra
extra data
Definition: RagTime5StyleManager.hxx:312
int m_justify
justify 0: left, 1:center, 2:right, 3:full, 4:full all
Definition: RagTime5StyleManager.hxx:267
std::shared_ptr< RagTime5StyleManagerInternal::State > m_state
the state
Definition: RagTime5StyleManager.hxx:338
float m_limitPercent
the line limit
Definition: RagTime5StyleManager.hxx:177
a field of RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:242
double m_columnGap
the gap between columns
Definition: RagTime5StyleManager.hxx:309
std::vector< RagTime5StructManager::TabStop > m_tabList
the tabulations
Definition: RagTime5StyleManager.hxx:277
a class which stores section properties
Definition: MWAWSection.hxx:45
MWAWVariable< float > m_scriptPosition
the font script position ( in percent)
Definition: RagTime5StyleManager.hxx:290
TextStyle()
constructor
Definition: RagTime5StyleManager.hxx:191
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
int m_mitter
the line mitter ( triangle=1, round, out)
Definition: RagTime5StyleManager.hxx:175
static std::string printType(unsigned long fileType)
debug: print a file type
Definition: RagTime5StyleManager.hxx:322
float m_fontScaling
the font script position ( in percent)
Definition: RagTime5StyleManager.hxx:292
class to store the paragraph properties
Definition: MWAWParagraph.hxx:84
GraphicStyle()
constructor
Definition: RagTime5StyleManager.hxx:114
the main class to read a RagTime v5 file
Definition: RagTime5Document.hxx:76
bool isDefault() const
returns true if the line style is default
Definition: RagTime5StyleManager.hxx:136
the graphic style of a RagTime v5-v6 document
Definition: RagTime5StyleManager.hxx:112
int m_parentId
the parent id
Definition: RagTime5StyleManager.hxx:153
std::shared_ptr< MWAWGraphicStyle::Pattern > m_pattern
the line pattern
Definition: RagTime5StyleManager.hxx:163
the text style of a RagTime v5-v6 document
Definition: RagTime5StyleManager.hxx:189
Internal: the structures of a RagTime5Style.
Definition: RagTime5StyleManager.cxx:52
float m_fontSize
the font size
Definition: RagTime5StyleManager.hxx:286
std::vector< int > m_linkIdList
the link id list
Definition: RagTime5StyleManager.hxx:254
int m_underline
underline : none, single, double
Definition: RagTime5StyleManager.hxx:294
small class which defines a vector with 2 elements
Definition: libmwaw_internal.hxx:655
float m_gradientRotation
the gradient rotation(checkme)
Definition: RagTime5StyleManager.hxx:167
int m_position
the line position inside=1/normal/outside/round
Definition: RagTime5StyleManager.hxx:171
the cluster data
Definition: RagTime5ClusterManager.hxx:261