QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
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;
72 void nameChanged(
const QString &name );
83 #endif //QGSPRINTLAYOUT_H
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.
QgsExpressionContext createExpressionContext() const override
Creates an expression context relating to the layout's current state.
QgsLayout * clone() const
Creates a clone of the layout.
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 bool readXml(const QDomElement &layoutElement, const QDomDocument &document, const QgsReadWriteContext &context)
Sets the collection's state from a DOM element.
virtual QDomElement writeXml(QDomDocument &document, const QgsReadWriteContext &context) const
Returns the layout's state encapsulated in a DOM element.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
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.