lib Library API Documentation

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,v 1.2 2001/07/16 23:24:21 faure Exp $
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., 59 Temple Place - Suite 330,
00019    Boston, MA 02111-1307, USA.
00020 */
00021 #ifndef __KoViewIface_h__
00022 #define __KoViewIface_h__
00023 
00024 #include <dcopobject.h>
00025 #include <dcopref.h>
00026 
00027 class KDCOPActionProxy;
00028 class KoView;
00029 
00030 class KoViewIface : public DCOPObject
00031 {
00032     K_DCOP
00033 public:
00034     KoViewIface( KoView *view );
00035     KoViewIface( const char *name, KoView *view );
00036     // TODO same args order as KoDocumentIface
00037 
00038     virtual ~KoViewIface();
00039 
00040     // Generate a name for this interface. Automatically used if
00041     // the first constructor is used.
00042     static QCString newIfaceName();
00043 
00044 k_dcop:
00045     DCOPRef action( const QCString &name );
00046     QCStringList actions();
00047     QMap<QCString,DCOPRef> actionMap();
00048 
00049 protected:
00050     KoView *m_pView;
00051     KDCOPActionProxy *m_actionProxy;
00052 };
00053 
00054 #endif
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Mar 20 14:25:28 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003