16 #ifndef QGSATLASCOMPOSITION_H
17 #define QGSATLASCOMPOSITION_H
24 #include <QDomElement>
25 #include <QDomDocument>
26 #include <QStringList>
58 void setEnabled(
bool enabled );
80 void setHideCoverage(
bool hide );
85 Q_DECL_DEPRECATED
bool fixedScale()
const;
90 Q_DECL_DEPRECATED
void setFixedScale(
bool fixed );
95 Q_DECL_DEPRECATED
float margin()
const;
100 Q_DECL_DEPRECATED
void setMargin(
float margin );
119 bool setFilenamePattern(
const QString& pattern );
178 Q_DECL_DEPRECATED
int sortKeyAttributeIndex()
const;
179 Q_DECL_DEPRECATED
void setSortKeyAttributeIndex(
int idx );
195 void setPredefinedScales(
const QVector<qreal>& scales );
204 int numFeatures()
const;
211 bool prepareForFeature(
const int i,
const bool updateMaps =
true );
216 bool prepareForFeature(
const QgsFeature *feat );
219 const QString& currentFilename()
const;
221 void writeXML( QDomElement& elem, QDomDocument& doc )
const;
229 void readXML(
const QDomElement& elem,
const QDomDocument& doc );
238 void readXMLMapSettings(
const QDomElement& elem,
const QDomDocument& doc );
244 int updateFeatures();
257 void refreshFeature();
266 void parameterChanged();
269 void toggled(
bool );
272 void statusMsgChanged( QString message );
290 bool updateFilenameExpression();
295 bool evalFeatureFilename();
301 QString mFilenamePattern;
306 QString mCurrentFilename;
313 int mCurrentFeatureNo;
319 void removeLayers( QStringList layers );
325 QString mSortKeyAttributeName;
328 bool mFilterFeatures;
330 QString mFeatureFilter;
333 QVector<QgsFeatureId> mFeatureIds;
337 std::auto_ptr<QgsExpression> mFilenameExpr;
342 QString mFilenameParserError;
343 QString mFilterParserError;
346 void updateAtlasMaps();
352 QVector<qreal> mPredefinedScales;