#include <VSDXMLParserBase.h>
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) |
bool | readColourOrColourIndex (Colour &value, long &idx, 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 () |
|
explicit |
Referenced by operator=(), libvisio::VDXParser::VDXParser(), VSDXMLParserBase(), and libvisio::VSDXParser::VSDXParser().
|
virtual |
|
private |
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::processXmlNode().
|
protectedvirtual |
|
pure virtual |
Implemented in libvisio::VDXParser, and libvisio::VSDXParser.
|
protectedpure virtual |
Implemented in libvisio::VDXParser, and libvisio::VSDXParser.
Referenced by readForeignData().
|
protectedpure virtual |
Implemented in libvisio::VDXParser, and libvisio::VSDXParser.
Referenced by readArcTo(), readCharIX(), readEllipse(), readEllipticalArcTo(), readGeometry(), readInfiniteLine(), readLayerIX(), readLineTo(), readMoveTo(), readNURBSTo(), readPage(), readPageSheet(), readParaIX(), readPolylineTo(), readRelCubBezTo(), readRelEllipticalArcTo(), readRelLineTo(), readRelMoveTo(), readRelQuadBezTo(), readShape(), readSplineKnot(), readSplineStart(), and readStyleSheet().
|
protectedpure virtual |
Implemented in libvisio::VDXParser, and libvisio::VSDXParser.
Referenced by readArcTo(), readCharIX(), readColours(), readEllipse(), readEllipticalArcTo(), readInfiniteLine(), readLayerIX(), readLineTo(), readMoveTo(), readNURBSTo(), readParaIX(), readPolylineTo(), readRelCubBezTo(), readRelEllipticalArcTo(), readRelLineTo(), readRelMoveTo(), readRelQuadBezTo(), readSplineKnot(), readSplineStart(), readText(), skipMasters(), and skipPages().
|
protected |
Referenced by readArcTo(), readCharIX(), readColours(), readEllipse(), readEllipticalArcTo(), readGeometry(), readInfiniteLine(), readLayerIX(), readLineTo(), readMoveTo(), readNURBSTo(), readParaIX(), readPolylineTo(), readRelCubBezTo(), readRelEllipticalArcTo(), readRelLineTo(), readRelMoveTo(), readRelQuadBezTo(), readSplineKnot(), readSplineStart(), libvisio::VDXParser::readTab(), libvisio::VSDXParser::readTabRow(), libvisio::VDXParser::readTabs(), and readText().
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::processXmlNode().
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::processXmlNode().
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::processXmlNode().
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::processXmlNode().
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::processXmlNode().
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::processXmlNode().
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::processXmlNode().
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::processXmlNode().
|
private |
Referenced by readColours(), and VSDXMLParserBase().
|
private |
|
pure virtual |
Implemented in libvisio::VDXParser, and libvisio::VSDXParser.
|
protected |
|
protected |
|
protected |
Referenced by readCharIX(), and readLayerIX().
|
protected |
|
protected |
Referenced by libvisio::VDXParser::readFillAndShadow(), libvisio::VDXParser::readLine(), readParaIX(), libvisio::VSDXParser::readShapeProperties(), libvisio::VSDXParser::readStyleProperties(), libvisio::VDXParser::readTab(), libvisio::VSDXParser::readTabRow(), and libvisio::VDXParser::readTextBlock().
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::readCharacter().
|
protected |
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::processXmlNode().
|
protected |
Referenced by readArcTo(), readCharIX(), readEllipse(), readEllipticalArcTo(), readInfiniteLine(), readLineTo(), readMoveTo(), readNURBSTo(), readParaIX(), readPolylineTo(), readRelCubBezTo(), readRelEllipticalArcTo(), readRelLineTo(), readRelMoveTo(), readRelQuadBezTo(), readSplineKnot(), and readSplineStart().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by readCharIX(), readExtendedColourData(), readExtendedColourData(), and readLayerIX().
|
protected |
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::readShapeProperties().
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::readShapeProperties().
|
protected |
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::readLayer().
|
protected |
|
protected |
|
protected |
Referenced by readByteData(), readByteData(), readCharIX(), and readUnsignedData().
|
protected |
|
protected |
|
protected |
Referenced by readNURBSTo().
|
protected |
|
protected |
Referenced by handleMasterStart(), and handlePageStart().
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::processXmlNode().
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::readParagraph().
|
protected |
Referenced by readPolylineTo().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::processXmlNode().
|
protected |
|
protected |
|
protected |
Referenced by handleMasterStart().
|
protected |
|
protectedpure virtual |
Implemented in libvisio::VDXParser, and libvisio::VSDXParser.
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::processXmlNode().
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), and libvisio::VSDXParser::readShapeProperties().
|
protected |
Referenced by libvisio::VDXParser::readMisc(), and libvisio::VSDXParser::readShapeProperties().
|
protected |
Referenced by readParaIX(), and readSplineStart().
|
protected |
Referenced by handleMastersStart().
|
protected |
Referenced by handlePagesStart().
|
protected |
Referenced by _flushShape(), _handleLevelChange(), handleMasterEnd(), handleMastersEnd(), handlePageEnd(), handlePagesEnd(), libvisio::VSDXParser::parseDocument(), libvisio::VDXParser::parseMain(), libvisio::VSDXParser::parseMain(), libvisio::VSDXParser::parseMetaData(), readCharIX(), libvisio::VDXParser::readFillAndShadow(), readLayerIX(), libvisio::VDXParser::readLine(), readPage(), libvisio::VDXParser::readPageProps(), readPageSheet(), libvisio::VSDXParser::readPageSheetProperties(), readParaIX(), libvisio::VSDXParser::readStyleProperties(), readStyleSheet(), libvisio::VDXParser::readTextBlock(), and VSDXMLParserBase().
|
protected |
|
protected |
|
protected |
Referenced by readArcTo(), readEllipse(), readEllipticalArcTo(), readGeometry(), readInfiniteLine(), readLineTo(), readMoveTo(), readNURBSTo(), readPolylineTo(), readRelCubBezTo(), readRelEllipticalArcTo(), readRelLineTo(), readRelMoveTo(), readRelQuadBezTo(), readSplineKnot(), readSplineStart(), and VSDXMLParserBase().
|
protected |
Referenced by VSDXMLParserBase().
|
protected |
Referenced by _handleLevelChange(), and VSDXMLParserBase().
|
protected |
|
protected |
|
protected |
Referenced by handleMasterEnd(), readStencil(), and VSDXMLParserBase().
|
protected |
|
protected |
|
protected |
Referenced by VSDXMLParserBase().
|
protected |
Referenced by readCharIX(), libvisio::VDXParser::readFonts(), libvisio::VSDXParser::readFonts(), readParaIX(), and VSDXMLParserBase().
|
protected |
Referenced by libvisio::VDXParser::processXmlNode(), libvisio::VSDXParser::processXmlNode(), readCharIX(), libvisio::VDXParser::readFillAndShadow(), libvisio::VDXParser::readLine(), readParaIX(), libvisio::VSDXParser::readStyleProperties(), libvisio::VDXParser::readTextBlock(), and VSDXMLParserBase().
|
protected |
|
protected |
Referenced by _flushShape(), handleMasterEnd(), handleMastersEnd(), handleMastersStart(), handleMasterStart(), handlePageEnd(), handlePagesEnd(), handlePagesStart(), handlePageStart(), libvisio::VDXParser::processXmlNode(), libvisio::VSDXParser::processXmlNode(), readShape(), and VSDXMLParserBase().
|
protected |
Referenced by handleMastersEnd(), handleMastersStart(), handlePagesStart(), libvisio::VDXParser::processXmlNode(), libvisio::VSDXParser::processXmlNode(), libvisio::VDXParser::readFillAndShadow(), libvisio::VDXParser::readPageProps(), libvisio::VSDXParser::readPageSheetProperties(), readShape(), and VSDXMLParserBase().
|
protected |
Referenced by _flushShape(), libvisio::VDXParser::getBinaryData(), libvisio::VSDXParser::getBinaryData(), libvisio::VDXParser::processXmlNode(), libvisio::VSDXParser::processXmlNode(), readCharIX(), libvisio::VDXParser::readFillAndShadow(), readForeignData(), libvisio::VDXParser::readForeignInfo(), readGeometry(), libvisio::VDXParser::readLayerMem(), libvisio::VDXParser::readLine(), libvisio::VDXParser::readMisc(), readParaIX(), readShape(), libvisio::VSDXParser::readShapeProperties(), libvisio::VSDXParser::readStyleProperties(), libvisio::VSDXParser::readTabRow(), libvisio::VDXParser::readTabs(), libvisio::VSDXParser::readTabs(), readText(), libvisio::VDXParser::readTextBlock(), libvisio::VDXParser::readTxtXForm(), libvisio::VDXParser::readXForm1D(), libvisio::VDXParser::readXFormData(), and VSDXMLParserBase().
|
protected |
|
protected |
Referenced by handleMasterEnd(), handlePageEnd(), readPage(), readShape(), and VSDXMLParserBase().
|
protected |
|
protected |
|
protected |
Referenced by libvisio::VSDXParser::processXmlDocument(), libvisio::VDXParser::processXmlNode(), readArcTo(), libvisio::VSDXParser::readCharacter(), readCharIX(), readColours(), readEllipse(), readEllipticalArcTo(), libvisio::VDXParser::readFillAndShadow(), libvisio::VDXParser::readFonts(), libvisio::VSDXParser::readFonts(), libvisio::VDXParser::readForeignInfo(), readInfiniteLine(), libvisio::VSDXParser::readLayer(), readLayerIX(), libvisio::VDXParser::readLayerMem(), libvisio::VDXParser::readLine(), readLineTo(), libvisio::VDXParser::readMisc(), readMoveTo(), readNURBSTo(), libvisio::VDXParser::readPageProps(), libvisio::VSDXParser::readPageSheetProperties(), libvisio::VSDXParser::readParagraph(), readParaIX(), readPolylineTo(), readRelCubBezTo(), readRelEllipticalArcTo(), readRelLineTo(), readRelMoveTo(), readRelQuadBezTo(), libvisio::VSDXParser::readShapeProperties(), readSplineKnot(), readSplineStart(), libvisio::VSDXParser::readStyleProperties(), libvisio::VDXParser::readTab(), libvisio::VSDXParser::readTabRow(), libvisio::VDXParser::readTabs(), libvisio::VSDXParser::readTabs(), readText(), libvisio::VDXParser::readTextBlock(), libvisio::VDXParser::readTxtXForm(), libvisio::VDXParser::readXForm1D(), libvisio::VDXParser::readXFormData(), and VSDXMLParserBase().