35 #pragma warning(push, 0) // no warnings from includes 37 #include <QSharedPointer> 40 #pragma warning(disable: 4251) // dll interface warning 43 #ifdef DLL_CORE_EXPORT 44 #define DllCoreExport Q_DECL_EXPORT 46 #define DllCoreExport Q_DECL_IMPORT 51 class QXmlStreamReader;
52 class QXmlStreamWriter;
86 status_not_loaded = 0,
96 bool read(
const QString& xmlPath,
bool ignoreLayers =
false);
97 void write(
const QString& xmlPath,
const QSharedPointer<PageElement> pageElement);
100 QString loadStatusMessage()
const;
102 QString tagName(
const RootTags& tag)
const;
104 void setPage(QSharedPointer<PageElement> page);
105 QSharedPointer<PageElement> page()
const;
107 static QString imagePathToXmlPath(
const QString& path,
const QString& subDir =
"");
114 virtual QSharedPointer<PageElement> parse(
const QByteArray& ba,
LoadStatus& status,
bool ignoreLayers =
false)
const;
115 virtual void parseRegion(QXmlStreamReader& reader, QSharedPointer<Region> parent)
const;
116 virtual void parseMetadata(QXmlStreamReader& reader, QSharedPointer<PageElement> page)
const;
117 virtual void parseLayers(QXmlStreamReader& reader, QSharedPointer<PageElement> page,
bool ignoreLayers =
false)
const;
119 QByteArray writePageElement()
const;
120 void writeMetaData(QXmlStreamWriter& writer)
const;
Definition: PageParser.h:72
Definition: PageParser.h:79
Definition: PageParser.h:90
Definition: PageParser.h:80
Definition: PageParser.h:89
Definition: PageParser.h:71
Definition: PageParser.h:68
Definition: PageParser.h:78
Definition: PageParser.h:74
Definition: PageParser.h:69
Definition: PageParser.h:76
Definition: PageParser.h:87
Definition: PageParser.h:91
LoadStatus
Definition: PageParser.h:85
RootTags
Definition: PageParser.h:65
Definition: PageParser.h:66
Definition: PageParser.h:88
Definition: PageParser.h:60
Definition: PageParser.h:67
Definition: PageParser.h:70
#define DllCoreExport
Definition: PageParser.h:46
Definition: PageParser.h:77
QSharedPointer< PageElement > mPage
Definition: PageParser.h:111
Definition: Algorithms.cpp:45
Definition: PageParser.h:75