merge the formfield patch from ooo-build
[ooovba.git] / svx / source / cui / optgdlg.hxx
blob2a26918203b9982d1f344f98acbcb9eab77016cf
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: optgdlg.hxx,v $
10 * $Revision: 1.23 $
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"
41 // predeclarations
42 class CanvasSettings;
43 class SvtOptionsDrawinglayer;
45 // class OfaMiscTabPage --------------------------------------------------
47 class OfaMiscTabPage : public SfxTabPage
49 using TabPage::DeactivatePage;
50 private:
51 FixedLine aHelpFL;
52 CheckBox aToolTipsCB;
53 CheckBox aExtHelpCB;
54 CheckBox aHelpAgentCB;
55 PushButton aHelpAgentResetBtn;
56 FixedText aHelpFormatFT;
57 ListBox aHelpFormatLB;
59 FixedLine aFileDlgFL;
60 ReadOnlyImage aFileDlgROImage;
61 CheckBox aFileDlgCB;
62 CheckBox aODMADlgCB;
64 FixedLine aPrintDlgFL;
65 CheckBox aPrintDlgCB;
67 FixedLine aDocStatusFL;
68 CheckBox aDocStatusCB;
70 FixedLine aTwoFigureFL;
71 FixedText aInterpretFT;
72 NumericField aYearValueField;
73 FixedText aToYearFT;
75 String aStrDateInfo;
77 DECL_LINK( TwoFigureHdl, NumericField* );
78 DECL_LINK( TwoFigureConfigHdl, NumericField* );
79 DECL_LINK( HelpCheckHdl_Impl, CheckBox* );
80 DECL_LINK( HelpAgentResetHdl_Impl, PushButton* );
81 #ifdef WNT
82 DECL_LINK( OnFileDlgToggled, CheckBox* );
83 #endif
84 protected:
85 virtual int DeactivatePage( SfxItemSet* pSet = NULL );
87 public:
88 OfaMiscTabPage( Window* pParent, const SfxItemSet& rSet );
89 ~OfaMiscTabPage();
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
102 private:
103 FixedLine aUserInterfaceFL;
104 FixedText aWindowSizeFT;
105 MetricField aWindowSizeMF;
106 FixedText aIconSizeStyleFT;
107 ListBox aIconSizeLB;
108 ListBox aIconStyleLB;
109 CheckBox m_aSystemFont;
111 #if defined( UNX )
112 CheckBox aFontAntiAliasing;
113 FixedText aAAPointLimitLabel;
114 NumericField aAAPointLimit;
115 FixedText aAAPointLimitUnits;
116 #endif
118 FixedLine aMenuFL;
119 FixedText aMenuIconsFT;
120 ListBox aMenuIconsLB;
122 FixedLine aFontListsFL;
123 CheckBox aFontShowCB;
124 CheckBox aFontHistoryCB;
126 FixedLine aRenderingFL;
127 CheckBox aUseHardwareAccell;
128 CheckBox aUseAntiAliase;
130 FixedLine aMouseFL;
131 FixedText aMousePosFT;
132 ListBox aMousePosLB;
133 FixedText aMouseMiddleFT;
134 ListBox aMouseMiddleLB;
136 // #i97672#
137 FixedLine maSelectionFL;
138 CheckBox maSelectionCB;
139 MetricField maSelectionMF;
141 UINT16 nSizeLB_InitialSelection;
142 UINT16 nStyleLB_InitialSelection;
143 BOOL bSfxSymbolsAuto;
145 // item ID for the given icon theme
146 // might be zero when the theme is not installed and the item is removed
147 ULONG aIconStyleItemId[STYLE_SYMBOLS_THEMES_MAX];
148 SvtTabAppearanceCfg* pAppearanceCfg;
149 CanvasSettings* pCanvasSettings;
150 SvtOptionsDrawinglayer* mpDrawinglayerOpt;
152 #if defined( UNX )
153 DECL_LINK( OnAntialiasingToggled, void* );
154 #endif
155 // #i97672#
156 DECL_LINK( OnSelectionToggled, void* );
158 public:
159 OfaViewTabPage( Window* pParent, const SfxItemSet& rSet );
160 ~OfaViewTabPage();
162 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
164 virtual BOOL FillItemSet( SfxItemSet& rSet );
165 virtual void Reset( const SfxItemSet& rSet );
167 /* -----------------------------23.11.00 13:04--------------------------------
169 ---------------------------------------------------------------------------*/
170 struct LanguageConfig_Impl;
171 class OfaLanguagesTabPage : public SfxTabPage
173 FixedLine aUILanguageGB;
174 ReadOnlyImage aLocaleSettingFI;
175 FixedText aUserInterfaceFT;
176 ListBox aUserInterfaceLB;
177 FixedText aLocaleSettingFT;
178 SvxLanguageBox aLocaleSettingLB;
179 ReadOnlyImage aCurrencyFI;
180 FixedText aDecimalSeparatorFT;
181 CheckBox aDecimalSeparatorCB;
182 FixedText aCurrencyFT;
183 ListBox aCurrencyLB;
185 FixedLine aLinguLanguageGB;
186 ReadOnlyImage aWesternLanguageFI;
187 FixedText aWesternLanguageFT;
188 SvxLanguageBox aWesternLanguageLB;
189 ReadOnlyImage aAsianLanguageFI;
190 FixedText aAsianLanguageFT;
191 SvxLanguageBox aAsianLanguageLB;
192 ReadOnlyImage aComplexLanguageFI;
193 FixedText aComplexLanguageFT;
194 SvxLanguageBox aComplexLanguageLB;
195 CheckBox aCurrentDocCB;
196 FixedLine aEnhancedFL;
197 ReadOnlyImage aAsianSupportFI;
198 CheckBox aAsianSupportCB;
199 ReadOnlyImage aCTLSupportFI;
200 CheckBox aCTLSupportCB;
202 const String sDecimalSeparatorLabel;
204 sal_Bool m_bOldAsian;
205 sal_Bool m_bOldCtl;
206 LanguageConfig_Impl* pLangConfig;
208 rtl::OUString m_sUserLocaleValue;
210 DECL_LINK( SupportHdl, CheckBox* ) ;
211 DECL_LINK( LocaleSettingHdl, SvxLanguageBox* ) ;
213 public:
214 OfaLanguagesTabPage( Window* pParent, const SfxItemSet& rSet );
215 ~OfaLanguagesTabPage();
217 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
219 virtual BOOL FillItemSet( SfxItemSet& rSet );
220 virtual void Reset( const SfxItemSet& rSet );
222 #endif // #ifndef _OFA_OPTGDLG_HXX