MacDrawProStyleManager Class Reference

the main class to read a MacDraw II file More...

#include <MacDrawProStyleManager.hxx>

Public Member Functions

 MacDrawProStyleManager (MacDrawProParser &parser)
 constructor More...
 
virtual ~MacDrawProStyleManager ()
 destructor More...
 

Protected Member Functions

bool readRSRCZones ()
 tries to read the RSRC zones More...
 
bool readHeaderInfoStylePart (std::string &extra)
 tries to read the header info part which corresponds to style data More...
 
bool readStyles (long const (&sizeZones)[5])
 tries to read the style zone knowings the size and the number of data in each zones More...
 
bool getColor (int cId, MWAWColor &color) const
 tries to return the color corresponding to an id More...
 
bool getDash (int dId, std::vector< float > &dash) const
 tries to return the dash definition corresponding to an id More...
 
bool getFont (int fId, MWAWFont &font) const
 tries to return the font corresponding to an id More...
 
bool getPattern (int pId, MWAWGraphicStyle::Pattern &pattern) const
 tries to return the pattern corresponding to an id More...
 
bool getPenSize (int pId, float &penSize) const
 tries to return the pen size corresponding to an id More...
 
bool readFontStyles (MWAWEntry const &entry)
 tries to read the font style ( last style in data fork ) More...
 
bool readArrows (MWAWEntry const &entry, bool inRsrc=false)
 tries to read the Arrow styles or the resource Aset:256 More...
 
bool readDashs (MWAWEntry const &entry, bool inRsrc=false)
 tries to read the dash settings or the resource Dset:256 More...
 
bool readPens (MWAWEntry const &entry, bool inRsrc=false)
 tries to read the Pen styles or the resource PSet:256 More...
 
bool readRulers (MWAWEntry const &entry, bool inRsrc=false)
 tries to read the Ruler styles or the resource Drul:256 More...
 
bool readDocumentInfo (MWAWEntry const &entry)
 tries to read the Document Information resource Dinf:256 More...
 
bool readPreferences (MWAWEntry const &entry)
 tries to read the main Preferences resource Pref:256 More...
 
bool readFontNames ()
 tries to read the font name resources Fmtx:256 and Fnms:256 More...
 
bool readColors (MWAWEntry const &entry)
 tries to read colors map Ctbl:256 More...
 
bool readBWPatterns (MWAWEntry const &entry)
 tries to read the BW pattern bawP:256 More...
 
bool readColorPatterns (MWAWEntry const &entry)
 tries to read the color pattern colP:256 More...
 
bool readPatternsToolList (MWAWEntry const &entry)
 tries to read the list of pattern patR:256: list of BW/Color patterns list which appear in the patterns tools More...
 
bool readRulerSettings (MWAWEntry const &entry)
 tries to read the Ruler settings resource Rset:256 or Rst2:256 More...
 
bool readViews (MWAWEntry const &entry)
 reads the view positions resource Dvws:256 More...
 
bool readRSRCDstl (MWAWEntry const &entry)
 reads the Dstl:256 resource (unknown content) More...
 

Protected Attributes

MacDrawProParserm_parser
 the main parser More...
 
MWAWParserStatePtr m_parserState
 the parser state More...
 
shared_ptr
< MacDrawProStyleManagerInternal::State
m_state
 the state More...
 

Friends

class MacDrawProParser
 

Detailed Description

the main class to read a MacDraw II file

Constructor & Destructor Documentation

MacDrawProStyleManager::MacDrawProStyleManager ( MacDrawProParser parser)

constructor

MacDrawProStyleManager::~MacDrawProStyleManager ( )
virtual

destructor

Member Function Documentation

bool MacDrawProStyleManager::getColor ( int  cId,
MWAWColor color 
) const
protected

tries to return the color corresponding to an id

bool MacDrawProStyleManager::getDash ( int  dId,
std::vector< float > &  dash 
) const
protected

tries to return the dash definition corresponding to an id

bool MacDrawProStyleManager::getFont ( int  fId,
MWAWFont font 
) const
protected

tries to return the font corresponding to an id

bool MacDrawProStyleManager::getPattern ( int  pId,
MWAWGraphicStyle::Pattern pattern 
) const
protected

tries to return the pattern corresponding to an id

bool MacDrawProStyleManager::getPenSize ( int  pId,
float &  penSize 
) const
protected

tries to return the pen size corresponding to an id

bool MacDrawProStyleManager::readArrows ( MWAWEntry const &  entry,
bool  inRsrc = false 
)
protected

tries to read the Arrow styles or the resource Aset:256

Referenced by readRSRCZones(), and readStyles().

bool MacDrawProStyleManager::readBWPatterns ( MWAWEntry const &  entry)
protected

tries to read the BW pattern bawP:256

Referenced by readRSRCZones().

bool MacDrawProStyleManager::readColorPatterns ( MWAWEntry const &  entry)
protected

tries to read the color pattern colP:256

Referenced by readRSRCZones().

bool MacDrawProStyleManager::readColors ( MWAWEntry const &  entry)
protected

tries to read colors map Ctbl:256

Referenced by readRSRCZones().

bool MacDrawProStyleManager::readDashs ( MWAWEntry const &  entry,
bool  inRsrc = false 
)
protected

tries to read the dash settings or the resource Dset:256

Referenced by readRSRCZones(), and readStyles().

bool MacDrawProStyleManager::readDocumentInfo ( MWAWEntry const &  entry)
protected

tries to read the Document Information resource Dinf:256

Referenced by readRSRCZones().

bool MacDrawProStyleManager::readFontNames ( )
protected

tries to read the font name resources Fmtx:256 and Fnms:256

Referenced by readRSRCZones().

bool MacDrawProStyleManager::readFontStyles ( MWAWEntry const &  entry)
protected

tries to read the font style ( last style in data fork )

Referenced by readStyles().

bool MacDrawProStyleManager::readHeaderInfoStylePart ( std::string &  extra)
protected

tries to read the header info part which corresponds to style data

bool MacDrawProStyleManager::readPatternsToolList ( MWAWEntry const &  entry)
protected

tries to read the list of pattern patR:256: list of BW/Color patterns list which appear in the patterns tools

Referenced by readRSRCZones().

bool MacDrawProStyleManager::readPens ( MWAWEntry const &  entry,
bool  inRsrc = false 
)
protected

tries to read the Pen styles or the resource PSet:256

Referenced by readRSRCZones(), and readStyles().

bool MacDrawProStyleManager::readPreferences ( MWAWEntry const &  entry)
protected

tries to read the main Preferences resource Pref:256

Referenced by readRSRCZones().

bool MacDrawProStyleManager::readRSRCDstl ( MWAWEntry const &  entry)
protected

reads the Dstl:256 resource (unknown content)

Referenced by readRSRCZones().

bool MacDrawProStyleManager::readRSRCZones ( )
protected

tries to read the RSRC zones

bool MacDrawProStyleManager::readRulers ( MWAWEntry const &  entry,
bool  inRsrc = false 
)
protected

tries to read the Ruler styles or the resource Drul:256

Referenced by readRSRCZones(), and readStyles().

bool MacDrawProStyleManager::readRulerSettings ( MWAWEntry const &  entry)
protected

tries to read the Ruler settings resource Rset:256 or Rst2:256

Referenced by readRSRCZones().

bool MacDrawProStyleManager::readStyles ( long const (&)  sizeZones[5])
protected

tries to read the style zone knowings the size and the number of data in each zones

bool MacDrawProStyleManager::readViews ( MWAWEntry const &  entry)
protected

reads the view positions resource Dvws:256

Referenced by readRSRCZones().

Friends And Related Function Documentation

friend class MacDrawProParser
friend

Member Data Documentation

MacDrawProParser& MacDrawProStyleManager::m_parser
protected

the main parser


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

Generated on Tue Oct 28 2014 13:12:08 for libmwaw by doxygen 1.8.8