16 #ifndef QGSREPORTSECTIONLAYOUT_H
17 #define QGSREPORTSECTIONLAYOUT_H
19 #include "qgis_core.h"
34 class CORE_EXPORT QgsReportSectionLayout :
public QgsAbstractReportSection
42 QgsReportSectionLayout( QgsAbstractReportSection *parentSection =
nullptr );
44 QString type()
const override {
return QStringLiteral(
"SectionLayout" ); }
45 QString description()
const override {
return QObject::tr(
"Section" ); }
46 QIcon icon()
const override;
71 bool bodyEnabled()
const {
return mBodyEnabled; }
79 void setBodyEnabled(
bool enabled ) { mBodyEnabled = enabled; }
81 QgsReportSectionLayout *clone() const override
SIP_FACTORY;
82 bool beginRender() override;
84 void reloadSettings() override;
88 bool writePropertiesToElement( QDomElement &element, QDomDocument &document, const
QgsReadWriteContext &context ) const override;
89 bool readPropertiesFromElement( const QDomElement &element, const QDomDocument &document, const
QgsReadWriteContext &context ) override;
93 bool mExportedBody = false;
95 bool mBodyEnabled = true;
100 #endif //QGSREPORTSECTIONLAYOUT_H