KD Reports API Documentation  2.1
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-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDAB-KDReports OR LicenseRef-KDAB-KDReports-US
8 **
9 ** Licensees holding valid commercial KD Reports licenses may use this file in
10 ** accordance with the KD Reports Commercial License Agreement provided with
11 ** the Software.
12 **
13 ** Contact info@kdab.com if any conditions of this licensing are not clear to you.
14 **
15 ****************************************************************************/
16 
17 #ifndef KDREPORTSELEMENT_H
18 #define KDREPORTSELEMENT_H
19 
20 #include "KDReportsGlobal.h"
21 #include <memory>
22 
23 QT_BEGIN_NAMESPACE
24 class QBrush;
25 QT_END_NAMESPACE
26 
27 namespace KDReports {
28 class ReportBuilder;
29 class ElementPrivate;
30 
41 {
42 public:
46  virtual ~Element();
47 
51  void setBackground(const QBrush &brush);
55  QBrush background() const;
56 
60  virtual void build(ReportBuilder &) const = 0;
61 
65  virtual Element *clone() const = 0;
66 
67 protected:
71  Element();
75  Element(const Element &other);
79  Element &operator=(const Element &other);
80 
81 private:
82  std::unique_ptr<ElementPrivate> d;
83 };
84 
85 }
86 
87 #endif /* KDREPORTSELEMENT_H */
KDReports::ReportBuilder
Definition: KDReportsReportBuilder_p.h:42
KDReports::Element
Definition: KDReportsElement.h:41
KDReports::Element::clone
virtual Element * clone() const =0
KDReports::Element::build
virtual void build(ReportBuilder &) const =0
QBrush
KDReportsGlobal.h
KDREPORTS_EXPORT
#define KDREPORTS_EXPORT
Definition: KDReportsGlobal.h:29
KDReports
Definition: KDReportsAbstractReportLayout_p.h:30

© 2007-2021 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 on Fri Jul 15 2022 13:09:06 for KD Reports API Documentation by doxygen 1.8.20