10 #include <QDomElement>
14 #include "scribusapi.h"
65 bool writeTo(QIODevice& outDevice,
bool includePasswords =
false);
66 bool writeTo(QString outFileName,
bool includePasswords =
false);
79 bool readFrom(QIODevice& inStream);
80 bool readFrom(QString inFileName);
86 const QString& lastError()
const;
92 QString buildXMLString();
100 void addElem(QDomElement& addTo, QString name,
bool value);
101 void addElem(QDomElement& addTo, QString name, QString value);
102 void addElem(QDomElement& addTo, QString name,
int value);
103 void addElem(QDomElement& addTo, QString name,
double value);
104 void addList(QDomElement& addTo, QString name, QList<QString>& value);
107 void addPresentationData();
109 void addLPISettings();
117 bool readElem(QDomElement& parent, QString name,
bool* value);
118 bool readElem(QDomElement& parent, QString name,
int* value);
119 bool readElem(QDomElement& parent, QString name,
double* value);
120 bool readElem(QDomElement& parent, QString name, QString* value);
121 bool readList(QDomElement& parent, QString name, QList<QString>* value);
123 bool readPDFVersion();
124 bool readPDFFontEmbeddingMode();
125 bool readPresentationData();
126 bool readLPISettings();
129 QDomNode getUniqueNode(QDomElement& parent, QString name);
134 QDomElement getValueElement(QDomNode& node, QString name,
bool isValue =
true);
143 bool m_includePasswords;
147 static const int formatVersion;
Helper class for reading/writing PDFOptions.
Definition: pdfoptionsio.h:48
PDF Options struture. Capable of verifying its self, but otherwise largely a dumb struct...
Definition: pdfoptions.h:37
Defines class PDFOptions, used for loading/saving/passing around PDF options.