KD Reports API Documentation  2.0
KDReportsTableBreakingLogic_p.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 TABLEBREAKINGLOGIC_H
18 #define TABLEBREAKINGLOGIC_H
19 
20 #include <QVector>
21 
22 namespace KDReports {
23 
26 class TableBreakingLogic
27 {
28 public:
30 
31  typedef QVector<qreal> WidthVector;
32  void setColumnWidths(const WidthVector &widths);
33  void setPageCount(int pages);
34 
39  QVector<int> columnsPerPage() const;
40 
43  WidthVector widthPerPage(const QVector<int> &colPerPage) const;
44 
45 private:
46  WidthVector m_widths;
47  int m_pages;
48 };
49 
50 } // namespace KDReports
51 
52 #endif /* TABLEBREAKINGLOGIC_H */
KDReports::TableBreakingLogic::TableBreakingLogic
TableBreakingLogic()
Definition: KDReportsTableBreakingLogic.cpp:21
KDReports::TableBreakingLogic::widthPerPage
WidthVector widthPerPage(const QVector< int > &colPerPage) const
Definition: KDReportsTableBreakingLogic.cpp:89
KDReports::TableBreakingLogic::setColumnWidths
void setColumnWidths(const WidthVector &widths)
KDReports::TableBreakingLogic::setPageCount
void setPageCount(int pages)
Definition: KDReportsTableBreakingLogic.cpp:33
KDReports::TableBreakingLogic::WidthVector
QVector< qreal > WidthVector
Definition: KDReportsTableBreakingLogic_p.h:59
KDReports::TableBreakingLogic::columnsPerPage
QVector< int > columnsPerPage() const
Definition: KDReportsTableBreakingLogic.cpp:38
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