KD Reports API Documentation  2.1
Public Member Functions | List of all members
KDReports::MainTable Class Reference

#include <KDReportsMainTable.h>

Public Member Functions

AutoTableElementautoTableElement () const
 
void setAutoTableElement (const AutoTableElement &element)
 
void setHorizontalHeaderFont (const QFont &font)
 
void setTableBreakingPageOrder (Report::TableBreakingPageOrder pageOrder)
 
void setVerticalHeaderFont (const QFont &font)
 
Report::TableBreakingPageOrder tableBreakingPageOrder () const
 

Detailed Description

The MainTable class represents the main table of a report in spread sheet mode.

You can access it using Report::mainTable(). Example:

Since
1.3

Definition at line 43 of file KDReportsMainTable.h.

Member Function Documentation

◆ autoTableElement()

KDReports::AutoTableElement * KDReports::MainTable::autoTableElement ( ) const
Returns
the auto table element passed to setAutoTableElement

Definition at line 58 of file KDReportsMainTable.cpp.

◆ setAutoTableElement()

void KDReports::MainTable::setAutoTableElement ( const AutoTableElement element)

◆ setHorizontalHeaderFont()

void KDReports::MainTable::setHorizontalHeaderFont ( const QFont font)

Sets the font to use for the horizontal header of the table. By default the font passed to report.setDefaultFont is used.

Definition at line 78 of file KDReportsMainTable.cpp.

◆ setTableBreakingPageOrder()

void KDReports::MainTable::setTableBreakingPageOrder ( Report::TableBreakingPageOrder  pageOrder)

Sets the page order to use when breaking tables. When a table is bigger than the page in both directions, horizontally and vertically, then the table breaking can be done in two ways: either the table goes "down then right", i.e. all rows appear first, for the first few columns, and then other columns are printed, or it goes "right then down", i.e. all columns appear first, for the number of rows that fit into one page, and then the bottom part of the table is printed.

The default page order is DownThenRight.

Definition at line 63 of file KDReportsMainTable.cpp.

◆ setVerticalHeaderFont()

void KDReports::MainTable::setVerticalHeaderFont ( const QFont font)

Sets the font to use for the vertical header of the table. By default the font passed to report.setDefaultFont is used.

Definition at line 83 of file KDReportsMainTable.cpp.

◆ tableBreakingPageOrder()

KDReports::Report::TableBreakingPageOrder KDReports::MainTable::tableBreakingPageOrder ( ) const
Returns
the table breaking page order given to setTableBreakingPageOrder

Definition at line 68 of file KDReportsMainTable.cpp.


The documentation for this class was generated from the following files:
KDReports::Report::SpreadSheet
@ SpreadSheet
Definition: KDReportsReport.h:97
KDReports::Report::setReportMode
void setReportMode(ReportMode reportMode)
Definition: KDReportsReport.cpp:1098
KDReports::Report
Definition: KDReportsReport.h:81
KDReports::AutoTableElement
Definition: KDReportsAutoTableElement.h:41
KDReports::MainTable::setAutoTableElement
void setAutoTableElement(const AutoTableElement &element)
Definition: KDReportsMainTable.cpp:44
KDReports::Report::mainTable
MainTable * mainTable() const
Definition: KDReportsReport.cpp:1121

© 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 Fri Jul 15 2022 13:09:07 for KD Reports API Documentation by doxygen 1.8.20