kformula

kformula_view_iface.h
1/* This file is part of the KDE project
2 Copyright (C) 2002 Laurent Montel <lmontel@mandrakesoft.com>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
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
20#ifndef KFORMULA_VIEW_IFACE_H
21#define KFORMULA_VIEW_IFACE_H
22
23#include <KoViewIface.h>
24
25#include <tqstring.h>
26#include <tqstringlist.h>
27
29
30class KformulaViewIface : public KoViewIface
31{
32 K_DCOP
33public:
34 KformulaViewIface( KFormulaPartView *view_ );
35k_dcop:
36 void addThinSpace();
37 void addMediumSpace();
38 void addThickSpace();
39 void addQuadSpace();
40 void addBracket( int left, int right );
41 void addParenthesis();
42 void addSquareBracket();
43 void addCurlyBracket();
44 void addLineBracket();
45 void addFraction();
46 void addRoot();
47 void addIntegral();
48 void addProduct();
49 void addSum();
50 void addMatrix();
51 void addMatrix( uint rows, uint columns );
52 void addOneByTwoMatrix();
53 void addNameSequence();
54
55 void addLowerLeftIndex();
56 void addUpperLeftIndex();
57 void addLowerRightIndex();
58 void addUpperRightIndex();
59 void addGenericLowerIndex();
60 void addGenericUpperIndex();
61 void removeEnclosing();
62 void makeGreek();
63 void insertSymbol( TQString name );
64
65 void appendColumn();
66 void insertColumn();
67 void removeColumn();
68 void appendRow();
69 void insertRow();
70 void removeRow();
71
72 void moveLeft( int flag );
73 void moveRight( int flag );
74 void moveUp( int flag );
75 void moveDown( int flag );
76
77 void moveHome( int flag );
78 void moveEnd( int flag );
79
81 bool isHome() const;
82
84 bool isEnd() const;
85
86 void eraseSelection( int direction );
87 void addText( TQString str );
88
89 TQStringList readFormulaString( TQString text );
90
91private:
92 KFormulaPartView *m_view;
93};
94
95#endif
The parts view.