Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/scripting/KReportScriptReport.h
Show All 13 Lines | |||||
14 | * You should have received a copy of the GNU Lesser General Public | 14 | * You should have received a copy of the GNU Lesser General Public | ||
15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | #ifndef SCRIPTINGKRSCRIPTREPORT_H | 17 | #ifndef SCRIPTINGKRSCRIPTREPORT_H | ||
18 | #define SCRIPTINGKRSCRIPTREPORT_H | 18 | #define SCRIPTINGKRSCRIPTREPORT_H | ||
19 | 19 | | |||
20 | #include <QObject> | 20 | #include <QObject> | ||
21 | #include <QtQml/QJSValue> | 21 | #include <QtQml/QJSValue> | ||
22 | #include <QMap> | ||||
22 | 23 | | |||
23 | class KReportDocument; | 24 | class KReportDocument; | ||
24 | 25 | | |||
25 | namespace Scripting | 26 | namespace Scripting | ||
26 | { | 27 | { | ||
27 | 28 | | |||
28 | 29 | | |||
29 | /** | 30 | /** | ||
▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 55 | public Q_SLOTS: | |||
78 | void eventOnComplete(); | 79 | void eventOnComplete(); | ||
79 | 80 | | |||
80 | //! Executed when a new page is created. If a handler exists for this in the user object it is called. | 81 | //! Executed when a new page is created. If a handler exists for this in the user object it is called. | ||
81 | void eventOnNewPage(); | 82 | void eventOnNewPage(); | ||
82 | 83 | | |||
83 | private: | 84 | private: | ||
84 | KReportDocument *m_reportData; | 85 | KReportDocument *m_reportData; | ||
85 | QJSValue m_scriptObject; | 86 | QJSValue m_scriptObject; | ||
87 | QMap<QString, QObject*> m_scriptObjMap; | ||||
86 | }; | 88 | }; | ||
87 | 89 | | |||
88 | } | 90 | } | ||
89 | 91 | | |||
90 | #endif | 92 | #endif |