home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / KoViewIface.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-30  |  1.6 KB  |  57 lines

  1. /* This file is part of the KDE project
  2.    Copyright (c) 2000 Simon Hausmann <hausmann@kde.org>
  3.  
  4.    $Id: KoViewIface.h 466447 2005-10-02 17:54:10Z zander $
  5.  
  6.    This library is free software; you can redistribute it and/or
  7.    modify it under the terms of the GNU Library General Public
  8.    License as published by the Free Software Foundation; either
  9.    version 2 of the License, or (at your option) any later version.
  10.  
  11.    This library is distributed in the hope that it will be useful,
  12.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.    Library General Public License for more details.
  15.  
  16.    You should have received a copy of the GNU Library General Public License
  17.    along with this library; see the file COPYING.LIB.  If not, write to
  18.    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  19.  * Boston, MA 02110-1301, USA.
  20. */
  21. #ifndef __KoViewIface_h__
  22. #define __KoViewIface_h__
  23.  
  24. #include <dcopobject.h>
  25. #include <dcopref.h>
  26.  
  27. #include "koffice_export.h"
  28.  
  29. class KDCOPActionProxy;
  30. class KoView;
  31.  
  32. class KOFFICECORE_EXPORT KoViewIface : public DCOPObject
  33. {
  34.     K_DCOP
  35. public:
  36.     KoViewIface( KoView *view );
  37.     KoViewIface( const char *name, KoView *view );
  38.     // TODO same args order as KoDocumentIface
  39.  
  40.     virtual ~KoViewIface();
  41.  
  42.     // Generate a name for this interface. Automatically used if
  43.     // the first constructor is used.
  44.     static QCString newIfaceName();
  45.  
  46. k_dcop:
  47.     DCOPRef action( const QCString &name );
  48.     QCStringList actions();
  49.     QMap<QCString,DCOPRef> actionMap();
  50.  
  51. protected:
  52.     KoView *m_pView;
  53.     KDCOPActionProxy *m_actionProxy;
  54. };
  55.  
  56. #endif
  57.