update dev300-m58
[ooovba.git] / svx / source / cui / optgdlg.hxx
blob266f11cade6d1b4bb22f5562d5d190dece1c84d1
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 SvtTabAppearanceCfg* pAppearanceCfg;
146 CanvasSettings* pCanvasSettings;
147 SvtOptionsDrawinglayer* mpDrawinglayerOpt;
149 #if defined( UNX )
150 DECL_LINK( OnAntialiasingToggled, void* );
151 #endif
152 // #i97672#
153 DECL_LINK( OnSelectionToggled, void* );
155 public:
156 OfaViewTabPage( Window* pParent, const SfxItemSet& rSet );
157 ~OfaViewTabPage();
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;
180 ListBox aCurrencyLB;
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;
202 sal_Bool m_bOldCtl;
203 LanguageConfig_Impl* pLangConfig;
205 rtl::OUString m_sUserLocaleValue;
207 DECL_LINK( SupportHdl, CheckBox* ) ;
208 DECL_LINK( LocaleSettingHdl, SvxLanguageBox* ) ;
210 public:
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