1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef _OFA_OPTGDLG_HXX
28 #define _OFA_OPTGDLG_HXX
29 #include <vcl/lstbox.hxx>
30 #include <vcl/group.hxx>
31 #include <vcl/field.hxx>
32 #include <vcl/fixed.hxx>
33 #include <sfx2/tabdlg.hxx>
34 #include <svx/langbox.hxx>
35 #include <readonlyimage.hxx>
36 #define FOLDERWEBVIEW_DEFAULTFILE "folder.so"
40 class SvtOptionsDrawinglayer
;
42 // class OfaMiscTabPage --------------------------------------------------
44 class OfaMiscTabPage
: public SfxTabPage
46 using TabPage::DeactivatePage
;
51 CheckBox aHelpAgentCB
;
52 PushButton aHelpAgentResetBtn
;
53 FixedText aHelpFormatFT
;
54 ListBox aHelpFormatLB
;
57 ReadOnlyImage aFileDlgROImage
;
60 FixedLine aPrintDlgFL
;
63 FixedLine aDocStatusFL
;
64 CheckBox aDocStatusCB
;
66 FixedLine aTwoFigureFL
;
67 FixedText aInterpretFT
;
68 NumericField aYearValueField
;
73 DECL_LINK( TwoFigureHdl
, NumericField
* );
74 DECL_LINK( TwoFigureConfigHdl
, NumericField
* );
75 DECL_LINK( HelpCheckHdl_Impl
, CheckBox
* );
76 DECL_LINK( HelpAgentResetHdl_Impl
, PushButton
* );
78 virtual int DeactivatePage( SfxItemSet
* pSet
= NULL
);
81 OfaMiscTabPage( Window
* pParent
, const SfxItemSet
& rSet
);
84 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rAttrSet
);
86 virtual sal_Bool
FillItemSet( SfxItemSet
& rSet
);
87 virtual void Reset( const SfxItemSet
& rSet
);
90 // class OfaViewTabPage --------------------------------------------------
91 class SvtTabAppearanceCfg
;
93 class OfaViewTabPage
: public SfxTabPage
96 FixedLine aUserInterfaceFL
;
97 FixedText aWindowSizeFT
;
98 MetricField aWindowSizeMF
;
99 FixedText aIconSizeStyleFT
;
101 ListBox aIconStyleLB
;
102 CheckBox m_aSystemFont
;
105 CheckBox aFontAntiAliasing
;
106 FixedText aAAPointLimitLabel
;
107 NumericField aAAPointLimit
;
108 FixedText aAAPointLimitUnits
;
112 FixedText aMenuIconsFT
;
113 ListBox aMenuIconsLB
;
115 FixedLine aFontListsFL
;
116 CheckBox aFontShowCB
;
117 CheckBox aFontHistoryCB
;
119 FixedLine aRenderingFL
;
120 CheckBox aUseHardwareAccell
;
121 CheckBox aUseAntiAliase
;
124 FixedText aMousePosFT
;
126 FixedText aMouseMiddleFT
;
127 ListBox aMouseMiddleLB
;
130 FixedLine maSelectionFL
;
131 CheckBox maSelectionCB
;
132 MetricField maSelectionMF
;
134 sal_uInt16 nSizeLB_InitialSelection
;
135 sal_uInt16 nStyleLB_InitialSelection
;
136 sal_Bool bSfxSymbolsAuto
;
138 // item ID for the given icon theme
139 // might be zero when the theme is not installed and the item is removed
140 sal_uLong aIconStyleItemId
[STYLE_SYMBOLS_THEMES_MAX
];
141 SvtTabAppearanceCfg
* pAppearanceCfg
;
142 CanvasSettings
* pCanvasSettings
;
143 SvtOptionsDrawinglayer
* mpDrawinglayerOpt
;
146 DECL_LINK( OnAntialiasingToggled
, void* );
149 DECL_LINK( OnSelectionToggled
, void* );
152 OfaViewTabPage( Window
* pParent
, const SfxItemSet
& rSet
);
155 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rAttrSet
);
157 virtual sal_Bool
FillItemSet( SfxItemSet
& rSet
);
158 virtual void Reset( const SfxItemSet
& rSet
);
160 /* -----------------------------23.11.00 13:04--------------------------------
162 ---------------------------------------------------------------------------*/
163 struct LanguageConfig_Impl
;
164 class OfaLanguagesTabPage
: public SfxTabPage
166 FixedLine aUILanguageGB
;
167 ReadOnlyImage aLocaleSettingFI
;
168 FixedText aUserInterfaceFT
;
169 ListBox aUserInterfaceLB
;
170 FixedText aLocaleSettingFT
;
171 SvxLanguageBox aLocaleSettingLB
;
172 ReadOnlyImage aCurrencyFI
;
173 FixedText aDecimalSeparatorFT
;
174 CheckBox aDecimalSeparatorCB
;
175 FixedText aCurrencyFT
;
178 FixedLine aLinguLanguageGB
;
179 ReadOnlyImage aWesternLanguageFI
;
180 FixedText aWesternLanguageFT
;
181 SvxLanguageBox aWesternLanguageLB
;
182 ReadOnlyImage aAsianLanguageFI
;
183 FixedText aAsianLanguageFT
;
184 SvxLanguageBox aAsianLanguageLB
;
185 ReadOnlyImage aComplexLanguageFI
;
186 FixedText aComplexLanguageFT
;
187 SvxLanguageBox aComplexLanguageLB
;
188 CheckBox aCurrentDocCB
;
189 FixedLine aEnhancedFL
;
190 ReadOnlyImage aAsianSupportFI
;
191 CheckBox aAsianSupportCB
;
192 ReadOnlyImage aCTLSupportFI
;
193 CheckBox aCTLSupportCB
;
195 const String sDecimalSeparatorLabel
;
197 sal_Bool m_bOldAsian
;
199 LanguageConfig_Impl
* pLangConfig
;
201 rtl::OUString m_sUserLocaleValue
;
203 DECL_LINK( SupportHdl
, CheckBox
* ) ;
204 DECL_LINK( LocaleSettingHdl
, SvxLanguageBox
* ) ;
207 OfaLanguagesTabPage( Window
* pParent
, const SfxItemSet
& rSet
);
208 ~OfaLanguagesTabPage();
210 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rAttrSet
);
212 virtual sal_Bool
FillItemSet( SfxItemSet
& rSet
);
213 virtual void Reset( const SfxItemSet
& rSet
);
215 #endif // #ifndef _OFA_OPTGDLG_HXX