34#ifndef RAG_TIME_5_STYLE_MANAGER
35# define RAG_TIME_5_STYLE_MANAGER
103 std::vector<RagTime5StyleManager::TextStyle>
const &listReadStyles,
104 std::multimap<size_t, size_t>
const &idToChildIpMap,
105 std::set<size_t> &seens);
108 std::vector<RagTime5StyleManager::GraphicStyle>
const &listReadStyles,
109 std::multimap<size_t, size_t>
const &idToChildIpMap,
110 std::set<size_t> &seens);
147 bool updateColor(
bool first,
int colorId, std::vector<MWAWColor>
const &colorList);
215 for (
auto &parentId :
m_parentId) parentId=-1;
217 for (
auto &margin :
m_margins) margin=-1;
234 for (
int i=0; i<3; ++i) {
239 if (spacing>0 || spacing<0)
340 std::shared_ptr<RagTime5StyleManagerInternal::State>
m_state;
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
Class to store font.
Definition: MWAWFont.hxx:44
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
a class which stores section properties
Definition: MWAWSection.hxx:46
the main class to read a RagTime v5 file
Definition: RagTime5Document.hxx:77
static std::string printType(unsigned long fileType)
debug: print a file type
Definition: RagTime5StructManager.cxx:94
basic class used to read/store RagTime 5/6 styles
Definition: RagTime5StyleManager.hxx:63
bool updateSurfaceStyle(int graphicId, MWAWGraphicStyle &surfaceStyle) const
updates a graphic style
Definition: RagTime5StyleManager.cxx:599
std::shared_ptr< RagTime5StyleManagerInternal::State > m_state
the state
Definition: RagTime5StyleManager.hxx:340
bool updateCellFormat(int formatId, MWAWCell &cell) const
updates the cell format
Definition: RagTime5StyleManager.cxx:1245
RagTime5StyleManager(RagTime5StyleManager const &orig)=delete
bool readFormats(RagTime5ClusterManager::Cluster &cluster)
try to read the list of format
Definition: RagTime5StyleManager.cxx:919
bool readGraphicStyles(RagTime5ClusterManager::Cluster &cluster)
try to read a main graphic styles
Definition: RagTime5StyleManager.cxx:329
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:434
bool updateBorderStyle(int graphicId, MWAWGraphicStyle &borderStyle, bool isLine) const
updates a graphic style(border)
Definition: RagTime5StyleManager.cxx:543
bool getCellBorder(int graphicId, MWAWBorder &border) const
returns a cell border
Definition: RagTime5StyleManager.cxx:471
MWAWParserStatePtr m_parserState
the parser state
Definition: RagTime5StyleManager.hxx:337
static std::string printType(unsigned long fileType)
debug: print a file type
Definition: RagTime5StyleManager.hxx:324
RagTime5StyleManager operator=(RagTime5StyleManager const &orig)=delete
bool readTextStyles(RagTime5ClusterManager::Cluster &cluster)
try to read a main text styles
Definition: RagTime5StyleManager.cxx:636
bool updateFrameStyle(int graphicId, MWAWGraphicStyle &surfaceStyle) const
updates a graphic style (used for textbox)
Definition: RagTime5StyleManager.cxx:579
bool readGraphicColors(RagTime5ClusterManager::Cluster &cluster)
try to read a graphic color zone
Definition: RagTime5StyleManager.cxx:320
bool getLineColor(int graphicId, MWAWColor &color) const
returns the line color corresponding to a graphic style
Definition: RagTime5StyleManager.cxx:457
RagTime5Document & m_document
the parser
Definition: RagTime5StyleManager.hxx:335
bool updateTextStyles(int textId, MWAWFont &font, MWAWParagraph ¶, MWAWSection §ion, double totalWidth=0) const
update the font and the paragraph properties using a text style
Definition: RagTime5StyleManager.cxx:775
bool getCellBackgroundColor(int graphicId, MWAWColor &color) const
returns the cell background
Definition: RagTime5StyleManager.cxx:517
~RagTime5StyleManager()
destructor
Definition: RagTime5StyleManager.cxx:313
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
Internal: the structures of a RagTime5Style.
Definition: RagTime5StyleManager.cxx:53
a border
Definition: libmwaw_internal.hxx:333
the class to store a color
Definition: libmwaw_internal.hxx:192
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
a generic variable template: value + flag to know if the variable is set
Definition: libmwaw_internal.hxx:577
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:635
the cluster data
Definition: RagTime5ClusterManager.hxx:261
a field of RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:242
the graphic style of a RagTime v5-v6 document
Definition: RagTime5StyleManager.hxx:114
friend std::ostream & operator<<(std::ostream &o, GraphicStyle const &style)
operator<<
Definition: RagTime5StyleManager.cxx:1590
int m_position
the line position inside=1/normal/outside/round
Definition: RagTime5StyleManager.hxx:173
MWAWVariable< MWAWColor > m_colors[2]
the first and second color
Definition: RagTime5StyleManager.hxx:159
virtual ~GraphicStyle()
destructor
Definition: RagTime5StyleManager.cxx:1269
int m_parentId
the parent id
Definition: RagTime5StyleManager.hxx:155
GraphicStyle & operator=(GraphicStyle &&)=default
float m_width
the line width (in point)
Definition: RagTime5StyleManager.hxx:157
float m_limitPercent
the line limit
Definition: RagTime5StyleManager.hxx:179
std::string m_extra
extra data
Definition: RagTime5StyleManager.hxx:183
std::shared_ptr< MWAWGraphicStyle::Pattern > m_pattern
the line pattern
Definition: RagTime5StyleManager.hxx:165
GraphicStyle()
constructor
Definition: RagTime5StyleManager.hxx:116
float m_colorsAlpha[2]
alpha of the first and second color
Definition: RagTime5StyleManager.hxx:161
bool updateColor(bool first, int colorId, std::vector< MWAWColor > const &colorList)
update the first/second color using the color list
Definition: RagTime5StyleManager.cxx:1552
int m_mitter
the line mitter ( triangle=1, round, out)
Definition: RagTime5StyleManager.hxx:177
MWAWVariable< bool > m_hidden
flag to know if we need to print the shape
Definition: RagTime5StyleManager.hxx:181
GraphicStyle & operator=(GraphicStyle const &)=default
MWAWVariable< std::vector< long > > m_dash
the line dash/...
Definition: RagTime5StyleManager.hxx:163
GraphicStyle(GraphicStyle const &)=default
GraphicStyle(GraphicStyle &&)=default
bool isDefault() const
returns true if the line style is default
Definition: RagTime5StyleManager.hxx:138
bool read(MWAWInputStreamPtr &input, RagTime5StructManager::Field const &field, std::vector< MWAWColor > const &colorList)
try to read a graphic style
Definition: RagTime5StyleManager.cxx:1273
int m_gradient
the gradient 0: none, normal, radial
Definition: RagTime5StyleManager.hxx:167
void insert(GraphicStyle const &childStyle)
update the current style
Definition: RagTime5StyleManager.cxx:1564
MWAWVariable< MWAWVec2f > m_gradientCenter
the rotation center(checkme)
Definition: RagTime5StyleManager.hxx:171
int m_cap
the line caps ( normal=1, round, square)
Definition: RagTime5StyleManager.hxx:175
float m_gradientRotation
the gradient rotation(checkme)
Definition: RagTime5StyleManager.hxx:169
the text style of a RagTime v5-v6 document
Definition: RagTime5StyleManager.hxx:191
int m_fontId
the font id
Definition: RagTime5StyleManager.hxx:286
TextStyle(TextStyle const &)=default
int m_graphLineStyleId
the graphic line style id
Definition: RagTime5StyleManager.hxx:262
int m_caps
caps : none, all caps, lower caps, inital caps + other lowers
Definition: RagTime5StyleManager.hxx:298
void insert(TextStyle const &childStyle)
update the current style
Definition: RagTime5StyleManager.cxx:2269
virtual ~TextStyle()
destructor
Definition: RagTime5StyleManager.cxx:1691
double m_letterSpacings[4]
the spacings in percent ( normal, minimum, maximum)
Definition: RagTime5StyleManager.hxx:302
int m_language
the language
Definition: RagTime5StyleManager.hxx:300
MWAWVariable< float > m_scriptPosition
the font script position ( in percent)
Definition: RagTime5StyleManager.hxx:292
int m_underline
underline : none, single, double
Definition: RagTime5StyleManager.hxx:296
friend std::ostream & operator<<(std::ostream &o, TextStyle const &style)
operator<<
Definition: RagTime5StyleManager.cxx:2313
float m_fontSize
the font size
Definition: RagTime5StyleManager.hxx:288
int m_justify
justify 0: left, 1:center, 2:right, 3:full, 4:full all
Definition: RagTime5StyleManager.hxx:269
int m_breakMethod
the break method 0: asIs, next container, next page, next even page, next odd page
Definition: RagTime5StyleManager.hxx:275
bool isDefault() const
returns true if the line style is default
Definition: RagTime5StyleManager.hxx:225
double m_columnGap
the gap between columns
Definition: RagTime5StyleManager.hxx:311
std::vector< RagTime5StructManager::TabStop > m_tabList
the tabulations
Definition: RagTime5StyleManager.hxx:279
TextStyle()
constructor
Definition: RagTime5StyleManager.hxx:193
int m_parentId[2]
the parent id ( main and style ?)
Definition: RagTime5StyleManager.hxx:254
double m_widthStreching
the width streching
Definition: RagTime5StyleManager.hxx:304
TextStyle & operator=(TextStyle const &)=default
TextStyle(TextStyle &&)=default
static std::string getLanguageLocale(int id)
returns the language locale name corresponding to an id ( if known)
Definition: RagTime5StyleManager.cxx:1695
float m_fontScaling
the font script position ( in percent)
Definition: RagTime5StyleManager.hxx:294
int m_graphStyleId
the graphic style id
Definition: RagTime5StyleManager.hxx:260
std::string m_extra
extra data
Definition: RagTime5StyleManager.hxx:314
int m_numColumns
the number of columns
Definition: RagTime5StyleManager.hxx:309
uint32_t m_fontFlags[2]
the font flags (add and remove )
Definition: RagTime5StyleManager.hxx:290
librevenge::RVNGString m_fontName
the font name
Definition: RagTime5StyleManager.hxx:284
int m_dateStyleId
the date style id
Definition: RagTime5StyleManager.hxx:258
int m_spacingUnits[3]
the interline/before/after unit 0: line, 1:point
Definition: RagTime5StyleManager.hxx:273
TextStyle & operator=(TextStyle &&)=default
double m_spacings[3]
the interline/before/after value
Definition: RagTime5StyleManager.hxx:271
std::vector< int > m_linkIdList
the link id list
Definition: RagTime5StyleManager.hxx:256
double m_margins[3]
the spacings in point ( left, right, first)
Definition: RagTime5StyleManager.hxx:277
MWAWVariable< bool > m_keepWithNext
the keep with next flag
Definition: RagTime5StyleManager.hxx:267
bool read(RagTime5StructManager::Field const &field)
try to read a text style
Definition: RagTime5StyleManager.cxx:1748