KD Reports API Documentation  2.0
Public Types | Public Member Functions | List of all members
KDReports::TableBreakingLogic Class Reference

#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
 

Detailed Description

Definition at line 40 of file KDReportsTableBreakingLogic_p.h.

Member Typedef Documentation

◆ WidthVector

Definition at line 59 of file KDReportsTableBreakingLogic_p.h.

Constructor & Destructor Documentation

◆ TableBreakingLogic()

TableBreakingLogic::TableBreakingLogic ( )

Definition at line 21 of file KDReportsTableBreakingLogic.cpp.

Member Function Documentation

◆ columnsPerPage()

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 38 of file KDReportsTableBreakingLogic.cpp.

Referenced by KDReports::SpreadsheetReportLayout::ensureLayouted().

◆ setColumnWidths()

void KDReports::TableBreakingLogic::setColumnWidths ( const WidthVector widths)

◆ setPageCount()

void TableBreakingLogic::setPageCount ( int  pages)

◆ widthPerPage()

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 89 of file KDReportsTableBreakingLogic.cpp.

Referenced by KDReports::SpreadsheetReportLayout::ensureLayouted().


The documentation for this class was generated from the following files:

© 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