lib

KoViewIface.h
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
30class KoView;
31
32class KOFFICECORE_EXPORT KoViewIface : public DCOPObject
33{
34 K_DCOP
35public:
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 TQCString newIfaceName();
45
46k_dcop:
47 DCOPRef action( const TQCString &name );
48 QCStringList actions();
49 TQMap<TQCString,DCOPRef> actionMap();
50
51protected:
52 KoView *m_pView;
53 KDCOPActionProxy *m_actionProxy;
54};
55
56#endif
This class is used to display a KoDocument.
Definition KoView.h:58
TDEAction * action(StdAction act_enum, const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0L)