KD Reports  1.9
KDReportsElement.h
1 /****************************************************************************
2 **
3 ** This file is part of the KD Reports library.
4 **
5 ** SPDX-FileCopyrightText: 2007-2020 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 
22 QT_BEGIN_NAMESPACE
23 class QBrush;
24 QT_END_NAMESPACE
25 
26 namespace KDReports {
27 class ReportBuilder;
28 class ElementPrivate;
29 
39 class KDREPORTS_EXPORT Element
40 {
41 public:
45  virtual ~Element();
46 
50  void setBackground( const QBrush& brush );
54  QBrush background() const;
55 
59  virtual void build( ReportBuilder& ) const = 0;
60 
64  virtual Element* clone() const = 0;
65 
66 protected:
70  Element();
74  Element(const Element &other);
78  Element &operator=(const Element &other);
79 
80 private:
81  ElementPrivate* const d;
82 };
83 
84 }
85 
86 #endif /* KDREPORTSELEMENT_H */
87 
Definition: KDReportsAbstractTableElement.h:30
Definition: KDReportsElement.h:39

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/