Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/scripting/KReportScriptHandler.h
Show All 26 Lines | |||||
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 | class KReportScriptSource; | ||||
35 | 36 | | |||
36 | namespace Scripting | 37 | namespace Scripting | ||
37 | { | 38 | { | ||
38 | class Report; | 39 | class Report; | ||
39 | class Section; | 40 | class Section; | ||
40 | } | 41 | } | ||
41 | 42 | | |||
42 | class KREPORT_EXPORT KReportScriptHandler : public QObject | 43 | class KREPORT_EXPORT KReportScriptHandler : public QObject | ||
43 | { | 44 | { | ||
44 | Q_OBJECT | 45 | Q_OBJECT | ||
45 | public: | 46 | public: | ||
46 | KReportScriptHandler(const KReportDataSource *reportDataSource, KReportDocument* reportDocument); | 47 | KReportScriptHandler(const KReportDataSource *reportDataSource, KReportScriptSource *scriptSource, KReportDocument* reportDocument); | ||
47 | ~KReportScriptHandler() override; | 48 | ~KReportScriptHandler() override; | ||
48 | 49 | | |||
49 | QVariant evaluate(const QString&); | 50 | QVariant evaluate(const QString&); | ||
50 | void displayErrors(); | 51 | void displayErrors(); | ||
51 | QJSValue registerScriptObject(QObject*, const QString&); | 52 | QJSValue registerScriptObject(QObject*, const QString&); | ||
52 | bool trigger(); | 53 | bool trigger(); | ||
53 | 54 | | |||
54 | public Q_SLOTS: | 55 | public Q_SLOTS: | ||
Show All 23 Lines |