KD Reports API Documentation  2.0
KDReportsMainTable.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** This file is part of the KD Reports library.
4 **
5 ** SPDX-FileCopyrightText: 2007-2022 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 class AutoTableElement;
24 class Report;
25 class Test;
26 class SpreadsheetReportLayout;
27 class MainTablePrivate;
28 
43 class KDREPORTS_EXPORT MainTable
44 {
45 public:
49  void setAutoTableElement(const AutoTableElement &element);
53  AutoTableElement *autoTableElement() const;
54 
67  void setTableBreakingPageOrder(Report::TableBreakingPageOrder pageOrder);
68 
72  Report::TableBreakingPageOrder tableBreakingPageOrder() const;
73 
78  void setHorizontalHeaderFont(const QFont &font);
79 
84  void setVerticalHeaderFont(const QFont &font);
85 
86 private:
87  friend class Report;
88  friend class ReportPrivate;
89  MainTable();
90  ~MainTable();
91 
92  void setLayout(SpreadsheetReportLayout *layout);
93 
94  friend class Test;
95  QList<QRect> pageRects() const; // for unittests
96  qreal lastAutoFontScalingFactor() const; // for unittests
97 
98  Q_DISABLE_COPY(MainTable)
99  MainTablePrivate *const d;
100 };
101 
102 }
103 
104 #endif // KDREPORTSMAINTABLE_H
QList< QRect >
KDReportsReport.h
KDREPORTS_EXPORT
#define KDREPORTS_EXPORT
Definition: KDReportsGlobal.h:29
KDReports::Report::TableBreakingPageOrder
TableBreakingPageOrder
Definition: KDReportsReport.h:611
KDReports
Definition: KDReportsAbstractReportLayout_p.h:30

© 2007-2021 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/
Generated on Sat Jan 8 2022 02:38:32 for KD Reports API Documentation by doxygen 1.8.17