Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/KReportPreRenderer.h
Show All 25 Lines | |||||
26 | 26 | | |||
27 | #ifdef KREPORT_SCRIPTING | 27 | #ifdef KREPORT_SCRIPTING | ||
28 | class KReportScriptHandler; | 28 | class KReportScriptHandler; | ||
29 | #else | 29 | #else | ||
30 | #define KReportScriptHandler void | 30 | #define KReportScriptHandler void | ||
31 | #endif | 31 | #endif | ||
32 | class KReportPreRendererPrivate; | 32 | class KReportPreRendererPrivate; | ||
33 | class ORODocument; | 33 | class ORODocument; | ||
34 | class KReportData; | 34 | class KReportDataSource; | ||
35 | class KReportDocument; | 35 | class KReportDocument; | ||
36 | class QDomElement; | 36 | class QDomElement; | ||
37 | 37 | | |||
38 | // | 38 | // | ||
39 | // ORPreRender | 39 | // ORPreRender | ||
40 | // This class takes a report definition and prerenders the result to | 40 | // This class takes a report definition and prerenders the result to | ||
41 | // an ORODocument that can be used to pass to any number of renderers. | 41 | // an ORODocument that can be used to pass to any number of renderers. | ||
42 | // | 42 | // | ||
43 | class KREPORT_EXPORT KReportPreRenderer : public QObject | 43 | class KREPORT_EXPORT KReportPreRenderer : public QObject | ||
44 | { | 44 | { | ||
45 | Q_OBJECT | 45 | Q_OBJECT | ||
46 | public: | 46 | public: | ||
47 | explicit KReportPreRenderer(const QDomElement& document); | 47 | explicit KReportPreRenderer(const QDomElement& document); | ||
48 | 48 | | |||
49 | virtual ~KReportPreRenderer(); | 49 | virtual ~KReportPreRenderer(); | ||
50 | 50 | | |||
51 | //! Sets source data to @a data, takes ownership | 51 | //! Sets source data to @a data, takes ownership | ||
52 | void setSourceData(KReportData* data); | 52 | void setSourceData(KReportDataSource* data); | ||
staniek: data -> dataSource | |||||
53 | 53 | | |||
54 | #ifdef KREPORT_SCRIPTING | 54 | #ifdef KREPORT_SCRIPTING | ||
55 | KReportScriptHandler *scriptHandler(); | 55 | KReportScriptHandler *scriptHandler(); | ||
56 | void registerScriptObject(QObject*, const QString&); | 56 | void registerScriptObject(QObject*, const QString&); | ||
57 | #endif | 57 | #endif | ||
58 | 58 | | |||
59 | bool generateDocument(); | 59 | bool generateDocument(); | ||
60 | 60 | | |||
Show All 23 Lines |
data -> dataSource