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 );
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 The class is used as a container of context for various read/write operations on other objects...
virtual bool calculateMaxRowHeights()
Calculates the maximum height of text shown in rows.
virtual QIcon icon() const
Returns the item's icon.
A class to display a table in the print layout, and allow the table to span over multiple frames...
bool writePropertiesToElement(QDomElement &elem, QDomDocument &doc, const QgsReadWriteContext &context) const override
Stores multiframe state within an XML DOM element.
QVector< QgsLayoutTableColumn *> QgsLayoutTableColumns
List of column definitions for a QgsLayoutTable.
Conditional styling for a rule.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
QList< double > columnWidths() const
Returns the list of column widths (in millimeters) to use when rendering the table.
QList< double > rowHeights() const
Returns the list of row heights (in millimeters) to use when rendering the table. ...
virtual bool getTableContents(QgsLayoutTableContents &contents)=0
Fetches the contents used for the cells in the table.
virtual QgsConditionalStyle conditionalCellStyle(int row, int column) const
Returns the conditional style to use for the cell at row, column.
QVector< QgsTableRow > QgsTableContents
A set of table rows.
virtual QString displayName() const
Returns the multiframe display name.
virtual int type() const =0
Returns unique multiframe type id.
A layout table subclass that displays manually entered (and formatted) content.
QVector< QgsLayoutTableRow > QgsLayoutTableContents
List of QgsLayoutTableRows, representing rows and column cell contents for a QgsLayoutTable.
bool readPropertiesFromElement(const QDomElement &itemElem, const QDomDocument &doc, const QgsReadWriteContext &context) override
Sets multiframe state from a DOM element.