KD Reports  1.7
KDReportsHLineElement.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 KDREPORTSHLINEELEMENT_H
24 #define KDREPORTSHLINEELEMENT_H
25 
26 #include "KDReportsElement.h"
27 #include <QtCore/QString>
28 
29 class QColor;
30 class QFont;
31 class QTextDocument;
32 
33 namespace KDReports {
34 class HLineElementPrivate;
35 
40 class KDREPORTS_EXPORT HLineElement : public Element
41 {
42 public:
46  HLineElement();
50  virtual ~HLineElement();
51 
56  HLineElement(const HLineElement &other);
60  HLineElement &operator=(const HLineElement &other);
61 
65  void setColor( const QColor& color );
66 
70  QColor color() const;
71 
75  void setThickness(int w);
76 
80  int thickness() const;
81 
85  void setMargin(int m);
86 
90  int margin() const;
91 
92  void build( ReportBuilder& builder ) const;
97  Element* clone() const;
98 
99 private:
100 
101  HLineElementPrivate* const d;
102 };
103 
104 }
105 
106 #endif /* KDREPORTSHLINELEMENT_H */
107 
Definition: KDReportsAbstractTableElement.h:33
Definition: KDReportsHLineElement.h:40
Definition: KDReportsElement.h:42

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-reports/