KD Reports API Documentation 2.2
Loading...
Searching...
No Matches
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 20 of file KDReportsTableBreakingLogic_p.h.

Member Typedef Documentation

◆ WidthVector

Definition at line 25 of file KDReportsTableBreakingLogic_p.h.

Constructor & Destructor Documentation

◆ TableBreakingLogic()

TableBreakingLogic::TableBreakingLogic ( )

Definition at line 15 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 32 of file KDReportsTableBreakingLogic.cpp.

References QVector::count(), and QVector::resize().

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

References QVector::resize(), and QVector::size().

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


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

© 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 Sun Apr 28 2024 00:03:09 for KD Reports API Documentation by doxygen 1.9.8