KD Reports  1.8
KDReportsMainTable.h
1 /****************************************************************************
2 ** Copyright (C) 2007-2020 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 class MainTablePrivate;
35 
50 class KDREPORTS_EXPORT MainTable
51 {
52 public:
56  void setAutoTableElement(const AutoTableElement& element);
60  AutoTableElement* autoTableElement() const;
61 
74  void setTableBreakingPageOrder( Report::TableBreakingPageOrder pageOrder );
75 
79  Report::TableBreakingPageOrder tableBreakingPageOrder() const;
80 
85  void setHorizontalHeaderFont(const QFont& font);
86 
91  void setVerticalHeaderFont(const QFont& font);
92 
93 private:
94  friend class Report;
95  friend class ReportPrivate;
96  MainTable();
97  ~MainTable();
98 
99  void setLayout(SpreadsheetReportLayout* layout);
100 
101  friend class Test;
102  QList<QRect> pageRects() const; // for unittests
103  qreal lastAutoFontScalingFactor() const; // for unittests
104 
105  Q_DISABLE_COPY(MainTable)
106  MainTablePrivate* const d;
107 };
108 
109 }
110 
111 #endif // KDREPORTSMAINTABLE_H
Definition: KDReportsReport.h:109
Definition: KDReportsAutoTableElement.h:46
Definition: KDReportsMainTable.h:50
Definition: KDReportsAbstractTableElement.h:36
Definition: KDReportsAbstractTableElement.h:30

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/