Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 2046 → Rev 2045

/branches/Version13x/Scribus/scribus/pdfoptionsio.cpp
63,7 → 63,7
{
// Verify to make sure our settings are sane
QString vrfyError;
// Make sure the options are sane
// Initialise the DOM. We don't re-use any existing one in case
PDFOptions::VerifyResults vr = m_opts->verify(&vrfyError);
if (vr != PDFOptions::Verify_NoError)
{
71,7 → 71,6
return QString::null;
}
// Build the document. Initial implementation uses QDom.
m_doc = QDomDocument();
m_root = m_doc.createElement("ScribusPDFOptions");
m_root.setAttribute("version", formatVersion);
m_doc.appendChild(m_root);
79,10 → 78,7
buildSettings();
// We're done - return a string containing the document XML
QString xml = m_doc.toString();
xml.prepend(
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<!DOCTYPE ScribusPDFOptions SYSTEM 'scribuspdfoptions.dtd'>\n"
);
xml.prepend("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
return xml;
}
 
149,7 → 145,7
void PDFOptionsIO::addElem(QDomElement& addTo, QString name, bool value)
{
QDomElement elem = m_doc.createElement(name);
elem.setAttribute("value", value ? "true" : "false" );
elem.setAttribute("value",value);
addTo.appendChild(elem);
}
 
/branches/Version13x/Scribus/scribus/pdfoptions.h
19,10 → 19,6
* @brief PDF Options struture. Capable of verifying its self, but otherwise largely
* a dumb struct.
*
* If you change this class, please ensure that PDFOptionsIO is
* updated to match and scribus/dtd/scribuspdfoptions.dtd is tweaked
* if required.
*
* @sa PDFOptionsIO
*/
class PDFOptions