KD Reports  1.5
 All Classes Namespaces Functions Enumerations Enumerator Pages
KDReportsHLineElement.h
1 /****************************************************************************
2 ** Copyright (C) 2007-2014 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 KDREPORTSHLINELEMENT_H
24 #define KDREPORTSHLINELEMENT_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 
39 class KDREPORTS_EXPORT HLineElement : public Element
40 {
41 public:
45  HLineElement();
49  virtual ~HLineElement();
50 
55  HLineElement(const HLineElement &other);
59  HLineElement &operator=(const HLineElement &other);
60 
64  void setColor( const QColor& color );
65 
69  QColor color() const;
70 
74  void setThickness(int w);
75 
79  int thickness() const;
80 
84  void setMargin(int m);
85 
89  int margin() const;
90 
91  void build( ReportBuilder& builder ) const;
96  Element* clone() const;
97 
98 private:
99  class Private;
100 
101  Private* const d;
102 };
103 
104 }
105 
106 #endif /* KDREPORTSHLINELEMENT_H */
107 
Definition: KDReportsHLineElement.h:39
Definition: KDReportsElement.h:41

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