1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: optgdlg.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _OFA_OPTGDLG_HXX
31 #define _OFA_OPTGDLG_HXX
32 #include <vcl/lstbox.hxx>
33 #include <vcl/group.hxx>
34 #include <vcl/field.hxx>
35 #include <vcl/fixed.hxx>
36 #include <sfx2/tabdlg.hxx>
37 #include <svx/langbox.hxx>
38 #include <readonlyimage.hxx>
39 #define FOLDERWEBVIEW_DEFAULTFILE "folder.so"
43 class SvtOptionsDrawinglayer
;
45 // class OfaMiscTabPage --------------------------------------------------
47 class OfaMiscTabPage
: public SfxTabPage
49 using TabPage::DeactivatePage
;
54 CheckBox aHelpAgentCB
;
55 PushButton aHelpAgentResetBtn
;
56 FixedText aHelpFormatFT
;
57 ListBox aHelpFormatLB
;
60 ReadOnlyImage aFileDlgROImage
;
64 FixedLine aPrintDlgFL
;
67 FixedLine aDocStatusFL
;
68 CheckBox aDocStatusCB
;
70 FixedLine aTwoFigureFL
;
71 FixedText aInterpretFT
;
72 NumericField aYearValueField
;
77 DECL_LINK( TwoFigureHdl
, NumericField
* );
78 DECL_LINK( TwoFigureConfigHdl
, NumericField
* );
79 DECL_LINK( HelpCheckHdl_Impl
, CheckBox
* );
80 DECL_LINK( HelpAgentResetHdl_Impl
, PushButton
* );
82 DECL_LINK( OnFileDlgToggled
, CheckBox
* );
85 virtual int DeactivatePage( SfxItemSet
* pSet
= NULL
);
88 OfaMiscTabPage( Window
* pParent
, const SfxItemSet
& rSet
);
91 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rAttrSet
);
93 virtual BOOL
FillItemSet( SfxItemSet
& rSet
);
94 virtual void Reset( const SfxItemSet
& rSet
);
97 // class OfaViewTabPage --------------------------------------------------
98 class SvtTabAppearanceCfg
;
100 class OfaViewTabPage
: public SfxTabPage
103 FixedLine aUserInterfaceFL
;
104 FixedText aWindowSizeFT
;
105 MetricField aWindowSizeMF
;
106 FixedText aIconSizeStyleFT
;
108 ListBox aIconStyleLB
;
109 CheckBox m_aSystemFont
;
112 CheckBox aFontAntiAliasing
;
113 FixedText aAAPointLimitLabel
;
114 NumericField aAAPointLimit
;
115 FixedText aAAPointLimitUnits
;
119 FixedText aMenuIconsFT
;
120 ListBox aMenuIconsLB
;
122 FixedLine aFontListsFL
;
123 CheckBox aFontShowCB
;
124 CheckBox aFontHistoryCB
;
126 FixedLine aRenderingFL
;
127 CheckBox aUseHardwareAccell
;
128 CheckBox aUseAntiAliase
;
131 FixedText aMousePosFT
;
133 FixedText aMouseMiddleFT
;
134 ListBox aMouseMiddleLB
;
137 FixedLine maSelectionFL
;
138 CheckBox maSelectionCB
;
139 MetricField maSelectionMF
;
141 UINT16 nSizeLB_InitialSelection
;
142 UINT16 nStyleLB_InitialSelection
;
143 BOOL bSfxSymbolsAuto
;
145 SvtTabAppearanceCfg
* pAppearanceCfg
;
146 CanvasSettings
* pCanvasSettings
;
147 SvtOptionsDrawinglayer
* mpDrawinglayerOpt
;
150 DECL_LINK( OnAntialiasingToggled
, void* );
153 DECL_LINK( OnSelectionToggled
, void* );
156 OfaViewTabPage( Window
* pParent
, const SfxItemSet
& rSet
);
159 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rAttrSet
);
161 virtual BOOL
FillItemSet( SfxItemSet
& rSet
);
162 virtual void Reset( const SfxItemSet
& rSet
);
164 /* -----------------------------23.11.00 13:04--------------------------------
166 ---------------------------------------------------------------------------*/
167 struct LanguageConfig_Impl
;
168 class OfaLanguagesTabPage
: public SfxTabPage
170 FixedLine aUILanguageGB
;
171 ReadOnlyImage aLocaleSettingFI
;
172 FixedText aUserInterfaceFT
;
173 ListBox aUserInterfaceLB
;
174 FixedText aLocaleSettingFT
;
175 SvxLanguageBox aLocaleSettingLB
;
176 ReadOnlyImage aCurrencyFI
;
177 FixedText aDecimalSeparatorFT
;
178 CheckBox aDecimalSeparatorCB
;
179 FixedText aCurrencyFT
;
182 FixedLine aLinguLanguageGB
;
183 ReadOnlyImage aWesternLanguageFI
;
184 FixedText aWesternLanguageFT
;
185 SvxLanguageBox aWesternLanguageLB
;
186 ReadOnlyImage aAsianLanguageFI
;
187 FixedText aAsianLanguageFT
;
188 SvxLanguageBox aAsianLanguageLB
;
189 ReadOnlyImage aComplexLanguageFI
;
190 FixedText aComplexLanguageFT
;
191 SvxLanguageBox aComplexLanguageLB
;
192 CheckBox aCurrentDocCB
;
193 FixedLine aEnhancedFL
;
194 ReadOnlyImage aAsianSupportFI
;
195 CheckBox aAsianSupportCB
;
196 ReadOnlyImage aCTLSupportFI
;
197 CheckBox aCTLSupportCB
;
199 const String sDecimalSeparatorLabel
;
201 sal_Bool m_bOldAsian
;
203 LanguageConfig_Impl
* pLangConfig
;
205 rtl::OUString m_sUserLocaleValue
;
207 DECL_LINK( SupportHdl
, CheckBox
* ) ;
208 DECL_LINK( LocaleSettingHdl
, SvxLanguageBox
* ) ;
211 OfaLanguagesTabPage( Window
* pParent
, const SfxItemSet
& rSet
);
212 ~OfaLanguagesTabPage();
214 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rAttrSet
);
216 virtual BOOL
FillItemSet( SfxItemSet
& rSet
);
217 virtual void Reset( const SfxItemSet
& rSet
);
219 #endif // #ifndef _OFA_OPTGDLG_HXX