KD Reports API Documentation
2.2
|
#include <KDReportsMainTable.h>
Public Member Functions | |
AutoTableElement * | autoTableElement () 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 |
The MainTable class represents the main table of a report in spread sheet mode.
You can access it using Report::mainTable(). Example:
Definition at line 37 of file KDReportsMainTable.h.
KDReports::AutoTableElement * KDReports::MainTable::autoTableElement | ( | ) | const |
Definition at line 52 of file KDReportsMainTable.cpp.
void KDReports::MainTable::setAutoTableElement | ( | const AutoTableElement & | element | ) |
Sets the auto table element, which contains the definition of the main table.
Definition at line 38 of file KDReportsMainTable.cpp.
References KDReports::AbstractTableElement::border(), KDReports::AbstractTableElement::borderBrush(), KDReports::AutoTableElement::headerBackground(), KDReports::AutoTableElement::iconSize(), KDReports::AutoTableElement::isHorizontalHeaderVisible(), KDReports::AutoTableElement::isVerticalHeaderVisible(), KDReports::AbstractTableElement::padding(), and KDReports::AutoTableElement::tableModel().
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 72 of file KDReportsMainTable.cpp.
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 57 of file KDReportsMainTable.cpp.
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 77 of file KDReportsMainTable.cpp.
KDReports::Report::TableBreakingPageOrder KDReports::MainTable::tableBreakingPageOrder | ( | ) | const |
Definition at line 62 of file KDReportsMainTable.cpp.