kspread Library API Documentation

KSpreadViewIface.cc

00001 /* This file is part of the KDE project
00002    
00003    Copyright 2004 Ariya Hidayat <ariya@kde.org>
00004    Copyright 2002-2003 Joseph Wenninger <jowenn@kde.org>
00005    Copyright 2002 John Dailey <dailey@vt.edu>
00006    Copyright 2001-2002 Laurent Montel <montel@kde.org>
00007    Copyright 2001 Philipp Mueller <philipp.mueller@gmx.de>
00008    Copyright 2000 Simon Hausmann <hausmann@kde.org>
00009    Copyright 1999 Torben Weis <weis@kde.org>
00010 
00011    This library is free software; you can redistribute it and/or
00012    modify it under the terms of the GNU Library General Public
00013    License as published by the Free Software Foundation; either
00014    version 2 of the License, or (at your option) any later version.
00015 
00016    This library is distributed in the hope that it will be useful,
00017    but WITHOUT ANY WARRANTY; without even the implied warranty of
00018    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019    Library General Public License for more details.
00020 
00021    You should have received a copy of the GNU Library General Public License
00022    along with this library; see the file COPYING.LIB.  If not, write to
00023    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00024    Boston, MA 02111-1307, USA.
00025 */
00026 
00027 #include "KSpreadViewIface.h"
00028 
00029 #include "kspread_view.h"
00030 #include "kspread_doc.h"
00031 #include "kspread_map.h"
00032 #include "kspread_selection.h"
00033 
00034 #include <kapplication.h>
00035 #include <dcopclient.h>
00036 #include <dcopref.h>
00037 
00038 /************************************************
00039  *
00040  * KSpreadViewIface
00041  *
00042  ************************************************/
00043 
00044 KSpreadViewIface::KSpreadViewIface( KSpreadView* t )
00045     : KoViewIface( t )
00046 {
00047     m_view = t;
00048 }
00049 
00050 KSpreadViewIface::~KSpreadViewIface()
00051 {
00052 }
00053 
00054 DCOPRef KSpreadViewIface::doc() const
00055 {
00056     return DCOPRef( kapp->dcopClient()->appId(), m_view->doc()->dcopObject()->objId() );
00057 }
00058 
00059 DCOPRef KSpreadViewIface::map() const
00060 {
00061     return DCOPRef( kapp->dcopClient()->appId(), m_view->doc()->map()->dcopObject()->objId() );
00062 }
00063 
00064 DCOPRef KSpreadViewIface::sheet() const
00065 {
00066     return DCOPRef( kapp->dcopClient()->appId(), m_view->activeSheet()->dcopObject()->objId() );
00067 }
00068 
00069 void KSpreadViewIface::changeNbOfRecentFiles(int _nb)
00070 {
00071     if(_nb<0)
00072         return;
00073     m_view->changeNbOfRecentFiles(_nb);
00074 }
00075 
00076 
00077 void KSpreadViewIface::hide()
00078 {
00079     m_view->hide();
00080 }
00081 
00082 void KSpreadViewIface::show()
00083 {
00084     m_view->show();
00085 }
00086 
00087 void KSpreadViewIface::find()
00088 {
00089     m_view->find();
00090 }
00091 
00092 void KSpreadViewIface::replace()
00093 {
00094     m_view->replace();
00095 }
00096 
00097 void KSpreadViewIface::conditional()
00098 {
00099     m_view->conditional();
00100 }
00101 
00102 void KSpreadViewIface::validity()
00103 {
00104     m_view->validity();
00105 }
00106 
00107 void KSpreadViewIface::insertSeries()
00108 {
00109     m_view->insertSeries();
00110 }
00111 
00112 void KSpreadViewIface::insertHyperlink()
00113 {
00114     m_view->insertHyperlink();
00115 }
00116 
00117 void KSpreadViewIface::gotoCell()
00118 {
00119     m_view->gotoCell();
00120 }
00121 
00122 void KSpreadViewIface::changeAngle()
00123 {
00124     m_view->changeAngle();
00125 }
00126 
00127 void KSpreadViewIface::preference()
00128 {
00129     m_view->preference();
00130 }
00131 
00132 void KSpreadViewIface::nextSheet()
00133 {
00134     m_view->nextSheet();
00135 }
00136 
00137 bool KSpreadViewIface::showSheet(QString sheetName)
00138 {
00139    return m_view->showSheet(sheetName);
00140 }
00141 
00142 void KSpreadViewIface::previousSheet()
00143 {
00144     m_view->previousSheet();
00145 }
00146 
00147 void KSpreadViewIface::sortList()
00148 {
00149     m_view->sortList();
00150 }
00151 
00152 void KSpreadViewIface::setAreaName()
00153 {
00154     m_view->setAreaName();
00155 }
00156 
00157 void KSpreadViewIface::showAreaName()
00158 {
00159     m_view->showAreaName();
00160 }
00161 
00162 void KSpreadViewIface::mergeCell()
00163 {
00164     m_view->mergeCell();
00165 }
00166 
00167 void KSpreadViewIface::dissociateCell()
00168 {
00169     m_view->dissociateCell();
00170 }
00171 
00172 void KSpreadViewIface::consolidate()
00173 {
00174     m_view->consolidate();
00175 }
00176 
00177 void KSpreadViewIface::deleteColumn()
00178 {
00179     m_view->deleteColumn();
00180 }
00181 
00182 void KSpreadViewIface::insertColumn()
00183 {
00184     m_view->insertColumn();
00185 }
00186 
00187 void KSpreadViewIface::deleteRow()
00188 {
00189     m_view->deleteRow();
00190 }
00191 
00192 void KSpreadViewIface::insertRow()
00193 {
00194     m_view->insertRow();
00195 }
00196 
00197 void KSpreadViewIface::hideRow()
00198 {
00199     m_view->hideRow();
00200 }
00201 
00202 void KSpreadViewIface::showRow()
00203 {
00204     m_view->showRow();
00205 }
00206 
00207 void KSpreadViewIface::hideColumn()
00208 {
00209     m_view->hideColumn();
00210 }
00211 
00212 void KSpreadViewIface::showColumn()
00213 {
00214     m_view->showColumn();
00215 }
00216 
00217 void KSpreadViewIface::upper()
00218 {
00219     m_view->upper();
00220 }
00221 
00222 void KSpreadViewIface::lower()
00223 {
00224     m_view->lower();
00225 }
00226 
00227 void KSpreadViewIface::equalizeColumn()
00228 {
00229     m_view->equalizeColumn();
00230 }
00231 
00232 void KSpreadViewIface::equalizeRow()
00233 {
00234     m_view->equalizeRow();
00235 }
00236 
00237 void KSpreadViewIface::clearTextSelection()
00238 {
00239     m_view->clearTextSelection();
00240 }
00241 
00242 void KSpreadViewIface::clearCommentSelection()
00243 {
00244     m_view->clearCommentSelection();
00245 }
00246 
00247 void KSpreadViewIface::clearValiditySelection()
00248 {
00249     m_view->clearValiditySelection();
00250 }
00251 
00252 void KSpreadViewIface::clearConditionalSelection()
00253 {
00254     m_view->clearConditionalSelection();
00255 }
00256 
00257 void KSpreadViewIface::goalSeek()
00258 {
00259     m_view->goalSeek();
00260 }
00261 
00262 void KSpreadViewIface::insertFromDatabase()
00263 {
00264     m_view->insertFromDatabase();
00265 }
00266 
00267 void KSpreadViewIface::insertFromTextfile()
00268 {
00269     m_view->insertFromTextfile();
00270 }
00271 
00272 void KSpreadViewIface::insertFromClipboard()
00273 {
00274     m_view->insertFromClipboard();
00275 }
00276 
00277 void KSpreadViewIface::textToColumns()
00278 {
00279     m_view->textToColumns();
00280 }
00281 
00282 void KSpreadViewIface::copyAsText()
00283 {
00284     m_view->copyAsText();
00285 }
00286 
00287 void KSpreadViewIface::setSelection(QRect selection)
00288 {
00289   m_view->selectionInfo()->setSelection(selection.topLeft(), selection.bottomRight(),
00290                                         m_view->activeSheet());
00291 }
00292 
00293 QRect KSpreadViewIface::selection()
00294 {
00295   return m_view->selectionInfo()->selection();
00296 }
00297 
00298 void KSpreadViewIface::setSelectionMoneyFormat( bool b )
00299 {
00300   m_view->moneyFormat(b);
00301 }
00302 
00303 void KSpreadViewIface::setSelectionPrecision( int delta )
00304 {
00305   m_view->setSelectionPrecision(delta);
00306 }
00307 
00308 void KSpreadViewIface::setSelectionPercent( bool b )
00309 {
00310   m_view->percent(b);
00311 }
00312 
00313 void KSpreadViewIface::setSelectionMultiRow( bool enable )
00314 {
00315   m_view->wrapText(enable);
00316 }
00317 
00318 void KSpreadViewIface::setSelectionSize(int size)
00319 {
00320   m_view->setSelectionFontSize(size);
00321 }
00322 
00323 void KSpreadViewIface::setSelectionUpper()
00324 {
00325   m_view->upper();
00326 }
00327 
00328 void KSpreadViewIface::setSelectionLower()
00329 {
00330   m_view->lower();
00331 }
00332 
00333 void KSpreadViewIface::setSelectionFirstLetterUpper()
00334 {
00335   m_view->firstLetterUpper();
00336 }
00337 
00338 void KSpreadViewIface::setSelectionVerticalText(bool enable)
00339 {
00340   m_view->verticalText(enable);
00341 }
00342 
00343 void KSpreadViewIface::setSelectionComment(QString comment)
00344 {
00345   m_view->setSelectionComment(comment);
00346 }
00347 
00348 void KSpreadViewIface::setSelectionAngle(int value)
00349 {
00350   m_view->setSelectionAngle(value);
00351 }
00352 
00353 void KSpreadViewIface::setSelectionTextColor( QColor txtColor )
00354 {
00355   m_view->setSelectionTextColor(txtColor);
00356 }
00357 
00358 void KSpreadViewIface::setSelectionBgColor( QColor bgColor )
00359 {
00360   m_view->setSelectionBackgroundColor(bgColor);
00361 }
00362 
00363 void KSpreadViewIface::setSelectionBorderColor( QColor bdColor )
00364 {
00365   m_view->setSelectionBorderColor(bdColor);
00366 }
00367 
00368 void KSpreadViewIface::deleteSelection()
00369 {
00370   m_view->clearTextSelection();
00371 }
00372 
00373 void KSpreadViewIface::copySelection()
00374 {
00375   m_view->copySelection();
00376 }
00377 
00378 void KSpreadViewIface::cutSelection()
00379 {
00380   m_view->cutSelection();
00381 }
00382 
00383 void KSpreadViewIface::setLeftBorderColor(QColor color)
00384 {
00385   m_view->setSelectionLeftBorderColor(color);
00386 }
00387 
00388 void KSpreadViewIface::setTopBorderColor(QColor color)
00389 {
00390   m_view->setSelectionTopBorderColor(color);
00391 }
00392 
00393 void KSpreadViewIface::setRightBorderColor(QColor color)
00394 {
00395   m_view->setSelectionRightBorderColor(color);
00396 }
00397 
00398 void KSpreadViewIface::setBottomBorderColor(QColor color)
00399 {
00400   m_view->setSelectionBottomBorderColor(color);
00401 }
00402 
00403 void KSpreadViewIface::setAllBorderColor(QColor color)
00404 {
00405   m_view->setSelectionAllBorderColor(color);
00406 }
00407 
00408 void KSpreadViewIface::setOutlineBorderColor(QColor color)
00409 {
00410   m_view->setSelectionOutlineBorderColor(color);
00411 }
00412 
00413 void KSpreadViewIface::removeBorder()
00414 {
00415   m_view->borderRemove();
00416 }
00417 
00418 void KSpreadViewIface::increaseIndent()
00419 {
00420   m_view->increaseIndent();
00421 }
00422 
00423 void KSpreadViewIface::decreaseIndent()
00424 {
00425   m_view->increaseIndent();
00426 }
00427 
00428 void KSpreadViewIface::subtotals()
00429 {
00430     m_view->subtotals();
00431 }
00432 
00433 void KSpreadViewIface::sortInc()
00434 {
00435     m_view->sortInc();
00436 }
00437 
00438 void KSpreadViewIface::sortDec()
00439 {
00440     m_view->sortDec();
00441 }
00442 
00443 void KSpreadViewIface::layoutDlg()
00444 {
00445     m_view->layoutDlg();
00446 }
00447 
00448 
00449 void KSpreadViewIface::increaseFontSize()
00450 {
00451     m_view->increaseFontSize();
00452 }
00453 
00454 void KSpreadViewIface::decreaseFontSize()
00455 {
00456     m_view->decreaseFontSize();
00457 }
KDE Logo
This file is part of the documentation for kspread Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:43:38 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003