CanvasStyleManager Class Reference

the main class to read the style part of Canvas file More...

#include <CanvasStyleManager.hxx>

Public Member Functions

 CanvasStyleManager (CanvasParser &parser)
 constructor More...
 
virtual ~CanvasStyleManager ()
 destructor More...
 
int version () const
 returns the file version More...
 

Protected Member Functions

void setInput (MWAWInputStreamPtr &input)
 store the actual input More...
 
MWAWInputStreamPtrgetInput ()
 returns the current input More...
 
bool get (int index, MWAWColor &color) const
 try to retrieve a color from the color index More...
 
std::vector< MWAWColor > const & getColorsList () const
 returns the list of colors More...
 
bool get (int index, MWAWGraphicStyle::Pattern &pattern) const
 try to retrieve a pattern from the pattern index More...
 
bool readArrows ()
 read the arrow shapes More...
 
bool readArrow (MWAWGraphicStyle::Arrow &arrow, std::string &extra)
 read an arrow shape More...
 
bool readColors (int numColors)
 try to read the colors list More...
 
bool readDashes (int numDashes, bool user=false)
 try to read the dash list More...
 
bool readGradient (MWAWEntry const &entry, MWAWGraphicStyle::Gradient &gradient)
 try to read a gradient (ObFL) More...
 
bool readPatterns (int numPatterns)
 try to read the pattern list More...
 
bool readPenSize ()
 read the pen size More...
 
bool readSprays ()
 try to read the spray More...
 
bool readFonts (int numFonts)
 try to read the fonts names More...
 
bool readColorValues (MWAWEntry const &entry)
 read the Windows CVal RSRC: v3 (a list of color) More...
 

Protected Attributes

MWAWParserStatePtr m_parserState
 the parser state More...
 
std::shared_ptr< CanvasStyleManagerInternal::Statem_state
 the state More...
 
CanvasParserm_mainParser
 the main parser; More...
 

Private Member Functions

 CanvasStyleManager (CanvasStyleManager const &orig)=delete
 
CanvasStyleManageroperator= (CanvasStyleManager const &orig)=delete
 

Friends

class CanvasGraph
 
class CanvasParser
 

Detailed Description

the main class to read the style part of Canvas file

Constructor & Destructor Documentation

CanvasStyleManager::CanvasStyleManager ( CanvasParser parser)
explicit

constructor

CanvasStyleManager::~CanvasStyleManager ( )
virtual

destructor

CanvasStyleManager::CanvasStyleManager ( CanvasStyleManager const &  orig)
privatedelete

Member Function Documentation

bool CanvasStyleManager::get ( int  index,
MWAWColor color 
) const
protected

try to retrieve a color from the color index

bool CanvasStyleManager::get ( int  index,
MWAWGraphicStyle::Pattern pattern 
) const
protected

try to retrieve a pattern from the pattern index

std::vector< MWAWColor > const & CanvasStyleManager::getColorsList ( ) const
protected

returns the list of colors

MWAWInputStreamPtr & CanvasStyleManager::getInput ( )
protected
CanvasStyleManager& CanvasStyleManager::operator= ( CanvasStyleManager const &  orig)
privatedelete
bool CanvasStyleManager::readArrow ( MWAWGraphicStyle::Arrow arrow,
std::string &  extra 
)
protected

read an arrow shape

Referenced by readArrows().

bool CanvasStyleManager::readArrows ( )
protected

read the arrow shapes

bool CanvasStyleManager::readColors ( int  numColors)
protected

try to read the colors list

bool CanvasStyleManager::readColorValues ( MWAWEntry const &  entry)
protected

read the Windows CVal RSRC: v3 (a list of color)

bool CanvasStyleManager::readDashes ( int  numDashes,
bool  user = false 
)
protected

try to read the dash list

bool CanvasStyleManager::readFonts ( int  numFonts)
protected

try to read the fonts names

bool CanvasStyleManager::readGradient ( MWAWEntry const &  entry,
MWAWGraphicStyle::Gradient gradient 
)
protected

try to read a gradient (ObFL)

bool CanvasStyleManager::readPatterns ( int  numPatterns)
protected

try to read the pattern list

bool CanvasStyleManager::readPenSize ( )
protected

read the pen size

bool CanvasStyleManager::readSprays ( )
protected

try to read the spray

void CanvasStyleManager::setInput ( MWAWInputStreamPtr input)
protected

store the actual input

int CanvasStyleManager::version ( ) const

returns the file version

Friends And Related Function Documentation

friend class CanvasGraph
friend
friend class CanvasParser
friend

Member Data Documentation

CanvasParser* CanvasStyleManager::m_mainParser
protected

the main parser;

Referenced by readColors(), readDashes(), readFonts(), and readPatterns().

MWAWParserStatePtr CanvasStyleManager::m_parserState
protected
std::shared_ptr<CanvasStyleManagerInternal::State> CanvasStyleManager::m_state
protected

The documentation for this class was generated from the following files:

Generated on Tue Feb 8 2022 16:57:34 for libmwaw by doxygen 1.8.10