KD Reports
1.6
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Enumerations
Enumerator
Pages
src
KDReports
KDReportsAbstractTableElement.h
1
/****************************************************************************
2
** Copyright (C) 2007-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3
**
4
** This file is part of the KD Reports library.
5
**
6
** Licensees holding valid commercial KD Reports licenses may use this file in
7
** accordance with the KD Reports Commercial License Agreement provided with
8
** the Software.
9
**
10
**
11
** This file may be distributed and/or modified under the terms of the
12
** GNU Lesser General Public License version 2.1 and version 3 as published by the
13
** Free Software Foundation and appearing in the file LICENSE.LGPL.txt included.
14
**
15
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17
**
18
** Contact info@kdab.com if any conditions of this licensing are not
19
** clear to you.
20
**
21
**********************************************************************/
22
23
#ifndef KDREPORTSABSTRACTTABLEELEMENT_H
24
#define KDREPORTSABSTRACTTABLEELEMENT_H
25
26
#include "KDReportsElement.h"
27
#include "KDReportsUnit.h"
28
29
template
<
typename
T>
class
QList
;
30
class
QFont;
31
class
QTextTableFormat;
32
class
QTextCursor;
33
namespace
KDReports {
34
39
class
KDREPORTS_EXPORT
AbstractTableElement
:
public
Element
40
{
41
public
:
42
48
void
setBorder( qreal border );
49
53
qreal border()
const
;
54
59
void
setBorderBrush(
const
QBrush& brush );
60
65
QBrush borderBrush()
const
;
66
73
void
setPadding( qreal padding );
74
78
qreal padding()
const
;
79
87
void
setWidth( qreal width,
Unit
unit =
Millimeters
);
88
94
qreal width()
const
;
95
100
Unit
unit()
const
;
101
107
void
setDefaultFont(
const
QFont& font );
108
113
AbstractTableElement
(
const
AbstractTableElement
&other);
117
AbstractTableElement
&operator=(
const
AbstractTableElement
&other);
118
119
protected
:
123
AbstractTableElement
();
124
128
~
AbstractTableElement
();
129
133
void
fillTableFormat( QTextTableFormat& tableFormat, QTextCursor& textDocCursor )
const
;
134
135
private
:
136
class
Private;
137
Private*
const
d;
138
};
139
140
}
141
142
#endif
/* KDREPORTSABSTRACTTABLEELEMENT_H */
143
Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-reports/