34 #ifndef APPLEPICT_PARSER
35 # define APPLEPICT_PARSER
40 #include <librevenge/librevenge.h>
80 void parse(librevenge::RVNGDrawingInterface *documentInterface);
90 void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
164 #if !defined(__clang__)
177 shared_ptr<ApplePictParserInternal::State>
m_state;
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: ApplePictParser.cxx:2201
bool readPixmap(ApplePictParserInternal::Pixmap &pixmap, bool isPacked, bool haColorTable, bool hasRectMode, bool hasRgn)
read a pixmap
Definition: ApplePictParser.cxx:1800
Definition: ApplePictParser.hxx:67
bool readRGBColor(MWAWColor &color)
try to read a rgb color
Definition: ApplePictParser.cxx:1652
void drawPolygon(DrawingMethod method)
draw the current polygon
Definition: ApplePictParser.cxx:2420
ApplePictParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: ApplePictParser.cxx:718
Internal and low level: a class used to read pack/unpack black-white bitmap.
Definition: ApplePictParser.cxx:91
Definition: ApplePictParser.hxx:68
DrawingMethod
the drawing method: frame, paint, ...
Definition: ApplePictParser.hxx:66
Definition: ApplePictParser.hxx:67
bool readAndDrawText(std::string &text)
read the current text and draw it
Definition: ApplePictParser.cxx:1711
bool readBitmap(ApplePictParserInternal::Bitmap &bitmap, bool isPacked, bool hasRgn)
read a bitmap
Definition: ApplePictParser.cxx:1745
Definition: ApplePictParser.hxx:67
static std::string getModeName(int mode)
debug function to print a mode name
Definition: ApplePictParser.cxx:2130
void init()
inits all internal variables
Definition: ApplePictParser.cxx:728
the main class to read a ApplePict file
Definition: ApplePictParser.hxx:61
the class to store a color
Definition: libmwaw_internal.hxx:196
void drawRectangle(DrawingMethod method)
draw the current rectangle
Definition: ApplePictParser.cxx:2319
bool readColorPattern(MWAWGraphicStyle::Pattern &pattern)
try to read a color pattern
Definition: ApplePictParser.cxx:1680
void drawRoundRectangle(DrawingMethod method)
draw the current round rectangle
Definition: ApplePictParser.cxx:2335
Definition: ApplePictParser.hxx:67
Definition: ApplePictParser.hxx:68
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: ApplePictParser.cxx:766
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:527
bool readZone()
try to read a zone
Definition: ApplePictParser.cxx:814
static std::string getDrawingName(DrawingMethod method)
debug function to print a drawing method
Definition: ApplePictParser.hxx:148
bool readAndDrawCircle(DrawingMethod method)
read the current circle and draw it
Definition: ApplePictParser.cxx:1585
internal: low level class to store a region
Definition: ApplePictParser.cxx:64
void drawLine(MWAWVec2i const &pt)
draw a line from current position to position
Definition: ApplePictParser.cxx:2304
bool readBWPattern(MWAWGraphicStyle::Pattern &pattern)
try to read a bw pattern
Definition: ApplePictParser.cxx:1664
bool readRegion(ApplePictParserInternal::Region ®ion)
try to read a region
Definition: ApplePictParser.cxx:2077
void drawPixmap(ApplePictParserInternal::Pixmap const &pixmap)
draw a pixmap
Definition: ApplePictParser.cxx:2502
small class use to define a embedded object
Definition: libmwaw_internal.hxx:439
bool readAndDrawPie(DrawingMethod method)
read the current pie and draw it
Definition: ApplePictParser.cxx:1603
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:517
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:250
void drawBitmap(ApplePictParserInternal::Bitmap const &bitmap)
draw a bitmap
Definition: ApplePictParser.cxx:2485
shared_ptr< ApplePictParserInternal::State > m_state
the state
Definition: ApplePictParser.hxx:177
void drawCircle(DrawingMethod method)
draw the current circle
Definition: ApplePictParser.cxx:2348
Internal and low level: a class used to read pack/unpack color pixmap (version 2) ...
Definition: ApplePictParser.cxx:249
Internal: the structures of a ApplePictParser.
Definition: ApplePictParser.cxx:60
bool readQuicktime(MWAWEmbeddedObject &object, MWAWBox2f &bdBox)
try to read a quicktime zone
Definition: ApplePictParser.cxx:1881
bool readAndDrawRoundRectangle(DrawingMethod method)
read the current round rectangle and draw it
Definition: ApplePictParser.cxx:1567
Internal: the subdocument of a ApplePictParser.
Definition: ApplePictParser.cxx:665
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
Definition: ApplePictParser.hxx:67
virtual ~ApplePictParser()
destructor
Definition: ApplePictParser.cxx:724
void parse(librevenge::RVNGDrawingInterface *documentInterface)
the main parse function
Definition: ApplePictParser.cxx:741
bool createZones()
finds the different objects zones
Definition: ApplePictParser.cxx:790
void drawPie(DrawingMethod method, int startAngle, int dAngle)
draw the current circle
Definition: ApplePictParser.cxx:2361
void drawText(MWAWEntry const &entry)
draw a current text
Definition: ApplePictParser.cxx:2446
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:171
bool readAndDrawRectangle(DrawingMethod method)
read the current rectangle and draw it
Definition: ApplePictParser.cxx:1549
bool readAndDrawPolygon(DrawingMethod method)
read the current polygon and draw it
Definition: ApplePictParser.cxx:1624