QGIS API Documentation
3.8.0-Zanzibar (11aff65)
|
Interface for master layout type objects, such as print layouts and reports. More...
#include <qgsmasterlayoutinterface.h>
Public Types | |
enum | Type { PrintLayout = 0, Report = 1 } |
Master layout type. More... | |
Public Member Functions | |
virtual | ~QgsMasterLayoutInterface ()=default |
virtual QgsMasterLayoutInterface * | clone () const =0 |
Creates a clone of the layout. More... | |
virtual QIcon | icon () const =0 |
Returns an icon for the layout. More... | |
virtual QgsProject * | layoutProject () const =0 |
The project associated with the layout. More... | |
virtual QgsMasterLayoutInterface::Type | layoutType () const =0 |
Returns the master layout type. More... | |
virtual QString | name () const =0 |
Returns the layout's name. More... | |
virtual bool | readLayoutXml (const QDomElement &layoutElement, const QDomDocument &document, const QgsReadWriteContext &context)=0 |
Sets the layout's state from a DOM element. More... | |
virtual void | setName (const QString &name)=0 |
Sets the layout's name. More... | |
virtual void | updateSettings ()=0 |
Refreshes the layout when global layout related options change. More... | |
virtual QDomElement | writeLayoutXml (QDomDocument &document, const QgsReadWriteContext &context) const =0 |
Returns the layout's state encapsulated in a DOM element. More... | |
Interface for master layout type objects, such as print layouts and reports.
Definition at line 41 of file qgsmasterlayoutinterface.h.
Master layout type.
Enumerator | |
---|---|
PrintLayout | Individual print layout (QgsPrintLayout) |
Report | Report (QgsReport) |
Definition at line 65 of file qgsmasterlayoutinterface.h.
|
virtualdefault |
|
pure virtual |
Creates a clone of the layout.
Ownership of the returned layout is transferred to the caller.
Implemented in QgsPrintLayout.
|
pure virtual |
Returns an icon for the layout.
Implemented in QgsPrintLayout.
|
pure virtual |
The project associated with the layout.
Used to get access to layers, map themes, relations and various other bits. It is never nullptr
.
Implemented in QgsPrintLayout.
|
pure virtual |
Returns the master layout type.
Implemented in QgsPrintLayout.
|
pure virtual |
|
pure virtual |
Sets the layout's state from a DOM element.
layoutElement is the DOM node corresponding to the layout.
Implemented in QgsPrintLayout.
|
pure virtual |
|
pure virtual |
Refreshes the layout when global layout related options change.
Implemented in QgsPrintLayout.
|
pure virtual |
Returns the layout's state encapsulated in a DOM element.
Implemented in QgsPrintLayout.