QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
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 bool | layoutAccept (QgsStyleEntityVisitorInterface *visitor) const |
Accepts the specified style entity visitor, causing it to visit all style entities associated with 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 42 of file qgsmasterlayoutinterface.h.
Master layout type.
Enumerator | |
---|---|
PrintLayout | Individual print layout (QgsPrintLayout) |
Report | Report (QgsReport) |
Definition at line 66 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 134 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.