|
| QgsLayoutTable (QgsLayout *layout) |
| Constructor for QgsLayoutTable, belonging to the specified layout. More...
|
|
| ~QgsLayoutTable () override |
|
QColor | backgroundColor () const |
| Returns the color used for the background of the table. More...
|
|
double | cellMargin () const |
| Returns the margin distance between cell borders and their contents in mm. More...
|
|
const QgsLayoutTableStyle * | cellStyle (CellStyleGroup group) const |
| Returns the cell style for a cell group. More...
|
|
QgsLayoutTableColumns & | columns () |
| Returns a reference to the list of QgsLayoutTableColumns shown in the table. More...
|
|
virtual QgsConditionalStyle | conditionalCellStyle (int row, int column) const |
| Returns the conditional style to use for the cell at row, column. More...
|
|
Q_DECL_DEPRECATED QFont | contentFont () const |
| Returns the font used to draw text in table body cells. More...
|
|
Q_DECL_DEPRECATED QColor | contentFontColor () const |
| Returns the color used to draw text in table body cells. More...
|
|
QgsLayoutTableContents & | contents () |
| Returns the current contents of the table. More...
|
|
QgsTextFormat | contentTextFormat () const |
| Returns the format used to draw content text in the table. More...
|
|
EmptyTableMode | emptyTableBehavior () const |
| Returns the behavior mode for empty tables. More...
|
|
QString | emptyTableMessage () const |
| Returns the message for empty tables with no content rows. More...
|
|
QSizeF | fixedFrameSize (int frameIndex=-1) const override |
| Returns the fixed size for a frame, if desired. More...
|
|
virtual bool | getTableContents (QgsLayoutTableContents &contents)=0 |
| Fetches the contents used for the cells in the table. More...
|
|
QColor | gridColor () const |
| Returns the color used for grid lines in the table. More...
|
|
double | gridStrokeWidth () const |
| Returns the width of grid lines in the table in mm. More...
|
|
Q_DECL_DEPRECATED QFont | headerFont () const |
| Returns the font used to draw header text in the table. More...
|
|
Q_DECL_DEPRECATED QColor | headerFontColor () const |
| Returns the color used to draw header text in the table. More...
|
|
HeaderHAlignment | headerHAlignment () const |
| Returns the horizontal alignment for table headers. More...
|
|
virtual QMap< int, QString > | headerLabels () const |
| Returns the text used in the column headers for the table. More...
|
|
HeaderMode | headerMode () const |
| Returns the display mode for headers in the table. More...
|
|
QgsTextFormat | headerTextFormat () const |
| Returns the format used to draw header text in the table. More...
|
|
bool | horizontalGrid () const |
| Returns whether the grid's horizontal lines are drawn in the table. More...
|
|
QSizeF | minFrameSize (int frameIndex=-1) const override |
| Returns the minimum size for a frames, if desired. More...
|
|
bool | readPropertiesFromElement (const QDomElement &itemElem, const QDomDocument &doc, const QgsReadWriteContext &context) override |
| Sets multiframe state from a DOM element. More...
|
|
void | render (QgsLayoutItemRenderContext &context, const QRectF &renderExtent, int frameIndex) override |
| Renders a portion of the multiframe's content into a render context. More...
|
|
virtual QgsExpressionContextScope * | scopeForCell (int row, int column) const |
| Creates a new QgsExpressionContextScope for the cell at row, column. More...
|
|
void | setBackgroundColor (const QColor &color) |
| Sets the color used for background of table. More...
|
|
void | setCellMargin (double margin) |
| Sets the margin distance in mm between cell borders and their contents. More...
|
|
void | setCellStyle (CellStyleGroup group, const QgsLayoutTableStyle &style) |
| Sets the cell style for a cell group. More...
|
|
void | setColumns (const QgsLayoutTableColumns &columns) |
| Replaces the columns in the table with a specified list of QgsLayoutTableColumns. More...
|
|
Q_DECL_DEPRECATED void | setContentFont (const QFont &font) |
| Sets the font used to draw text in table body cells. More...
|
|
Q_DECL_DEPRECATED void | setContentFontColor (const QColor &color) |
| Sets the color used to draw text in table body cells. More...
|
|
void | setContentTextFormat (const QgsTextFormat &format) |
| Sets the format used to draw content text in the table. More...
|
|
void | setEmptyTableBehavior (EmptyTableMode mode) |
| Sets the behavior mode for empty tables with no content rows. More...
|
|
void | setEmptyTableMessage (const QString &message) |
| Sets the message for empty tables with no content rows. More...
|
|
void | setGridColor (const QColor &color) |
| Sets the color used for grid lines in the table. More...
|
|
void | setGridStrokeWidth (double width) |
| Sets the width in mm for grid lines in the table. More...
|
|
Q_DECL_DEPRECATED void | setHeaderFont (const QFont &font) |
| Sets the font used to draw header text in the table. More...
|
|
Q_DECL_DEPRECATED void | setHeaderFontColor (const QColor &color) |
| Sets the color used to draw header text in the table. More...
|
|
void | setHeaderHAlignment (HeaderHAlignment alignment) |
| Sets the horizontal alignment for table headers. More...
|
|
void | setHeaderMode (HeaderMode mode) |
| Sets the display mode for headers in the table. More...
|
|
void | setHeaderTextFormat (const QgsTextFormat &format) |
| Sets the format used to draw header text in the table. More...
|
|
void | setHorizontalGrid (bool horizontalGrid) |
| Sets whether the grid's horizontal lines should be drawn in the table. More...
|
|
void | setShowEmptyRows (bool showEmpty) |
| Sets whether empty rows should be drawn. More...
|
|
void | setShowGrid (bool showGrid) |
| Sets whether grid lines should be drawn in the table. More...
|
|
void | setSortColumns (const QgsLayoutTableSortColumns &sortColumns) |
| Replaces the sorting columns in the table with a specified list of QgsLayoutTableSortColumns. More...
|
|
void | setVerticalGrid (bool verticalGrid) |
| Sets whether the grid's vertical lines should be drawn in the table. More...
|
|
void | setWrapBehavior (WrapBehavior behavior) |
| Sets the wrap behavior for the table, which controls how text within cells is automatically wrapped. More...
|
|
bool | showEmptyRows () const |
| Returns whether empty rows are drawn in the table. More...
|
|
bool | showGrid () const |
| Returns whether grid lines are drawn in the table. More...
|
|
QgsLayoutTableSortColumns & | sortColumns () |
| Returns a reference to the list of QgsLayoutTableSortColumns shown in the table. More...
|
|
QSizeF | totalSize () const override |
| Returns the total size of the multiframe's content, in layout units. More...
|
|
bool | verticalGrid () const |
| Returns whether the grid's vertical lines are drawn in the table. More...
|
|
WrapBehavior | wrapBehavior () const |
| Returns the wrap behavior for the table, which controls how text within cells is automatically wrapped. More...
|
|
bool | writePropertiesToElement (QDomElement &elem, QDomDocument &doc, const QgsReadWriteContext &context) const override |
| Stores multiframe state within an XML DOM element. More...
|
|
| QgsLayoutMultiFrame (QgsLayout *layout) |
| Construct a new multiframe item, attached to the specified layout. More...
|
|
| ~QgsLayoutMultiFrame () override |
|
virtual void | addFrame (QgsLayoutFrame *frame, bool recalcFrameSizes=true) |
| Adds a frame to the multiframe. More...
|
|
void | beginCommand (const QString &commandText, UndoCommand command=UndoNone) |
| Starts new undo command for this item. More...
|
|
void | cancelCommand () |
| Cancels the current item command and discards it. More...
|
|
QgsAbstractLayoutUndoCommand * | createCommand (const QString &text, int id, QUndoCommand *parent=nullptr) override |
| Creates a new layout undo command with the specified text and parent. More...
|
|
QgsExpressionContext | createExpressionContext () const override |
| This method needs to be reimplemented in all classes which implement this interface and return an expression context. More...
|
|
QgsLayoutFrame * | createNewFrame (QgsLayoutFrame *currentFrame, QPointF pos, QSizeF size) |
| Creates a new frame and adds it to the multi frame and layout. More...
|
|
void | deleteFrames () |
| Removes and deletes all child frames. More...
|
|
virtual QString | displayName () const |
| Returns the multiframe display name. More...
|
|
void | endCommand () |
| Completes the current item command and push it onto the layout's undo stack. More...
|
|
virtual void | finalizeRestoreFromXml () |
| Called after all pending items have been restored from XML. More...
|
|
virtual double | findNearbyPageBreak (double yPos) |
| Finds the optimal position to break a frame at. More...
|
|
virtual QSizeF | fixedFrameSize (int frameIndex=-1) const |
| Returns the fixed size for a frame, if desired. More...
|
|
QgsLayoutFrame * | frame (int index) const |
| Returns the child frame at a specified index from the multiframe. More...
|
|
int | frameCount () const |
| Returns the number of frames associated with this multiframe. More...
|
|
int | frameIndex (QgsLayoutFrame *frame) const |
| Returns the index of a frame within the multiframe. More...
|
|
QList< QgsLayoutFrame * > | frames () const |
| Returns a list of all child frames for this multiframe. More...
|
|
virtual QIcon | icon () const |
| Returns the item's icon. More...
|
|
virtual QSizeF | minFrameSize (int frameIndex=-1) const |
| Returns the minimum size for a frames, if desired. More...
|
|
bool | readXml (const QDomElement &itemElement, const QDomDocument &document, const QgsReadWriteContext &context, bool includeFrames=false) |
| Sets the item state from a DOM element. More...
|
|
void | removeFrame (int index, bool removeEmptyPages=false) |
| Removes a frame by index from the multiframe. More...
|
|
virtual void | render (QgsLayoutItemRenderContext &context, const QRectF &renderExtent, int frameIndex)=0 |
| Renders a portion of the multiframe's content into a render context. More...
|
|
ResizeMode | resizeMode () const |
| Returns the resize mode for the multiframe. More...
|
|
void | setResizeMode (ResizeMode mode) |
| Sets the resize mode for the multiframe, and recalculates frame sizes to match. More...
|
|
virtual QSizeF | totalSize () const =0 |
| Returns the total size of the multiframe's content, in layout units. More...
|
|
virtual int | type () const =0 |
| Returns unique multiframe type id. More...
|
|
QString | uuid () const |
| Returns the multiframe identification string. More...
|
|
bool | writeXml (QDomElement &parentElement, QDomDocument &document, const QgsReadWriteContext &context, bool includeFrames=false) const |
| Stores the multiframe state in a DOM element. More...
|
|
| QgsLayoutObject (QgsLayout *layout) |
| Constructor for QgsLayoutObject, with the specified parent layout. More...
|
|
QgsExpressionContext | createExpressionContext () const override |
| Creates an expression context relating to the objects' current state. More...
|
|
QStringList | customProperties () const |
| Returns list of keys stored in custom properties for the object. More...
|
|
QVariant | customProperty (const QString &key, const QVariant &defaultValue=QVariant()) const |
| Read a custom property from the object. More...
|
|
QgsPropertyCollection & | dataDefinedProperties () |
| Returns a reference to the object's property collection, used for data defined overrides. More...
|
|
const QgsPropertyCollection & | dataDefinedProperties () const |
| Returns a reference to the object's property collection, used for data defined overrides. More...
|
|
QgsLayout * | layout () |
| Returns the layout the object is attached to. More...
|
|
const QgsLayout * | layout () const |
| Returns the layout the object is attached to. More...
|
|
void | removeCustomProperty (const QString &key) |
| Remove a custom property from the object. More...
|
|
void | setCustomProperty (const QString &key, const QVariant &value) |
| Set a custom property for the object. More...
|
|
void | setDataDefinedProperties (const QgsPropertyCollection &collection) |
| Sets the objects's property collection, used for data defined overrides. More...
|
|
virtual | ~QgsExpressionContextGenerator ()=default |
|
virtual QgsExpressionContext | createExpressionContext () const =0 |
| This method needs to be reimplemented in all classes which implement this interface and return an expression context. More...
|
|
virtual | ~QgsLayoutUndoObjectInterface ()=default |
| Destructor for QgsLayoutUndoObjectInterface. More...
|
|
virtual QgsAbstractLayoutUndoCommand * | createCommand (const QString &text, int id=0, QUndoCommand *parent=nullptr)=0 |
| Creates a new layout undo command with the specified text and parent. More...
|
|