kspread

KSpreadMapIface.h

00001 /* This file is part of the KDE project
00002    
00003    Copyright 1999-2000 Torben Weis <weis@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KSPREAD_MAP_IFACE_H
00022 #define KSPREAD_MAP_IFACE_H
00023 
00024 #include <qstringlist.h>
00025 #include <qvaluelist.h>
00026 
00027 #include <dcopobject.h>
00028 #include <dcopref.h>
00029 
00030 
00031 namespace KSpread
00032 {
00033 class Map;
00034 
00035 class MapIface : virtual public DCOPObject
00036 {
00037     K_DCOP
00038 public:
00039     MapIface( Map* );
00040 
00041     virtual bool processDynamic(const QCString &fun, const QByteArray &data,
00042                 QCString& replyType, QByteArray &replyData);
00043 
00044 k_dcop:
00045     virtual DCOPRef sheet( const QString& name );
00046     virtual DCOPRef sheetByIndex( int index );
00047     virtual int sheetCount() const;
00048     virtual QStringList sheetNames() const;
00049     virtual QValueList<DCOPRef> sheets();
00050     virtual DCOPRef insertSheet( const QString& name );
00051 
00052 private:
00053     Map* m_map;
00054 };
00055 
00056 } // namespace KSpread
00057 
00058 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys