18 #ifndef QGSCOMPOSERATTRIBUTETABLEV2_H
19 #define QGSCOMPOSERATTRIBUTETABLEV2_H
45 int mCurrentSortColumn;
77 virtual bool writeXML( QDomElement& elem, QDomDocument & doc,
bool ignoreFrames =
false )
const override;
85 virtual bool readXML(
const QDomElement& itemElem,
const QDomDocument& doc,
bool ignoreFrames =
false )
override;
93 void setSource(
const ContentSource source );
127 void setRelationId(
const QString relationId );
167 void setMaximumNumberOfFeatures(
const int features );
180 void setUniqueRowsOnly(
const bool uniqueOnly );
196 void setDisplayOnlyVisibleFeatures(
const bool visibleOnly );
212 void setFilterToAtlasFeature(
const bool filterToAtlas );
235 void setFilterFeatures(
const bool filter );
253 void setFeatureFilter(
const QString& expression );
263 void setDisplayAttributes(
const QSet<int>& attr,
bool refresh =
true );
271 QList<QPair<int, bool> > sortAttributes()
const;
283 ContentSource mSource;
295 int mMaximumNumberOfFeatures;
298 bool mShowUniqueRowsOnly;
301 bool mShowOnlyVisibleFeatures;
304 bool mFilterToAtlasIntersection;
307 bool mFilterFeatures;
309 QString mFeatureFilter;
314 QList<int> fieldsToDisplay()
const;
320 void restoreFieldAliasMap(
const QMap<int, QString>& map );
324 void removeLayer( QString layerId );
330 #endif // QGSCOMPOSERATTRIBUTETABLEV2_H