kword

KWordFormulaFrameSetEditIface.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 KWORD_FORMULAFRAMESETEDIT_IFACE_H
21#define KWORD_FORMULAFRAMESETEDIT_IFACE_H
22
23#include <KoDocumentIface.h>
24#include <dcopref.h>
25
26#include <tqstring.h>
27#include <tqcolor.h>
28class KWFormulaFrameSetEdit;
29
30class KWordFormulaFrameSetEditIface : public DCOPObject
31{
32 K_DCOP
33public:
34 KWordFormulaFrameSetEditIface( KWFormulaFrameSetEdit *_frame );
35
36k_dcop:
37 virtual void copy();
38 virtual void cut();
39 virtual void paste();
40 virtual void selectAll();
41
42 void addThinSpace();
43 void addMediumSpace();
44 void addThickSpace();
45 void addQuadSpace();
46 void addBracket( int left, int right );
47 void addParenthesis();
48 void addSquareBracket();
49 void addCurlyBracket();
50 void addLineBracket();
51 void addFraction();
52 void addRoot();
53 void addIntegral();
54 void addProduct();
55 void addSum();
56 void addMatrix();
57 void addMatrix( uint rows, uint columns );
58 void addOneByTwoMatrix();
59 void addNameSequence();
60 void addNegThinSpace();
61
62 void addLowerLeftIndex();
63 void addUpperLeftIndex();
64 void addLowerRightIndex();
65 void addUpperRightIndex();
66 void addGenericLowerIndex();
67 void addGenericUpperIndex();
68 void removeEnclosing();
69 void makeGreek();
70 void insertSymbol( const TQString &name );
71
72 void appendColumn();
73 void insertColumn();
74 void removeColumn();
75 void appendRow();
76 void insertRow();
77 void removeRow();
78
79 void moveLeft( int flag );
80 void moveRight( int flag );
81 void moveUp( int flag );
82 void moveDown( int flag );
83
84 void moveHome( int flag );
85 void moveEnd( int flag );
86
88 bool isHome() const;
89
91 bool isEnd() const;
92
93 void eraseSelection( int direction );
94 void addText( const TQString &str );
95
96private:
97 KWFormulaFrameSetEdit *m_framesetedit;
98
99};
100
101#endif // KWORD_FORMULAFRAMESETEDIT_IFACE_H