KD Reports API Documentation  2.0
KDReportsFrame.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 KDREPORTSFRAME_H
18 #define KDREPORTSFRAME_H
19 
20 #include "KDReportsElement.h"
21 #include "KDReportsUnit.h"
22 #include "KDReportsVariableType.h"
23 #include <QMap>
24 #include <QPair>
25 #include <QtCore/Qt>
26 
27 namespace KDReports {
28 class ReportBuilder;
29 class Element;
30 class FramePrivate;
31 
37 class KDREPORTS_EXPORT Frame : public Element
38 {
39 public:
43  explicit Frame();
47  ~Frame() override;
48 
53  Frame(const Frame &other);
57  Frame &operator=(const Frame &other);
58 
62  void setWidth(qreal width, Unit unit = Millimeters);
66  void setHeight(qreal height, Unit unit = Millimeters);
67 
74  void setPadding(qreal padding);
75 
79  qreal padding() const;
80 
86  void setBorder(qreal border);
87 
91  qreal border() const;
92 
96  void addInlineElement(const Element &element);
97 
102  void addElement(const Element &element, Qt::AlignmentFlag horizontalAlignment = Qt::AlignLeft);
103 
108  void addVariable(VariableType variable);
109 
114  void build(ReportBuilder &builder) const override;
115 
120  Element *clone() const override;
121 
122 private:
123  FramePrivate *const d;
124 };
125 
126 }
127 
128 #endif /* KDREPORTSFRAME_H */
KDReports::Millimeters
@ Millimeters
Millimeters (the default)
Definition: KDReportsUnit.h:54
KDReportsVariableType.h
KDReportsElement.h
KDReports::Unit
Unit
Definition: KDReportsUnit.h:39
KDReportsUnit.h
KDReports::VariableType
VariableType
Definition: KDReportsVariableType.h:29
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 Sat Jan 8 2022 02:38:32 for KD Reports API Documentation by doxygen 1.8.17