27#ifndef __kspread_dlg_preference__
28#define __kspread_dlg_preference__
30#include <kdialogbase.h>
47class parameterLocale :
public TQObject
52 parameterLocale( View* _view,TQVBox *box,
char *name = 0);
55 void updateDefaultSystemConfig();
60 void updateToMatchLocale(TDELocale* locale);
62 TQLabel *m_shortDate,*m_time,*m_money,*m_date,*m_language,*m_number;
63 TQPushButton *m_updateButton;
68class configure :
public TQObject
73 configure( View* _view,TQVBox *box,
char *name = 0 );
79 KIntNumInput* nbRecentFile;
80 KIntNumInput* autoSaveDelay;
81 TQCheckBox *showVScrollBar;
82 TQCheckBox *showHScrollBar;
83 TQCheckBox *showColHeader;
84 TQCheckBox *showRowHeader;
85 TQCheckBox *showTabBar;
86 TQCheckBox *showFormulaBar;
87 TQCheckBox *showStatusBar;
88 TQCheckBox *m_createBackupFile;
97class miscParameters :
public TQObject
102 miscParameters( View* _view, TQVBox *box,
char *name = 0 );
109 void slotTextComboChanged(
const TQString &);
113 KDoubleNumInput *valIndent;
118 KoUnit::Unit indentUnit;
120 TQComboBox *typeCompletion;
121 TQComboBox *typeCalc;
122 TQComboBox *typeOfMove;
123 TQCheckBox *msgError;
124 KIntNumInput* m_undoRedoLimit;
129class colorParameters :
public TQObject
134 colorParameters( View* _view, TQVBox *box,
char *name = 0 );
139 KColorButton* gridColor;
140 KColorButton* pageBorderColor;
144class configureLayoutPage :
public TQObject
149 configureLayoutPage( View* _view,TQVBox *box,
char *name = 0 );
155 TQComboBox *defaultOrientationPage;
156 TQComboBox *defaultSizePage;
157 TQComboBox *defaultUnit;
166class configureSpellPage :
public TQObject
171 configureSpellPage( View* _view, TQVBox *box,
char *name = 0 );
177 KSpellConfig *m_spellConfigWidget;
178 TQCheckBox *dontCheckUpperWord;
179 TQCheckBox *dontCheckTitleCase;
182class configureTTSPage :
public TQObject
187 configureTTSPage( View *_view, TQVBox *box,
char *name = 0 );
191 void screenReaderOptionChanged();
194 TQCheckBox* m_cbSpeakPointerWidget;
195 TQCheckBox* m_cbSpeakFocusWidget;
196 TQVGroupBox* m_gbScreenReaderOptions;
197 TQCheckBox* m_cbSpeakTooltips;
198 TQCheckBox* m_cbSpeakWhatsThis;
199 TQCheckBox* m_cbSpeakDisabled;
200 TQCheckBox* m_cbSpeakAccelerators;
201 TQLabel* m_lblAcceleratorPrefix;
202 TQLineEdit* m_leAcceleratorPrefixWord;
203 KIntNumInput* m_iniPollingInterval;
206class PreferenceDialog :
public KDialogBase
211 enum { KS_PREFERENCES = 1, KS_LOCALE = 2, KS_INTERFACE = 4,
212 KS_MISC = 8, KS_COLOR = 16, KS_LAYOUT = 32, KS_SPELLING = 64 };
213 PreferenceDialog( View* parent,
const char* name);
217 void openPage(
int flags);
220 configure * _configure;
221 miscParameters *_miscParameter;
222 colorParameters *_colorParameter;
223 configureLayoutPage *_layoutPage;
224 configureSpellPage *_spellPage;
225 parameterLocale *_localePage;
226 configureTTSPage *_ttsPage;
The View class displays a KSpread document.