KD Reports API Documentation  2.2
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 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: MIT
8 **
9 ****************************************************************************/
10 
11 #ifndef KDREPORTSMAINTABLE_H
12 #define KDREPORTSMAINTABLE_H
13 
14 #include "KDReportsReport.h"
15 
16 namespace KDReports {
17 class AutoTableElement;
18 class Report;
19 class Test;
20 class SpreadsheetReportLayout;
21 class MainTablePrivate;
22 
38 {
39 public:
43  void setAutoTableElement(const AutoTableElement &element);
47  AutoTableElement *autoTableElement() const;
48 
61  void setTableBreakingPageOrder(Report::TableBreakingPageOrder pageOrder);
62 
66  Report::TableBreakingPageOrder tableBreakingPageOrder() const;
67 
72  void setHorizontalHeaderFont(const QFont &font);
73 
78  void setVerticalHeaderFont(const QFont &font);
79 
80 private:
81  friend class Report;
82  friend class ReportPrivate;
83  MainTable();
84  ~MainTable();
85 
86  void setLayout(SpreadsheetReportLayout *layout);
87 
88  friend class Test;
89  QList<QRect> pageRects() const; // for unittests
90  qreal lastAutoFontScalingFactor() const; // for unittests
91 
92  Q_DISABLE_COPY(MainTable)
93  std::unique_ptr<MainTablePrivate> d;
94 };
95 
96 }
97 
98 #endif // KDREPORTSMAINTABLE_H
#define KDREPORTS_EXPORT

© 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 by doxygen 1.9.1