KOffice – TDE office suite
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.6KB

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