16 #ifndef QGSPRINTLAYOUT_H 17 #define QGSPRINTLAYOUT_H 19 #include "qgis_core.h" 33 Q_PROPERTY( QString name READ name WRITE setName NOTIFY nameChanged )
45 QIcon icon() const override;
52 QString name()
const override {
return mName; }
53 void setName(
const QString &name )
override;
70 void nameChanged(
const QString &name );
79 #endif //QGSPRINTLAYOUT_H The class is used as a container of context for various read/write operations on other objects...
QgsLayout * clone() const
Creates a clone of the layout.
virtual bool readXml(const QDomElement &layoutElement, const QDomDocument &document, const QgsReadWriteContext &context)
Sets the collection's state from a DOM element.
virtual void setName(const QString &name)=0
Sets the layout's name.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
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.
Class used to render an Atlas, iterating over geometry features.
Reads and writes project states.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
QgsExpressionContext createExpressionContext() const override
Creates an expression context relating to the layout's current state.
virtual void updateSettings()=0
Refreshes the layout when global layout related options change.
virtual QDomElement writeXml(QDomDocument &document, const QgsReadWriteContext &context) const
Returns the layout's state encapsulated in a DOM element.
Print layout, a QgsLayout subclass for static or atlas-based layouts.
Interface for master layout type objects, such as print layouts and reports.