KD Reports  1.9
KDReportsMainTable.h
1 /****************************************************************************
2 **
3 ** This file is part of the KD Reports library.
4 **
5 ** SPDX-FileCopyrightText: 2007-2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDAB-KDReports OR LicenseRef-KDAB-KDReports-US
8 **
9 ** Licensees holding valid commercial KD Reports licenses may use this file in
10 ** accordance with the KD Reports Commercial License Agreement provided with
11 ** the Software.
12 **
13 ** Contact info@kdab.com if any conditions of this licensing are not clear to you.
14 **
15 ****************************************************************************/
16 
17 #ifndef KDREPORTSMAINTABLE_H
18 #define KDREPORTSMAINTABLE_H
19 
20 #include "KDReportsReport.h"
21 
22 namespace KDReports
23 {
24 class AutoTableElement;
25 class Report;
26 class Test;
27 class SpreadsheetReportLayout;
28 class MainTablePrivate;
29 
44 class KDREPORTS_EXPORT MainTable
45 {
46 public:
50  void setAutoTableElement(const AutoTableElement& element);
54  AutoTableElement* autoTableElement() const;
55 
68  void setTableBreakingPageOrder( Report::TableBreakingPageOrder pageOrder );
69 
73  Report::TableBreakingPageOrder tableBreakingPageOrder() const;
74 
79  void setHorizontalHeaderFont(const QFont& font);
80 
85  void setVerticalHeaderFont(const QFont& font);
86 
87 private:
88  friend class Report;
89  friend class ReportPrivate;
90  MainTable();
91  ~MainTable();
92 
93  void setLayout(SpreadsheetReportLayout* layout);
94 
95  friend class Test;
96  QList<QRect> pageRects() const; // for unittests
97  qreal lastAutoFontScalingFactor() const; // for unittests
98 
99  Q_DISABLE_COPY(MainTable)
100  MainTablePrivate* const d;
101 };
102 
103 }
104 
105 #endif // KDREPORTSMAINTABLE_H
Definition: KDReportsReport.h:99
Definition: KDReportsAutoTableElement.h:40
Definition: KDReportsMainTable.h:44
Definition: KDReportsAbstractTableElement.h:30
Definition: KDReportsAbstractTableElement.h:24

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/