kspread

KSpreadMapIface.h
1/* This file is part of the KDE project
2
3 Copyright 1999-2000 Torben Weis <weis@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KSPREAD_MAP_IFACE_H
22#define KSPREAD_MAP_IFACE_H
23
24#include <tqstringlist.h>
25#include <tqvaluelist.h>
26
27#include <dcopobject.h>
28#include <dcopref.h>
29
30
31namespace KSpread
32{
33class Map;
34
35class MapIface : virtual public DCOPObject
36{
37 K_DCOP
38public:
39 MapIface( Map* );
40
41 virtual bool processDynamic(const TQCString &fun, const TQByteArray &data,
42 TQCString& replyType, TQByteArray &replyData);
43
44k_dcop:
45 virtual DCOPRef sheet( const TQString& name );
46 virtual DCOPRef sheetByIndex( int index );
47 virtual int sheetCount() const;
48 virtual TQStringList sheetNames() const;
49 virtual TQValueList<DCOPRef> sheets();
50 virtual DCOPRef insertSheet( const TQString& name );
51
52private:
53 Map* m_map;
54};
55
56} // namespace KSpread
57
58#endif
The KSpread namespace.
Definition commands.h:39