kexi
KexiSimplePrintingEngine Class Reference
#include <kexisimpleprintingengine.h>
Detailed Description
An engine painting data on pages using QPainter. The engine allows for random access to any page.
Definition at line 57 of file kexisimpleprintingengine.h.
Public Slots | |
void | paintPage (int pageNumber, QPainter &painter, bool paint=true) |
Public Member Functions | |
KexiSimplePrintingEngine (const KexiSimplePrintingSettings &settings, QObject *parent) | |
~KexiSimplePrintingEngine () | |
bool | init (KexiDB::Connection &conn, KexiDB::TableOrQuerySchema &tableOrQuery, const QString &titleText, QString &errorMessage) |
void | setTitleText (const QString &titleText) |
void | calculatePagesCount (QPainter &painter) |
bool | done () |
void | clear () |
const KexiSimplePrintingSettings * | settings () const |
bool | eof () const |
uint | pagesCount () |
uint | paintedPages () const |
Protected Member Functions | |
void | paintRecord (QPainter &painter, KexiTableItem *item, uint count, int cellMargin, uint &y, uint paintedRows, bool paint) |
Protected Attributes | |
const KexiSimplePrintingSettings * | m_settings |
QFont | m_mainFont |
QFont | m_headerFont |
QPaintDeviceMetrics | m_pdm |
int | m_dpiX |
int | m_dpiY |
uint | m_pageWidth |
uint | m_pageHeight |
KexiDB::Cursor * | m_cursor |
KexiTableViewData * | m_data |
QPtrList< uint > | m_dataOffsets |
QString | m_headerText |
QString | m_dateTimeText |
uint | m_dateTimeWidth |
QRect | m_headerTextRect |
int | m_maxFieldNameWidth |
int | m_mainLineSpacing |
int | m_footerHeight |
KexiDB::QueryColumnInfo::Vector | m_fieldsExpanded |
uint | m_pagesCount |
bool | m_eof |
bool | m_paintInitialized |
double | leftMargin |
double | rightMargin |
double | topMargin |
double | bottomMargin |
double | m_fx |
double | m_fy |
Member Function Documentation
|
Calculates pafe count that can be later obtained using pagesCount(). Page count can depend on painter (printer/screen) and on printing settings. Definition at line 482 of file kexisimpleprintingengine.cpp. |
|
Definition at line 79 of file kexisimpleprintingengine.h. |
|
Definition at line 136 of file kexisimpleprintingengine.cpp. |
|
Definition at line 82 of file kexisimpleprintingengine.h. |
|
Definition at line 86 of file kexisimpleprintingengine.h. |
|
Paints a page number pageNumber (counted from 0) on painter. If paint is false, drawings are only computed but not painted, so this can be used for calculating page number before printing or previewing. Definition at line 200 of file kexisimpleprintingengine.cpp. |
|
todo inherit format todo inherit format todo inherit format todo currency, decimal... Definition at line 388 of file kexisimpleprintingengine.cpp. |
Member Data Documentation
|
used by paintPage()
Definition at line 120 of file kexisimpleprintingengine.h. |
The documentation for this class was generated from the following files: