karbon

karbon_view_iface.cc

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 
00021 #include <dcopclient.h>
00022 
00023 #include "karbon_view.h"
00024 #include "karbon_view_iface.h"
00025 #include "vcanvas.h"
00026 
00027 KarbonViewIface::KarbonViewIface( KarbonView* view )
00028         : KoViewIface( view )
00029 {
00030     m_view = view;
00031 }
00032 
00033 void
00034 KarbonViewIface::editCut()
00035 {
00036     m_view->editCut();
00037 }
00038 
00039 void
00040 KarbonViewIface::editCopy()
00041 {
00042     m_view->editCopy();
00043 }
00044 
00045 void
00046 KarbonViewIface::editPaste()
00047 {
00048     m_view->editPaste();
00049 }
00050 
00051 void
00052 KarbonViewIface::editSelectAll()
00053 {
00054     m_view->editSelectAll();
00055 }
00056 
00057 void
00058 KarbonViewIface::editDeselectAll()
00059 {
00060     m_view->editDeselectAll();
00061 }
00062 
00063 void
00064 KarbonViewIface::editDeleteSelection()
00065 {
00066     m_view->editDeleteSelection();
00067 }
00068 
00069 void
00070 KarbonViewIface::editPurgeHistory()
00071 {
00072     m_view->editPurgeHistory();
00073 }
00074 
00075 void
00076 KarbonViewIface::objectMoveToTop()
00077 {
00078     m_view->selectionBringToFront();
00079 }
00080 
00081 void
00082 KarbonViewIface::objectMoveToBottom()
00083 {
00084     m_view->selectionSendToBack();
00085 }
00086 
00087 void
00088 KarbonViewIface::objectMoveUp()
00089 {
00090     m_view->selectionMoveUp();
00091 }
00092 
00093 void
00094 KarbonViewIface::objectMoveDown()
00095 {
00096     m_view->selectionMoveDown();
00097 }
00098 
00099 double
00100 KarbonViewIface::zoomFactor() const
00101 {
00102     return m_view->zoom();
00103 }
00104 
00105 void KarbonViewIface::groupSelection()
00106 {
00107     m_view->groupSelection();
00108 }
00109 
00110 void KarbonViewIface::ungroupSelection()
00111 {
00112     m_view->ungroupSelection();
00113 }
00114 
00115 void KarbonViewIface::configure()
00116 {
00117     m_view->configure();
00118 }
00119 
00120 void KarbonViewIface::setLineWidth( double val )
00121 {
00122     m_view->setLineWidth( val );
00123 }
00124 
00125 
00126 void KarbonViewIface::insertKnots()
00127 {
00128     //m_view->pathInsertKnots();
00129 }
00130 
00131 void KarbonViewIface::pathFlatten()
00132 {
00133     //m_view->pathFlatten();
00134 }
00135 
00136 void KarbonViewIface::pathRoundCorners()
00137 {
00138     //m_view->pathRoundCorners();
00139 }
00140 
00141 void KarbonViewIface::pathWhirlPinch()
00142 {
00143     //m_view->pathWhirlPinch();
00144 }
00145 
00146 void KarbonViewIface::repaint()
00147 {
00148     m_view->canvasWidget()->repaintAll();
00149 }
00150 
KDE Home | KDE Accessibility Home | Description of Access Keys