21#include "moc_qgsreport.cpp"
26 : QgsAbstractReportSection( nullptr )
30QIcon QgsReport::icon()
const
35QgsReport *QgsReport::clone()
const
37 auto copy = std::make_unique< QgsReport >( mProject );
38 copyCommonProperties( copy.get() );
39 return copy.release();
42void QgsReport::setName(
const QString &name )
45 emit nameChanged( mName );
48QDomElement QgsReport::writeLayoutXml( QDomDocument &document,
const QgsReadWriteContext &context )
const
50 QDomElement element = document.createElement( QStringLiteral(
"Report" ) );
51 writeXml( element, document, context );
52 element.setAttribute( QStringLiteral(
"name" ), mName );
56bool QgsReport::readLayoutXml(
const QDomElement &layoutElement,
const QDomDocument &document,
const QgsReadWriteContext &context )
58 const QDomNodeList sectionList = layoutElement.elementsByTagName( QStringLiteral(
"Section" ) );
59 if ( sectionList.count() > 0 )
61 readXml( sectionList.at( 0 ).toElement(), document, context );
63 setName( layoutElement.attribute( QStringLiteral(
"name" ) ) );
67void QgsReport::updateSettings()
74 return accept( visitor );
static QIcon getThemeIcon(const QString &name, const QColor &fillColor=QColor(), const QColor &strokeColor=QColor())
Helper to get a theme icon.
@ Report
Report (QgsReport).
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
A container for the context for various read/write operations on objects.
An interface for classes which can visit style entity (e.g.