kformula

kformula_view_iface.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002 Laurent Montel <lmontel@mandrakesoft.com>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef KFORMULA_VIEW_IFACE_H
00021 #define KFORMULA_VIEW_IFACE_H
00022 
00023 #include <KoViewIface.h>
00024 
00025 #include <qstring.h>
00026 #include <qstringlist.h>
00027 
00028 class KFormulaPartView;
00029 
00030 class KformulaViewIface : public KoViewIface
00031 {
00032     K_DCOP
00033 public:
00034     KformulaViewIface( KFormulaPartView *view_ );
00035 k_dcop:
00036     void addThinSpace();
00037     void addMediumSpace();
00038     void addThickSpace();
00039     void addQuadSpace();
00040     void addBracket( int left, int right );
00041     void addParenthesis();
00042     void addSquareBracket();
00043     void addCurlyBracket();
00044     void addLineBracket();
00045     void addFraction();
00046     void addRoot();
00047     void addIntegral();
00048     void addProduct();
00049     void addSum();
00050     void addMatrix();
00051     void addMatrix( uint rows, uint columns );
00052     void addOneByTwoMatrix();
00053     void addNameSequence();
00054 
00055     void addLowerLeftIndex();
00056     void addUpperLeftIndex();
00057     void addLowerRightIndex();
00058     void addUpperRightIndex();
00059     void addGenericLowerIndex();
00060     void addGenericUpperIndex();
00061     void removeEnclosing();
00062     void makeGreek();
00063     void insertSymbol( QString name );
00064 
00065     void appendColumn();
00066     void insertColumn();
00067     void removeColumn();
00068     void appendRow();
00069     void insertRow();
00070     void removeRow();
00071 
00072     void moveLeft( int flag );
00073     void moveRight( int flag );
00074     void moveUp( int flag );
00075     void moveDown( int flag );
00076 
00077     void moveHome( int flag );
00078     void moveEnd( int flag );
00079 
00081     bool isHome() const;
00082 
00084     bool isEnd() const;
00085 
00086     void eraseSelection( int direction );
00087     void addText( QString str );
00088 
00089     QStringList readFormulaString( QString text );
00090 
00091 private:
00092     KFormulaPartView *m_view;
00093 };
00094 
00095 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys