18 #ifndef QGSCOMPOSERATTRIBUTETABLEV2_H
19 #define QGSCOMPOSERATTRIBUTETABLEV2_H
45 int mCurrentSortColumn;
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 );
279 void setWrapString(
const QString& wrapString );
301 ContentSource mSource;
313 int mMaximumNumberOfFeatures;
316 bool mShowUniqueRowsOnly;
319 bool mShowOnlyVisibleFeatures;
322 bool mFilterToAtlasIntersection;
325 bool mFilterFeatures;
349 void removeLayer(
const QString& layerId );
355 #endif // QGSCOMPOSERATTRIBUTETABLEV2_H
bool displayOnlyVisibleFeatures() const
Returns true if the table is set to show only features visible on a corresponding composer map item...
Helper class for sorting tables, takes into account sorting column and ascending / descending...
virtual QString displayName() const
Get multiframe display name.
QgsVectorLayer * vectorLayer() const
Returns the vector layer the attribute table is currently using.
virtual bool writeXML(QDomElement &elem, QDomDocument &doc, bool ignoreFrames=false) const override
Stores state information about multiframe in DOM element.
A table that displays attributes from a vector layer.
virtual QgsExpressionContext * createExpressionContext() const
Creates an expression context relating to the objects's current state.
virtual void addFrame(QgsComposerFrame *frame, bool recalcFrameSizes=true)=0
Adds a frame to the multiframe.
void setSortColumn(int col)
Sets column number to sort by.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
A class to display a table in the print composer, and allow the table to span over multiple frames...
bool uniqueRowsOnly() const
Returns true if the table is set to show only unique rows.
int maximumNumberOfFeatures() const
Returns the maximum number of features to be shown by the table.
QString featureFilter() const
Returns the current expression used to filter features for the table.
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc, bool ignoreFrames=false) override
Reads multiframe state information from a DOM element.
Graphics scene for map printing.
const QgsComposerMap * composerMap() const
Returns the composer map whose extents are controlling the features shown in the table.
Object representing map window.
Frame item for a composer multiframe item.
ContentSource
Specifies the content source for the attribute table.
bool filterToAtlasFeature() const
Returns true if the table is set to only show features which intersect the current atlas feature...
QString relationId() const
Returns the relation id which the table displays child features from.
bool filterFeatures() const
Returns true if a feature filter is active on the attribute table.
virtual bool getTableContents(QgsComposerTableContents &contents)=0
Fetches the contents used for the cells in the table.
void setAscending(bool asc)
Sets sort order for column sorting.
Represents a vector layer which manages a vector based data sets.
QString wrapString() const
Returns the string used to wrap the contents of the table cells by.
ContentSource source() const
Returns the source for attributes shown in the table body.