Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportItemBase.h
Show All 23 Lines | |||||
24 | 24 | | |||
25 | #include <QObject> | 25 | #include <QObject> | ||
26 | #include <QFont> | 26 | #include <QFont> | ||
27 | #include <QColor> | 27 | #include <QColor> | ||
28 | 28 | | |||
29 | class OROPage; | 29 | class OROPage; | ||
30 | class OROSection; | 30 | class OROSection; | ||
31 | class KReportSize; | 31 | class KReportSize; | ||
32 | class KReportData; | 32 | class KReportDataSource; | ||
33 | class KReportLineStyle; | 33 | class KReportLineStyle; | ||
34 | 34 | | |||
35 | #ifdef KREPORT_SCRIPTING | 35 | #ifdef KREPORT_SCRIPTING | ||
36 | class KReportScriptHandler; | 36 | class KReportScriptHandler; | ||
37 | #else | 37 | #else | ||
38 | #define KReportScriptHandler void | 38 | #define KReportScriptHandler void | ||
39 | #endif | 39 | #endif | ||
40 | 40 | | |||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 72 | public: | |||
85 | @return the height required by the object | 85 | @return the height required by the object | ||
86 | */ | 86 | */ | ||
87 | virtual int renderSimpleData(OROPage *page, OROSection *section, const QPointF &offset, const QVariant &data, KReportScriptHandler *script); | 87 | virtual int renderSimpleData(OROPage *page, OROSection *section, const QPointF &offset, const QVariant &data, KReportScriptHandler *script); | ||
88 | 88 | | |||
89 | /** | 89 | /** | ||
90 | @brief Render a complex item that uses a sub query as a data source | 90 | @brief Render a complex item that uses a sub query as a data source | ||
91 | @return the height required by the object | 91 | @return the height required by the object | ||
92 | */ | 92 | */ | ||
93 | virtual int renderReportData(OROPage *page, OROSection *section, const QPointF &offset, KReportData *data, KReportScriptHandler *script); | 93 | virtual int renderReportData(OROPage *page, OROSection *section, const QPointF &offset, KReportDataSource *dataSource, KReportScriptHandler *script); | ||
staniek: data -> source | |||||
94 | 94 | | |||
95 | /** | 95 | /** | ||
96 | @brief Override if the item supports a simple data source, such as a field | 96 | @brief Override if the item supports a simple data source, such as a field | ||
97 | @return The field name or expression for the data source | 97 | @return The field name or expression for the data source | ||
98 | */ | 98 | */ | ||
99 | virtual QString itemDataSource() const; | 99 | virtual QString itemDataSource() const; | ||
100 | 100 | | |||
101 | /** | 101 | /** | ||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |
data -> source