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.

83 lines
2.2KB

  1. /* This file is part of the KDE project
  2. Copyright 2002 Laurent Montel <montel@kde.org>
  3. Copyright 2002 Philipp Mueller <philipp.mueller@gmx.de>
  4. Copyright 2000 David Faure <faure@kde.org>
  5. Copyright 1999 Torben Weis <weis@kde.org>
  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. 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. You should have received a copy of the GNU Library General Public License
  15. along with this library; see the file COPYING.LIB. If not, write to
  16. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  17. * Boston, MA 02110-1301, USA.
  18. */
  19. #ifndef KSPREAD_DOC_IFACE_H
  20. #define KSPREAD_DOC_IFACE_H
  21. #include <tqstring.h>
  22. #include <tqcolor.h>
  23. #include <tqstringlist.h>
  24. #include <dcopref.h>
  25. #include <KoDocumentIface.h>
  26. namespace KSpread
  27. {
  28. class Doc;
  29. class DocIface : virtual public KoDocumentIface
  30. {
  31. K_DCOP
  32. public:
  33. DocIface( Doc* );
  34. k_dcop:
  35. virtual DCOPRef map();
  36. bool showTabBar()const;
  37. void setShowVerticalScrollBar(bool _show);
  38. void setShowHorizontalScrollBar(bool _show);
  39. void setShowColHeader(bool _show);
  40. void setShowRowHeader(bool _show);
  41. void setShowTabBar(bool _show);
  42. void changeDefaultGridPenColor( const TQColor &_col);
  43. bool showFormulaBar()const;
  44. bool showStatusBar()const;
  45. TQColor pageBorderColor() const;
  46. void changePageBorderColor( const TQColor & _color);
  47. void addIgnoreWordAll( const TQString &word);
  48. void clearIgnoreWordAll( );
  49. TQStringList spellListIgnoreAll() const;
  50. void addStringCompletion(const TQString & stringCompletion);
  51. int zoom() const;
  52. void setMoveToValue(const TQString & move);
  53. TQString moveToValue()const;
  54. void setTypeOfCalc( const TQString & calc );
  55. TQString typeOfCalc() const;
  56. private:
  57. Doc* doc;
  58. };
  59. } // namespace KSpread
  60. #endif