Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/KReportPreRenderer.h
Show All 20 Lines | |||||
21 | 21 | | |||
22 | #include "config-kreport.h" | 22 | #include "config-kreport.h" | ||
23 | #include "kreport_export.h" | 23 | #include "kreport_export.h" | ||
24 | 24 | | |||
25 | #include <QObject> | 25 | #include <QObject> | ||
26 | 26 | | |||
27 | #ifdef KREPORT_SCRIPTING | 27 | #ifdef KREPORT_SCRIPTING | ||
28 | class KReportScriptHandler; | 28 | class KReportScriptHandler; | ||
29 | class KReportScriptSource; | ||||
29 | #else | 30 | #else | ||
30 | #define KReportScriptHandler void | 31 | #define KReportScriptHandler void | ||
31 | #endif | 32 | #endif | ||
32 | class KReportPreRendererPrivate; | 33 | class KReportPreRendererPrivate; | ||
33 | class ORODocument; | 34 | class ORODocument; | ||
34 | class KReportDataSource; | 35 | class KReportDataSource; | ||
35 | class KReportDocument; | 36 | class KReportDocument; | ||
36 | class QDomElement; | 37 | class QDomElement; | ||
Show All 9 Lines | |||||
46 | public: | 47 | public: | ||
47 | explicit KReportPreRenderer(const QDomElement& document); | 48 | explicit KReportPreRenderer(const QDomElement& document); | ||
48 | 49 | | |||
49 | ~KReportPreRenderer() override; | 50 | ~KReportPreRenderer() override; | ||
50 | 51 | | |||
51 | //! Sets source data to @a data, takes ownership | 52 | //! Sets source data to @a data, takes ownership | ||
52 | void setSourceData(KReportDataSource* dataSource); | 53 | void setSourceData(KReportDataSource* dataSource); | ||
53 | 54 | | |||
55 | //!Sets the script source to @a source, does NOT take ownership as it may be an application window | ||||
56 | void setScriptSource(KReportScriptSource* source); | ||||
57 | | ||||
54 | #ifdef KREPORT_SCRIPTING | 58 | #ifdef KREPORT_SCRIPTING | ||
55 | KReportScriptHandler *scriptHandler(); | 59 | KReportScriptHandler *scriptHandler(); | ||
56 | void registerScriptObject(QObject *obj, const QString &name); | 60 | void registerScriptObject(QObject *obj, const QString &name); | ||
57 | #endif | 61 | #endif | ||
58 | 62 | | |||
59 | bool generateDocument(); | 63 | bool generateDocument(); | ||
60 | 64 | | |||
61 | ORODocument *document(); | 65 | ORODocument *document(); | ||
Show All 22 Lines |