QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
layout
qgsreport.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsreport.h
3
---------------------------
4
begin : December 2017
5
copyright : (C) 2017 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
/***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
#ifndef QGSREPORT_H
17
#define QGSREPORT_H
18
19
#include "qgis_core.h"
20
#include "
qgsabstractreportsection.h
"
21
#include "
qgsmasterlayoutinterface.h
"
22
23
#include <QString>
24
25
using namespace
Qt::StringLiterals;
26
28
29
// This is not considered stable API - it is exposed to python bindings only for unit testing!
30
43
class
CORE_EXPORT QgsReport :
public
QObject,
public
QgsAbstractReportSection,
public
QgsMasterLayoutInterface
44
{
45
Q_OBJECT
46
47
public
:
54
QgsReport( QgsProject *project );
55
56
QgsMasterLayoutInterface::Type
layoutType
()
const override
;
57
QString type()
const override
{
return
u
"SectionReport"
_s; }
58
QString description()
const override
{
return
QObject::tr(
"Report"
); }
59
QIcon
icon
()
const override
;
60
QgsProject *
layoutProject
()
const override
{
return
mProject; }
61
QgsReport *
clone
() const override
SIP_FACTORY
;
62
QString name()
const override
{
return
mName; }
63
void
setName
(
const
QString &name )
override
;
64
QDomElement
writeLayoutXml
( QDomDocument &document,
const
QgsReadWriteContext &context )
const override
;
65
bool
readLayoutXml
(
const
QDomElement &layoutElement,
const
QDomDocument &document,
const
QgsReadWriteContext &context )
override
;
66
void
updateSettings
()
override
;
67
bool
layoutAccept
( QgsStyleEntityVisitorInterface *visitor )
const override
;
68
69
signals:
70
75
void
nameChanged(
const
QString &name );
76
77
private
:
78
QgsProject *mProject =
nullptr
;
79
QString mName;
80
};
81
83
84
#endif
//QGSREPORT_H
QgsMasterLayoutInterface
Interface for master layout type objects, such as print layouts and reports.
Definition
qgsmasterlayoutinterface.h:45
QgsMasterLayoutInterface::layoutProject
virtual QgsProject * layoutProject() const =0
The project associated with the layout.
QgsMasterLayoutInterface::writeLayoutXml
virtual QDomElement writeLayoutXml(QDomDocument &document, const QgsReadWriteContext &context) const =0
Returns the layout's state encapsulated in a DOM element.
QgsMasterLayoutInterface::icon
virtual QIcon icon() const =0
Returns an icon for the layout.
QgsMasterLayoutInterface::layoutType
virtual QgsMasterLayoutInterface::Type layoutType() const =0
Returns the master layout type.
QgsMasterLayoutInterface::Type
Type
Master layout type.
Definition
qgsmasterlayoutinterface.h:68
QgsMasterLayoutInterface::updateSettings
virtual void updateSettings()=0
Refreshes the layout when global layout related options change.
QgsMasterLayoutInterface::clone
virtual QgsMasterLayoutInterface * clone() const =0
Creates a clone of the layout.
QgsMasterLayoutInterface::layoutAccept
virtual bool layoutAccept(QgsStyleEntityVisitorInterface *visitor) const
Accepts the specified style entity visitor, causing it to visit all style entities associated with th...
Definition
qgsmasterlayoutinterface.h:135
QgsMasterLayoutInterface::setName
virtual void setName(const QString &name)=0
Sets the layout's name.
QgsMasterLayoutInterface::readLayoutXml
virtual bool readLayoutXml(const QDomElement &layoutElement, const QDomDocument &document, const QgsReadWriteContext &context)=0
Sets the layout's state from a DOM element.
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
qgsabstractreportsection.h
qgsmasterlayoutinterface.h
Generated on
for QGIS API Documentation by
1.17.0