KD Reports  1.5
 All Classes Namespaces Functions Enumerations Enumerator Pages
KDReportsMainTable.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 KDREPORTSMAINTABLE_H
24 #define KDREPORTSMAINTABLE_H
25 
26 #include "KDReportsReport.h"
27 
28 namespace KDReports
29 {
30 class AutoTableElement;
31 class Report;
32 class Test;
33 class SpreadsheetReportLayout;
34 
49 class KDREPORTS_EXPORT MainTable
50 {
51 public:
55  void setAutoTableElement(const AutoTableElement& element);
59  AutoTableElement* autoTableElement() const;
60 
73  void setTableBreakingPageOrder( Report::TableBreakingPageOrder pageOrder );
74 
78  Report::TableBreakingPageOrder tableBreakingPageOrder() const;
79 
84  void setHorizontalHeaderFont(const QFont& font);
85 
90  void setVerticalHeaderFont(const QFont& font);
91 
92 private:
93  friend class Report;
94  friend class ReportPrivate;
95  MainTable();
96  ~MainTable();
97 
98  void setLayout(SpreadsheetReportLayout* layout);
99 
100  friend class Test;
101  QList<QRect> pageRects() const; // for unittests
102  qreal lastAutoFontScalingFactor() const; // for unittests
103 
104  Q_DISABLE_COPY(MainTable)
105  class Private;
106  Private* const d;
107 };
108 
109 }
110 
111 #endif // KDREPORTSMAINTABLE_H
Definition: KDReportsReport.h:108
Definition: KDReportsAutoTableElement.h:43
Definition: KDReportsMainTable.h:49
Definition: KDReportsAbstractTableElement.h:29

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