18 #ifndef QGSCOMPOSERATTRIBUTETABLEV2_H 19 #define QGSCOMPOSERATTRIBUTETABLEV2_H 48 int mCurrentSortColumn;
132 void setRelationId(
const QString& relationId );
172 void setMaximumNumberOfFeatures(
const int features );
185 void setUniqueRowsOnly(
const bool uniqueOnly );
201 void setDisplayOnlyVisibleFeatures(
const bool visibleOnly );
217 void setFilterToAtlasFeature(
const bool filterToAtlas );
240 void setFilterFeatures(
const bool filter );
258 void setFeatureFilter(
const QString& expression );
268 Q_DECL_DEPRECATED
void setDisplayAttributes(
const QSet<int>& attr,
bool refresh =
true );
278 void setDisplayedFields(
const QStringList& fields,
bool refresh =
true );
294 void setWrapString(
const QString& wrapString );
328 int mMaximumNumberOfFeatures;
331 bool mShowUniqueRowsOnly;
334 bool mShowOnlyVisibleFeatures;
337 bool mFilterToAtlasIntersection;
340 bool mFilterFeatures;
364 void removeLayer(
const QString& layerId );
370 #endif // QGSCOMPOSERATTRIBUTETABLEV2_H QString featureFilter() const
Returns the current expression used to filter features for the table.
Helper class for sorting tables, takes into account sorting column and ascending / descending...
virtual bool writeXML(QDomElement &elem, QDomDocument &doc, bool ignoreFrames=false) const override
Stores state information about multiframe in DOM element.
virtual QString displayName() const
Get multiframe display name.
A table that displays attributes from a vector layer.
virtual void addFrame(QgsComposerFrame *frame, bool recalcFrameSizes=true)=0
Adds a frame to the multiframe.
bool filterToAtlasFeature() const
Returns true if the table is set to only show features which intersect the current atlas feature...
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...
ContentSource source() const
Returns the source for attributes shown in the table body.
bool displayOnlyVisibleFeatures() const
Returns true if the table is set to show only features visible on a corresponding composer map item...
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.
Object representing map window.
Frame item for a composer multiframe item.
int maximumNumberOfFeatures() const
Returns the maximum number of features to be shown by the table.
ContentSource
Specifies the content source for the attribute table.
QgsVectorLayer * vectorLayer() const
Returns the vector layer the attribute table is currently using.
const QgsComposerMap * composerMap() const
Returns the composer map whose extents are controlling the features shown in the table.
bool filterFeatures() const
Returns true if a feature filter is active on the attribute table.
QString relationId() const
Returns the relation id which the table displays child features from.
virtual bool getTableContents(QgsComposerTableContents &contents)=0
Fetches the contents used for the cells in the table.
QString wrapString() const
Returns the string used to wrap the contents of the table cells by.
void setAscending(bool asc)
Sets sort order for column sorting.
Represents a vector layer which manages a vector based data sets.
bool uniqueRowsOnly() const
Returns true if the table is set to show only unique rows.
virtual QgsExpressionContext * createExpressionContext() const
Creates an expression context relating to the objects' current state.