KD Reports API Documentation
2.2
Loading...
Searching...
No Matches
source
src
KDReports
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
"
15
#include "
KDReportsVariableType.h
"
16
#include <QMap>
17
#include <QPair>
18
#include <QtCore/Qt>
19
#include <memory>
20
21
namespace
KDReports
{
22
class
ReportBuilder;
23
class
Element;
24
class
CellContentMap;
25
class
TableElement;
26
class
CellPrivate;
27
33
class
KDREPORTS_EXPORT
Cell
final :
public
Element
34
{
35
public
:
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
109
private
:
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 */
KDReportsElement.h
KDREPORTS_EXPORT
#define KDREPORTS_EXPORT
Definition
KDReportsGlobal.h:23
KDReportsVariableType.h
KDReports::Cell
Definition
KDReportsCell.h:34
KDReports::Cell::clone
Element * clone() const override
Definition
KDReportsCell.h:90
KDReports::Element
Definition
KDReportsElement.h:35
KDReports::ReportBuilder
Definition
KDReportsReportBuilder_p.h:36
KDReports::TableElement
Definition
KDReportsTableElement.h:27
KDReports
Definition
KDReportsAbstractReportLayout_p.h:24
KDReports::VariableType
VariableType
Definition
KDReportsVariableType.h:24
QMap
QPair
Qt::AlignmentFlag
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