diff options
author | Michele Calgaro <[email protected]> | 2021-05-23 20:48:35 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-05-29 15:17:38 +0900 |
commit | d63c9d696eb6e2539528b99afc21f4086c9defe3 (patch) | |
tree | b3bfc97a66431a12cdd8f9379c0072673ede43df /kformula/kformula_view_iface.cpp | |
parent | 5363fe3c36504c37bdc6dcfafd5f71daeae251e8 (diff) | |
download | koffice-d63c9d696eb6e2539528b99afc21f4086c9defe3.tar.gz koffice-d63c9d696eb6e2539528b99afc21f4086c9defe3.zip |
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 8b78a8791bc539bcffe7159f9d9714d577cb3d7d)
Diffstat (limited to 'kformula/kformula_view_iface.cpp')
-rw-r--r-- | kformula/kformula_view_iface.cpp | 254 |
1 files changed, 254 insertions, 0 deletions
diff --git a/kformula/kformula_view_iface.cpp b/kformula/kformula_view_iface.cpp new file mode 100644 index 00000000..c3b85908 --- /dev/null +++ b/kformula/kformula_view_iface.cpp @@ -0,0 +1,254 @@ +/* This file is part of the KDE project + Copyright (C) 2002 Laurent Montel <[email protected]> + + 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( TQString 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( TQString str ) +{ + m_view->formulaView()->addText( str ); +} + +TQStringList KformulaViewIface::readFormulaString( TQString text ) +{ + return m_view->readFormulaString( text ); +} |