QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
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. | |
virtual QIcon | icon () const =0 |
Returns an icon for the layout. | |
virtual bool | layoutAccept (QgsStyleEntityVisitorInterface *visitor) const |
Accepts the specified style entity visitor, causing it to visit all style entities associated with the layout. | |
virtual QgsProject * | layoutProject () const =0 |
The project associated with the layout. | |
virtual QgsMasterLayoutInterface::Type | layoutType () const =0 |
Returns the master layout type. | |
virtual QString | name () const =0 |
Returns the layout's name. | |
virtual bool | readLayoutXml (const QDomElement &layoutElement, const QDomDocument &document, const QgsReadWriteContext &context)=0 |
Sets the layout's state from a DOM element. | |
virtual void | setName (const QString &name)=0 |
Sets the layout's name. | |
virtual void | updateSettings ()=0 |
Refreshes the layout when global layout related options change. | |
virtual QDomElement | writeLayoutXml (QDomDocument &document, const QgsReadWriteContext &context) const =0 |
Returns the layout's state encapsulated in a DOM element. | |
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.
|
inlinevirtual |
Accepts the specified style entity visitor, causing it to visit all style entities associated with the layout.
Returns true
if the visitor should continue visiting other objects, or false
if visiting should be canceled.
Reimplemented in QgsPrintLayout.
Definition at line 133 of file qgsmasterlayoutinterface.h.
|
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.