KD Reports API Documentation
2.2
Loading...
Searching...
No Matches
source
src
KDReports
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 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6
**
7
** SPDX-License-Identifier: MIT
8
**
9
****************************************************************************/
10
11
#ifndef KDREPORTSFRAME_H
12
#define KDREPORTSFRAME_H
13
14
#include "
KDReportsElement.h
"
15
#include "
KDReportsUnit.h
"
16
#include "
KDReportsVariableType.h
"
17
#include <QMap>
18
#include <QPair>
19
#include <QtCore/Qt>
20
21
namespace
KDReports
{
22
class
ReportBuilder;
23
class
Element;
24
class
FramePrivate;
25
31
class
KDREPORTS_EXPORT
Frame
:
public
Element
32
{
33
public
:
37
explicit
Frame
();
41
~Frame
()
override
;
42
47
Frame
(
const
Frame
&other);
51
Frame
&operator=(
const
Frame
&other);
52
56
void
setWidth(qreal width,
Unit
unit =
Millimeters
);
60
void
setHeight(qreal height,
Unit
unit =
Millimeters
);
61
68
void
setPadding(qreal padding);
69
73
qreal padding()
const
;
74
80
void
setBorder(qreal border);
81
85
qreal border()
const
;
86
87
enum
Position
88
{
89
InFlow
,
90
FloatLeft
,
91
FloatRight
,
92
};
97
void
setPosition(Position pos);
98
103
Position position()
const
;
104
108
void
addInlineElement(
const
Element
&element);
109
114
void
addElement(
const
Element
&element,
Qt::AlignmentFlag
horizontalAlignment =
Qt::AlignLeft
);
115
120
void
addVariable(
VariableType
variable);
121
126
void
build(
ReportBuilder
&builder)
const override
;
127
132
Element
*clone()
const override
;
133
134
private
:
135
std::unique_ptr<FramePrivate> d;
136
};
137
138
}
139
140
#endif
/* KDREPORTSFRAME_H */
KDReportsElement.h
KDREPORTS_EXPORT
#define KDREPORTS_EXPORT
Definition
KDReportsGlobal.h:23
KDReportsUnit.h
KDReportsVariableType.h
KDReports::Element
Definition
KDReportsElement.h:35
KDReports::Frame
Definition
KDReportsFrame.h:32
KDReports::Frame::Position
Position
Definition
KDReportsFrame.h:88
KDReports::Frame::FloatLeft
@ FloatLeft
The frame floats on the left side of the text.
Definition
KDReportsFrame.h:90
KDReports::Frame::FloatRight
@ FloatRight
The frame floats on the right side of the text.
Definition
KDReportsFrame.h:91
KDReports::Frame::InFlow
@ InFlow
The frame is part of the flow of the paragraph (default)
Definition
KDReportsFrame.h:89
KDReports::ReportBuilder
Definition
KDReportsReportBuilder_p.h:36
KDReports
Definition
KDReportsAbstractReportLayout_p.h:24
KDReports::VariableType
VariableType
Definition
KDReportsVariableType.h:24
KDReports::Unit
Unit
Definition
KDReportsUnit.h:20
KDReports::Millimeters
@ Millimeters
Millimeters (the default)
Definition
KDReportsUnit.h:21
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 Apr 14 2024 00:04:57 for KD Reports API Documentation by doxygen 1.9.8