Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
libvisio::VSDXMLParserBase Class Referenceabstract

`#include <VSDXMLParserBase.h>`

Inheritance diagram for libvisio::VSDXMLParserBase:

## Public Member Functions
| VSDXMLParserBase ()
virtual | ~VSDXMLParserBase ()
virtual bool | parseMain ()=0
virtual bool | extractStencils ()=0

## Protected Member Functions
int | readByteData (unsigned char &value, xmlTextReaderPtr reader)
int | readByteData (boost::optional< unsigned char > &value, xmlTextReaderPtr reader)
int | readUnsignedData (boost::optional< unsigned > &value, xmlTextReaderPtr reader)
int | readLongData (boost::optional< long > &value, xmlTextReaderPtr reader)
int | readLongData (long &value, xmlTextReaderPtr reader)
int | readDoubleData (boost::optional< double > &value, xmlTextReaderPtr reader)
int | readDoubleData (double &value, xmlTextReaderPtr reader)
int | readBoolData (boost::optional< bool > &value, xmlTextReaderPtr reader)
int | readBoolData (bool &value, xmlTextReaderPtr reader)
int | readExtendedColourData (Colour &value, long &idx, xmlTextReaderPtr reader)
int | readExtendedColourData (Colour &value, xmlTextReaderPtr reader)
int | readExtendedColourData (boost::optional< Colour > &value, xmlTextReaderPtr reader)
int | readNURBSData (boost::optional< NURBSData > &data, xmlTextReaderPtr reader)
int | readPolylineData (boost::optional< PolylineData > &data, xmlTextReaderPtr reader)
int | readStringData (VSDName &text, xmlTextReaderPtr reader)
void | readTriggerId (unsigned &id, xmlTextReaderPtr reader)
virtual xmlChar * | readStringData (xmlTextReaderPtr reader)=0
unsigned | getIX (xmlTextReaderPtr reader)
virtual void | _handleLevelChange (unsigned level)
void | _flushShape ()
virtual int | getElementToken (xmlTextReaderPtr reader)=0
virtual int | getElementDepth (xmlTextReaderPtr reader)=0
void | readEllipticalArcTo (xmlTextReaderPtr reader)
void | readEllipse (xmlTextReaderPtr reader)
void | readGeometry (xmlTextReaderPtr reader)
void | readMoveTo (xmlTextReaderPtr reader)
void | readLineTo (xmlTextReaderPtr reader)
void | readArcTo (xmlTextReaderPtr reader)
void | readNURBSTo (xmlTextReaderPtr reader)
void | readPolylineTo (xmlTextReaderPtr reader)
void | readInfiniteLine (xmlTextReaderPtr reader)
void | readRelCubBezTo (xmlTextReaderPtr reader)
void | readRelEllipticalArcTo (xmlTextReaderPtr reader)
void | readRelLineTo (xmlTextReaderPtr reader)
void | readRelMoveTo (xmlTextReaderPtr reader)
void | readRelQuadBezTo (xmlTextReaderPtr reader)
void | readForeignData (xmlTextReaderPtr reader)
virtual void | getBinaryData (xmlTextReaderPtr reader)=0
void | readShape (xmlTextReaderPtr reader)
void | readColours (xmlTextReaderPtr reader)
void | readPage (xmlTextReaderPtr reader)
void | readText (xmlTextReaderPtr reader)
void | readCharIX (xmlTextReaderPtr reader)
void | readParaIX (xmlTextReaderPtr reader)
void | readLayerIX (xmlTextReaderPtr reader)
void | readLayerMember (xmlTextReaderPtr reader)
void | readStyleSheet (xmlTextReaderPtr reader)
void | readPageSheet (xmlTextReaderPtr reader)
void | readSplineStart (xmlTextReaderPtr reader)
void | readSplineKnot (xmlTextReaderPtr reader)
void | readStencil (xmlTextReaderPtr reader)
void | handlePagesStart (xmlTextReaderPtr reader)
void | handlePagesEnd (xmlTextReaderPtr reader)
void | handlePageStart (xmlTextReaderPtr reader)
void | handlePageEnd (xmlTextReaderPtr reader)
void | handleMastersStart (xmlTextReaderPtr reader)
void | handleMastersEnd (xmlTextReaderPtr reader)
void | handleMasterStart (xmlTextReaderPtr reader)
void | handleMasterEnd (xmlTextReaderPtr reader)
void | skipPages (xmlTextReaderPtr reader)
void | skipMasters (xmlTextReaderPtr reader)

## Protected Attributes
VSDCollector * | m_collector
VSDStencils | m_stencils
std::unique_ptr< VSDStencil > | m_currentStencil
VSDShape | m_shape
bool | m_isStencilStarted
unsigned | m_currentStencilID
bool | m_extractStencils
bool | m_isInStyles
unsigned | m_currentLevel
unsigned | m_currentShapeLevel
std::map< unsigned, Colour > | m_colours
VSDFieldList | m_fieldList
VSDShapeList | m_shapeList
librevenge::RVNGBinaryData | m_currentBinaryData
std::stack< VSDShape > | m_shapeStack
std::stack< unsigned > | m_shapeLevelStack
bool | m_isShapeStarted
bool | m_isPageStarted
VSDGeometryList * | m_currentGeometryList
unsigned | m_currentGeometryListIndex
std::map< unsigned, VSDName > | m_fonts
std::map< unsigned, VSDTabStop > * | m_currentTabSet
XMLErrorWatcher * | m_watcher

## Private Member Functions
| VSDXMLParserBase (const VSDXMLParserBase &)
VSDXMLParserBase & | operator= (const VSDXMLParserBase &)
void | initColours ()

## Constructor & Destructor Documentation

## ◆ VSDXMLParserBase() [1/2]

libvisio::VSDXMLParserBase::VSDXMLParserBase | ( |  | ) |
| explicit

## ◆ ~VSDXMLParserBase()

libvisio::VSDXMLParserBase::~VSDXMLParserBase | ( |  | ) |
| virtual

## ◆ VSDXMLParserBase() [2/2]

libvisio::VSDXMLParserBase::VSDXMLParserBase | ( | const VSDXMLParserBase & |  | ) |
| private

## Member Function Documentation

## ◆ _flushShape()

void libvisio::VSDXMLParserBase::_flushShape | ( |  | ) |
| protected

## ◆ _handleLevelChange()

void libvisio::VSDXMLParserBase::_handleLevelChange | ( | unsigned | level | ) |
| protected virtual

## ◆ extractStencils()

virtual bool libvisio::VSDXMLParserBase::extractStencils | ( |  | ) |
| pure virtual

Implemented in libvisio::VSDXParser, and libvisio::VDXParser.

## ◆ getBinaryData()

virtual void libvisio::VSDXMLParserBase::getBinaryData | ( | xmlTextReaderPtr | reader | ) |
| protected pure virtual

Implemented in libvisio::VSDXParser, and libvisio::VDXParser.

## ◆ getElementDepth()

virtual int libvisio::VSDXMLParserBase::getElementDepth | ( | xmlTextReaderPtr | reader | ) |
| protected pure virtual

Implemented in libvisio::VSDXParser, and libvisio::VDXParser.

## ◆ getElementToken()

virtual int libvisio::VSDXMLParserBase::getElementToken | ( | xmlTextReaderPtr | reader | ) |
| protected pure virtual

Implemented in libvisio::VSDXParser, and libvisio::VDXParser.

## ◆ getIX()

unsigned libvisio::VSDXMLParserBase::getIX | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ handleMasterEnd()

void libvisio::VSDXMLParserBase::handleMasterEnd | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ handleMastersEnd()

void libvisio::VSDXMLParserBase::handleMastersEnd | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ handleMastersStart()

void libvisio::VSDXMLParserBase::handleMastersStart | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ handleMasterStart()

void libvisio::VSDXMLParserBase::handleMasterStart | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ handlePageEnd()

void libvisio::VSDXMLParserBase::handlePageEnd | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ handlePagesEnd()

void libvisio::VSDXMLParserBase::handlePagesEnd | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ handlePagesStart()

void libvisio::VSDXMLParserBase::handlePagesStart | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ handlePageStart()

void libvisio::VSDXMLParserBase::handlePageStart | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ initColours()

void libvisio::VSDXMLParserBase::initColours | ( |  | ) |
| private

Referenced by VSDXMLParserBase().

## ◆ operator=()

VSDXMLParserBase& libvisio::VSDXMLParserBase::operator= | ( | const VSDXMLParserBase & |  | ) |
| private

## ◆ parseMain()

virtual bool libvisio::VSDXMLParserBase::parseMain | ( |  | ) |
| pure virtual

Implemented in libvisio::VSDXParser, and libvisio::VDXParser.

## ◆ readArcTo()

void libvisio::VSDXMLParserBase::readArcTo | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readBoolData() [1/2]

int libvisio::VSDXMLParserBase::readBoolData | ( | boost::optional< bool > & | value,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ readBoolData() [2/2]

int libvisio::VSDXMLParserBase::readBoolData | ( | bool & | value,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ readByteData() [1/2]

int libvisio::VSDXMLParserBase::readByteData | ( | unsigned char & | value,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ readByteData() [2/2]

int libvisio::VSDXMLParserBase::readByteData | ( | boost::optional< unsigned char > & | value,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ readCharIX()

void libvisio::VSDXMLParserBase::readCharIX | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readColours()

void libvisio::VSDXMLParserBase::readColours | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readDoubleData() [1/2]

int libvisio::VSDXMLParserBase::readDoubleData | ( | boost::optional< double > & | value,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ readDoubleData() [2/2]

int libvisio::VSDXMLParserBase::readDoubleData | ( | double & | value,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ readEllipse()

void libvisio::VSDXMLParserBase::readEllipse | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readEllipticalArcTo()

void libvisio::VSDXMLParserBase::readEllipticalArcTo | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readExtendedColourData() [1/3]

int libvisio::VSDXMLParserBase::readExtendedColourData | ( | Colour & | value,
|  | long & | idx,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ readExtendedColourData() [2/3]

int libvisio::VSDXMLParserBase::readExtendedColourData | ( | Colour & | value,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ readExtendedColourData() [3/3]

int libvisio::VSDXMLParserBase::readExtendedColourData | ( | boost::optional< Colour > & | value,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ readForeignData()

void libvisio::VSDXMLParserBase::readForeignData | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readGeometry()

void libvisio::VSDXMLParserBase::readGeometry | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readInfiniteLine()

void libvisio::VSDXMLParserBase::readInfiniteLine | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readLayerIX()

void libvisio::VSDXMLParserBase::readLayerIX | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readLayerMember()

void libvisio::VSDXMLParserBase::readLayerMember | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readLineTo()

void libvisio::VSDXMLParserBase::readLineTo | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readLongData() [1/2]

int libvisio::VSDXMLParserBase::readLongData | ( | boost::optional< long > & | value,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ readLongData() [2/2]

int libvisio::VSDXMLParserBase::readLongData | ( | long & | value,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ readMoveTo()

void libvisio::VSDXMLParserBase::readMoveTo | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readNURBSData()

int libvisio::VSDXMLParserBase::readNURBSData | ( | boost::optional< NURBSData > & | data,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ readNURBSTo()

void libvisio::VSDXMLParserBase::readNURBSTo | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readPage()

void libvisio::VSDXMLParserBase::readPage | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readPageSheet()

void libvisio::VSDXMLParserBase::readPageSheet | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readParaIX()

void libvisio::VSDXMLParserBase::readParaIX | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readPolylineData()

int libvisio::VSDXMLParserBase::readPolylineData | ( | boost::optional< PolylineData > & | data,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ readPolylineTo()

void libvisio::VSDXMLParserBase::readPolylineTo | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readRelCubBezTo()

void libvisio::VSDXMLParserBase::readRelCubBezTo | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readRelEllipticalArcTo()

void libvisio::VSDXMLParserBase::readRelEllipticalArcTo | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readRelLineTo()

void libvisio::VSDXMLParserBase::readRelLineTo | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readRelMoveTo()

void libvisio::VSDXMLParserBase::readRelMoveTo | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readRelQuadBezTo()

void libvisio::VSDXMLParserBase::readRelQuadBezTo | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readShape()

void libvisio::VSDXMLParserBase::readShape | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readSplineKnot()

void libvisio::VSDXMLParserBase::readSplineKnot | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readSplineStart()

void libvisio::VSDXMLParserBase::readSplineStart | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readStencil()

void libvisio::VSDXMLParserBase::readStencil | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readStringData() [1/2]

int libvisio::VSDXMLParserBase::readStringData | ( | libvisio::VSDName & | text,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ readStringData() [2/2]

virtual xmlChar* libvisio::VSDXMLParserBase::readStringData | ( | xmlTextReaderPtr | reader | ) |
| protected pure virtual

Implemented in libvisio::VSDXParser, and libvisio::VDXParser.

## ◆ readStyleSheet()

void libvisio::VSDXMLParserBase::readStyleSheet | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readText()

void libvisio::VSDXMLParserBase::readText | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ readTriggerId()

void libvisio::VSDXMLParserBase::readTriggerId | ( | unsigned & | id,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ readUnsignedData()

int libvisio::VSDXMLParserBase::readUnsignedData | ( | boost::optional< unsigned > & | value,
|  | xmlTextReaderPtr | reader
| ) |  |
| protected

## ◆ skipMasters()

void libvisio::VSDXMLParserBase::skipMasters | ( | xmlTextReaderPtr | reader | ) |
| protected

## ◆ skipPages()

void libvisio::VSDXMLParserBase::skipPages | ( | xmlTextReaderPtr | reader | ) |
| protected

## Member Data Documentation

## ◆ m_collector

VSDCollector* libvisio::VSDXMLParserBase::m_collector
| protected

## ◆ m_colours

std::map<unsigned, Colour> libvisio::VSDXMLParserBase::m_colours
| protected

## ◆ m_currentBinaryData

librevenge::RVNGBinaryData libvisio::VSDXMLParserBase::m_currentBinaryData
| protected

## ◆ m_currentGeometryList

VSDGeometryList* libvisio::VSDXMLParserBase::m_currentGeometryList
| protected

## ◆ m_currentGeometryListIndex

unsigned libvisio::VSDXMLParserBase::m_currentGeometryListIndex
| protected

## ◆ m_currentLevel

unsigned libvisio::VSDXMLParserBase::m_currentLevel
| protected

## ◆ m_currentShapeLevel

unsigned libvisio::VSDXMLParserBase::m_currentShapeLevel
| protected

## ◆ m_currentStencil

std::unique_ptr<VSDStencil> libvisio::VSDXMLParserBase::m_currentStencil
| protected

## ◆ m_currentStencilID

unsigned libvisio::VSDXMLParserBase::m_currentStencilID
| protected

## ◆ m_currentTabSet

std::map<unsigned, VSDTabStop>* libvisio::VSDXMLParserBase::m_currentTabSet
| protected

## ◆ m_extractStencils

bool libvisio::VSDXMLParserBase::m_extractStencils
| protected

## ◆ m_fieldList

VSDFieldList libvisio::VSDXMLParserBase::m_fieldList
| protected

## ◆ m_fonts

std::map<unsigned, VSDName> libvisio::VSDXMLParserBase::m_fonts
| protected

## ◆ m_isInStyles

bool libvisio::VSDXMLParserBase::m_isInStyles
| protected

## ◆ m_isPageStarted

bool libvisio::VSDXMLParserBase::m_isPageStarted
| protected

## ◆ m_isShapeStarted

bool libvisio::VSDXMLParserBase::m_isShapeStarted
| protected

## ◆ m_isStencilStarted

bool libvisio::VSDXMLParserBase::m_isStencilStarted
| protected

## ◆ m_shape

VSDShape libvisio::VSDXMLParserBase::m_shape
| protected

## ◆ m_shapeLevelStack

std::stack<unsigned> libvisio::VSDXMLParserBase::m_shapeLevelStack
| protected

## ◆ m_shapeList

VSDShapeList libvisio::VSDXMLParserBase::m_shapeList
| protected

## ◆ m_shapeStack

std::stack<VSDShape> libvisio::VSDXMLParserBase::m_shapeStack
| protected

## ◆ m_stencils

VSDStencils libvisio::VSDXMLParserBase::m_stencils
| protected

## ◆ m_watcher

XMLErrorWatcher* libvisio::VSDXMLParserBase::m_watcher
| protected

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

- VSDXMLParserBase.h
- VSDXMLParserBase.cpp