#include <PageParser.h>
|
enum | RootTags {
tag_root,
tag_page,
tag_meta,
tag_layers,
tag_meta_creator,
tag_meta_created,
tag_meta_changed,
attr_imageFilename,
attr_imageWidth,
attr_imageHeight,
attr_text_type,
attr_xmlns,
attr_xsi,
attr_schemaLocation,
tag_end
} |
|
enum | LoadStatus {
status_not_loaded = 0,
status_file_not_found,
status_file_locked,
status_file_empty,
status_not_downloaded,
status_ok,
status_end
} |
|
Enumerator |
---|
status_not_loaded |
|
status_file_not_found |
|
status_file_locked |
|
status_file_empty |
|
status_not_downloaded |
|
status_ok |
|
status_end |
|
Enumerator |
---|
tag_root |
|
tag_page |
|
tag_meta |
|
tag_layers |
|
tag_meta_creator |
|
tag_meta_created |
|
tag_meta_changed |
|
attr_imageFilename |
|
attr_imageWidth |
|
attr_imageHeight |
|
attr_text_type |
|
attr_xmlns |
|
attr_xsi |
|
attr_schemaLocation |
|
tag_end |
|
rdf::PageXmlParser::PageXmlParser |
( |
| ) |
|
QString rdf::PageXmlParser::imagePathToXmlPath |
( |
const QString & |
path, |
|
|
const QString & |
subDir = "" |
|
) |
| |
|
static |
QString rdf::PageXmlParser::loadStatusMessage |
( |
| ) |
const |
QSharedPointer< PageElement > rdf::PageXmlParser::page |
( |
| ) |
const |
QSharedPointer< PageElement > rdf::PageXmlParser::parse |
( |
const QByteArray & |
ba, |
|
|
LoadStatus & |
status, |
|
|
bool |
ignoreLayers = false |
|
) |
| const |
|
protectedvirtual |
void rdf::PageXmlParser::parseLayers |
( |
QXmlStreamReader & |
reader, |
|
|
QSharedPointer< PageElement > |
page, |
|
|
bool |
ignoreLayers = false |
|
) |
| const |
|
protectedvirtual |
Parses the layers of a PAGE XML.
- Parameters
-
reader | The reader. |
page | The page. |
void rdf::PageXmlParser::parseMetadata |
( |
QXmlStreamReader & |
reader, |
|
|
QSharedPointer< PageElement > |
page |
|
) |
| const |
|
protectedvirtual |
Parses the metadata of a PAGE XML.
- Parameters
-
reader | The XML reader. |
page | The page element. |
void rdf::PageXmlParser::parseRegion |
( |
QXmlStreamReader & |
reader, |
|
|
QSharedPointer< Region > |
parent |
|
) |
| const |
|
protectedvirtual |
Parses all regions from a PAGE XML hierarchically.
- Parameters
-
reader | The XML Reader. |
parent | The parent of the region which is parsed next. |
bool rdf::PageXmlParser::read |
( |
const QString & |
xmlPath, |
|
|
bool |
ignoreLayers = false |
|
) |
| |
void rdf::PageXmlParser::setPage |
( |
QSharedPointer< PageElement > |
page | ) |
|
QString rdf::PageXmlParser::tagName |
( |
const RootTags & |
tag | ) |
const |
void rdf::PageXmlParser::write |
( |
const QString & |
xmlPath, |
|
|
const QSharedPointer< PageElement > |
pageElement |
|
) |
| |
void rdf::PageXmlParser::writeMetaData |
( |
QXmlStreamWriter & |
writer | ) |
const |
|
protected |
QByteArray rdf::PageXmlParser::writePageElement |
( |
| ) |
const |
|
protected |
The documentation for this class was generated from the following files: