KD Reports API Documentation 2.2
Loading...
Searching...
No Matches
KDReportsCell.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 KDREPORTSCELL_H
12#define KDREPORTSCELL_H
13
14#include "KDReportsElement.h"
16#include <QMap>
17#include <QPair>
18#include <QtCore/Qt>
19#include <memory>
20
21namespace KDReports {
22class ReportBuilder;
23class Element;
24class CellContentMap;
25class TableElement;
26class CellPrivate;
27
33class KDREPORTS_EXPORT Cell final : public Element
34{
35public:
40 void setColumnSpan(int columnSpan);
44 int columnSpan() const;
45
50 void setRowSpan(int rowSpan);
54 int rowSpan() const;
55
59 void addInlineElement(const Element &element);
60
65 void addElement(const Element &element, Qt::AlignmentFlag horizontalAlignment = Qt::AlignLeft);
66
71 void addVariable(VariableType variable);
72
79 void addVerticalSpacing(qreal space);
80
85 void build(ReportBuilder &builder) const override;
86
90 Element *clone() const override // krazy:exclude=inline
91 {
92 return nullptr;
93 }
94
98 ~Cell() override; // public for QMap
99
103 Cell(const Cell &other); // public for QMap
107 Cell &operator=(const Cell &other); // public for QMap
108
109private:
110 friend class TableElement;
111 friend class QMap<QPair<int, int>, Cell>;
112 Cell();
113
114 std::unique_ptr<CellPrivate> d;
115};
116
117}
118
119#endif /* KDREPORTSCELL_H */
#define KDREPORTS_EXPORT
Element * clone() const override
AlignmentFlag

© 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 Sun Mar 17 2024 00:09:33 for KD Reports API Documentation by doxygen 1.9.8