00001 /* This file is part of the KDE project 00002 Copyright (c) 2000 Simon Hausmann <hausmann@kde.org> 00003 Copyright (C) 2006 Fredrik Edemar <f_edemar@linux.se> 00004 00005 $Id: KoViewIface.h 539508 2006-05-10 20:01:40Z mlaurent $ 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Library General Public 00009 License as published by the Free Software Foundation; either 00010 version 2 of the License, or (at your option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Library General Public License for more details. 00016 00017 You should have received a copy of the GNU Library General Public License 00018 along with this library; see the file COPYING.LIB. If not, write to 00019 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 * Boston, MA 02110-1301, USA. 00021 */ 00022 #ifndef __KoViewAdaptor_h__ 00023 #define __KoViewAdaptor_h__ 00024 00025 #include <QMap> 00026 #include <QObject> 00027 #include <QtDBus/QtDBus> 00028 00029 class QString; 00030 class QStringList; 00031 00032 #include "KoViewAdaptor.h" 00033 #include "koffice_export.h" 00034 //Added by qt3to4: 00035 00036 // class KDCOPActionProxy; 00037 class KoView; 00038 00039 class KOFFICECORE_EXPORT KoViewAdaptor : public QDBusAbstractAdaptor 00040 { 00041 Q_OBJECT 00042 Q_CLASSINFO("D-Bus Interface", "org.kde.koffice.view") 00043 public: 00044 KoViewAdaptor( KoView *view ); 00045 //KoViewAdaptor( const char *name, KoView *view ); 00046 // TODO same args order as KoDocumentIface 00047 00048 virtual ~KoViewAdaptor(); 00049 00050 public Q_SLOTS: // METHODS 00051 //DCOPRef action( const DCOPCString &name ); 00052 Q_SCRIPTABLE QStringList/*DCOPCStringList*/ actions(); 00053 //QMap<DCOPCString,DCOPRef> actionMap(); 00054 00055 protected: 00056 KoView *m_pView; 00057 //KDCOPActionProxy *m_actionProxy; 00058 00059 }; 00060 00061 #endif