masterfix DEV300: #i10000# build fix
[LibreOffice.git] / cui / source / options / optgdlg.hxx
blob3268cd43c51c21f551518db9a8a4aa66f6648ec8
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"
38 // predeclarations
39 class CanvasSettings;
40 class SvtOptionsDrawinglayer;
42 // class OfaMiscTabPage --------------------------------------------------
44 class OfaMiscTabPage : public SfxTabPage
46 using TabPage::DeactivatePage;
47 private:
48 FixedLine aHelpFL;
49 CheckBox aToolTipsCB;
50 CheckBox aExtHelpCB;
51 CheckBox aHelpAgentCB;
52 PushButton aHelpAgentResetBtn;
53 FixedText aHelpFormatFT;
54 ListBox aHelpFormatLB;
56 FixedLine aFileDlgFL;
57 ReadOnlyImage aFileDlgROImage;
58 CheckBox aFileDlgCB;
60 FixedLine aPrintDlgFL;
61 CheckBox aPrintDlgCB;
63 FixedLine aDocStatusFL;
64 CheckBox aDocStatusCB;
66 FixedLine aTwoFigureFL;
67 FixedText aInterpretFT;
68 NumericField aYearValueField;
69 FixedText aToYearFT;
71 String aStrDateInfo;
73 DECL_LINK( TwoFigureHdl, NumericField* );
74 DECL_LINK( TwoFigureConfigHdl, NumericField* );
75 DECL_LINK( HelpCheckHdl_Impl, CheckBox* );
76 DECL_LINK( HelpAgentResetHdl_Impl, PushButton* );
77 protected:
78 virtual int DeactivatePage( SfxItemSet* pSet = NULL );
80 public:
81 OfaMiscTabPage( Window* pParent, const SfxItemSet& rSet );
82 ~OfaMiscTabPage();
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
95 private:
96 FixedLine aUserInterfaceFL;
97 FixedText aWindowSizeFT;
98 MetricField aWindowSizeMF;
99 FixedText aIconSizeStyleFT;
100 ListBox aIconSizeLB;
101 ListBox aIconStyleLB;
102 CheckBox m_aSystemFont;
104 #if defined( UNX )
105 CheckBox aFontAntiAliasing;
106 FixedText aAAPointLimitLabel;
107 NumericField aAAPointLimit;
108 FixedText aAAPointLimitUnits;
109 #endif
111 FixedLine aMenuFL;
112 FixedText aMenuIconsFT;
113 ListBox aMenuIconsLB;
115 FixedLine aFontListsFL;
116 CheckBox aFontShowCB;
117 CheckBox aFontHistoryCB;
119 FixedLine aRenderingFL;
120 CheckBox aUseHardwareAccell;
121 CheckBox aUseAntiAliase;
123 FixedLine aMouseFL;
124 FixedText aMousePosFT;
125 ListBox aMousePosLB;
126 FixedText aMouseMiddleFT;
127 ListBox aMouseMiddleLB;
129 // #i97672#
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;
145 #if defined( UNX )
146 DECL_LINK( OnAntialiasingToggled, void* );
147 #endif
148 // #i97672#
149 DECL_LINK( OnSelectionToggled, void* );
151 public:
152 OfaViewTabPage( Window* pParent, const SfxItemSet& rSet );
153 ~OfaViewTabPage();
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;
176 ListBox aCurrencyLB;
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;
198 sal_Bool m_bOldCtl;
199 LanguageConfig_Impl* pLangConfig;
201 rtl::OUString m_sUserLocaleValue;
203 DECL_LINK( SupportHdl, CheckBox* ) ;
204 DECL_LINK( LocaleSettingHdl, SvxLanguageBox* ) ;
206 public:
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