12 #include <QTextStream>
13 #include <QXmlStreamWriter>
24 m_removeDefinedGridLines (false),
46 m_removeDefinedGridLines (false),
52 m_stopX (startX + (countX - 1.0) * stepX),
57 m_stopY (startY + (countY - 1.0) * stepY)
62 m_stable (document.modelGridRemoval().stable()),
63 m_removeDefinedGridLines (document.modelGridRemoval().removeDefinedGridLines()),
64 m_closeDistance (document.modelGridRemoval().closeDistance()),
65 m_gridCoordDisableX (document.modelGridRemoval().gridCoordDisableX()),
66 m_countX (document.modelGridRemoval().countX()),
67 m_startX (document.modelGridRemoval().startX()),
68 m_stepX (document.modelGridRemoval().stepX()),
69 m_stopX (document.modelGridRemoval().stopX()),
70 m_gridCoordDisableY (document.modelGridRemoval().gridCoordDisableY()),
71 m_countY (document.modelGridRemoval().countY()),
72 m_startY (document.modelGridRemoval().startY()),
73 m_stepY (document.modelGridRemoval().stepY()),
74 m_stopY (document.modelGridRemoval().stopY())
79 m_stable (other.stable()),
80 m_removeDefinedGridLines (other.removeDefinedGridLines()),
81 m_closeDistance (other.closeDistance()),
82 m_gridCoordDisableX (other.gridCoordDisableX()),
83 m_countX (other.countX()),
84 m_startX (other.startX()),
85 m_stepX (other.stepX()),
86 m_stopX (other.stopX()),
87 m_gridCoordDisableY (other.gridCoordDisableX()),
88 m_countY (other.countY()),
89 m_startY (other.startY()),
90 m_stepY (other.stepY()),
91 m_stopY (other.stopY())
101 m_countX = other.
countX();
102 m_startX = other.
startX();
103 m_stepX = other.
stepX();
104 m_stopX = other.
stopX();
106 m_countY = other.
countY();
107 m_startY = other.
startY();
108 m_stepY = other.
stepY();
109 m_stopY = other.
stopY();
116 return m_closeDistance;
131 return m_gridCoordDisableX;
136 return m_gridCoordDisableY;
145 QXmlStreamAttributes attributes = reader.attributes();
180 while ((reader.tokenType() != QXmlStreamReader::EndElement) ||
183 if (reader.atEnd()) {
191 reader.raiseError (QObject::tr (
"Cannot read grid removal data"));
196 QTextStream &str)
const
198 str << indentation <<
"DocumentModelGridRemoval\n";
202 str << indentation <<
"stable=" << (m_stable ?
"true" :
"false") <<
"\n";
203 str << indentation <<
"removeDefinedGridLines=" << (m_removeDefinedGridLines ?
"true" :
"false") <<
"\n";
204 str << indentation <<
"closeDistance=" << m_closeDistance <<
"\n";
206 str << indentation <<
"countX=" << m_countX <<
"\n";
207 str << indentation <<
"startX=" << m_startX <<
"\n";
208 str << indentation <<
"stepX=" << m_stepX <<
"\n";
209 str << indentation <<
"stopX=" << m_stopX <<
"\n";
211 str << indentation <<
"countY=" << m_countY <<
"\n";
212 str << indentation <<
"startY=" << m_startY <<
"\n";
213 str << indentation <<
"stepY=" << m_stepY <<
"\n";
214 str << indentation <<
"stopY=" << m_stopY <<
"\n";
219 return m_removeDefinedGridLines;
247 writer.writeEndElement();
267 m_gridCoordDisableX = gridCoordDisable;
272 m_gridCoordDisableY = gridCoordDisable;