Go to the documentation of this file.
38 #ifndef CANVAS_STYLE_MANAGER
39 # define CANVAS_STYLE_MANAGER
44 #include <librevenge/librevenge.h>
106 bool readDashes(
int numDashes,
bool user=
false);
142 std::shared_ptr<CanvasStyleManagerInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
@ G_Square
Definition: MWAWGraphicStyle.hxx:177
bool readSprays()
try to read the spray
bool decode(long length)
try to decode some data: length==-1 means decode end of input
Definition: CanvasParser.cxx:565
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
bool readPenSize()
read the pen size
Definition: CanvasStyleManager.cxx:494
Type m_type
the gradient type
Definition: MWAWGraphicStyle.hxx:260
CanvasStyleManager(CanvasParser &parser)
constructor
Definition: CanvasStyleManager.cxx:88
static Arrow plain()
returns a basic plain arrow
Definition: MWAWGraphicStyle.hxx:74
std::vector< MWAWColor > m_colors
the colors
Definition: CanvasStyleManager.cxx:78
int id() const
returns the id
Definition: MWAWEntry.hxx:164
the class to store a color
Definition: libmwaw_internal.hxx:192
@ G_Linear
Definition: MWAWGraphicStyle.hxx:177
std::string str() const
print the color in the form #rrggbb
Definition: libmwaw_internal.cxx:232
CanvasStyleManager(CanvasStyleManager const &orig)=delete
bool isWindowsFile() const
returns true if the file is a windows file
Definition: CanvasParser.cxx:577
bool readColorValues(MWAWEntry const &entry)
read the Windows CVal RSRC: v3 (a list of color)
Definition: CanvasStyleManager.cxx:564
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
int version() const
returns the file version
Definition: CanvasStyleManager.cxx:98
MWAWInputStreamPtr m_input
the main input
Definition: CanvasStyleManager.cxx:75
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:277
the main class to read the style part of Canvas file
Definition: CanvasStyleManager.hxx:67
the main class to read a Canvas 2 and 3 files
Definition: CanvasParser.hxx:64
a structure used to define the gradient limit in MWAWGraphicStyle
Definition: MWAWGraphicStyle.hxx:141
#define M_PI
Definition: libmwaw_internal.hxx:52
std::vector< MWAWColor > const & getColorsList() const
returns the list of colors
Definition: CanvasStyleManager.cxx:133
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
Internal: the structures of a CanvasStyleManager.
Definition: CanvasStyleManager.cxx:60
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
Internal: the state of a CanvasStyleManager.
Definition: CanvasStyleManager.cxx:64
bool readArrow(MWAWGraphicStyle::Arrow &arrow, std::string &extra)
read an arrow shape
Definition: CanvasStyleManager.cxx:180
void setInput(MWAWInputStreamPtr &input)
store the actual input
Definition: CanvasStyleManager.cxx:103
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
std::vector< MWAWGraphicStyle::Pattern > m_patterns
the patterns
Definition: CanvasStyleManager.cxx:80
bool readPatterns(int numPatterns)
try to read the pattern list
Definition: CanvasStyleManager.cxx:452
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
MWAWParserStatePtr m_parserState
the parser state
Definition: CanvasStyleManager.hxx:139
a basic gradient used in a MWAWGraphicStyle
Definition: MWAWGraphicStyle.hxx:139
MWAWVec2f m_percentCenter
the gradient center
Definition: MWAWGraphicStyle.hxx:268
State()
constructor
Definition: CanvasStyleManager.cxx:66
std::shared_ptr< CanvasStyleManagerInternal::State > m_state
the state
Definition: CanvasStyleManager.hxx:142
@ G_Ellipsoid
Definition: MWAWGraphicStyle.hxx:177
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
MWAWInputStreamPtr & getInput()
returns the current input
Definition: CanvasStyleManager.cxx:108
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
the main class to read the graphic part of Canvas file
Definition: CanvasGraph.hxx:71
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
CanvasStyleManager & operator=(CanvasStyleManager const &orig)=delete
bool readDashes(int numDashes, bool user=false)
try to read the dash list
Definition: CanvasStyleManager.cxx:279
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
bool readColors(int numColors)
try to read the colors list
Definition: CanvasStyleManager.cxx:246
virtual ~CanvasStyleManager()
destructor
Definition: CanvasStyleManager.cxx:95
float m_angle
the gradient angle
Definition: MWAWGraphicStyle.hxx:264
bool readArrows()
read the arrow shapes
Definition: CanvasStyleManager.cxx:144
@ G_Radial
Definition: MWAWGraphicStyle.hxx:177
CanvasParser * m_mainParser
the main parser;
Definition: CanvasStyleManager.hxx:145
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
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
bool readGradient(MWAWEntry const &entry, MWAWGraphicStyle::Gradient &gradient)
try to read a gradient (ObFL)
Definition: CanvasStyleManager.cxx:334
bool get(int index, MWAWColor &color) const
try to retrieve a color from the color index
Definition: CanvasStyleManager.cxx:113
bool readFonts(int numFonts)
try to read the fonts names
Definition: CanvasStyleManager.cxx:514
a structure used to define an arrow
Definition: MWAWGraphicStyle.hxx:56
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20