23#include <kdialogbase.h>
32class KoUnitDoubleSpinBox;
46class ConfigureSpellPage :
public TQObject
51 ConfigureSpellPage( KWView *view, TQVBox *box,
char *name = 0 );
57 KSpell2::ConfigWidget *m_spellConfigWidget;
60class ConfigureInterfacePage :
public TQObject
65 ConfigureInterfacePage( KWView *view, TQVBox *box,
char *name = 0 );
68 void setUnit( KoUnit::Unit unit );
72 void unitChanged(
int );
76 TQComboBox *m_unitCombo;
77 KoUnitDoubleSpinBox* gridX,*gridY;
78 KoUnitDoubleSpinBox* indent;
79 KIntNumInput* recentFiles;
80 TQCheckBox *showStatusBar, *showScrollBar, *pgUpDownMovesCaret;
82 KIntNumInput *m_nbPagePerRow;
85class ConfigureMiscPage :
public TQObject
90 ConfigureMiscPage( KWView *view, TQVBox *box,
char *name = 0 );
93 void setUnit( KoUnit::Unit unit );
97 KIntNumInput* m_undoRedoLimit;
99 bool m_oldFormattingEndParag, m_oldFormattingSpace, m_oldFormattingTabs, m_oldFormattingBreak;
100 TQCheckBox* m_displayLink, *m_displayComment, *m_underlineLink, *m_displayFieldCode;
101 TQCheckBox* m_cbViewFormattingEndParag, *m_cbViewFormattingSpace;
102 TQCheckBox* m_cbViewFormattingTabs, *m_cbViewFormattingBreak;
105class ConfigureDefaultDocPage :
public TQObject
110 ConfigureDefaultDocPage( KWView *view, TQVBox *box,
char *name = 0 );
111 ~ConfigureDefaultDocPage();
114 void setUnit( KoUnit::Unit unit );
116 void selectNewDefaultFont();
124 KoUnitDoubleSpinBox* m_columnSpacing;
126 KIntNumInput* autoSave;
127 int oldAutoSaveValue;
128 double m_oldTabStopWidth;
130 int m_oldStartingPage;
131 bool m_oldBackupFile;
132 KIntNumInput* m_variableNumberOffset;
133 KoUnitDoubleSpinBox *m_tabStopWidth;
134 TQCheckBox *m_cursorInProtectedArea;
135 TQCheckBox *m_createBackupFile;
137 TQCheckBox *m_autoHyphenation;
138 TQComboBox *m_globalLanguage;
139 TQString m_oldLanguage;
140 bool m_oldHyphenation;
143class ConfigurePathPage :
public TQObject
148 ConfigurePathPage( KWView *view, TQVBox *box,
char *name = 0 );
152 void slotModifyPath();
153 void slotSelectionChanged(TQListViewItem *);
157 TDEListView* m_pPathView;
158 TQPushButton *m_modifyPath;
161class ConfigureTTSPage :
public TQObject
166 ConfigureTTSPage( KWView *view, TQVBox *box,
char *name = 0 );
170 void screenReaderOptionChanged();
173 TQCheckBox* m_cbSpeakPointerWidget;
174 TQCheckBox* m_cbSpeakFocusWidget;
175 TQVGroupBox* m_gbScreenReaderOptions;
176 TQCheckBox* m_cbSpeakTooltips;
177 TQCheckBox* m_cbSpeakWhatsThis;
178 TQCheckBox* m_cbSpeakDisabled;
179 TQCheckBox* m_cbSpeakAccelerators;
180 TQLabel* m_lblAcceleratorPrefix;
181 TQLineEdit* m_leAcceleratorPrefixWord;
182 KIntNumInput* m_iniPollingInterval;
185class KWConfig :
public KDialogBase
190 enum { KW_TDESPELL=1,KP_INTERFACE=2,KP_MISC=4, KP_DOCUMENT=8, KP_FORMULA=16, KP_PATH = 32};
191 KWConfig( KWView* parent );
192 void openPage(
int flags);
196 void unitChanged(
int );
198 ConfigureSpellPage *m_spellPage;
199 ConfigureInterfacePage *m_interfacePage;
200 ConfigureMiscPage *m_miscPage;
201 ConfigureDefaultDocPage *m_defaultDocPage;
202 KFormula::ConfigurePage *m_formulaPage;
203 ConfigurePathPage *m_pathPage;
204 ConfigureTTSPage *m_ttsPage;