QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSLAYOUTINTERFACE_H
17 #define QGSLAYOUTINTERFACE_H
19 #include "qgis_core.h"
23 #include <QDomElement>
47 switch ( sipCpp->layoutType() )
50 sipType = sipType_QgsPrintLayout;
54 *sipCppRet =
static_cast<QgsReport *
>( sipCpp );
55 sipType = sipType_QgsReport;
89 virtual QString
name()
const = 0;
94 virtual QIcon
icon()
const = 0;
100 virtual void setName(
const QString &name ) = 0;
138 #endif //QGSLAYOUTINTERFACE_H
virtual QIcon icon() const =0
Returns an icon for the layout.
The class is used as a container of context for various read/write operations on other objects.
An interface for classes which can visit style entity (e.g.
virtual QDomElement writeLayoutXml(QDomDocument &document, const QgsReadWriteContext &context) const =0
Returns the layout's state encapsulated in a DOM element.
virtual bool readLayoutXml(const QDomElement &layoutElement, const QDomDocument &document, const QgsReadWriteContext &context)=0
Sets the layout's state from a DOM element.
@ PrintLayout
Individual print layout (QgsPrintLayout)
virtual QgsMasterLayoutInterface * clone() const =0
Creates a clone of the layout.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
virtual QgsMasterLayoutInterface::Type layoutType() const =0
Returns the master layout type.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
virtual void setName(const QString &name)=0
Sets the layout's name.
Print layout, a QgsLayout subclass for static or atlas-based layouts.
virtual bool layoutAccept(QgsStyleEntityVisitorInterface *visitor) const
Accepts the specified style entity visitor, causing it to visit all style entities associated with th...
virtual QString name() const =0
Returns the layout's name.
@ Report
Report (QgsReport)
virtual ~QgsMasterLayoutInterface()=default
Interface for master layout type objects, such as print layouts and reports.
virtual void updateSettings()=0
Refreshes the layout when global layout related options change.
virtual QgsProject * layoutProject() const =0
The project associated with the layout.