Go to the documentation of this file.
34 #ifndef CLARISDRAW_STYLE_MANAGER
35 # define CLARISDRAW_STYLE_MANAGER
41 #include <librevenge/librevenge.h>
74 bool getDash(
int dId, std::vector<float> &dash)
const;
120 std::shared_ptr<ClarisDrawStyleManagerInternal::State>
m_state;
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
bool readFontNames()
tries to read the font names zone
Definition: ClarisDrawStyleManager.cxx:1051
MWAWColor m_colors[4]
the color
Definition: ClarisDrawStyleManager.cxx:119
bool getPattern(int pId, MWAWGraphicStyle::Pattern &pattern) const
tries to return the pattern corresponding to an id
Definition: ClarisDrawStyleManager.cxx:1009
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
std::vector< MWAWParagraph > m_paragraphList
the list of paragraph
Definition: ClarisDrawStyleManager.cxx:215
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
std::vector< std::vector< float > > m_dashList
the list of dash
Definition: ClarisDrawStyleManager.cxx:211
std::vector< MWAWFont > m_fontList
the list of font
Definition: ClarisDrawStyleManager.cxx:213
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:415
int m_angle
the angle
Definition: ClarisDrawStyleManager.cxx:121
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
int m_numGradients
the number of gradient
Definition: ClarisDrawStyleManager.cxx:207
the class to store a color
Definition: libmwaw_internal.hxx:192
State()
constructor
Definition: ClarisDrawStyleManager.cxx:176
std::vector< MWAWGraphicStyle::Pattern > m_BWPatternList
the patterns list
Definition: ClarisDrawStyleManager.cxx:218
@ G_Linear
Definition: MWAWGraphicStyle.hxx:177
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
void initDashs()
init the dashs list
Definition: ClarisDrawStyleManager.cxx:302
std::vector< MWAWColor > m_colorList
the color list
Definition: ClarisDrawStyleManager.cxx:209
int m_numColors
the number of color
Definition: ClarisDrawStyleManager.cxx:117
virtual ~ClarisDrawStyleManager()
destructor
Definition: ClarisDrawStyleManager.cxx:938
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
std::vector< unsigned char > m_data
the pattern data: a sequence of data: p[0..7,0],p[8..15,0]...p[0..7,1],p[8..15,1],...
Definition: MWAWGraphicStyle.hxx:363
float m_decal
the decal
Definition: ClarisDrawStyleManager.cxx:123
bool getColor(int cId, MWAWColor &color) const
tries to return the color corresponding to an id
Definition: ClarisDrawStyleManager.cxx:963
int m_numStyleZones[6]
the number of zones
Definition: ClarisDrawStyleManager.cxx:201
bool readArrows()
tries to read the Arrow styles
Definition: ClarisDrawStyleManager.cxx:1178
@ G_Rectangular
Definition: MWAWGraphicStyle.hxx:177
ClarisDrawStyleManager(ClarisDrawParser &parser)
constructor
Definition: ClarisDrawStyleManager.cxx:931
MWAWVec2f m_documentSize
the document size (in point)
Definition: ClarisDrawStyleManager.cxx:199
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:277
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisDrawStyleManager.hxx:118
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:206
Definition: ClarisDrawStyleManager.cxx:64
a structure used to define the gradient limit in MWAWGraphicStyle
Definition: MWAWGraphicStyle.hxx:141
void setDefaultNumbers(int nColors, int nGradients)
set the default number of color, ...
Definition: ClarisDrawStyleManager.cxx:942
Gradient(int type=0, int nColor=0, int angle=0, float decal=0)
construtor
Definition: ClarisDrawStyleManager.cxx:66
int m_numColors
the number of color
Definition: ClarisDrawStyleManager.cxx:203
the main class to read a ClarisDraw style
Definition: ClarisDrawStyleManager.hxx:60
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:358
bool readDashs()
tries to read the dash settings
Definition: ClarisDrawStyleManager.cxx:1231
bool ok() const
check if the gradient is valid
Definition: ClarisDrawStyleManager.cxx:77
bool update(MWAWGraphicStyle &style) const
update the style
Definition: ClarisDrawStyleManager.cxx:127
bool readHeader(MWAWInputStreamPtr input, bool strict=false)
try to read the header
Definition: ClarisWksStruct.cxx:72
bool readParagraphStyles()
tries to read the paragraph style
bool getFont(int fId, MWAWFont &font) const
tries to return the font corresponding to an id
Definition: ClarisDrawStyleManager.cxx:974
int m_numBWPatterns
the number of BW pattern
Definition: ClarisDrawStyleManager.cxx:205
bool getDash(int dId, std::vector< float > &dash) const
tries to return the dash definition corresponding to an id
Definition: ClarisDrawStyleManager.cxx:995
Internal: the structures of a ClarisDrawStyleManager.
Definition: ClarisDrawStyleManager.cxx:62
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
bool readPatternList()
Definition: ClarisDrawStyleManager.cxx:1387
bool readColorList()
Definition: ClarisDrawStyleManager.cxx:1341
@ G_Axial
Definition: MWAWGraphicStyle.hxx:177
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:361
ClarisDrawParser & m_parser
the main parser
Definition: ClarisDrawStyleManager.hxx:116
int m_type
the type
Definition: ClarisDrawStyleManager.cxx:115
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:69
std::vector< Gradient > m_gradientList
the gradient list
Definition: ClarisDrawStyleManager.cxx:220
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1072
void initBWPatterns()
init the black and white patterns list
Definition: ClarisDrawStyleManager.cxx:888
Gradient m_gradient
the gradient
Definition: MWAWGraphicStyle.hxx:533
bool readRulers()
tries to read the Ruler styles
Definition: ClarisDrawStyleManager.cxx:1286
void initColors()
init the colors list
Definition: ClarisDrawStyleManager.cxx:223
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
bool updateGradient(int gId, MWAWGraphicStyle &style) const
tries to update the style gradient
Definition: ClarisDrawStyleManager.cxx:1024
long m_dataSize
the data size
Definition: ClarisWksStruct.hxx:73
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
friend std::ostream & operator<<(std::ostream &o, Gradient const &gr)
operator<<
Definition: ClarisDrawStyleManager.cxx:84
a basic structure
Definition: ClarisWksStruct.hxx:53
the main class to read a ClarisDraw v1 file
Definition: ClarisDrawParser.hxx:64
Class to store font.
Definition: MWAWFont.hxx:44
void initGradients()
init the gradient list
Definition: ClarisDrawStyleManager.cxx:329
@ G_Radial
Definition: MWAWGraphicStyle.hxx:177
bool readGradientList()
Definition: ClarisDrawStyleManager.cxx:1432
bool readFontStyles()
tries to read the font style
Definition: ClarisDrawStyleManager.cxx:1115
bool getParagraph(int pId, MWAWParagraph ¶) const
tries to return the paragraph corresponding to an id
Definition: ClarisDrawStyleManager.cxx:985
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
std::shared_ptr< ClarisDrawStyleManagerInternal::State > m_state
the state
Definition: ClarisDrawStyleManager.hxx:120
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
std::vector< Stop > m_stopList
the list of gradient limits
Definition: MWAWGraphicStyle.hxx:262
MWAWBox2i m_box
the center bdbox
Definition: ClarisDrawStyleManager.cxx:125
Internal: the state of a ClarisDrawStyleManager.
Definition: ClarisDrawStyleManager.cxx:174
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20