#include <Elements.h>
| rdf::PageElement::PageElement |
( |
const QString & |
xmlPath = QString() | ) |
|
Initializes a new instance of the PageElement class. This class corresponds to a PAGE XML file. It hold's the XML file's path. After parsing the PAGE XML, the rootRegion() should contain all relevant regions.
- Parameters
-
| QString rdf::PageElement::creator |
( |
| ) |
const |
The PAGE XML creator.
- Returns
| QDateTime rdf::PageElement::dateCreated |
( |
| ) |
const |
Returns the date created of the PAGE XML.
- Returns
| QDateTime rdf::PageElement::dateModified |
( |
| ) |
const |
The modified date of the PAGE XML.
- Returns
| QString rdf::PageElement::imageFileName |
( |
| ) |
const |
Returns the filename of the corresponding image.
- Returns
| QSize rdf::PageElement::imageSize |
( |
| ) |
const |
| bool rdf::PageElement::isEmpty |
( |
| ) |
|
| QSharedPointer< Region > rdf::PageElement::rootRegion |
( |
| ) |
const |
Returns the root region. This is needed if the XML is read.
- Returns
| void rdf::PageElement::setCreator |
( |
const QString & |
creator | ) |
|
Set the creator of the PAGE XML.
- Parameters
-
| creator | The PAGE creator (CVL if we write). |
| void rdf::PageElement::setDateCreated |
( |
const QDateTime & |
date | ) |
|
Set the date created of the PAGE XML.
- Parameters
-
| void rdf::PageElement::setDateModified |
( |
const QDateTime & |
date | ) |
|
Set the date modified of the PAGE XML.
- Parameters
-
| date | The last modified date of the PAGE XML. |
| void rdf::PageElement::setImageFileName |
( |
const QString & |
name | ) |
|
Set the filename of the corresponding image.
- Parameters
-
| name | The image's filename. |
| void rdf::PageElement::setImageSize |
( |
const QSize & |
size | ) |
|
Set the size of the image.
- Parameters
-
| void rdf::PageElement::setRootRegion |
( |
QSharedPointer< Region > |
region | ) |
|
Set the root region. This is needed for writing to a PAGE XML file.
- Parameters
-
| void rdf::PageElement::setXmlPath |
( |
const QString & |
xmlPath | ) |
|
Set the XML path.
- Parameters
-
| QString rdf::PageElement::toString |
( |
| ) |
const |
|
virtual |
Creates a string with all relevant attributes of the current instance.
- Returns
| QString rdf::PageElement::xmlPath |
( |
| ) |
const |
The PAGE XML path.
- Returns
Prints the page element to the debug stream.
- Parameters
-
| d | The debug stream. |
| p | The page element. |
- Returns
Appends the page element to the data stream s.
- Parameters
-
| s | The data stream. |
| p | The page element. |
- Returns
| QString rdf::PageElement::mCreator |
|
protected |
| QDateTime rdf::PageElement::mDateCreated |
|
protected |
| QDateTime rdf::PageElement::mDateModified |
|
protected |
| QString rdf::PageElement::mImageFileName |
|
protected |
| QSize rdf::PageElement::mImageSize |
|
protected |
| QSharedPointer<Region> rdf::PageElement::mRoot |
|
protected |
| QString rdf::PageElement::mXmlPath |
|
protected |
The documentation for this class was generated from the following files: