VDXParser.h Source File documentation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

VDXParser.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libvisio project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10 #ifndef __VDXPARSER_H__
11 #define __VDXPARSER_H__
12
13 #include <librevenge/librevenge.h>
14 #include "VSDXMLParserBase.h"
15
16 namespace libvisio
17 {
18
19 class VSDCollector;
20
21 class VDXParser : public VSDXMLParserBase
22 {
23 using VSDXMLParserBase::readExtendedColourData;
24 using VSDXMLParserBase::readDoubleData;
25 using VSDXMLParserBase::readBoolData;
26 using VSDXMLParserBase::readLongData;
27 using VSDXMLParserBase::readStringData;
28
29 public:
30 explicit VDXParser(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter);
31 virtual ~VDXParser();
32 bool parseMain();
33 bool extractStencils();
34
35 private:
36 VDXParser();
37 VDXParser(const VDXParser &);
38 VDXParser &operator=(const VDXParser &);
39
40 // Helper functions
41
42 xmlChar *readStringData(xmlTextReaderPtr reader);
43
44 int getElementToken(xmlTextReaderPtr reader);
45 int getElementDepth(xmlTextReaderPtr reader);
46
47 // Functions to read the DatadiagramML document structure
48
49 bool processXmlDocument(librevenge::RVNGInputStream *input);
50 void processXmlNode(xmlTextReaderPtr reader);
51
52 // Functions reading the DiagramML document content
53
54 void readLine(xmlTextReaderPtr reader);
55 void readFillAndShadow(xmlTextReaderPtr reader);
56 void readXFormData(xmlTextReaderPtr reader);
57 void readMisc(xmlTextReaderPtr reader);
58 void readTxtXForm(xmlTextReaderPtr reader);
59 void readXForm1D(xmlTextReaderPtr reader);
60 void readPageProps(xmlTextReaderPtr reader);
61 void readFonts(xmlTextReaderPtr reader);
62 void readTextBlock(xmlTextReaderPtr reader);
63 void readForeignInfo(xmlTextReaderPtr reader);
64 void readLayerMem(xmlTextReaderPtr reader);
65 void readTabs(xmlTextReaderPtr reader);
66 void readTab(xmlTextReaderPtr reader);
67
68 void getBinaryData(xmlTextReaderPtr reader);
69
70 // Private data
71
72 librevenge::RVNGInputStream *m_input;
73 librevenge::RVNGDrawingInterface *m_painter;
74 };
75
76 } // namespace libvisio
77
78 #endif // __VDXPARSER_H__
79 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libvisio::VDXParser::readTextBlock
void readTextBlock(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:813
libvisio::VDXParser
Definition: VDXParser.h:21
libvisio::VDXParser::readXFormData
void readXFormData(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:495
libvisio::VDXParser::processXmlDocument
bool processXmlDocument(librevenge::RVNGInputStream *input)
Definition: VDXParser.cpp:73
libvisio::VSDXMLParserBase::readStringData
int readStringData(VSDName &text, xmlTextReaderPtr reader)
Definition: VSDXMLParserBase.cpp:2055
libvisio::VSDXMLParserBase::readBoolData
int readBoolData(boost::optional< bool > &value, xmlTextReaderPtr reader)
Definition: VSDXMLParserBase.cpp:2123
libvisio::VDXParser::getBinaryData
void getBinaryData(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:921
libvisio::VDXParser::readPageProps
void readPageProps(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:715
libvisio::VDXParser::processXmlNode
void processXmlNode(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:94
VSDXMLParserBase.h
libvisio::VDXParser::~VDXParser
virtual ~VDXParser()
Definition: VDXParser.cpp:30
libvisio::VDXParser::operator=
VDXParser & operator=(const VDXParser &)
libvisio::VDXParser::readTxtXForm
void readTxtXForm(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:581
libvisio::VDXParser::readLayerMem
void readLayerMem(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:554
libvisio::VSDXMLParserBase::readDoubleData
int readDoubleData(boost::optional< double > &value, xmlTextReaderPtr reader)
Definition: VSDXMLParserBase.cpp:2071
libvisio::VDXParser::readFonts
void readFonts(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:781
libvisio::VDXParser::readMisc
void readMisc(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:468
libvisio::VDXParser::m_input
librevenge::RVNGInputStream * m_input
Definition: VDXParser.h:72
libvisio::VDXParser::readTabs
void readTabs(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:992
libvisio::VDXParser::readLine
void readLine(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:315
libvisio::VDXParser::VDXParser
VDXParser()
libvisio::VDXParser::getElementToken
int getElementToken(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:911
libvisio::VDXParser::readForeignInfo
void readForeignInfo(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:937
libvisio::VSDXMLParserBase::readLongData
int readLongData(boost::optional< long > &value, xmlTextReaderPtr reader)
Definition: VSDXMLParserBase.cpp:2097
libvisio::VSDXMLParserBase::readExtendedColourData
int readExtendedColourData(Colour &value, long &idx, xmlTextReaderPtr reader)
Definition: VSDXMLParserBase.cpp:2162
libvisio::VDXParser::readFillAndShadow
void readFillAndShadow(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:380
libvisio
Definition: libvisio_utils.h:73
libvisio::VSDXMLParserBase
Definition: VSDXMLParserBase.h:29
libvisio::VDXParser::extractStencils
bool extractStencils()
Definition: VDXParser.cpp:67
libvisio::VDXParser::m_painter
librevenge::RVNGDrawingInterface * m_painter
Definition: VDXParser.h:73
libvisio::VDXParser::readXForm1D
void readXForm1D(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:660
libvisio::VDXParser::readTab
void readTab(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:1023
libvisio::VDXParser::parseMain
bool parseMain()
Definition: VDXParser.cpp:34
libvisio::VDXParser::readStringData
xmlChar * readStringData(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:895
libvisio::VDXParser::getElementDepth
int getElementDepth(xmlTextReaderPtr reader)
Definition: VDXParser.cpp:916