diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
commit | 8362bf63dea22bbf6736609b0f49c152f975eb63 (patch) | |
tree | 0eea3928e39e50fae91d4e68b21b1e6cbae25604 /kformula/kformula_view_iface.cc | |
download | koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip |
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kformula/kformula_view_iface.cc')
-rw-r--r-- | kformula/kformula_view_iface.cc | 254 |
1 files changed, 254 insertions, 0 deletions
diff --git a/kformula/kformula_view_iface.cc b/kformula/kformula_view_iface.cc new file mode 100644 index 00000000..4ad217f6 --- /dev/null +++ b/kformula/kformula_view_iface.cc @@ -0,0 +1,254 @@ +/* This file is part of the KDE project + Copyright (C) 2002 Laurent Montel <lmontel@mandrakesoft.com> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. +*/ + +#include "kformula_view_iface.h" +#include <kformuladocument.h> +#include <kformulaview.h> + +#include "kformula_view.h" +#include "kformula_doc.h" +#include <dcopclient.h> + +KformulaViewIface::KformulaViewIface( KFormulaPartView *view_ ) + : KoViewIface( view_ ) +{ + m_view = view_; +} + +void KformulaViewIface::addThinSpace() +{ + m_view->document()->getDocument()->wrapper()->addThinSpace(); +} + +void KformulaViewIface::addMediumSpace() +{ + m_view->document()->getDocument()->wrapper()->addMediumSpace(); +} + +void KformulaViewIface::addThickSpace() +{ + m_view->document()->getDocument()->wrapper()->addThickSpace(); +} + +void KformulaViewIface::addQuadSpace() +{ + m_view->document()->getDocument()->wrapper()->addQuadSpace(); +} + +void KformulaViewIface::addBracket( int left, int right ) +{ + m_view->document()->getDocument()-> + wrapper()->addBracket( static_cast<KFormula::SymbolType>( left ), + static_cast<KFormula::SymbolType>( right ) ); +} + +void KformulaViewIface::addParenthesis() +{ + m_view->document()->getDocument()->wrapper()->addParenthesis(); +} + +void KformulaViewIface::addSquareBracket() +{ + m_view->document()->getDocument()->wrapper()->addSquareBracket(); +} + +void KformulaViewIface::addCurlyBracket() +{ + m_view->document()->getDocument()->wrapper()->addCurlyBracket(); +} + +void KformulaViewIface::addLineBracket() +{ + m_view->document()->getDocument()->wrapper()->addLineBracket(); +} + +void KformulaViewIface::addFraction() +{ + m_view->document()->getDocument()->wrapper()->addFraction(); +} + +void KformulaViewIface::addRoot() +{ + m_view->document()->getDocument()->wrapper()->addRoot(); +} + +void KformulaViewIface::addIntegral() +{ + m_view->document()->getDocument()->wrapper()->addIntegral(); +} + +void KformulaViewIface::addProduct() +{ + m_view->document()->getDocument()->wrapper()->addProduct(); +} + +void KformulaViewIface::addSum() +{ + m_view->document()->getDocument()->wrapper()->addSum(); +} + +void KformulaViewIface::addMatrix() +{ + m_view->document()->getDocument()->wrapper()->addMatrix(); +} + +void KformulaViewIface::addMatrix( uint rows, uint columns ) +{ + m_view->document()->getDocument()->wrapper()->addMatrix( rows, columns ); +} + +void KformulaViewIface::addOneByTwoMatrix() +{ + m_view->document()->getDocument()->wrapper()->addOneByTwoMatrix(); +} + +void KformulaViewIface::addNameSequence() +{ + m_view->document()->getDocument()->wrapper()->addNameSequence(); +} + +void KformulaViewIface::addLowerLeftIndex() +{ + m_view->document()->getDocument()->wrapper()->addLowerLeftIndex(); +} + +void KformulaViewIface::addUpperLeftIndex() +{ + m_view->document()->getDocument()->wrapper()->addUpperLeftIndex(); +} + +void KformulaViewIface::addLowerRightIndex() +{ + m_view->document()->getDocument()->wrapper()->addLowerRightIndex(); +} + +void KformulaViewIface::addUpperRightIndex() +{ + m_view->document()->getDocument()->wrapper()->addUpperRightIndex(); +} + +void KformulaViewIface::addGenericLowerIndex() +{ + m_view->document()->getDocument()->wrapper()->addGenericLowerIndex(); +} + +void KformulaViewIface::addGenericUpperIndex() +{ + m_view->document()->getDocument()->wrapper()->addGenericUpperIndex(); +} + +void KformulaViewIface::removeEnclosing() +{ + m_view->document()->getDocument()->wrapper()->removeEnclosing(); +} + +void KformulaViewIface::makeGreek() +{ + m_view->document()->getDocument()->wrapper()->makeGreek(); +} + +void KformulaViewIface::insertSymbol( QString name ) +{ + m_view->document()->getDocument()->wrapper()->insertSymbol( name ); +} + +void KformulaViewIface::appendColumn() +{ + m_view->document()->getDocument()->wrapper()->appendColumn(); +} + +void KformulaViewIface::insertColumn() +{ + m_view->document()->getDocument()->wrapper()->insertColumn(); +} + +void KformulaViewIface::removeColumn() +{ + m_view->document()->getDocument()->wrapper()->removeColumn(); +} + +void KformulaViewIface::appendRow() +{ + m_view->document()->getDocument()->wrapper()->appendRow(); +} + +void KformulaViewIface::insertRow() +{ + m_view->document()->getDocument()->wrapper()->insertRow(); +} + +void KformulaViewIface::removeRow() +{ + m_view->document()->getDocument()->wrapper()->removeRow(); +} + +void KformulaViewIface::moveRight( int flag ) +{ + m_view->formulaView()->moveRight( flag ); +} + +void KformulaViewIface::moveUp( int flag ) +{ + m_view->formulaView()->moveUp( flag ); +} + +void KformulaViewIface::moveDown( int flag ) +{ + m_view->formulaView()->moveDown( flag ); +} + +void KformulaViewIface::moveLeft( int flag ) +{ + m_view->formulaView()->moveLeft( flag ); +} + +void KformulaViewIface::moveHome( int flag ) +{ + m_view->formulaView()->moveHome( flag ); +} + +void KformulaViewIface::moveEnd( int flag ) +{ + m_view->formulaView()->moveEnd( flag ); +} + +bool KformulaViewIface::isHome() const +{ + return m_view->formulaView()->isHome(); +} + +bool KformulaViewIface::isEnd() const +{ + return m_view->formulaView()->isEnd(); +} + +void KformulaViewIface::eraseSelection( int direction ) +{ + m_view->formulaView()->eraseSelection( static_cast<KFormula::Direction>( direction ) ); +} + +void KformulaViewIface::addText( QString str ) +{ + m_view->formulaView()->addText( str ); +} + +QStringList KformulaViewIface::readFormulaString( QString text ) +{ + return m_view->readFormulaString( text ); +} |