15#include <QXmlStreamWriter>
25 m_gridlines (document.modelLoadViews().
gridlines ()),
26 m_guidelines (document.modelLoadViews().
guidelines ())
67 QXmlStreamAttributes attributes = reader.attributes();
80 while ((reader.tokenType() != QXmlStreamReader::EndElement) ||
91 reader.raiseError (QObject::tr (
"Cannot read settings for views loading"));
96 QTextStream &str)
const
98 str << indentation <<
"DocumentModelLoadViews\n";
102 str << indentation <<
"gridlines=" << (m_gridlines ?
"yes" :
"no") <<
"\n";
103 str << indentation <<
"guidelines=" << (m_guidelines ?
"yes" :
"no") <<
"\n";
117 writer.writeEndElement();
const QString DOCUMENT_SERIALIZE_LOAD_VIEWS_GRIDLINES
const QString DOCUMENT_SERIALIZE_LOAD_VIEWS
const QString DOCUMENT_SERIALIZE_LOAD_VIEWS_GUIDELINES
const QString DOCUMENT_SERIALIZE_BOOL_TRUE
const QString DOCUMENT_SERIALIZE_BOOL_FALSE
log4cpp::Category * mainCat
const QString INDENTATION_DELTA
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
bool gridlines() const
Get method for gridlines.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
void setGuidelines(bool guidelines)
Set method for guidelines.
bool guidelines() const
Get method for guidelines.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
void setGridlines(bool gridlines)
Set method for gridlines.
DocumentModelLoadViews & operator=(const DocumentModelLoadViews &other)
Assignment constructor.
DocumentModelLoadViews()
Default constructor.
Storage of one imported image and the data attached to that image.
#define LOG4CPP_INFO_S(logger)