Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/scripting/KReportScriptHandler.h
Show All 17 Lines | |||||
18 | #ifndef KRSCRIPTHANDLER_H | 18 | #ifndef KRSCRIPTHANDLER_H | ||
19 | #define KRSCRIPTHANDLER_H | 19 | #define KRSCRIPTHANDLER_H | ||
20 | 20 | | |||
21 | #include "kreport_export.h" | 21 | #include "kreport_export.h" | ||
22 | #include "config-kreport.h" | 22 | #include "config-kreport.h" | ||
23 | 23 | | |||
24 | #ifdef KREPORT_SCRIPTING | 24 | #ifdef KREPORT_SCRIPTING | ||
25 | #include "KReportScriptConstants.h" | 25 | #include "KReportScriptConstants.h" | ||
26 | #include "KReportData.h" | 26 | #include "KReportDataSource.h" | ||
27 | #include <QtQml/QJSValue> | 27 | #include <QtQml/QJSValue> | ||
28 | 28 | | |||
29 | class KReportScriptDebug; | 29 | class KReportScriptDebug; | ||
30 | class KReportScriptDraw; | 30 | class KReportScriptDraw; | ||
31 | class KReportSectionData; | 31 | class KReportSectionData; | ||
32 | class QJSEngine; | 32 | class QJSEngine; | ||
33 | class KReportDocument; | 33 | class KReportDocument; | ||
34 | class OROPage; | 34 | class OROPage; | ||
35 | 35 | | |||
36 | namespace Scripting | 36 | namespace Scripting | ||
37 | { | 37 | { | ||
38 | class Report; | 38 | class Report; | ||
39 | class Section; | 39 | class Section; | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | class KREPORT_EXPORT KReportScriptHandler : public QObject | 42 | class KREPORT_EXPORT KReportScriptHandler : public QObject | ||
43 | { | 43 | { | ||
44 | Q_OBJECT | 44 | Q_OBJECT | ||
45 | public: | 45 | public: | ||
46 | KReportScriptHandler(const KReportData *, KReportDocument*); | 46 | KReportScriptHandler(const KReportDataSource *reportDataSource, KReportDocument* reportDocument); | ||
47 | ~KReportScriptHandler(); | 47 | ~KReportScriptHandler(); | ||
48 | 48 | | |||
49 | QVariant evaluate(const QString&); | 49 | QVariant evaluate(const QString&); | ||
50 | void displayErrors(); | 50 | void displayErrors(); | ||
51 | QJSValue registerScriptObject(QObject*, const QString&); | 51 | QJSValue registerScriptObject(QObject*, const QString&); | ||
52 | bool trigger(); | 52 | bool trigger(); | ||
53 | 53 | | |||
54 | public Q_SLOTS: | 54 | public Q_SLOTS: | ||
Show All 23 Lines |