karbon

karbon_view_iface.cpp
1/* This file is part of the KDE project
2 Copyright (C) 2002 Laurent Montel <lmontel@mandrakesoft.com>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20
21#include <dcopclient.h>
22
23#include "karbon_view.h"
24#include "karbon_view_iface.h"
25#include "vcanvas.h"
26
27KarbonViewIface::KarbonViewIface( KarbonView* view )
28 : KoViewIface( view )
29{
30 m_view = view;
31}
32
33void
34KarbonViewIface::editCut()
35{
36 m_view->editCut();
37}
38
39void
40KarbonViewIface::editCopy()
41{
42 m_view->editCopy();
43}
44
45void
46KarbonViewIface::editPaste()
47{
48 m_view->editPaste();
49}
50
51void
52KarbonViewIface::editSelectAll()
53{
54 m_view->editSelectAll();
55}
56
57void
58KarbonViewIface::editDeselectAll()
59{
60 m_view->editDeselectAll();
61}
62
63void
64KarbonViewIface::editDeleteSelection()
65{
66 m_view->editDeleteSelection();
67}
68
69void
70KarbonViewIface::editPurgeHistory()
71{
72 m_view->editPurgeHistory();
73}
74
75void
76KarbonViewIface::objectMoveToTop()
77{
78 m_view->selectionBringToFront();
79}
80
81void
82KarbonViewIface::objectMoveToBottom()
83{
84 m_view->selectionSendToBack();
85}
86
87void
88KarbonViewIface::objectMoveUp()
89{
90 m_view->selectionMoveUp();
91}
92
93void
94KarbonViewIface::objectMoveDown()
95{
96 m_view->selectionMoveDown();
97}
98
99double
100KarbonViewIface::zoomFactor() const
101{
102 return m_view->zoom();
103}
104
105void KarbonViewIface::groupSelection()
106{
107 m_view->groupSelection();
108}
109
110void KarbonViewIface::ungroupSelection()
111{
112 m_view->ungroupSelection();
113}
114
115void KarbonViewIface::configure()
116{
117 m_view->configure();
118}
119
120void KarbonViewIface::setLineWidth( double val )
121{
122 m_view->setLineWidth( val );
123}
124
125
126void KarbonViewIface::insertKnots()
127{
128 //m_view->pathInsertKnots();
129}
130
131void KarbonViewIface::pathFlatten()
132{
133 //m_view->pathFlatten();
134}
135
136void KarbonViewIface::pathRoundCorners()
137{
138 //m_view->pathRoundCorners();
139}
140
141void KarbonViewIface::pathWhirlPinch()
142{
143 //m_view->pathWhirlPinch();
144}
145
146void KarbonViewIface::repaint()
147{
148 m_view->canvasWidget()->repaintAll();
149}
150