File indexing completed on 2024-05-05 17:04:25

0001 /*
0002  * <one line to give the library's name and an idea of what it does.>
0003  * Copyright 2013  Dan Leinir Turthra Jensen <admin@leinir.dk>
0004  *
0005  * This program is free software; you can redistribute it and/or
0006  * modify it under the terms of the GNU General Public License as
0007  * published by the Free Software Foundation; either version 2 of
0008  * the License or (at your option) version 3 or any later version
0009  * accepted by the membership of KDE e.V. (or its successor approved
0010  * by the membership of KDE e.V.), which shall act as a proxy
0011  * defined in Section 14 of version 3 of the license.
0012  *
0013  * This program is distributed in the hope that it will be useful,
0014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0016  * GNU General Public License for more details.
0017  *
0018  * You should have received a copy of the GNU General Public License
0019  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
0020  *
0021  */
0022 
0023 #ifndef DESKTOPVIEWPROXY_H
0024 #define DESKTOPVIEWPROXY_H
0025 
0026 #include <QObject>
0027 
0028 class QUrl;
0029 class KoMainWindow;
0030 class MainWindow;
0031 class DesktopViewProxy : public QObject
0032 {
0033     Q_OBJECT
0034 public:
0035     explicit DesktopViewProxy(MainWindow* mainWindow, KoMainWindow* parent = 0);
0036     ~DesktopViewProxy() override;
0037 
0038 public Q_SLOTS:
0039     void fileNew();
0040     void fileOpen();
0041     void fileSave();
0042     bool fileSaveAs();
0043     void reload();
0044     void loadExistingAsNew();
0045     void slotFileOpenRecent(const QUrl &url);
0046 
0047 Q_SIGNALS:
0048     void documentSaved();
0049 
0050 private:
0051     class Private;
0052     Private* d;
0053 };
0054 
0055 #endif // DESKTOPVIEWPROXY_H