class to read/store MacDraft5 v4-v5 styles More...
#include <MacDraft5StyleManager.hxx>
Public Member Functions | |
MacDraft5StyleManager (MacDraft5Parser &parser) | |
constructor More... | |
virtual | ~MacDraft5StyleManager () |
destructor More... | |
Protected Member Functions | |
bool | readResources () |
try to read the resource block: either the resource fork(v4) or last file's part (v5) More... | |
bool | readBitmapZones () |
try to read the bitmap zones: end file(v4) or the zone before the rsrc part (v5) More... | |
long | getEndDataPosition () const |
returns the end of data position (before the bitmap zones) if known or -1 More... | |
std::string | updateLineStyle (int type, int id, int dashId, MWAWGraphicStyle &style) |
update the line style ( using line type and col/pat id and the dashId). More... | |
std::string | updateSurfaceStyle (int type, int id, MWAWGraphicStyle &style) |
update the surface graphic style ( using surface type and id ). More... | |
std::string | updateArrows (int startId, int endId, MWAWGraphicStyle &style) |
update the arrow style More... | |
bool | getColor (int cId, MWAWColor &color) const |
tries to return the color corresponding to an id More... | |
bool | getBitmap (int bId, MWAWEmbeddedObject &picture) const |
try to get a bitmap More... | |
bool | getPixmap (int pId, MWAWEmbeddedObject &picture, MWAWVec2i &pictSize, MWAWColor &avColor) const |
try to get a pixpat pattern More... | |
void | updatePatterns () |
try to update the pattern list More... | |
bool | readResource (MWAWEntry &entry, bool inRsrc) |
try to read a resource More... | |
bool | readBitmap (MWAWEntry const &entry) |
try to a bitmap More... | |
bool | readColors (MWAWEntry const &entry, bool inRsrc) |
try to read a list of colors : pltt 128 More... | |
bool | readDashes (MWAWEntry const &entry, bool inRsrc) |
try to read a list of dashs : DASH 128 More... | |
bool | readFonts (MWAWEntry const &entry, bool inRsrc) |
try to read FNUS:1 resource More... | |
bool | readPatterns (MWAWEntry const &entry, bool inRsrc) |
try to read a list of patterns/gradient? : PLDT 128 More... | |
bool | readPixPat (MWAWEntry const &entry, bool inRsrc) |
try to read a ppat resource More... | |
bool | readVersion (MWAWEntry &entry) |
try to read a version (in data fork) More... | |
bool | readRSRCList (MWAWEntry const &entry, bool inRsrc) |
try to read a resource list: PATL:128 or Opac:128+xxx More... | |
bool | readBitmapList (MWAWEntry const &entry, bool inRsrc) |
try to read BITList:0 resource More... | |
bool | readOpcd (MWAWEntry const &entry, bool inRsrc) |
try to read Opcd:131 resource (unknown) More... | |
Protected Attributes | |
MacDraft5Parser & | m_parser |
the main parser More... | |
MWAWParserStatePtr | m_parserState |
the parser state More... | |
std::shared_ptr< MacDraft5StyleManagerInternal::State > | m_state |
the state More... | |
Friends | |
class | MacDraft5Parser |
class to read/store MacDraft5 v4-v5 styles
|
explicit |
constructor
|
virtual |
destructor
|
protected |
try to get a bitmap
|
protected |
tries to return the color corresponding to an id
|
protected |
returns the end of data position (before the bitmap zones) if known or -1
|
protected |
try to get a pixpat pattern
Referenced by updatePatterns().
|
protected |
try to a bitmap
Referenced by readBitmapZones().
|
protected |
try to read BITList:0 resource
Referenced by readResource().
|
protected |
try to read the bitmap zones: end file(v4) or the zone before the rsrc part (v5)
|
protected |
try to read a list of colors : pltt 128
Referenced by readResource().
|
protected |
try to read a list of dashs : DASH 128
Referenced by readResource().
|
protected |
try to read FNUS:1 resource
Referenced by readResource().
|
protected |
try to read Opcd:131 resource (unknown)
Referenced by readResource().
|
protected |
try to read a list of patterns/gradient? : PLDT 128
Referenced by readResource().
|
protected |
try to read a ppat resource
Referenced by readResource().
|
protected |
try to read a resource
Referenced by readResources().
|
protected |
try to read the resource block: either the resource fork(v4) or last file's part (v5)
|
protected |
try to read a resource list: PATL:128 or Opac:128+xxx
Referenced by readResource().
|
protected |
try to read a version (in data fork)
Referenced by readResource().
|
protected |
update the arrow style
|
protected |
update the line style ( using line type and col/pat id and the dashId).
|
protected |
try to update the pattern list
Referenced by readResources().
|
protected |
update the surface graphic style ( using surface type and id ).
|
friend |
|
protected |
the main parser
Referenced by readResource().
|
protected |
the parser state
Referenced by readBitmap(), readBitmapList(), readBitmapZones(), readColors(), readDashes(), readFonts(), readOpcd(), readPatterns(), readPixPat(), readResource(), readResources(), readRSRCList(), and readVersion().
|
protected |
the state
Referenced by getBitmap(), getColor(), getEndDataPosition(), getPixmap(), readBitmap(), readBitmapList(), readBitmapZones(), readColors(), readDashes(), readPatterns(), readPixPat(), readResources(), updateArrows(), updateLineStyle(), updatePatterns(), and updateSurfaceStyle().