KD Reports API Documentation
2.2
src
KDReports
KDReportsElement.h
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** This file is part of the KD Reports library.
4
**
5
** SPDX-FileCopyrightText: 2007 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6
**
7
** SPDX-License-Identifier: MIT
8
**
9
****************************************************************************/
10
11
#ifndef KDREPORTSELEMENT_H
12
#define KDREPORTSELEMENT_H
13
14
#include "
KDReportsGlobal.h
"
15
#include <memory>
16
17
QT_BEGIN_NAMESPACE
18
class
QBrush;
19
QT_END_NAMESPACE
20
21
namespace
KDReports
{
22
class
ReportBuilder;
23
class
ElementPrivate;
24
34
class
KDREPORTS_EXPORT
Element
35
{
36
public
:
40
virtual
~
Element
();
41
45
void
setBackground(
const
QBrush &brush);
49
QBrush background()
const
;
50
54
virtual
void
build
(
ReportBuilder
&)
const
= 0;
55
59
virtual
Element
*
clone
()
const
= 0;
60
61
protected
:
65
Element
();
69
Element
(
const
Element
&other);
73
Element
&operator=(
const
Element
&other);
74
75
private
:
76
std::unique_ptr<ElementPrivate> d;
77
};
78
79
}
80
81
#endif
/* KDREPORTSELEMENT_H */
KDReportsGlobal.h
KDREPORTS_EXPORT
#define KDREPORTS_EXPORT
Definition:
KDReportsGlobal.h:23
KDReports::Element
Definition:
KDReportsElement.h:35
KDReports::Element::clone
virtual Element * clone() const =0
KDReports::Element::build
virtual void build(ReportBuilder &) const =0
KDReports::ReportBuilder
Definition:
KDReportsReportBuilder_p.h:36
KDReports
Definition:
KDReportsAbstractReportLayout_p.h:24
© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-reports/
Generated by doxygen 1.9.1