kspread

KSpreadDocIface.h

00001 /* This file is part of the KDE project
00002 
00003    Copyright 2002 Laurent Montel <montel@kde.org>
00004    Copyright 2002 Philipp Mueller <philipp.mueller@gmx.de>
00005    Copyright 2000 David Faure <faure@kde.org>
00006    Copyright 1999 Torben Weis <weis@kde.org>
00007 
00008    This library is free software; you can redistribute it and/or
00009    modify it under the terms of the GNU Library General Public
00010    License as published by the Free Software Foundation; either
00011    version 2 of the License, or (at your option) any later version.
00012 
00013    This library is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016    Library General Public License for more details.
00017 
00018    You should have received a copy of the GNU Library General Public License
00019    along with this library; see the file COPYING.LIB.  If not, write to
00020    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021  * Boston, MA 02110-1301, USA.
00022 */
00023 
00024 #ifndef KSPREAD_DOC_IFACE_H
00025 #define KSPREAD_DOC_IFACE_H
00026 
00027 #include <qstring.h>
00028 #include <qcolor.h>
00029 #include <qstringlist.h>
00030 
00031 #include <dcopref.h>
00032 
00033 #include <KoDocumentIface.h>
00034 
00035 namespace KSpread
00036 {
00037 class Doc;
00038 
00039 class DocIface : virtual public KoDocumentIface
00040 {
00041     K_DCOP
00042 public:
00043     DocIface( Doc* );
00044 
00045 k_dcop:
00046     virtual DCOPRef map();
00047 
00048     bool showTabBar()const;
00049 
00050     void setShowVerticalScrollBar(bool _show);
00051     void setShowHorizontalScrollBar(bool _show);
00052     void setShowColHeader(bool _show);
00053     void setShowRowHeader(bool _show);
00054     void setShowTabBar(bool _show);
00055 
00056     void changeDefaultGridPenColor( const QColor &_col);
00057     bool showFormulaBar()const;
00058     bool showStatusBar()const;
00059 
00060 
00061     QColor pageBorderColor() const;
00062     void changePageBorderColor( const QColor & _color);
00063     void addIgnoreWordAll( const QString &word);
00064     void clearIgnoreWordAll( );
00065     QStringList spellListIgnoreAll() const;
00066 
00067     void addStringCompletion(const QString & stringCompletion);
00068     int zoom() const;
00069 
00070     void setMoveToValue(const QString & move);
00071     QString moveToValue()const;
00072 
00073     void setTypeOfCalc( const QString & calc );
00074     QString typeOfCalc() const;
00075 
00076 private:
00077     Doc* doc;
00078 };
00079 
00080 } // namespace KSpread
00081 
00082 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys