Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/reports/kexireportview.h
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * Kexi Report Plugin | 2 | * Kexi Report Plugin | ||
3 | * Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk) | 3 | * Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk) | ||
4 | * Copyright (C) 2014-2017 Jarosław Staniek <staniek@kde.org> | 4 | * Copyright (C) 2014-2018 Jarosław Staniek <staniek@kde.org> | ||
5 | * | 5 | * | ||
6 | * This library is free software; you can redistribute it and/or | 6 | * This library is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU Lesser General Public | 7 | * modify it under the terms of the GNU Lesser General Public | ||
8 | * License as published by the Free Software Foundation; either | 8 | * License as published by the Free Software Foundation; either | ||
9 | * version 2.1 of the License, or (at your option) any later version. | 9 | * version 2.1 of the License, or (at your option) any later version. | ||
10 | * | 10 | * | ||
11 | * This library is distributed in the hope that it will be useful, | 11 | * This library is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | * Lesser General Public License for more details. | 14 | * Lesser General Public License for more details. | ||
15 | * | 15 | * | ||
16 | * You should have received a copy of the GNU Lesser General Public | 16 | * You should have received a copy of the GNU Lesser General Public | ||
17 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 17 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef KEXIREPORTVIEW_H | 20 | #ifndef KEXIREPORTVIEW_H | ||
21 | #define KEXIREPORTVIEW_H | 21 | #define KEXIREPORTVIEW_H | ||
22 | 22 | | |||
23 | #include <QGraphicsView> | | |||
24 | | ||||
25 | #include <config-kreport.h> | 23 | #include <config-kreport.h> | ||
26 | #include <KReportRendererBase> | 24 | #include <KReportRendererBase> | ||
27 | 25 | | |||
28 | #include <core/KexiView.h> | 26 | #include <core/KexiView.h> | ||
29 | #include <core/KexiRecordNavigatorHandler.h> | 27 | #include <core/KexiRecordNavigatorHandler.h> | ||
30 | #include "kexireportpart.h" | 28 | #include "kexireportpart.h" | ||
31 | 29 | | |||
30 | class KexiDBReportDataSource; | ||||
32 | class KReportPreRenderer; | 31 | class KReportPreRenderer; | ||
33 | class ORODocument; | 32 | class ORODocument; | ||
34 | class KReportView; | 33 | class KReportView; | ||
35 | //! @todo KEXI3 class KexiScriptAdaptor; | 34 | //! @todo KEXI3 class KexiScriptAdaptor; | ||
36 | class KRScriptFunctions; | 35 | class KRScriptFunctions; | ||
37 | #ifndef KEXI_MOBILE | 36 | #ifndef KEXI_MOBILE | ||
38 | class KexiRecordNavigator; | 37 | class KexiRecordNavigator; | ||
39 | #endif | 38 | #endif | ||
Show All 24 Lines | 62 | private: | |||
64 | KReportPreRenderer *m_preRenderer; | 63 | KReportPreRenderer *m_preRenderer; | ||
65 | KReportView *m_reportView; | 64 | KReportView *m_reportView; | ||
66 | 65 | | |||
67 | #ifndef KEXI_MOBILE | 66 | #ifndef KEXI_MOBILE | ||
68 | KexiRecordNavigator *m_pageSelector; | 67 | KexiRecordNavigator *m_pageSelector; | ||
69 | #endif | 68 | #endif | ||
70 | 69 | | |||
71 | KexiReportPartTempData* tempData() const; | 70 | KexiReportPartTempData* tempData() const; | ||
72 | KReportDataSource* createDataSource(const QDomElement &e); | 71 | KexiDBReportDataSource* createDataSource(const QDomElement &e); | ||
73 | //! @todo KEXI3 KexiScriptAdaptor *m_kexi; | 72 | //! @todo KEXI3 KexiScriptAdaptor *m_kexi; | ||
74 | KRScriptFunctions *m_functions; | 73 | KRScriptFunctions *m_functions; | ||
75 | KReportRendererFactory m_factory; | 74 | KReportRendererFactory m_factory; | ||
76 | 75 | | |||
77 | QUrl getExportUrl(const QString &mimetype, const QString &caption, | 76 | QUrl getExportUrl(const QString &mimetype, const QString &caption, | ||
78 | const QString &lastExportPathOrVariable, const QString &extension); | 77 | const QString &lastExportPathOrVariable, const QString &extension); | ||
79 | 78 | | |||
80 | private Q_SLOTS: | 79 | private Q_SLOTS: | ||
Show All 12 Lines |