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.

148 lines
4.3KB

  1. /* This file is part of the KDE project
  2. Copyright 2002-2003 Joseph Wenninger <jowenn@kde.org>
  3. Copyright 2002 John Dailey <dailey@vt.edu>
  4. Copyright 2001-2002 Laurent Montel <montel@kde.org>
  5. Copyright 2000 Simon Hausmann <hausmann@kde.org>
  6. Copyright 1999 Torben Weis <weis@kde.org>
  7. This library is free software; you can redistribute it and/or
  8. modify it under the terms of the GNU Library General Public
  9. License as published by the Free Software Foundation; either
  10. version 2 of the License, or (at your option) any later version.
  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. 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. #ifndef KSPREAD_VIEW_IFACE_H
  21. #define KSPREAD_VIEW_IFACE_H
  22. #include <tqcolor.h>
  23. #include <tqstring.h>
  24. #include <KoViewIface.h>
  25. namespace KSpread
  26. {
  27. class View;
  28. class CellProxy;
  29. class ViewIface : public KoViewIface
  30. {
  31. K_DCOP
  32. public:
  33. ViewIface( View* );
  34. ~ViewIface();
  35. k_dcop:
  36. virtual DCOPRef doc() const;
  37. virtual DCOPRef map() const;
  38. virtual DCOPRef sheet() const;
  39. virtual void changeNbOfRecentFiles(int _nb);
  40. virtual void hide();
  41. virtual void show();
  42. virtual void setSelection(TQRect selection);
  43. virtual TQRect selection();
  44. virtual void find();
  45. virtual void replace();
  46. virtual void conditional();
  47. virtual void validity();
  48. virtual void insertSeries();
  49. virtual void insertHyperlink();
  50. virtual void gotoCell();
  51. virtual void changeAngle();
  52. virtual void preference();
  53. virtual void nextSheet();
  54. virtual void previousSheet();
  55. virtual bool showSheet(TQString sheetName);
  56. virtual void sortList();
  57. virtual void setAreaName();
  58. virtual void showAreaName();
  59. virtual void mergeCell();
  60. virtual void dissociateCell();
  61. virtual void consolidate();
  62. virtual void deleteColumn();
  63. virtual void insertColumn();
  64. virtual void deleteRow();
  65. virtual void insertRow();
  66. virtual void hideRow();
  67. virtual void showRow();
  68. virtual void hideColumn();
  69. virtual void showColumn();
  70. virtual void upper();
  71. virtual void lower();
  72. virtual void equalizeColumn();
  73. virtual void equalizeRow();
  74. virtual void clearTextSelection();
  75. virtual void clearCommentSelection();
  76. virtual void clearValiditySelection();
  77. virtual void clearConditionalSelection();
  78. virtual void goalSeek();
  79. virtual void insertFromDatabase();
  80. virtual void insertFromTextfile();
  81. virtual void insertFromClipboard();
  82. virtual void textToColumns();
  83. virtual void copyAsText();
  84. virtual void setSelectionMoneyFormat( bool b );
  85. virtual void setSelectionPrecision( int delta );
  86. virtual void setSelectionPercent( bool b );
  87. virtual void setSelectionMultiRow( bool enable );
  88. virtual void setSelectionSize(int size);
  89. virtual void setSelectionUpper();
  90. virtual void setSelectionLower();
  91. virtual void setSelectionFirstLetterUpper();
  92. virtual void setSelectionVerticalText(bool enable);
  93. virtual void setSelectionComment(TQString comment);
  94. virtual void setSelectionAngle(int value);
  95. virtual void setSelectionTextColor(TQColor txtColor );
  96. virtual void setSelectionBgColor(TQColor bgColor );
  97. virtual void setSelectionBorderColor(TQColor bdColor );
  98. virtual void deleteSelection();
  99. virtual void copySelection();
  100. virtual void cutSelection();
  101. virtual void setLeftBorderColor(TQColor color);
  102. virtual void setTopBorderColor(TQColor color);
  103. virtual void setRightBorderColor(TQColor color);
  104. virtual void setBottomBorderColor(TQColor color);
  105. virtual void setAllBorderColor(TQColor color);
  106. virtual void setOutlineBorderColor(TQColor color);
  107. virtual void removeBorder();
  108. virtual void increaseIndent();
  109. virtual void decreaseIndent();
  110. void subtotals();
  111. void sortInc();
  112. void sortDec();
  113. void layoutDlg();
  114. void increaseFontSize();
  115. void decreaseFontSize();
  116. private:
  117. View* m_view;
  118. CellProxy* m_proxy;
  119. };
  120. } // namespace KSpread
  121. #endif