34#ifndef APPLEPICT_PARSER
35# define APPLEPICT_PARSER
40#include <librevenge/librevenge.h>
164#if !defined(__clang__)
177 std::shared_ptr<ApplePictParserInternal::State>
m_state;
Internal: the subdocument of a ApplePictParser.
Definition: ApplePictParser.cxx:733
the main class to read a ApplePict file
Definition: ApplePictParser.hxx:62
static std::string getModeName(int mode)
debug function to print a mode name
Definition: ApplePictParser.cxx:2193
bool readAndDrawRoundRectangle(DrawingMethod method)
read the current round rectangle and draw it
Definition: ApplePictParser.cxx:1630
bool readBitmap(ApplePictParserInternal::Bitmap &bitmap, bool isPacked, bool hasRgn)
read a bitmap
Definition: ApplePictParser.cxx:1808
~ApplePictParser() final
destructor
Definition: ApplePictParser.cxx:787
std::shared_ptr< ApplePictParserInternal::State > m_state
the state
Definition: ApplePictParser.hxx:177
ApplePictParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: ApplePictParser.cxx:780
void drawPie(DrawingMethod method, int startAngle, int dAngle)
draw the current circle
Definition: ApplePictParser.cxx:2425
bool readRGBColor(MWAWColor &color)
try to read a rgb color
Definition: ApplePictParser.cxx:1715
bool readAndDrawPolygon(DrawingMethod method)
read the current polygon and draw it
Definition: ApplePictParser.cxx:1687
bool readZone()
try to read a zone
Definition: ApplePictParser.cxx:877
bool readAndDrawPie(DrawingMethod method)
read the current pie and draw it
Definition: ApplePictParser.cxx:1666
void init()
inits all internal variables
Definition: ApplePictParser.cxx:791
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:1648
void drawLine(MWAWVec2i const &pt)
draw a line from current position to position
Definition: ApplePictParser.cxx:2368
bool readBWPattern(MWAWGraphicStyle::Pattern &pattern)
try to read a bw pattern
Definition: ApplePictParser.cxx:1727
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: ApplePictParser.cxx:2264
bool createZones()
finds the different objects zones
Definition: ApplePictParser.cxx:853
void drawBitmap(ApplePictParserInternal::Bitmap const &bitmap)
draw a bitmap
Definition: ApplePictParser.cxx:2549
void drawRectangle(DrawingMethod method)
draw the current rectangle
Definition: ApplePictParser.cxx:2383
void drawPolygon(DrawingMethod method)
draw the current polygon
Definition: ApplePictParser.cxx:2484
void drawText(MWAWEntry const &entry)
draw a current text
Definition: ApplePictParser.cxx:2510
bool readColorPattern(MWAWGraphicStyle::Pattern &pattern)
try to read a color pattern
Definition: ApplePictParser.cxx:1743
bool readAndDrawRectangle(DrawingMethod method)
read the current rectangle and draw it
Definition: ApplePictParser.cxx:1612
bool readPixmap(ApplePictParserInternal::Pixmap &pixmap, bool isPacked, bool haColorTable, bool hasRectMode, bool hasRgn)
read a pixmap
Definition: ApplePictParser.cxx:1863
void drawCircle(DrawingMethod method)
draw the current circle
Definition: ApplePictParser.cxx:2412
bool readRegion(ApplePictParserInternal::Region ®ion)
try to read a region
Definition: ApplePictParser.cxx:2140
DrawingMethod
the drawing method: frame, paint, ...
Definition: ApplePictParser.hxx:66
@ D_INVERT
Definition: ApplePictParser.hxx:67
@ D_ERASE
Definition: ApplePictParser.hxx:67
@ D_FILL
Definition: ApplePictParser.hxx:67
@ D_PAINT
Definition: ApplePictParser.hxx:67
@ D_UNDEFINED
Definition: ApplePictParser.hxx:68
@ D_FRAME
Definition: ApplePictParser.hxx:67
@ D_TEXT
Definition: ApplePictParser.hxx:68
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
the main parse function
Definition: ApplePictParser.cxx:804
bool readQuicktime(MWAWEmbeddedObject &object, MWAWBox2f &bdBox)
try to read a quicktime zone
Definition: ApplePictParser.cxx:1944
void drawRoundRectangle(DrawingMethod method)
draw the current round rectangle
Definition: ApplePictParser.cxx:2399
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: ApplePictParser.cxx:829
bool readAndDrawText(std::string &text)
read the current text and draw it
Definition: ApplePictParser.cxx:1774
void drawPixmap(ApplePictParserInternal::Pixmap const &pixmap)
draw a pixmap
Definition: ApplePictParser.cxx:2566
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:251
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
Internal: the structures of a ApplePictParser.
Definition: ApplePictParser.cxx:61
Definition: MWAWDocument.hxx:57
the class to store a color
Definition: libmwaw_internal.hxx:192
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467