QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
18 #ifndef QGSLAYOUTITEMMANUALTABLE_H
19 #define QGSLAYOUTITEMMANUALTABLE_H
21 #include "qgis_core.h"
46 int type()
const override;
47 QIcon
icon()
const override;
79 QList< double > rowHeights()
const {
return mRowHeights; }
89 void setRowHeights(
const QList< double > &heights );
99 QList< double > columnWidths()
const {
return mColumnWidths; }
109 void setColumnWidths(
const QList< double > &widths );
116 bool includeTableHeader()
const;
123 void setIncludeTableHeader(
bool included );
148 QList< double > mRowHeights;
149 QList< double > mColumnWidths;
150 bool mIncludeHeader =
false;
152 void refreshColumns();
156 #endif // QGSLAYOUTITEMMANUALTABLE_H
QVector< QgsLayoutTableColumn > QgsLayoutTableColumns
QVector< QgsLayoutTableRow > QgsLayoutTableContents
bool writePropertiesToElement(QDomElement &elem, QDomDocument &doc, const QgsReadWriteContext &context) const override
Stores multiframe state within an XML DOM element.
virtual QIcon icon() const
Returns the item's icon.
QVector< QgsTableRow > QgsTableContents
A set of table rows.
bool readPropertiesFromElement(const QDomElement &itemElem, const QDomDocument &doc, const QgsReadWriteContext &context) override
Sets multiframe state from a DOM element.
virtual int type() const =0
Returns unique multiframe type id.
virtual bool getTableContents(QgsLayoutTableContents &contents)=0
Fetches the contents used for the cells in the table.
A class to display a table in the print layout, and allow the table to span over multiple frames.
virtual bool calculateMaxRowHeights()
Calculates the maximum height of text shown in rows.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
virtual QgsConditionalStyle conditionalCellStyle(int row, int column) const
Returns the conditional style to use for the cell at row, column.
virtual QString displayName() const
Returns the multiframe display name.