KD Reports API Documentation
2.2
src
KDReports
KDReportsHeader.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 KDREPORTSHEADER_H
12
#define KDREPORTSHEADER_H
13
14
#include "
KDReportsGlobal.h
"
15
#include "
KDReportsVariableType.h
"
16
#include <QTextOption>
17
#include <QtCore/Qt>
18
#include <memory>
19
20
QT_BEGIN_NAMESPACE
21
template
<
class
T>
22
class
QList
;
23
class
QFont;
24
class
QTextDocument;
25
class
HeaderData;
26
QT_END_NAMESPACE
27
28
namespace
KDReports
{
29
30
class
HeaderPrivate;
31
class
XmlParser;
32
class
Element;
33
class
HeaderMap;
34
class
Report;
35
class
ReportPrivate;
36
class
TextDocument;
37
44
class
KDREPORTS_EXPORT
Header
45
{
46
public
:
51
void
setDefaultFont(
const
QFont &font);
52
57
QFont defaultFont()
const
;
58
62
void
addInlineElement(
const
Element
&element);
63
68
void
addElement(
const
Element
&element, Qt::AlignmentFlag horizontalAlignment = Qt::AlignLeft);
69
81
void
addVariable(
VariableType
variable);
82
88
void
addVerticalSpacing(qreal space);
89
98
void
setTabPositions(
const
QList<QTextOption::Tab>
&tabs);
99
103
int
currentPosition()
const
;
104
105
private
:
106
friend
class
XmlParser
;
107
friend
class
Report
;
108
friend
class
ReportPrivate
;
109
explicit
Header
(
Report
*report);
110
~
Header
();
111
friend
class
Test;
112
friend
class
HeaderMap
;
113
friend
class ::HeaderData;
114
TextDocument
&doc();
115
void
preparePaintingPage(
int
pageNumber);
116
117
Q_DISABLE_COPY(
Header
)
118
119
std::unique_ptr<HeaderPrivate> d;
120
};
121
122
typedef
Header
Footer
;
123
124
}
125
126
#endif
/* KDREPORTSHEADER_H */
KDReportsGlobal.h
KDREPORTS_EXPORT
#define KDREPORTS_EXPORT
Definition:
KDReportsGlobal.h:23
KDReportsVariableType.h
KDReports::Element
Definition:
KDReportsElement.h:35
KDReports::HeaderMap
Definition:
KDReportsReport_p.h:47
KDReports::Header
Definition:
KDReportsHeader.h:45
KDReports::ReportPrivate
Definition:
KDReportsReport_p.h:88
KDReports::Report
Definition:
KDReportsReport.h:79
KDReports::TextDocument
Definition:
KDReportsTextDocument_p.h:53
KDReports::XmlParser
Definition:
KDReportsXmlParser_p.h:47
QList
Definition:
KDReportsAbstractTableElement.h:19
KDReports
Definition:
KDReportsAbstractReportLayout_p.h:24
KDReports::VariableType
VariableType
Definition:
KDReportsVariableType.h:24
KDReports::Footer
Header Footer
Definition:
KDReportsHeader.h:122
© 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 by doxygen 1.9.1