34 #ifndef MACDRAWPRO_STYLE_MANAGER
35 # define MACDRAWPRO_STYLE_MANAGER
41 #include <librevenge/librevenge.h>
49 namespace MacDrawProStyleManagerInternal
82 bool getDash(
int dId, std::vector<float> &dash)
const;
90 bool getPenSize(
int pId,
float &penSize)
const;
190 shared_ptr<MacDrawProStyleManagerInternal::State>
m_state;
bool readFAMap(MWAWEntry const &entry, int N, int fSz)
try to read the FA map DPFa:3
Definition: MacDrawProStyleManager.cxx:2304
bool readPreferences1(MWAWEntry const &entry)
try to read the first pref resource Prf1:256
Definition: MacDrawProStyleManager.cxx:2855
bool readParagraphStyles(MWAWEntry const &entry)
tries to read the paragraph style ( last style in v1 data fork )
Definition: MacDrawProStyleManager.cxx:927
bool getFont(int fId, MWAWFont &font) const
tries to return the font corresponding to an id
Definition: MacDrawProStyleManager.cxx:339
bool readRulerSettings(MWAWEntry const &entry)
tries to read the Ruler settings resource Rset:256 or Rst2:256
Definition: MacDrawProStyleManager.cxx:1674
bool readFontNames()
tries to read the font name resources Fmtx:256 and Fnms:256
Definition: MacDrawProStyleManager.cxx:1352
bool readUPDL(MWAWEntry const &entry)
try to read the UPDL resource, maybe U? Palette Display Layer
Definition: MacDrawProStyleManager.cxx:2716
bool readPatternMap(MWAWEntry const &entry, int N, int fSz)
try to read the display pattern DPPa:1
Definition: MacDrawProStyleManager.cxx:2199
bool readRulers(MWAWEntry const &entry, bool inRsrc=false)
tries to read the Ruler styles or the resource Drul:256
Definition: MacDrawProStyleManager.cxx:868
bool readHeaderInfoStylePart(std::string &extra)
tries to read the header info part which corresponds to style data
Definition: MacDrawProStyleManager.cxx:442
bool readGradientMap(MWAWEntry const &entry, int N, int fSz)
try to read the gradian map DPRa:2
Definition: MacDrawProStyleManager.cxx:2392
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
shared_ptr< MacDrawProStyleManagerInternal::State > m_state
the state
Definition: MacDrawProStyleManager.hxx:190
bool updateGradient(int gId, MWAWGraphicStyle &style) const
tries to update the style gradient
Definition: MacDrawProStyleManager.cxx:423
MacDrawProParser & m_parser
the main parser
Definition: MacDrawProStyleManager.hxx:186
bool readDashs(MWAWEntry const &entry, bool inRsrc=false)
tries to read the dash settings or the resource Dset:256
Definition: MacDrawProStyleManager.cxx:724
bool readPatternPalette(MWAWEntry const &entry, int fSz)
try to read the pattern palette resource PaEL:128
Definition: MacDrawProStyleManager.cxx:2254
bool getColor(int cId, MWAWColor &color) const
tries to return the color corresponding to an id
Definition: MacDrawProStyleManager.cxx:302
bool readPreferencesListBool(MWAWEntry const &entry, int num)
try to read the first pref resource Prf[23459]:256
Definition: MacDrawProStyleManager.cxx:2820
bool readGrid(MWAWEntry const &entry)
try to read the Grid: resource, grid of palette position
Definition: MacDrawProStyleManager.cxx:2766
the class to store a color
Definition: libmwaw_internal.hxx:182
bool readRSRCZones()
tries to read the RSRC zones
Definition: MacDrawProStyleManager.cxx:1063
bool readFAPalette(MWAWEntry const &entry, int fSz)
try to read the FA palette resource FaEL:128
Definition: MacDrawProStyleManager.cxx:2347
bool readPaletteDef(MWAWEntry const &entry)
try to read a palette definition PaDB:[0-3]
Definition: MacDrawProStyleManager.cxx:1830
Class to store font.
Definition: MWAWFont.hxx:43
bool getPattern(int pId, MWAWGraphicStyle::Pattern &pattern) const
tries to return the pattern corresponding to an id
Definition: MacDrawProStyleManager.cxx:382
bool getParagraph(int pId, MWAWParagraph ¶) const
tries to return the paragraph corresponding to an id
Definition: MacDrawProStyleManager.cxx:350
bool readColorPatterns(MWAWEntry const &entry)
tries to read the color pattern colP:256
Definition: MacDrawProStyleManager.cxx:1530
bool readPatternsToolList(MWAWEntry const &entry)
tries to read the list of pattern patR:256: list of BW/Color patterns list which appear in the patter...
Definition: MacDrawProStyleManager.cxx:1626
bool readPreferences8(MWAWEntry const &entry)
try to read the 8 pref resource Prf8:256
Definition: MacDrawProStyleManager.cxx:2955
the main class to read a MacDraw II file
Definition: MacDrawProParser.hxx:63
the main class to read a MacDraw II file
Definition: MacDrawProStyleManager.hxx:59
bool readArrows(MWAWEntry const &entry, bool inRsrc=false)
tries to read the Arrow styles or the resource Aset:256
Definition: MacDrawProStyleManager.cxx:660
virtual ~MacDrawProStyleManager()
destructor
Definition: MacDrawProStyleManager.cxx:293
MWAWParserStatePtr m_parserState
the parser state
Definition: MacDrawProStyleManager.hxx:188
bool readRSRCDstl(MWAWEntry const &entry)
reads the Dstl:256 resource (unknown content)
Definition: MacDrawProStyleManager.cxx:1783
bool readDocumentInfo(MWAWEntry const &entry)
tries to read the Document Information resource Dinf:256
Definition: MacDrawProStyleManager.cxx:1261
bool readPens(MWAWEntry const &entry, bool inRsrc=false)
tries to read the Pen styles or the resource PSet:256
Definition: MacDrawProStyleManager.cxx:798
bool getPenSize(int pId, float &penSize) const
tries to return the pen size corresponding to an id
Definition: MacDrawProStyleManager.cxx:371
bool readColorPalette(MWAWEntry const &entry, int fSz)
try to read the color palette resource CoEL:128
Definition: MacDrawProStyleManager.cxx:2132
bool readBWPatterns(MWAWEntry const &entry)
tries to read the BW pattern bawP:256
Definition: MacDrawProStyleManager.cxx:1475
bool getDash(int dId, std::vector< float > &dash) const
tries to return the dash definition corresponding to an id
Definition: MacDrawProStyleManager.cxx:360
class to store the paragraph properties
Definition: MWAWParagraph.hxx:81
bool readColorMap(MWAWEntry const &entry, int N, int fSz)
try to read the display color map DPCo:0
Definition: MacDrawProStyleManager.cxx:2061
bool readStyles(long const (&sizeZones)[6])
tries to read the style zone knowings the size and the number of data in each zones ...
Definition: MacDrawProStyleManager.cxx:494
bool readPaletteData(MWAWEntry const &entry, int dataSz)
try to read a palette data
Definition: MacDrawProStyleManager.cxx:1957
bool readColors(MWAWEntry const &entry)
tries to read colors map Ctbl:256
Definition: MacDrawProStyleManager.cxx:1421
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...
Definition: MacDrawProStyleManager.cxx:2656
bool readViews(MWAWEntry const &entry)
reads the view positions resource Dvws:256
Definition: MacDrawProStyleManager.cxx:1728
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
bool readPreferences(MWAWEntry const &entry)
tries to read the main Preferences resource Pref:256
Definition: MacDrawProStyleManager.cxx:1210
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
bool readGradientPalette(MWAWEntry const &entry, int fSz)
try to read the gradient palette resource RaEL:128
Definition: MacDrawProStyleManager.cxx:2512
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:171
bool readPreferences6(MWAWEntry const &entry)
try to read the spelling pref resource Prf6:256
Definition: MacDrawProStyleManager.cxx:2901
bool readPaletteMap(MWAWEntry const &entry, int N, int dataSz)
try to read a palette map
Definition: MacDrawProStyleManager.cxx:2007
bool readFontStyles(MWAWEntry const &entry)
tries to read the font style ( last style in v0 data fork )
Definition: MacDrawProStyleManager.cxx:546
MacDrawProStyleManager(MacDrawProParser &parser)
constructor
Definition: MacDrawProStyleManager.cxx:288