34 #ifndef RAG_TIME_5_STYLE_MANAGER
35 # define RAG_TIME_5_STYLE_MANAGER
52 namespace RagTime5StyleManagerInternal
92 std::vector<RagTime5StyleManager::TextStyle>
const &listReadStyles,
93 std::multimap<size_t, size_t>
const &idToChildIpMap,
94 std::set<size_t> &seens);
97 std::vector<RagTime5StyleManager::GraphicStyle>
const &listReadStyles,
98 std::multimap<size_t, size_t>
const &idToChildIpMap,
99 std::set<size_t> &seens);
172 for (
int i=0; i<3; ++i) {
193 for (
int i=0; i<3; ++i) {
197 for (
int i=0; i<4; ++i) {
287 shared_ptr<RagTime5StyleManagerInternal::State>
m_state;
MWAWVariable< bool > m_hidden
flag to know if we need to print the shape
Definition: RagTime5StyleManager.hxx:158
bool readGraphicColors(RagTime5ClusterManager::Cluster &cluster)
try to read a graphic color zone
Definition: RagTime5StyleManager.cxx:281
int m_fontId
the font id
Definition: RagTime5StyleManager.hxx:245
int m_caps
caps : none, all caps, lower caps, inital caps + other lowers
Definition: RagTime5StyleManager.hxx:257
bool isDefault() const
returns true if the line style is default
Definition: RagTime5StyleManager.hxx:117
bool read(RagTime5StructManager::Field const &field)
try to read a text style
Definition: RagTime5StyleManager.cxx:1272
MWAWVariable< MWAWColor > m_colors[2]
the first and second color
Definition: RagTime5StyleManager.hxx:136
bool update(int textId, MWAWFont &font, MWAWParagraph ¶)
update the font and the paragraph properties using a text style
Definition: RagTime5StyleManager.cxx:645
int m_gradient
the gradient 0: none, normal, radial
Definition: RagTime5StyleManager.hxx:144
std::string m_extra
extra data
Definition: RagTime5StyleManager.hxx:160
MWAWVariable< std::vector< long > > m_dash
the line dash/...
Definition: RagTime5StyleManager.hxx:140
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:225
void insert(GraphicStyle const &childStyle)
update the current style
Definition: RagTime5StyleManager.cxx:1090
bool updateSurfaceStyle(int graphicId, MWAWGraphicStyle &surfaceStyle)
update a graphic style
Definition: RagTime5StyleManager.cxx:469
void insert(TextStyle const &childStyle)
update the current style
Definition: RagTime5StyleManager.cxx:1823
virtual ~GraphicStyle()
destructor
Definition: RagTime5StyleManager.hxx:113
void updateTextStyles(size_t id, RagTime5StyleManager::TextStyle const &style, std::vector< RagTime5StyleManager::TextStyle > const &listReadStyles, std::multimap< size_t, size_t > const &idToChildIpMap, std::set< size_t > &seens)
recursive function use to update the style list
Definition: RagTime5StyleManager.cxx:620
MWAWVariable< MWAWVec2f > m_gradientCenter
the rotation center(checkme)
Definition: RagTime5StyleManager.hxx:148
int m_graphLineStyleId
the graphic line style id
Definition: RagTime5StyleManager.hxx:221
void updateGraphicStyles(size_t id, RagTime5StyleManager::GraphicStyle const &style, std::vector< RagTime5StyleManager::GraphicStyle > const &listReadStyles, std::multimap< size_t, size_t > const &idToChildIpMap, std::set< size_t > &seens)
recursive function use to update the style list
Definition: RagTime5StyleManager.cxx:396
bool read(MWAWInputStreamPtr &input, RagTime5StructManager::Field const &field, std::vector< MWAWColor > const &colorList)
try to read a graphic style
Definition: RagTime5StyleManager.cxx:794
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:220
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
static std::string getLanguageLocale(int id)
returns the language locale name corresponding to an id ( if known)
Definition: RagTime5StyleManager.cxx:1219
int m_numColumns
the number of columns
Definition: RagTime5StyleManager.hxx:268
librevenge::RVNGString m_fontName
the font name
Definition: RagTime5StyleManager.hxx:243
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:234
bool updateBorderStyle(int graphicId, MWAWGraphicStyle &borderStyle, bool isLine)
update a graphic style(border)
Definition: RagTime5StyleManager.cxx:433
the class to store a color
Definition: libmwaw_internal.hxx:176
RagTime5StyleManager operator=(RagTime5StyleManager const &orig)
int m_dateStyleId
the date style id
Definition: RagTime5StyleManager.hxx:217
bool readTextStyles(RagTime5ClusterManager::Cluster &cluster)
try to read a main text styles
Definition: RagTime5StyleManager.cxx:505
int m_language
the language
Definition: RagTime5StyleManager.hxx:259
int m_graphStyleId
the graphic style id
Definition: RagTime5StyleManager.hxx:219
uint32_t m_fontFlags[2]
the font flags (add and remove )
Definition: RagTime5StyleManager.hxx:249
~RagTime5StyleManager()
destructor
Definition: RagTime5StyleManager.cxx:274
MWAWParserStatePtr m_parserState
the parser state
Definition: RagTime5StyleManager.hxx:284
MWAWVariable< bool > m_keepWithNext
the keep with next flag
Definition: RagTime5StyleManager.hxx:226
Class to store font.
Definition: MWAWFont.hxx:43
float m_width
the line width (in point)
Definition: RagTime5StyleManager.hxx:134
friend std::ostream & operator<<(std::ostream &o, GraphicStyle const &style)
operator<<
Definition: RagTime5StyleManager.cxx:1116
int m_cap
the line caps ( normal=1, round, square)
Definition: RagTime5StyleManager.hxx:152
double m_widthStreching
the width streching
Definition: RagTime5StyleManager.hxx:263
double m_letterSpacings[4]
the spacings in percent ( normal, minimum, maximum)
Definition: RagTime5StyleManager.hxx:261
RagTime5StyleManager(RagTime5Parser &parser)
constructor
Definition: RagTime5StyleManager.cxx:269
std::string m_extra
extra data
Definition: RagTime5StyleManager.hxx:273
int m_justify
justify 0: left, 1:center, 2:right, 3:full, 4:full all
Definition: RagTime5StyleManager.hxx:228
float m_limitPercent
the line limit
Definition: RagTime5StyleManager.hxx:156
friend std::ostream & operator<<(std::ostream &o, TextStyle const &style)
operator<<
Definition: RagTime5StyleManager.cxx:1867
the main class to read a RagTime v5 file
Definition: RagTime5Parser.hxx:72
a field of RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:218
double m_columnGap
the gap between columns
Definition: RagTime5StyleManager.hxx:270
std::vector< RagTime5StructManager::TabStop > m_tabList
the tabulations
Definition: RagTime5StyleManager.hxx:238
double m_spacings[3]
the interline/before/after value
Definition: RagTime5StyleManager.hxx:230
bool readGraphicStyles(RagTime5ClusterManager::Cluster &cluster)
try to read a main graphic styles
Definition: RagTime5StyleManager.cxx:290
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:489
MWAWVariable< float > m_scriptPosition
the font script position ( in percent)
Definition: RagTime5StyleManager.hxx:251
TextStyle()
constructor
Definition: RagTime5StyleManager.hxx:165
shared_ptr< MWAWGraphicStyle::Pattern > m_pattern
the line pattern
Definition: RagTime5StyleManager.hxx:142
int m_mitter
the line mitter ( triangle=1, round, out)
Definition: RagTime5StyleManager.hxx:154
float m_fontScaling
the font script position ( in percent)
Definition: RagTime5StyleManager.hxx:253
class to store the paragraph properties
Definition: MWAWParagraph.hxx:81
GraphicStyle()
constructor
Definition: RagTime5StyleManager.hxx:105
RagTime5Parser & m_mainParser
the parser
Definition: RagTime5StyleManager.hxx:282
float m_colorsAlpha[2]
alpha of the first and second color
Definition: RagTime5StyleManager.hxx:138
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:495
the graphic style of a RagTime v5-v6 document
Definition: RagTime5StyleManager.hxx:103
int m_parentId
the parent id
Definition: RagTime5StyleManager.hxx:132
int m_spacingUnits[3]
the interline/before/after unit 0: line, 1:point
Definition: RagTime5StyleManager.hxx:232
double m_margins[3]
the spacings in point ( left, right, first)
Definition: RagTime5StyleManager.hxx:236
virtual ~TextStyle()
destructor
Definition: RagTime5StyleManager.hxx:180
the text style of a RagTime v5-v6 document
Definition: RagTime5StyleManager.hxx:163
bool isDefault() const
returns true if the line style is default
Definition: RagTime5StyleManager.hxx:184
bool getLineColor(int graphicId, MWAWColor &color)
returns the line color corresponding to a graphic style
Definition: RagTime5StyleManager.cxx:419
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:572
shared_ptr< RagTime5StyleManagerInternal::State > m_state
the state
Definition: RagTime5StyleManager.hxx:287
float m_fontSize
the font size
Definition: RagTime5StyleManager.hxx:247
std::vector< int > m_linkIdList
the link id list
Definition: RagTime5StyleManager.hxx:215
int m_underline
underline : none, single, double
Definition: RagTime5StyleManager.hxx:255
int m_parentId[2]
the parent id ( main and style ?)
Definition: RagTime5StyleManager.hxx:213
float m_gradientRotation
the gradient rotation(checkme)
Definition: RagTime5StyleManager.hxx:146
int m_position
the line position inside=1/normal/outside/round
Definition: RagTime5StyleManager.hxx:150
the cluster data
Definition: RagTime5ClusterManager.hxx:214