QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
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 );
109 void setColumnWidths(
const QList< double > &widths );
116 bool includeTableHeader()
const;
123 void setIncludeTableHeader(
bool included );
152 QList< double > mRowHeights;
153 QList< double > mColumnWidths;
154 bool mIncludeHeader =
false;
156 void refreshColumns();
160 #endif // QGSLAYOUTITEMMANUALTABLE_H
QVector< QgsLayoutTableColumn > QgsLayoutTableColumns
List of column definitions for a QgsLayoutTable.
QVector< QgsLayoutTableRow > QgsLayoutTableContents
List of QgsLayoutTableRows, representing rows and column cell contents for a QgsLayoutTable.
The class is used as a container of context for various read/write operations on other objects.
QList< double > columnWidths() const
Returns the list of column widths (in millimeters) to use when rendering the table.
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.
Conditional styling for a rule.
virtual QgsTextFormat textFormatForCell(int row, int column) const
Returns the text format to use for the cell at the specified row and column.
QVector< QgsTableRow > QgsTableContents
A set of table rows.
virtual Qt::Alignment verticalAlignmentForCell(int row, int column) const
Returns the vertical alignment to use for the cell at the specified row and column.
bool readPropertiesFromElement(const QDomElement &itemElem, const QDomDocument &doc, const QgsReadWriteContext &context) override
Sets multiframe state from a DOM element.
Container for all settings relating to text rendering.
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.
virtual QgsTextFormat textFormatForHeader(int column) const
Returns the text format to use for the header cell at the specified column.
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.
QList< double > rowHeights() const
Returns the list of row heights (in millimeters) to use when rendering the table.
virtual QgsConditionalStyle conditionalCellStyle(int row, int column) const
Returns the conditional style to use for the cell at row, column.
virtual Qt::Alignment horizontalAlignmentForCell(int row, int column) const
Returns the horizontal alignment to use for the cell at the specified row and column.
virtual QString displayName() const
Returns the multiframe display name.
A layout table subclass that displays manually entered (and formatted) content.