kivio

KIvioViewIface.cpp
1/* This file is part of the KDE project
2 Copyright (C) 2001 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#include "KIvioViewIface.h"
21
22#include "kivio_view.h"
23#include "kivio_doc.h"
24
25#include <dcopclient.h>
26
27KIvioViewIface::KIvioViewIface( KivioView *view_ )
28 : KoViewIface( view_ )
29{
30 view = view_;
31}
32
33void KIvioViewIface::paperLayoutDlg()
34{
35 view->paperLayoutDlg();
36}
37
38void KIvioViewIface::insertPage()
39{
40 view->insertPage();
41}
42
43void KIvioViewIface::removePage()
44{
45 view->removePage();
46}
47
48void KIvioViewIface::renamePage()
49{
50 view->renamePage();
51}
52
53void KIvioViewIface::hidePage()
54{
55 view->hidePage();
56}
57
58void KIvioViewIface::showPage()
59{
60 view->showPage();
61}
62
63void KIvioViewIface::optionsDialog()
64{
65 view->optionsDialog();
66}
67
68bool KIvioViewIface::isSnapGuides()const
69{
70 return view->isSnapGuides();
71}
72
73bool KIvioViewIface::isShowGuides()const
74{
75 return view->isShowGuides();
76}
77
78bool KIvioViewIface::isShowRulers()const
79{
80 return view->isShowRulers();
81}
82
83bool KIvioViewIface::isShowPageMargins()const
84{
85 return view->isShowPageMargins();
86}
87
88int KIvioViewIface::leftBorder() const
89{
90 return view->leftBorder();
91}
92
93int KIvioViewIface::rightBorder() const
94{
95 return view->rightBorder();
96}
97
98int KIvioViewIface::topBorder() const
99{
100 return view->topBorder();
101}
102
103int KIvioViewIface::bottomBorder() const
104{
105 return view->bottomBorder();
106}
107
108void KIvioViewIface::togglePageMargins(bool b)
109{
110 view->togglePageMargins(b);
111}
112
113void KIvioViewIface::toggleShowRulers(bool b)
114{
115 view->toggleShowRulers(b);
116}
117
118void KIvioViewIface::toggleShowGrid(bool b)
119{
120 view->toggleShowGrid(b);
121}
122
123void KIvioViewIface::toggleSnapGrid(bool b)
124{
125 view->toggleSnapGrid(b);
126}
127
128void KIvioViewIface::toggleShowGuides(bool b)
129{
130 view->toggleShowGuides(b);
131}
132
133void KIvioViewIface::toggleViewManager(bool b)
134{
135 view->toggleViewManager(b);
136}
137
138void KIvioViewIface::groupStencils()
139{
140 view->groupStencils();
141}
142
143void KIvioViewIface::ungroupStencils()
144{
145 view->ungroupStencils();
146}
147
148void KIvioViewIface::selectAllStencils()
149{
150 view->selectAllStencils();
151}
152
153void KIvioViewIface::unselectAllStencils()
154{
155 view->unselectAllStencils();
156}
157
158double KIvioViewIface::lineWidth() const
159{
160 return view->lineWidth();
161}
162
163void KIvioViewIface::alignStencilsDlg()
164{
165 view->alignStencilsDlg();
166}
167
168TQColor KIvioViewIface::foreGroundColor()const
169{
170 return view->fgColor();
171}
172
173TQColor KIvioViewIface::backGroundColor()const
174{
175 return view->bgColor();
176}