WPG1Parser Class Reference

#include <WPG1Parser.h>

Inheritance diagram for WPG1Parser:
WPGXParser

Public Member Functions

 WPG1Parser (librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter)
 
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 handlePageFormat ()
 
void handleFillAttributes ()
 
void handleLineAttributes ()
 
void handleColormap ()
 
void handleLine ()
 
void handlePolyline ()
 
void handleRectangle ()
 
void handlePolygon ()
 
void handleEllipse ()
 
void handleCurvedPolyline ()
 
void handleGroup ()
 
void closeGroup (bool force=false)
 
bool decodeRLE (std::vector< unsigned char > &buffer, unsigned width, unsigned height, unsigned depth)
 
void fillPixels (libwpg::WPGBitmap &bitmap, const unsigned char *buffer, unsigned width, unsigned height, unsigned depth)
 
void handleBitmapTypeOne ()
 
void handleBitmapTypeTwo ()
 
void handlePostscriptTypeOne ()
 
void handlePostscriptTypeTwo ()
 
void handleGraphicsTextAttributes ()
 
void handleGraphicsTextTypeOne ()
 
void handleGraphicsTextTypeTwo ()
 
void handleGraphicsTextTypeThree ()
 
void resetPalette ()
 

Private Attributes

int m_recordLength
 
long m_recordEnd
 
boost::optional< long > m_groupEnd
 
bool m_success
 
bool m_exit
 
bool m_graphicsStarted
 
int m_width
 
int m_height
 
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
 
libwpg::WPGColor m_fontColor
 
unsigned m_fontSize
 
unsigned m_avgCharWidth
 
unsigned char m_textAlign
 

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

WPG1Parser::WPG1Parser ( librevenge::RVNGInputStream *  input,
librevenge::RVNGDrawingInterface *  painter 
)

Member Function Documentation

void WPG1Parser::closeGroup ( bool  force = false)
private

Referenced by handleEndWPG(), handleGroup(), and parse().

bool WPG1Parser::decodeRLE ( std::vector< unsigned char > &  buffer,
unsigned  width,
unsigned  height,
unsigned  depth 
)
private
void WPG1Parser::fillPixels ( libwpg::WPGBitmap bitmap,
const unsigned char *  buffer,
unsigned  width,
unsigned  height,
unsigned  depth 
)
private
void WPG1Parser::handleBitmapTypeOne ( )
private

Referenced by parse().

void WPG1Parser::handleBitmapTypeTwo ( )
private

Referenced by parse().

void WPG1Parser::handleColormap ( )
private

Referenced by parse().

void WPG1Parser::handleCurvedPolyline ( )
private

Referenced by parse().

void WPG1Parser::handleEllipse ( )
private

Referenced by parse().

void WPG1Parser::handleEndWPG ( )
private

Referenced by handleStartWPG(), and parse().

void WPG1Parser::handleFillAttributes ( )
private

Referenced by parse().

void WPG1Parser::handleGraphicsTextAttributes ( )
private

Referenced by parse().

void WPG1Parser::handleGraphicsTextTypeOne ( )
private

Referenced by parse().

void WPG1Parser::handleGraphicsTextTypeThree ( )
private
void WPG1Parser::handleGraphicsTextTypeTwo ( )
private

Referenced by parse().

void WPG1Parser::handleGroup ( )
private

Referenced by parse().

void WPG1Parser::handleLine ( )
private

Referenced by parse().

void WPG1Parser::handleLineAttributes ( )
private

Referenced by parse().

void WPG1Parser::handlePageFormat ( )
private

Referenced by parse().

void WPG1Parser::handlePolygon ( )
private

Referenced by parse().

void WPG1Parser::handlePolyline ( )
private

Referenced by parse().

void WPG1Parser::handlePostscriptTypeOne ( )
private

Referenced by parse().

void WPG1Parser::handlePostscriptTypeTwo ( )
private

Referenced by parse().

void WPG1Parser::handleRectangle ( )
private

Referenced by parse().

void WPG1Parser::handleStartWPG ( )
private

Referenced by parse().

bool WPG1Parser::parse ( )
overridevirtual

Implements WPGXParser.

void WPG1Parser::resetPalette ( )
private

Referenced by parse().

Member Data Documentation

unsigned WPG1Parser::m_avgCharWidth
private
libwpg::WPGColor WPG1Parser::m_brushBackColor
private

Referenced by parse().

libwpg::WPGColor WPG1Parser::m_brushForeColor
private
libwpg::WPGDashArray WPG1Parser::m_dashArray
private

Referenced by parse().

bool WPG1Parser::m_exit
private

Referenced by handleEndWPG(), and parse().

libwpg::WPGColor WPG1Parser::m_fontColor
private
unsigned WPG1Parser::m_fontSize
private
librevenge::RVNGPropertyListVector WPG1Parser::m_gradient
private
boost::optional<long> WPG1Parser::m_groupEnd
private

Referenced by closeGroup(), and handleGroup().

libwpg::WPGColor WPG1Parser::m_penBackColor
private

Referenced by parse().

libwpg::WPGColor WPG1Parser::m_penForeColor
private
int WPG1Parser::m_recordLength
private

Referenced by parse().

bool WPG1Parser::m_success
private

Referenced by parse().

unsigned char WPG1Parser::m_textAlign
private
int WPG1Parser::m_width
private

Referenced by handleStartWPG().


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

Generated for libwpg by doxygen 1.8.10