lib
KoViewIface.h
00001 /* This file is part of the KDE project 00002 Copyright (c) 2000 Simon Hausmann <hausmann@kde.org> 00003 00004 $Id: KoViewIface.h 466447 2005-10-02 17:54:10Z zander $ 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 * Boston, MA 02110-1301, USA. 00020 */ 00021 #ifndef __KoViewIface_h__ 00022 #define __KoViewIface_h__ 00023 00024 #include <dcopobject.h> 00025 #include <dcopref.h> 00026 00027 #include "koffice_export.h" 00028 00029 class KDCOPActionProxy; 00030 class KoView; 00031 00032 class KOFFICECORE_EXPORT KoViewIface : public DCOPObject 00033 { 00034 K_DCOP 00035 public: 00036 KoViewIface( KoView *view ); 00037 KoViewIface( const char *name, KoView *view ); 00038 // TODO same args order as KoDocumentIface 00039 00040 virtual ~KoViewIface(); 00041 00042 // Generate a name for this interface. Automatically used if 00043 // the first constructor is used. 00044 static QCString newIfaceName(); 00045 00046 k_dcop: 00047 DCOPRef action( const QCString &name ); 00048 QCStringList actions(); 00049 QMap<QCString,DCOPRef> actionMap(); 00050 00051 protected: 00052 KoView *m_pView; 00053 KDCOPActionProxy *m_actionProxy; 00054 }; 00055 00056 #endif