the main class to read a ApplePict file More...
#include <ApplePictParser.hxx>
Public Types | |
enum | DrawingMethod { D_FRAME, D_PAINT, D_ERASE, D_INVERT, D_FILL, D_TEXT, D_UNDEFINED } |
the drawing method: frame, paint, ... More... | |
Public Member Functions | |
ApplePictParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
constructor More... | |
virtual | ~ApplePictParser () |
destructor More... | |
bool | checkHeader (MWAWHeader *header, bool strict=false) |
checks if the document header is correct (or not) More... | |
void | parse (librevenge::RVNGDrawingInterface *documentInterface) |
the main parse function More... | |
Protected Member Functions | |
bool | readZone () |
try to read a zone More... | |
void | init () |
inits all internal variables More... | |
void | createDocument (librevenge::RVNGDrawingInterface *documentInterface) |
creates the listener which will be associated to the document More... | |
bool | createZones () |
finds the different objects zones More... | |
void | drawLine (MWAWVec2i const &pt) |
draw a line from current position to position More... | |
bool | readAndDrawRectangle (DrawingMethod method) |
read the current rectangle and draw it More... | |
void | drawRectangle (DrawingMethod method) |
draw the current rectangle More... | |
bool | readAndDrawRoundRectangle (DrawingMethod method) |
read the current round rectangle and draw it More... | |
void | drawRoundRectangle (DrawingMethod method) |
draw the current round rectangle More... | |
bool | readAndDrawCircle (DrawingMethod method) |
read the current circle and draw it More... | |
void | drawCircle (DrawingMethod method) |
draw the current circle More... | |
bool | readAndDrawPie (DrawingMethod method) |
read the current pie and draw it More... | |
void | drawPie (DrawingMethod method, int startAngle, int dAngle) |
draw the current circle More... | |
bool | readAndDrawPolygon (DrawingMethod method) |
read the current polygon and draw it More... | |
void | drawPolygon (DrawingMethod method) |
draw the current polygon More... | |
bool | readAndDrawText (std::string &text) |
read the current text and draw it More... | |
void | drawText (MWAWEntry const &entry) |
draw a current text More... | |
void | drawBitmap (ApplePictParserInternal::Bitmap const &bitmap) |
draw a bitmap More... | |
void | drawPixmap (ApplePictParserInternal::Pixmap const &pixmap) |
draw a pixmap More... | |
bool | readRGBColor (MWAWColor &color) |
try to read a rgb color More... | |
bool | readBWPattern (MWAWGraphicStyle::Pattern &pattern) |
try to read a bw pattern More... | |
bool | readColorPattern (MWAWGraphicStyle::Pattern &pattern) |
try to read a color pattern More... | |
bool | readRegion (ApplePictParserInternal::Region ®ion) |
try to read a region More... | |
bool | readBitmap (ApplePictParserInternal::Bitmap &bitmap, bool isPacked, bool hasRgn) |
read a bitmap More... | |
bool | readPixmap (ApplePictParserInternal::Pixmap &pixmap, bool isPacked, bool haColorTable, bool hasRectMode, bool hasRgn) |
read a pixmap More... | |
![]() | |
MWAWGraphicParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
constructor (protected) More... | |
MWAWGraphicParser (MWAWParserStatePtr state) | |
constructor using a state More... | |
![]() | |
MWAWParser (MWAWParserState::Type type, MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
constructor (protected) More... | |
MWAWParser (MWAWParserStatePtr state) | |
constructor using a state More... | |
void | setVersion (int vers) |
sets the document's version More... | |
void | setGraphicListener (MWAWGraphicListenerPtr &listener) |
sets the graphic listener More... | |
void | resetGraphicListener () |
resets the listener More... | |
void | setPresentationListener (MWAWPresentationListenerPtr &listener) |
sets the presentation listener More... | |
void | resetPresentationListener () |
resets the listener More... | |
void | setSpreadsheetListener (MWAWSpreadsheetListenerPtr &listener) |
sets the spreadsheet listener More... | |
void | resetSpreadsheetListener () |
resets the listener More... | |
void | setTextListener (MWAWTextListenerPtr &listener) |
sets the text listener More... | |
void | resetTextListener () |
resets the listener More... | |
void | setFontConverter (MWAWFontConverterPtr fontConverter) |
sets the font convertor More... | |
void | setAsciiName (char const *name) |
Debugging: change the default ascii file. More... | |
std::string const & | asciiName () const |
return the ascii file name More... | |
Static Protected Member Functions | |
static std::string | getDrawingName (DrawingMethod method) |
debug function to print a drawing method More... | |
static std::string | getModeName (int mode) |
debug function to print a mode name More... | |
Protected Attributes | |
shared_ptr < ApplePictParserInternal::State > | m_state |
the state More... | |
Friends | |
class | ApplePictParserInternal::SubDocument |
the main class to read a ApplePict file
ApplePictParser::ApplePictParser | ( | MWAWInputStreamPtr | input, |
MWAWRSRCParserPtr | rsrcParser, | ||
MWAWHeader * | header | ||
) |
constructor
|
virtual |
destructor
|
virtual |
|
protected |
creates the listener which will be associated to the document
Referenced by parse().
|
protected |
finds the different objects zones
Referenced by parse().
|
protected |
draw a bitmap
Referenced by readZone().
|
protected |
draw the current circle
Referenced by readAndDrawCircle(), and readZone().
|
protected |
draw a line from current position to position
Referenced by readZone().
|
protected |
draw the current circle
Referenced by readAndDrawPie(), and readZone().
|
protected |
draw a pixmap
Referenced by readZone().
|
protected |
draw the current polygon
Referenced by readAndDrawPolygon(), and readZone().
|
protected |
draw the current rectangle
Referenced by readAndDrawRectangle(), and readZone().
|
protected |
draw the current round rectangle
Referenced by readAndDrawRoundRectangle(), and readZone().
|
protected |
draw a current text
Referenced by ApplePictParserInternal::SubDocument::parse().
|
inlinestaticprotected |
debug function to print a drawing method
Referenced by readAndDrawCircle(), readAndDrawPie(), readAndDrawPolygon(), readAndDrawRectangle(), readAndDrawRoundRectangle(), and readZone().
|
staticprotected |
debug function to print a mode name
Referenced by readBitmap(), readPixmap(), and readZone().
|
protected |
inits all internal variables
Referenced by ApplePictParser().
|
virtual |
the main parse function
Implements MWAWGraphicParser.
|
protected |
read the current circle and draw it
Referenced by readZone().
|
protected |
read the current pie and draw it
Referenced by readZone().
|
protected |
read the current polygon and draw it
Referenced by readZone().
|
protected |
read the current rectangle and draw it
Referenced by readZone().
|
protected |
read the current round rectangle and draw it
Referenced by readZone().
|
protected |
read the current text and draw it
Referenced by readZone().
|
protected |
read a bitmap
Referenced by readZone().
|
protected |
try to read a bw pattern
Referenced by readZone().
|
protected |
try to read a color pattern
Referenced by readZone().
|
protected |
read a pixmap
Referenced by readColorPattern(), and readZone().
|
protected |
try to read a region
Referenced by readBitmap(), readPixmap(), and readZone().
|
protected |
try to read a rgb color
Referenced by readColorPattern(), and readZone().
|
protected |
try to read a zone
Referenced by createZones().
|
friend |
|
protected |
the state
Referenced by checkHeader(), createDocument(), drawBitmap(), drawCircle(), drawLine(), drawPie(), drawPixmap(), drawPolygon(), drawRectangle(), drawRoundRectangle(), drawText(), init(), readAndDrawCircle(), readAndDrawPie(), readAndDrawPolygon(), readAndDrawRectangle(), readAndDrawRoundRectangle(), readAndDrawText(), and readZone().