kword

KWordFormulaFrameSetEditIface.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 KWORD_FORMULAFRAMESETEDIT_IFACE_H
00021 #define KWORD_FORMULAFRAMESETEDIT_IFACE_H
00022 
00023 #include <KoDocumentIface.h>
00024 #include <dcopref.h>
00025 
00026 #include <qstring.h>
00027 #include <qcolor.h>
00028 class KWFormulaFrameSetEdit;
00029 
00030 class KWordFormulaFrameSetEditIface : public DCOPObject
00031 {
00032     K_DCOP
00033 public:
00034     KWordFormulaFrameSetEditIface( KWFormulaFrameSetEdit *_frame );
00035 
00036 k_dcop:
00037     virtual void copy();
00038     virtual void cut();
00039     virtual void paste();
00040     virtual void selectAll();
00041 
00042     void addThinSpace();
00043     void addMediumSpace();
00044     void addThickSpace();
00045     void addQuadSpace();
00046     void addBracket( int left, int right );
00047     void addParenthesis();
00048     void addSquareBracket();
00049     void addCurlyBracket();
00050     void addLineBracket();
00051     void addFraction();
00052     void addRoot();
00053     void addIntegral();
00054     void addProduct();
00055     void addSum();
00056     void addMatrix();
00057     void addMatrix( uint rows, uint columns );
00058     void addOneByTwoMatrix();
00059     void addNameSequence();
00060     void addNegThinSpace();
00061 
00062     void addLowerLeftIndex();
00063     void addUpperLeftIndex();
00064     void addLowerRightIndex();
00065     void addUpperRightIndex();
00066     void addGenericLowerIndex();
00067     void addGenericUpperIndex();
00068     void removeEnclosing();
00069     void makeGreek();
00070     void insertSymbol( const QString &name );
00071 
00072     void appendColumn();
00073     void insertColumn();
00074     void removeColumn();
00075     void appendRow();
00076     void insertRow();
00077     void removeRow();
00078 
00079     void moveLeft( int flag );
00080     void moveRight( int flag );
00081     void moveUp( int flag );
00082     void moveDown( int flag );
00083 
00084     void moveHome( int flag );
00085     void moveEnd( int flag );
00086 
00088     bool isHome() const;
00089 
00091     bool isEnd() const;
00092 
00093     void eraseSelection( int direction );
00094     void addText( const QString &str );
00095 
00096 private:
00097     KWFormulaFrameSetEdit *m_framesetedit;
00098 
00099 };
00100 
00101 #endif // KWORD_FORMULAFRAMESETEDIT_IFACE_H
KDE Home | KDE Accessibility Home | Description of Access Keys