kspread

KSpreadDocIface.h
1/* This file is part of the KDE project
2
3 Copyright 2002 Laurent Montel <montel@kde.org>
4 Copyright 2002 Philipp Mueller <philipp.mueller@gmx.de>
5 Copyright 2000 David Faure <faure@kde.org>
6 Copyright 1999 Torben Weis <weis@kde.org>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
17
18 You should have received a copy of the GNU Library General Public License
19 along with this library; see the file COPYING.LIB. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22*/
23
24#ifndef KSPREAD_DOC_IFACE_H
25#define KSPREAD_DOC_IFACE_H
26
27#include <tqstring.h>
28#include <tqcolor.h>
29#include <tqstringlist.h>
30
31#include <dcopref.h>
32
33#include <KoDocumentIface.h>
34
35namespace KSpread
36{
37class Doc;
38
39class DocIface : virtual public KoDocumentIface
40{
41 K_DCOP
42public:
43 DocIface( Doc* );
44
45k_dcop:
46 virtual DCOPRef map();
47
48 bool showTabBar()const;
49
50 void setShowVerticalScrollBar(bool _show);
51 void setShowHorizontalScrollBar(bool _show);
52 void setShowColHeader(bool _show);
53 void setShowRowHeader(bool _show);
54 void setShowTabBar(bool _show);
55
56 void changeDefaultGridPenColor( const TQColor &_col);
57 bool showFormulaBar()const;
58 bool showStatusBar()const;
59
60
61 TQColor pageBorderColor() const;
62 void changePageBorderColor( const TQColor & _color);
63 void addIgnoreWordAll( const TQString &word);
64 void clearIgnoreWordAll( );
65 TQStringList spellListIgnoreAll() const;
66
67 void addStringCompletion(const TQString & stringCompletion);
68 int zoom() const;
69
70 void setMoveToValue(const TQString & move);
71 TQString moveToValue()const;
72
73 void setTypeOfCalc( const TQString & calc );
74 TQString typeOfCalc() const;
75
76private:
77 Doc* doc;
78};
79
80} // namespace KSpread
81
82#endif
This class holds the data that makes up a spreadsheet.
Definition kspread_doc.h:98
The KSpread namespace.
Definition commands.h:39