kivio
KIvioViewIface.cc
00001 /* This file is part of the KDE project 00002 Copyright (C) 2001 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 #include "KIvioViewIface.h" 00021 00022 #include "kivio_view.h" 00023 #include "kivio_doc.h" 00024 00025 #include <dcopclient.h> 00026 00027 KIvioViewIface::KIvioViewIface( KivioView *view_ ) 00028 : KoViewIface( view_ ) 00029 { 00030 view = view_; 00031 } 00032 00033 void KIvioViewIface::paperLayoutDlg() 00034 { 00035 view->paperLayoutDlg(); 00036 } 00037 00038 void KIvioViewIface::insertPage() 00039 { 00040 view->insertPage(); 00041 } 00042 00043 void KIvioViewIface::removePage() 00044 { 00045 view->removePage(); 00046 } 00047 00048 void KIvioViewIface::renamePage() 00049 { 00050 view->renamePage(); 00051 } 00052 00053 void KIvioViewIface::hidePage() 00054 { 00055 view->hidePage(); 00056 } 00057 00058 void KIvioViewIface::showPage() 00059 { 00060 view->showPage(); 00061 } 00062 00063 void KIvioViewIface::optionsDialog() 00064 { 00065 view->optionsDialog(); 00066 } 00067 00068 bool KIvioViewIface::isSnapGuides()const 00069 { 00070 return view->isSnapGuides(); 00071 } 00072 00073 bool KIvioViewIface::isShowGuides()const 00074 { 00075 return view->isShowGuides(); 00076 } 00077 00078 bool KIvioViewIface::isShowRulers()const 00079 { 00080 return view->isShowRulers(); 00081 } 00082 00083 bool KIvioViewIface::isShowPageMargins()const 00084 { 00085 return view->isShowPageMargins(); 00086 } 00087 00088 int KIvioViewIface::leftBorder() const 00089 { 00090 return view->leftBorder(); 00091 } 00092 00093 int KIvioViewIface::rightBorder() const 00094 { 00095 return view->rightBorder(); 00096 } 00097 00098 int KIvioViewIface::topBorder() const 00099 { 00100 return view->topBorder(); 00101 } 00102 00103 int KIvioViewIface::bottomBorder() const 00104 { 00105 return view->bottomBorder(); 00106 } 00107 00108 void KIvioViewIface::togglePageMargins(bool b) 00109 { 00110 view->togglePageMargins(b); 00111 } 00112 00113 void KIvioViewIface::toggleShowRulers(bool b) 00114 { 00115 view->toggleShowRulers(b); 00116 } 00117 00118 void KIvioViewIface::toggleShowGrid(bool b) 00119 { 00120 view->toggleShowGrid(b); 00121 } 00122 00123 void KIvioViewIface::toggleSnapGrid(bool b) 00124 { 00125 view->toggleSnapGrid(b); 00126 } 00127 00128 void KIvioViewIface::toggleShowGuides(bool b) 00129 { 00130 view->toggleShowGuides(b); 00131 } 00132 00133 void KIvioViewIface::toggleViewManager(bool b) 00134 { 00135 view->toggleViewManager(b); 00136 } 00137 00138 void KIvioViewIface::groupStencils() 00139 { 00140 view->groupStencils(); 00141 } 00142 00143 void KIvioViewIface::ungroupStencils() 00144 { 00145 view->ungroupStencils(); 00146 } 00147 00148 void KIvioViewIface::selectAllStencils() 00149 { 00150 view->selectAllStencils(); 00151 } 00152 00153 void KIvioViewIface::unselectAllStencils() 00154 { 00155 view->unselectAllStencils(); 00156 } 00157 00158 double KIvioViewIface::lineWidth() const 00159 { 00160 return view->lineWidth(); 00161 } 00162 00163 void KIvioViewIface::alignStencilsDlg() 00164 { 00165 view->alignStencilsDlg(); 00166 } 00167 00168 QColor KIvioViewIface::foreGroundColor()const 00169 { 00170 return view->fgColor(); 00171 } 00172 00173 QColor KIvioViewIface::backGroundColor()const 00174 { 00175 return view->bgColor(); 00176 }