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)[6]) |
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 | getParagraph (int pId, MWAWParagraph ¶) const |
tries to return the paragraph 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 | updateGradient (int gId, MWAWGraphicStyle &style) const |
tries to update the style gradient More... | |
bool | readFontStyles (MWAWEntry const &entry) |
tries to read the font style ( last style in v0 data fork ) More... | |
bool | readParagraphStyles (MWAWEntry const &entry) |
tries to read the paragraph style ( last style in v1 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... | |
bool | readPaletteDef (MWAWEntry const &entry) |
try to read a palette definition PaDB:[0-3] More... | |
bool | readPaletteMap (MWAWEntry const &entry, int N, int dataSz) |
try to read a palette map More... | |
bool | readPaletteData (MWAWEntry const &entry, int dataSz) |
try to read a palette data More... | |
bool | readColorMap (MWAWEntry const &entry, int N, int fSz) |
try to read the display color map DPCo:0 More... | |
bool | readPatternMap (MWAWEntry const &entry, int N, int fSz) |
try to read the display pattern DPPa:1 More... | |
bool | readGradientMap (MWAWEntry const &entry, int N, int fSz) |
try to read the gradian map DPRa:2 More... | |
bool | readFAMap (MWAWEntry const &entry, int N, int fSz) |
try to read the FA map DPFa:3 More... | |
bool | readColorPalette (MWAWEntry const &entry, int fSz) |
try to read the color palette resource CoEL:128 More... | |
bool | readFAPalette (MWAWEntry const &entry, int fSz) |
try to read the FA palette resource FaEL:128 More... | |
bool | readGradientPalette (MWAWEntry const &entry, int fSz) |
try to read the gradient palette resource RaEL:128 More... | |
bool | readPatternPalette (MWAWEntry const &entry, int fSz) |
try to read the pattern palette resource PaEL:128 More... | |
bool | readListNames (MWAWEntry const &entry, int N=-1) |
try to read a list of names : CoNa:128 color name, FaNa:128 font color name, PaNa:128... More... | |
bool | readListNames (char const *type) |
try to read a splitted list of names More... | |
bool | readPreferencesListBool (MWAWEntry const &entry, int num) |
try to read the first pref resource Prf[23459]:256 More... | |
bool | readPreferences1 (MWAWEntry const &entry) |
try to read the first pref resource Prf1:256 More... | |
bool | readPreferences6 (MWAWEntry const &entry) |
try to read the spelling pref resource Prf6:256 More... | |
bool | readPreferences8 (MWAWEntry const &entry) |
try to read the 8 pref resource Prf8:256 More... | |
bool | readUPDL (MWAWEntry const &entry) |
try to read the UPDL resource, maybe U? Palette Display Layer More... | |
bool | readGrid (MWAWEntry const &entry) |
try to read the Grid: resource, grid of palette position More... | |
Protected Attributes | |
MacDrawProParser & | m_parser |
the main parser More... | |
MWAWParserStatePtr | m_parserState |
the parser state More... | |
shared_ptr < MacDrawProStyleManagerInternal::State > | m_state |
the state More... | |
Friends | |
class | MacDrawProParser |
the main class to read a MacDraw II file
MacDrawProStyleManager::MacDrawProStyleManager | ( | MacDrawProParser & | parser | ) |
constructor
|
virtual |
destructor
|
protected |
tries to return the color corresponding to an id
Referenced by readFontStyles().
|
protected |
tries to return the dash definition corresponding to an id
|
protected |
tries to return the font corresponding to an id
|
protected |
tries to return the paragraph corresponding to an id
|
protected |
tries to return the pattern corresponding to an id
|
protected |
tries to return the pen size corresponding to an id
|
protected |
tries to read the Arrow styles or the resource Aset:256
Referenced by readRSRCZones(), and readStyles().
|
protected |
tries to read the BW pattern bawP:256
Referenced by readRSRCZones().
|
protected |
try to read the display color map DPCo:0
Referenced by readPaletteMap().
|
protected |
try to read the color palette resource CoEL:128
Referenced by readPaletteData().
|
protected |
tries to read the color pattern colP:256
Referenced by readRSRCZones().
|
protected |
tries to read colors map Ctbl:256
Referenced by readRSRCZones().
|
protected |
tries to read the dash settings or the resource Dset:256
Referenced by readRSRCZones(), and readStyles().
|
protected |
tries to read the Document Information resource Dinf:256
Referenced by readRSRCZones().
|
protected |
try to read the FA map DPFa:3
Referenced by readPaletteMap().
|
protected |
try to read the FA palette resource FaEL:128
Referenced by readPaletteData().
|
protected |
tries to read the font name resources Fmtx:256 and Fnms:256
Referenced by readRSRCZones().
|
protected |
tries to read the font style ( last style in v0 data fork )
Referenced by readStyles().
|
protected |
try to read the gradian map DPRa:2
Referenced by readPaletteMap().
|
protected |
try to read the gradient palette resource RaEL:128
Referenced by readPaletteData().
|
protected |
try to read the Grid: resource, grid of palette position
Referenced by readRSRCZones().
|
protected |
tries to read the header info part which corresponds to style data
|
protected |
try to read a list of names : CoNa:128 color name, FaNa:128 font color name, PaNa:128...
Referenced by readListNames(), readPaletteDef(), and readRSRCZones().
|
protected |
try to read a splitted list of names
|
protected |
try to read a palette data
Referenced by readPaletteDef().
|
protected |
try to read a palette definition PaDB:[0-3]
Referenced by readRSRCZones().
|
protected |
try to read a palette map
Referenced by readPaletteDef().
|
protected |
tries to read the paragraph style ( last style in v1 data fork )
Referenced by readStyles().
|
protected |
try to read the display pattern DPPa:1
Referenced by readPaletteMap().
|
protected |
try to read the pattern palette resource PaEL:128
Referenced by readPaletteData().
|
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().
|
protected |
tries to read the Pen styles or the resource PSet:256
Referenced by readRSRCZones(), and readStyles().
|
protected |
tries to read the main Preferences resource Pref:256
Referenced by readRSRCZones().
|
protected |
try to read the first pref resource Prf1:256
Referenced by readRSRCZones().
|
protected |
try to read the spelling pref resource Prf6:256
Referenced by readRSRCZones().
|
protected |
try to read the 8 pref resource Prf8:256
Referenced by readRSRCZones().
|
protected |
try to read the first pref resource Prf[23459]:256
Referenced by readRSRCZones().
|
protected |
reads the Dstl:256 resource (unknown content)
Referenced by readRSRCZones().
|
protected |
tries to read the RSRC zones
|
protected |
tries to read the Ruler styles or the resource Drul:256
Referenced by readRSRCZones(), and readStyles().
|
protected |
tries to read the Ruler settings resource Rset:256 or Rst2:256
Referenced by readRSRCZones().
|
protected |
tries to read the style zone knowings the size and the number of data in each zones
|
protected |
try to read the UPDL resource, maybe U? Palette Display Layer
Referenced by readRSRCZones().
|
protected |
reads the view positions resource Dvws:256
Referenced by readRSRCZones().
|
protected |
tries to update the style gradient
|
friend |
|
protected |
the main parser
|
protected |
the parser state
Referenced by getColor(), getPattern(), readArrows(), readBWPatterns(), readColorMap(), readColorPalette(), readColorPatterns(), readColors(), readDashs(), readDocumentInfo(), readFAMap(), readFAPalette(), readFontNames(), readFontStyles(), readGradientMap(), readGradientPalette(), readGrid(), readHeaderInfoStylePart(), readListNames(), readPaletteData(), readPaletteDef(), readPaletteMap(), readParagraphStyles(), readPatternMap(), readPatternPalette(), readPatternsToolList(), readPens(), readPreferences(), readPreferences1(), readPreferences6(), readPreferences8(), readPreferencesListBool(), readRSRCDstl(), readRSRCZones(), readRulers(), readRulerSettings(), readStyles(), readUPDL(), and readViews().
|
protected |
the state
Referenced by getColor(), getDash(), getFont(), getParagraph(), getPattern(), getPenSize(), readArrows(), readBWPatterns(), readColorMap(), readColorPatterns(), readColors(), readDashs(), readDocumentInfo(), readFAMap(), readFontStyles(), readGradientMap(), readHeaderInfoStylePart(), readParagraphStyles(), readPatternMap(), readPatternsToolList(), readPens(), readRulers(), and updateGradient().