38 #ifndef CANVAS5_STYLE_MANAGER
39 # define CANVAS5_STYLE_MANAGER
45 #include <librevenge/librevenge.h>
228 std::shared_ptr<Canvas5StyleManagerInternal::State>
m_state;
the main class to read the graphic part of Canvas5 file
Definition: Canvas5Graph.hxx:85
the main class to read/convert the image or movie inside of Canvas 5/6 file
Definition: Canvas5Image.hxx:78
the main class to read a Canvas 5/6 files
Definition: Canvas5Parser.hxx:72
the main class to read the style part of Canvas 5 file
Definition: Canvas5StyleManager.hxx:86
bool readStrokes(Canvas5Structure::Stream &stream)
try to read the stroke styles
Definition: Canvas5StyleManager.cxx:1423
bool readStyle(Canvas5Structure::Stream &stream, int id, StyleList *styles=nullptr)
try to read a style
Definition: Canvas5StyleManager.cxx:1667
Canvas5StyleManager(Canvas5StyleManager const &orig)=delete
std::shared_ptr< Canvas5StyleManagerInternal::PenStyle > readPenStyle(Canvas5Structure::Stream &stream, unsigned type, long len)
try to read a pen style
Definition: Canvas5StyleManager.cxx:1233
bool readCharStyle(Canvas5Structure::Stream &stream, int id, CharStyle &fontIds, bool useFileColors=true)
try to read a character style, returns a font, a paragraph id and it potential link id
Definition: Canvas5StyleManager.cxx:1461
bool readPenSize(Canvas5Structure::Stream &stream)
read the pen size (header file)
Definition: Canvas5StyleManager.cxx:1164
Canvas5StyleManager(Canvas5Parser &parser)
constructor
Definition: Canvas5StyleManager.cxx:219
bool readFonts(Canvas5Structure::Stream &stream, int numFonts)
try to read the fonts names
Definition: Canvas5StyleManager.cxx:1055
virtual ~Canvas5StyleManager()
destructor
Definition: Canvas5StyleManager.cxx:226
bool updateSurfaceColor(Canvas5StyleManagerInternal::ColorStyle const &color, MWAWGraphicStyle &style)
try to update the surface color given a color style
Definition: Canvas5StyleManager.cxx:1994
bool readColor(Canvas5Structure::Stream &stream, MWAWVariable< MWAWColor > &color, std::string &extra)
try to read a color: 12 unknown 4 components followed by a type
Definition: Canvas5StyleManager.cxx:245
bool updateLine(Canvas5StyleManagerInternal::PenStyle const &pen, MWAWGraphicStyle &style, int &numLines, int lineId, float *offset)
try to update the line color given a color style
Definition: Canvas5StyleManager.cxx:2051
bool readGradient(Canvas5Structure::Stream &stream, long len, MWAWGraphicStyle::Gradient &gradient)
try to read a gradient zone: OBFL
Definition: Canvas5StyleManager.cxx:290
bool readStyles(Canvas5Structure::Stream &stream)
try to read the styles
Definition: Canvas5StyleManager.cxx:1878
std::shared_ptr< Canvas5Image > getImageParser() const
returns the image parser
Definition: Canvas5StyleManager.cxx:234
int version() const
returns the file version
Definition: Canvas5StyleManager.cxx:229
Canvas5Parser * m_mainParser
the main parser;
Definition: Canvas5StyleManager.hxx:231
bool readArrows(Canvas5Structure::Stream &stream)
try to read the arrows zones
Definition: Canvas5StyleManager.cxx:561
bool readDashes(Canvas5Structure::Stream &stream)
try to read the dashes
Definition: Canvas5StyleManager.cxx:977
Canvas5StyleManager & operator=(Canvas5StyleManager const &orig)=delete
bool readDash(Canvas5Structure::Stream &stream, std::vector< float > &dashes, unsigned type, long len)
try to read a dash's array
Definition: Canvas5StyleManager.cxx:1007
std::shared_ptr< Canvas5StyleManagerInternal::State > m_state
the state
Definition: Canvas5StyleManager.hxx:228
bool updateLineStyle(int sId, MWAWGraphicStyle &style, int &numLines, int lineId=-1, float *offset=nullptr)
try to update the line style given the stroke id and returns the number of lines(plin)
Definition: Canvas5StyleManager.cxx:2092
bool readHatch(Canvas5Structure::Stream &stream, long len, MWAWGraphicStyle::Hatch &hatch, MWAWVariable< MWAWColor > &backColor)
try to read a hatch zone: htch
Definition: Canvas5StyleManager.cxx:461
bool readArrow(Canvas5Structure::Stream &stream, MWAWGraphicStyle::Arrow &arrow, unsigned type, long len)
try to read an arrow
Definition: Canvas5StyleManager.cxx:593
bool readCharStyles(Canvas5Structure::Stream &stream)
try to read the character styles
Definition: Canvas5StyleManager.cxx:1615
MWAWParserStatePtr m_parserState
the parser state
Definition: Canvas5StyleManager.hxx:225
bool readColors(Canvas5Structure::Stream &stream)
try to read the ink color zones
Definition: Canvas5StyleManager.cxx:632
std::shared_ptr< Canvas5StyleManagerInternal::ColorStyle > readColorStyle(Canvas5Structure::Stream &stream, unsigned type, long len)
try to read a color style
Definition: Canvas5StyleManager.cxx:741
bool readFormats(Canvas5Structure::Stream &stream)
read the list of formats, mainly an unit's conversion table
Definition: Canvas5StyleManager.cxx:1101
bool readStyleEnd(Canvas5Structure::Stream &stream, MWAWFont *font=nullptr, MWAWParagraph *para=nullptr)
try to read the second part of a style which contains minor paragraph styles, hyphen,...
Definition: Canvas5StyleManager.cxx:1794
bool updateLineColor(Canvas5StyleManagerInternal::ColorStyle const &color, MWAWGraphicStyle &style)
try to update the line color given a color style
Definition: Canvas5StyleManager.cxx:1949
std::shared_ptr< Canvas5ImageInternal::VKFLImage > readSymbol(Canvas5Structure::Stream &stream, long len, MWAWVariable< MWAWColor > &backColor)
try to read a symbol zone: vkfl
Definition: Canvas5StyleManager.cxx:848
bool readPenStyles(Canvas5Structure::Stream &stream)
read the pen styles
Definition: Canvas5StyleManager.cxx:1184
std::shared_ptr< Canvas5ImageInternal::VKFLImage > readTexture(Canvas5Structure::Stream &stream, long len)
try to read a texture zone: TXUR
Definition: Canvas5StyleManager.cxx:919
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
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
Internal: the structures of a Canvas5Image.
Definition: Canvas5Image.cxx:70
a namespace used to define basic function or structure to read a Canvas 5 file
Definition: Canvas5BMParser.hxx:64
Internal: the structures of a Canvas5StyleManager.
Definition: Canvas5StyleManager.cxx:62
a sub stream of Canvas5Structure
Definition: Canvas5Structure.hxx:49
Internal: the color style of a Canvas5StyleManager.
Definition: Canvas5StyleManager.cxx:66
Internal: the pen style of a Canvas5StyleManager.
Definition: Canvas5StyleManager.cxx:108
a structure use to store a character style
Definition: Canvas5StyleManager.hxx:92
int m_linkId
the link id
Definition: Canvas5StyleManager.hxx:105
MWAWFont m_font
the font
Definition: Canvas5StyleManager.hxx:101
CharStyle()
constructor
Definition: Canvas5StyleManager.hxx:94
int m_paragraphId
the paragraph id
Definition: Canvas5StyleManager.hxx:103
a structure use to store a list of styles
Definition: Canvas5StyleManager.hxx:109
StyleList()
constructor
Definition: Canvas5StyleManager.hxx:111
std::vector< CharStyle > m_fonts
the fonts, the paragraph id and the link id
Definition: Canvas5StyleManager.hxx:117
std::vector< std::pair< MWAWParagraph, int > > m_paragraphs
the paragraph list and the tab id
Definition: Canvas5StyleManager.hxx:119
a structure used to define an arrow
Definition: MWAWGraphicStyle.hxx:56
a basic gradient used in a MWAWGraphicStyle
Definition: MWAWGraphicStyle.hxx:139
a basic hatch used in MWAWGraphicStyle
Definition: MWAWGraphicStyle.hxx:276