KD Reports API Documentation
2.2
Loading...
Searching...
No Matches
source
src
KDReports
KDReportsAbstractTableElement.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 KDREPORTSABSTRACTTABLEELEMENT_H
12
#define KDREPORTSABSTRACTTABLEELEMENT_H
13
14
#include "
KDReportsElement.h
"
15
#include "
KDReportsUnit.h
"
16
17
QT_BEGIN_NAMESPACE
18
template
<
typename
T>
19
class
QList
;
20
class
QFont
;
21
class
QTextTableFormat
;
22
class
QTextCursor
;
23
QT_END_NAMESPACE
24
25
namespace
KDReports
{
26
class
AbstractTableElementPrivate;
27
32
class
KDREPORTS_EXPORT
AbstractTableElement :
public
Element
33
{
34
public
:
40
void
setBorder(qreal border);
41
45
qreal border()
const
;
46
51
void
setBorderBrush(
const
QBrush
&brush);
52
57
QBrush
borderBrush()
const
;
58
65
void
setPadding(qreal padding);
66
70
qreal padding()
const
;
71
79
void
setWidth(qreal width, Unit unit = Millimeters);
80
86
qreal width()
const
;
87
92
Unit
unit()
const
;
93
99
void
setDefaultFont(
const
QFont
&font);
100
106
QFont
defaultFont(
bool
*isSet)
const
;
107
108
struct
ColumnConstraint
109
{
110
qreal
width
;
111
Unit
unit
;
112
};
118
void
setColumnConstraints(
const
QVector<ColumnConstraint>
&constraints);
119
120
protected
:
124
AbstractTableElement();
125
130
AbstractTableElement(
const
AbstractTableElement &other);
134
AbstractTableElement &operator=(
const
AbstractTableElement &other);
135
139
~AbstractTableElement()
override
;
140
144
void
fillTableFormat(
QTextTableFormat
&tableFormat,
QTextCursor
&textDocCursor)
const
;
145
146
private
:
147
std::unique_ptr<AbstractTableElementPrivate> d;
148
};
149
150
}
151
152
#endif
/* KDREPORTSABSTRACTTABLEELEMENT_H */
KDReportsElement.h
KDREPORTS_EXPORT
#define KDREPORTS_EXPORT
Definition
KDReportsGlobal.h:23
KDReportsUnit.h
KDReports
Definition
KDReportsAbstractReportLayout_p.h:24
KDReports::Unit
Unit
Definition
KDReportsUnit.h:20
QBrush
QFont
QList
QTextCursor
QTextTableFormat
QVector
KDReports::AbstractTableElement::ColumnConstraint
Definition
KDReportsAbstractTableElement.h:109
KDReports::AbstractTableElement::ColumnConstraint::unit
Unit unit
Definition
KDReportsAbstractTableElement.h:111
KDReports::AbstractTableElement::ColumnConstraint::width
qreal width
Definition
KDReportsAbstractTableElement.h:110
© 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