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.

kformula_view_iface.h 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /* This file is part of the KDE project
  2. Copyright (C) 2002 Laurent Montel <lmontel@mandrakesoft.com>
  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 KFORMULA_VIEW_IFACE_H
  17. #define KFORMULA_VIEW_IFACE_H
  18. #include <KoViewIface.h>
  19. #include <tqstring.h>
  20. #include <tqstringlist.h>
  21. class KFormulaPartView;
  22. class KformulaViewIface : public KoViewIface
  23. {
  24. K_DCOP
  25. public:
  26. KformulaViewIface( KFormulaPartView *view_ );
  27. k_dcop:
  28. void addThinSpace();
  29. void addMediumSpace();
  30. void addThickSpace();
  31. void addQuadSpace();
  32. void addBracket( int left, int right );
  33. void addParenthesis();
  34. void addSquareBracket();
  35. void addCurlyBracket();
  36. void addLineBracket();
  37. void addFraction();
  38. void addRoot();
  39. void addIntegral();
  40. void addProduct();
  41. void addSum();
  42. void addMatrix();
  43. void addMatrix( uint rows, uint columns );
  44. void addOneByTwoMatrix();
  45. void addNameSequence();
  46. void addLowerLeftIndex();
  47. void addUpperLeftIndex();
  48. void addLowerRightIndex();
  49. void addUpperRightIndex();
  50. void addGenericLowerIndex();
  51. void addGenericUpperIndex();
  52. void removeEnclosing();
  53. void makeGreek();
  54. void insertSymbol( TQString name );
  55. void appendColumn();
  56. void insertColumn();
  57. void removeColumn();
  58. void appendRow();
  59. void insertRow();
  60. void removeRow();
  61. void moveLeft( int flag );
  62. void moveRight( int flag );
  63. void moveUp( int flag );
  64. void moveDown( int flag );
  65. void moveHome( int flag );
  66. void moveEnd( int flag );
  67. /** @returns whether the cursor is at the first position. */
  68. bool isHome() const;
  69. /** @returns whether the cursor is at the last position. */
  70. bool isEnd() const;
  71. void eraseSelection( int direction );
  72. void addText( TQString str );
  73. TQStringList readFormulaString( TQString text );
  74. private:
  75. KFormulaPartView *m_view;
  76. };
  77. #endif