libmspub::MSPUBParser2k Class Reference

#include <MSPUBParser2k.h>

Inheritance diagram for libmspub::MSPUBParser2k:
libmspub::MSPUBParser

List of all members.

Public Member Functions

 MSPUBParser2k (WPXInputStream *input, MSPUBCollector *collector)
bool parse ()
 Parses the input stream content.
virtual ~MSPUBParser2k ()

Protected Member Functions

virtual bool parseContents (WPXInputStream *input)
virtual unsigned getColorIndexByQuillEntry (unsigned entry)

Static Protected Member Functions

static Color getColorBy2kIndex (unsigned char index)
static Color getColorBy2kHex (unsigned hex)
static unsigned translate2kColorReference (unsigned ref2k)
static PageType getPageTypeBySeqNum (unsigned seqNum)

Static Private Member Functions

static ShapeType getShapeType (unsigned char shapeSpecifier)

Private Attributes

std::vector< unsigned > m_imageDataChunkIndices
std::vector< unsigned > m_quillColorEntries

Constructor & Destructor Documentation

libmspub::MSPUBParser2k::MSPUBParser2k ( WPXInputStream *  input,
MSPUBCollector collector 
) [explicit]
libmspub::MSPUBParser2k::~MSPUBParser2k ( ) [virtual]

Member Function Documentation

libmspub::Color libmspub::MSPUBParser2k::getColorBy2kHex ( unsigned  hex) [static, protected]
libmspub::Color libmspub::MSPUBParser2k::getColorBy2kIndex ( unsigned char  index) [static, protected]
unsigned libmspub::MSPUBParser2k::getColorIndexByQuillEntry ( unsigned  entry) [protected, virtual]

Reimplemented from libmspub::MSPUBParser.

libmspub::PageType libmspub::MSPUBParser2k::getPageTypeBySeqNum ( unsigned  seqNum) [static, protected]

Reimplemented from libmspub::MSPUBParser.

libmspub::ShapeType libmspub::MSPUBParser2k::getShapeType ( unsigned char  shapeSpecifier) [static, private]
bool libmspub::MSPUBParser2k::parse ( ) [virtual]

Parses the input stream content.

It will make callbacks to the functions provided by a WPGPaintInterface class implementation when needed. This is often commonly called the 'main parsing routine'.

Parameters:
inputThe input stream
painterA MSPUBPainterInterface implementation
Returns:
A value that indicates whether the parsing was successful

Reimplemented from libmspub::MSPUBParser.

bool libmspub::MSPUBParser2k::parseContents ( WPXInputStream *  input) [protected, virtual]

Reimplemented from libmspub::MSPUBParser.

unsigned libmspub::MSPUBParser2k::translate2kColorReference ( unsigned  ref2k) [static, protected]

Member Data Documentation

std::vector<unsigned> libmspub::MSPUBParser2k::m_imageDataChunkIndices [private]
std::vector<unsigned> libmspub::MSPUBParser2k::m_quillColorEntries [private]

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