WPG2Parser Class Reference

#include <WPG2Parser.h>

Inheritance diagram for WPG2Parser:
WPGXParser

Classes

class  ObjectCharacterization

Public Member Functions

 WPG2Parser (librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter, bool isEmbedded=false)
bool parse () override
Public Member Functions inherited from WPGXParser
 WPGXParser (librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter)
 WPGXParser (const WPGXParser &parser)
virtual ~WPGXParser ()
unsigned char readU8 ()
unsigned short readU16 ()
unsigned int readU32 ()
short readS16 ()
int readS32 ()
unsigned int readVariableLengthInteger ()
WPGXParseroperator= (const WPGXParser &parser)

Private Member Functions

void handleStartWPG ()
void handleEndWPG ()
void handleFormSettings ()
void handleLayer ()
void handleCompoundPolygon ()
void handlePenStyleDefinition ()
void handlePatternDefinition ()
void handleColorPalette ()
void handleDPColorPalette ()
void handlePenForeColor ()
void handleDPPenForeColor ()
void handlePenBackColor ()
void handleDPPenBackColor ()
void handlePenStyle ()
void handlePenSize ()
void handleDPPenSize ()
void handleLineCap ()
void handleLineJoin ()
void handleBrushGradient ()
void handleDPBrushGradient ()
void handleBrushForeColor ()
void handleDPBrushForeColor ()
void handleBrushBackColor ()
void handleDPBrushBackColor ()
void handleBrushPattern ()
void handlePolyline ()
void handlePolyspline ()
void handlePolycurve ()
void handleRectangle ()
void handleArc ()
void handleBitmap ()
void handleBitmapData ()
void handleTextData ()
void handleTextLine ()
void handleTextBlock ()
void handleTextPath ()
void handleObjectCapsule ()
void handleObjectImage ()
void resetPalette ()
void flushCompoundPolygon ()
void setPenStyle ()
unsigned int getRemainingRecordLength () const
bool checkRLESize (unsigned bytes) const
double toDouble (long x) const
void transformXY (long &x, long &y) const
void parseCharacterization (ObjectCharacterization *)

Private Attributes

int m_recordLength
long m_recordEnd
bool m_success
bool m_exit
bool m_graphicsStarted
unsigned int m_xres
unsigned int m_yres
long m_xofs
long m_yofs
long m_width
long m_height
bool m_doublePrecision
librevenge::RVNGPropertyList m_style
libwpg::WPGColor m_penForeColor
libwpg::WPGColor m_penBackColor
libwpg::WPGColor m_brushForeColor
libwpg::WPGColor m_brushBackColor
libwpg::WPGDashArray m_dashArray
librevenge::RVNGPropertyListVector m_gradient
std::map< unsigned int, libwpg::WPGDashArraym_dashArrayStyles
bool m_layerOpened
WPG2TransformMatrix m_matrix
double m_gradientAngle
librevenge::RVNGPropertyList m_gradientRef
std::stack< WPGGroupContextm_groupStack
WPG2TransformMatrix m_compoundMatrix
bool m_compoundWindingRule
bool m_compoundFilled
bool m_compoundFramed
bool m_compoundClosed
WPGBitmapContext m_bitmap
WPGBinaryDataContext m_binaryData
bool m_hFlipped
bool m_vFlipped
WPGTextDataContext m_textData
bool m_drawTextData

Additional Inherited Members

Protected Attributes inherited from WPGXParser
librevenge::RVNGInputStream * m_input
librevenge::RVNGDrawingInterface * m_painter
std::map< int, libwpg::WPGColorm_colorPalette

Constructor & Destructor Documentation

◆ WPG2Parser()

WPG2Parser::WPG2Parser ( librevenge::RVNGInputStream * input,
librevenge::RVNGDrawingInterface * painter,
bool isEmbedded = false )

Referenced by parse().

Member Function Documentation

◆ checkRLESize()

bool WPG2Parser::checkRLESize ( unsigned bytes) const
private

Referenced by handleBitmapData().

◆ flushCompoundPolygon()

void WPG2Parser::flushCompoundPolygon ( )
private

Referenced by parse().

◆ getRemainingRecordLength()

unsigned int WPG2Parser::getRemainingRecordLength ( ) const
private

◆ handleArc()

void WPG2Parser::handleArc ( )
private

Referenced by parse().

◆ handleBitmap()

void WPG2Parser::handleBitmap ( )
private

Referenced by parse().

◆ handleBitmapData()

void WPG2Parser::handleBitmapData ( )
private

Referenced by parse().

◆ handleBrushBackColor()

void WPG2Parser::handleBrushBackColor ( )
private

Referenced by parse().

◆ handleBrushForeColor()

void WPG2Parser::handleBrushForeColor ( )
private

Referenced by parse().

◆ handleBrushGradient()

void WPG2Parser::handleBrushGradient ( )
private

Referenced by parse().

◆ handleBrushPattern()

void WPG2Parser::handleBrushPattern ( )
private

Referenced by parse().

◆ handleColorPalette()

void WPG2Parser::handleColorPalette ( )
private

Referenced by parse().

◆ handleCompoundPolygon()

void WPG2Parser::handleCompoundPolygon ( )
private

Referenced by parse().

◆ handleDPBrushBackColor()

void WPG2Parser::handleDPBrushBackColor ( )
private

Referenced by parse().

◆ handleDPBrushForeColor()

void WPG2Parser::handleDPBrushForeColor ( )
private

Referenced by parse().

◆ handleDPBrushGradient()

void WPG2Parser::handleDPBrushGradient ( )
private

Referenced by parse().

◆ handleDPColorPalette()

void WPG2Parser::handleDPColorPalette ( )
private

Referenced by parse().

◆ handleDPPenBackColor()

void WPG2Parser::handleDPPenBackColor ( )
private

Referenced by parse().

◆ handleDPPenForeColor()

void WPG2Parser::handleDPPenForeColor ( )
private

Referenced by parse().

◆ handleDPPenSize()

void WPG2Parser::handleDPPenSize ( )
private

Referenced by parse().

◆ handleEndWPG()

void WPG2Parser::handleEndWPG ( )
private

Referenced by handleStartWPG(), and parse().

◆ handleFormSettings()

void WPG2Parser::handleFormSettings ( )
private

Referenced by parse().

◆ handleLayer()

void WPG2Parser::handleLayer ( )
private

Referenced by parse().

◆ handleLineCap()

void WPG2Parser::handleLineCap ( )
private

Referenced by parse().

◆ handleLineJoin()

void WPG2Parser::handleLineJoin ( )
private

Referenced by parse().

◆ handleObjectCapsule()

void WPG2Parser::handleObjectCapsule ( )
private

Referenced by parse().

◆ handleObjectImage()

void WPG2Parser::handleObjectImage ( )
private

Referenced by parse().

◆ handlePatternDefinition()

void WPG2Parser::handlePatternDefinition ( )
private

Referenced by parse().

◆ handlePenBackColor()

void WPG2Parser::handlePenBackColor ( )
private

Referenced by parse().

◆ handlePenForeColor()

void WPG2Parser::handlePenForeColor ( )
private

Referenced by parse().

◆ handlePenSize()

void WPG2Parser::handlePenSize ( )
private

Referenced by parse().

◆ handlePenStyle()

void WPG2Parser::handlePenStyle ( )
private

Referenced by parse().

◆ handlePenStyleDefinition()

void WPG2Parser::handlePenStyleDefinition ( )
private

Referenced by parse().

◆ handlePolycurve()

void WPG2Parser::handlePolycurve ( )
private

Referenced by parse().

◆ handlePolyline()

void WPG2Parser::handlePolyline ( )
private

Referenced by handlePolyspline(), and parse().

◆ handlePolyspline()

void WPG2Parser::handlePolyspline ( )
private

Referenced by parse().

◆ handleRectangle()

void WPG2Parser::handleRectangle ( )
private

Referenced by parse().

◆ handleStartWPG()

void WPG2Parser::handleStartWPG ( )
private

Referenced by parse().

◆ handleTextBlock()

void WPG2Parser::handleTextBlock ( )
private

Referenced by parse().

◆ handleTextData()

void WPG2Parser::handleTextData ( )
private

Referenced by parse().

◆ handleTextLine()

void WPG2Parser::handleTextLine ( )
private

Referenced by parse().

◆ handleTextPath()

void WPG2Parser::handleTextPath ( )
private

Referenced by parse().

◆ parse()

bool WPG2Parser::parse ( )
overridevirtual

Implements WPGXParser.

◆ parseCharacterization()

◆ resetPalette()

void WPG2Parser::resetPalette ( )
private

Referenced by WPG2Parser().

◆ setPenStyle()

void WPG2Parser::setPenStyle ( )
private

Referenced by handlePenStyle().

◆ toDouble()

◆ transformXY()

void WPG2Parser::transformXY ( long & x,
long & y ) const
private

Member Data Documentation

◆ m_binaryData

WPGBinaryDataContext WPG2Parser::m_binaryData
private

◆ m_bitmap

WPGBitmapContext WPG2Parser::m_bitmap
private

◆ m_brushBackColor

libwpg::WPGColor WPG2Parser::m_brushBackColor
private

◆ m_brushForeColor

◆ m_compoundClosed

bool WPG2Parser::m_compoundClosed
private

◆ m_compoundFilled

bool WPG2Parser::m_compoundFilled
private

◆ m_compoundFramed

bool WPG2Parser::m_compoundFramed
private

◆ m_compoundMatrix

WPG2TransformMatrix WPG2Parser::m_compoundMatrix
private

◆ m_compoundWindingRule

bool WPG2Parser::m_compoundWindingRule
private

◆ m_dashArray

libwpg::WPGDashArray WPG2Parser::m_dashArray
private

◆ m_dashArrayStyles

std::map<unsigned int,libwpg::WPGDashArray> WPG2Parser::m_dashArrayStyles
private

◆ m_doublePrecision

◆ m_drawTextData

bool WPG2Parser::m_drawTextData
private

◆ m_exit

bool WPG2Parser::m_exit
private

◆ m_gradient

librevenge::RVNGPropertyListVector WPG2Parser::m_gradient
private

◆ m_gradientAngle

double WPG2Parser::m_gradientAngle
private

◆ m_gradientRef

librevenge::RVNGPropertyList WPG2Parser::m_gradientRef
private

◆ m_graphicsStarted

◆ m_groupStack

◆ m_height

long WPG2Parser::m_height
private

◆ m_hFlipped

bool WPG2Parser::m_hFlipped
private

◆ m_layerOpened

bool WPG2Parser::m_layerOpened
private

◆ m_matrix

◆ m_penBackColor

libwpg::WPGColor WPG2Parser::m_penBackColor
private

◆ m_penForeColor

◆ m_recordEnd

◆ m_recordLength

int WPG2Parser::m_recordLength
private

Referenced by parse(), and WPG2Parser().

◆ m_style

◆ m_success

bool WPG2Parser::m_success
private

Referenced by handleStartWPG(), parse(), and WPG2Parser().

◆ m_textData

WPGTextDataContext WPG2Parser::m_textData
private

◆ m_vFlipped

bool WPG2Parser::m_vFlipped
private

◆ m_width

long WPG2Parser::m_width
private

Referenced by handleStartWPG(), and WPG2Parser().

◆ m_xofs

long WPG2Parser::m_xofs
private

◆ m_xres

◆ m_yofs

long WPG2Parser::m_yofs
private

◆ m_yres


The documentation for this class was generated from the following files:

Generated for libwpg by doxygen 1.14.0