KD Reports API Documentation
2.2
|
#include <KDReportsTableBreakingLogic_p.h>
Public Types | |
typedef QVector< qreal > | WidthVector |
Public Member Functions | |
TableBreakingLogic () | |
QVector< int > | columnsPerPage () const |
void | setColumnWidths (const WidthVector &widths) |
void | setPageCount (int pages) |
WidthVector | widthPerPage (const QVector< int > &colPerPage) const |
Definition at line 20 of file KDReportsTableBreakingLogic_p.h.
typedef QVector<qreal> KDReports::TableBreakingLogic::WidthVector |
Definition at line 25 of file KDReportsTableBreakingLogic_p.h.
TableBreakingLogic::TableBreakingLogic | ( | ) |
Definition at line 15 of file KDReportsTableBreakingLogic.cpp.
QVector< int > TableBreakingLogic::columnsPerPage | ( | ) | const |
Performs the optimization calculation and returns: the number of columns per page This does NOT take into account the vertical header, since it will anyway have to be on every page.
Definition at line 32 of file KDReportsTableBreakingLogic.cpp.
Referenced by KDReports::SpreadsheetReportLayout::ensureLayouted().
void KDReports::TableBreakingLogic::setColumnWidths | ( | const WidthVector & | widths | ) |
Referenced by KDReports::SpreadsheetReportLayout::ensureLayouted().
void TableBreakingLogic::setPageCount | ( | int | pages | ) |
Definition at line 27 of file KDReportsTableBreakingLogic.cpp.
Referenced by KDReports::SpreadsheetReportLayout::ensureLayouted().
TableBreakingLogic::WidthVector TableBreakingLogic::widthPerPage | ( | const QVector< int > & | colPerPage | ) | const |
Simple transformation of the result of columnsPerPage, returns the sum of the column widths for a given page
Definition at line 83 of file KDReportsTableBreakingLogic.cpp.
Referenced by KDReports::SpreadsheetReportLayout::ensureLayouted().