kspread

sheet_properties.h
1/* This file is part of the KDE project
2 Copyright (C) 2004 Ariya Hidayat <ariya@kde.org>
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#ifndef SHEET_PROPERTIES_DIALOG
21#define SHEET_PROPERTIES_DIALOG
22
23#include <tqwidget.h>
24#include <kdialogbase.h>
25#include "kspread_sheet.h"
26
27namespace KSpread
28{
29class SheetPropertiesBase;
30
31class SheetPropertiesDialog : public KDialogBase
32{
33 TQ_OBJECT
34
35
36public:
37
38 SheetPropertiesDialog( TQWidget* parent = 0 );
39
40 ~SheetPropertiesDialog();
41
42 virtual void slotDefault();
43
44 Sheet::LayoutDirection layoutDirection() const;
45
46 void setLayoutDirection( Sheet::LayoutDirection dir );
47
48 bool autoCalc() const;
49
50 void setAutoCalc( bool b );
51
52 bool showGrid() const;
53
54 void setShowGrid( bool b );
55
56 bool showPageBorders() const;
57
58 void setShowPageBorders( bool b );
59
60 bool showFormula() const;
61
62 void setShowFormula( bool b );
63
64 bool hideZero() const;
65
66 void setHideZero( bool b );
67
68 bool showFormulaIndicator() const;
69
70 void setShowFormulaIndicator( bool b );
71
72 bool showCommentIndicator() const;
73
74 void setShowCommentIndicator( bool b );
75
76 bool columnAsNumber() const;
77
78 void setColumnAsNumber( bool b );
79
80 bool lcMode() const;
81
82 void setLcMode( bool b );
83
84 bool capitalizeFirstLetter() const;
85
86 void setCapitalizeFirstLetter( bool b );
87
88private:
89 SheetPropertiesBase* d;
90};
91
92} // namespace
93
94#endif /* SHEET_PROPERTIES_DIALOG */
The KSpread namespace.
Definition commands.h:39