xref: /aoo41x/main/cui/source/options/optgdlg.hxx (revision c4eee24d)
1*c4eee24dSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*c4eee24dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*c4eee24dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*c4eee24dSAndrew Rist  * distributed with this work for additional information
6*c4eee24dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*c4eee24dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*c4eee24dSAndrew Rist  * "License"); you may not use this file except in compliance
9*c4eee24dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*c4eee24dSAndrew Rist  *
11*c4eee24dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*c4eee24dSAndrew Rist  *
13*c4eee24dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*c4eee24dSAndrew Rist  * software distributed under the License is distributed on an
15*c4eee24dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*c4eee24dSAndrew Rist  * KIND, either express or implied.  See the License for the
17*c4eee24dSAndrew Rist  * specific language governing permissions and limitations
18*c4eee24dSAndrew Rist  * under the License.
19*c4eee24dSAndrew Rist  *
20*c4eee24dSAndrew Rist  *************************************************************/
21*c4eee24dSAndrew Rist 
22*c4eee24dSAndrew Rist 
23cdf0e10cSrcweir #ifndef _OFA_OPTGDLG_HXX
24cdf0e10cSrcweir #define _OFA_OPTGDLG_HXX
25cdf0e10cSrcweir #include <vcl/lstbox.hxx>
26cdf0e10cSrcweir #include <vcl/group.hxx>
27cdf0e10cSrcweir #include <vcl/field.hxx>
28cdf0e10cSrcweir #include <vcl/fixed.hxx>
29cdf0e10cSrcweir #include <sfx2/tabdlg.hxx>
30cdf0e10cSrcweir #include <svx/langbox.hxx>
31cdf0e10cSrcweir #include <readonlyimage.hxx>
32cdf0e10cSrcweir #define FOLDERWEBVIEW_DEFAULTFILE   "folder.so"
33cdf0e10cSrcweir 
34cdf0e10cSrcweir // predeclarations
35cdf0e10cSrcweir class CanvasSettings;
36cdf0e10cSrcweir class SvtOptionsDrawinglayer;
37cdf0e10cSrcweir 
38cdf0e10cSrcweir // class OfaMiscTabPage --------------------------------------------------
39cdf0e10cSrcweir 
40cdf0e10cSrcweir class OfaMiscTabPage : public SfxTabPage
41cdf0e10cSrcweir {
42cdf0e10cSrcweir 	using TabPage::DeactivatePage;
43cdf0e10cSrcweir private:
44cdf0e10cSrcweir 	FixedLine           aHelpFL;
45cdf0e10cSrcweir 	CheckBox			aToolTipsCB;
46cdf0e10cSrcweir 	CheckBox            aExtHelpCB;
47cdf0e10cSrcweir 	CheckBox            aHelpAgentCB;
48cdf0e10cSrcweir 	PushButton          aHelpAgentResetBtn;
49cdf0e10cSrcweir     FixedText           aHelpFormatFT;
50cdf0e10cSrcweir     ListBox             aHelpFormatLB;
51cdf0e10cSrcweir 
52cdf0e10cSrcweir     FixedLine           aFileDlgFL;
53cdf0e10cSrcweir     ReadOnlyImage       aFileDlgROImage;
54cdf0e10cSrcweir 	CheckBox            aFileDlgCB;
55cdf0e10cSrcweir 
56cdf0e10cSrcweir     FixedLine           aPrintDlgFL;
57cdf0e10cSrcweir 	CheckBox            aPrintDlgCB;
58cdf0e10cSrcweir 
59cdf0e10cSrcweir     FixedLine           aDocStatusFL;
60cdf0e10cSrcweir     CheckBox            aDocStatusCB;
61cdf0e10cSrcweir 
62cdf0e10cSrcweir 	FixedLine           aTwoFigureFL;
63cdf0e10cSrcweir 	FixedText			aInterpretFT;
64cdf0e10cSrcweir 	NumericField		aYearValueField;
65cdf0e10cSrcweir 	FixedText			aToYearFT;
66cdf0e10cSrcweir 
67cdf0e10cSrcweir     String              aStrDateInfo;
68cdf0e10cSrcweir 
69cdf0e10cSrcweir 	DECL_LINK( TwoFigureHdl, NumericField* );
70cdf0e10cSrcweir 	DECL_LINK( TwoFigureConfigHdl, NumericField* );
71cdf0e10cSrcweir 	DECL_LINK( HelpCheckHdl_Impl, CheckBox* );
72cdf0e10cSrcweir 	DECL_LINK( HelpAgentResetHdl_Impl, PushButton* );
73cdf0e10cSrcweir protected:
74cdf0e10cSrcweir 	virtual int         DeactivatePage( SfxItemSet* pSet = NULL );
75cdf0e10cSrcweir 
76cdf0e10cSrcweir public:
77cdf0e10cSrcweir 	OfaMiscTabPage( Window* pParent, const SfxItemSet& rSet );
78cdf0e10cSrcweir 	~OfaMiscTabPage();
79cdf0e10cSrcweir 
80cdf0e10cSrcweir 	static SfxTabPage*	Create( Window* pParent, const SfxItemSet& rAttrSet );
81cdf0e10cSrcweir 
82cdf0e10cSrcweir 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
83cdf0e10cSrcweir 	virtual	void 		Reset( const SfxItemSet& rSet );
84cdf0e10cSrcweir };
85cdf0e10cSrcweir 
86cdf0e10cSrcweir // class OfaViewTabPage --------------------------------------------------
87cdf0e10cSrcweir class SvtTabAppearanceCfg;
88cdf0e10cSrcweir 
89cdf0e10cSrcweir class OfaViewTabPage : public SfxTabPage
90cdf0e10cSrcweir {
91cdf0e10cSrcweir private:
92cdf0e10cSrcweir     FixedLine       aUserInterfaceFL;
93cdf0e10cSrcweir     FixedText       aWindowSizeFT;
94cdf0e10cSrcweir     MetricField     aWindowSizeMF;
95cdf0e10cSrcweir     FixedText       aIconSizeStyleFT;
96cdf0e10cSrcweir     ListBox         aIconSizeLB;
97cdf0e10cSrcweir     ListBox         aIconStyleLB;
98cdf0e10cSrcweir 	CheckBox   		m_aSystemFont;
99cdf0e10cSrcweir 
100cdf0e10cSrcweir #if defined( UNX )
101cdf0e10cSrcweir 	CheckBox		aFontAntiAliasing;
102cdf0e10cSrcweir 	FixedText		aAAPointLimitLabel;
103cdf0e10cSrcweir 	NumericField	aAAPointLimit;
104cdf0e10cSrcweir 	FixedText		aAAPointLimitUnits;
105cdf0e10cSrcweir #endif
106cdf0e10cSrcweir 
107cdf0e10cSrcweir     FixedLine       aMenuFL;
108cdf0e10cSrcweir     FixedText       aMenuIconsFT;
109cdf0e10cSrcweir     ListBox         aMenuIconsLB;
110cdf0e10cSrcweir 
111cdf0e10cSrcweir     FixedLine       aFontListsFL;
112cdf0e10cSrcweir 	CheckBox		aFontShowCB;
113cdf0e10cSrcweir     CheckBox        aFontHistoryCB;
114cdf0e10cSrcweir 
115cdf0e10cSrcweir     FixedLine       aRenderingFL;
116cdf0e10cSrcweir     CheckBox        aUseHardwareAccell;
117cdf0e10cSrcweir 	CheckBox        aUseAntiAliase;
118cdf0e10cSrcweir 
119cdf0e10cSrcweir 	FixedLine		aMouseFL;
120cdf0e10cSrcweir 	FixedText		aMousePosFT;
121cdf0e10cSrcweir 	ListBox			aMousePosLB;
122cdf0e10cSrcweir 	FixedText		aMouseMiddleFT;
123cdf0e10cSrcweir 	ListBox			aMouseMiddleLB;
124cdf0e10cSrcweir 
125cdf0e10cSrcweir 	// #i97672#
126cdf0e10cSrcweir     FixedLine       maSelectionFL;
127cdf0e10cSrcweir     CheckBox        maSelectionCB;
128cdf0e10cSrcweir     MetricField     maSelectionMF;
129cdf0e10cSrcweir 
130cdf0e10cSrcweir 	sal_uInt16			nSizeLB_InitialSelection;
131cdf0e10cSrcweir 	sal_uInt16			nStyleLB_InitialSelection;
132cdf0e10cSrcweir 	sal_Bool			bSfxSymbolsAuto;
133cdf0e10cSrcweir 
134cdf0e10cSrcweir     // item ID for the given icon theme
135cdf0e10cSrcweir     // might be zero when the theme is not installed and the item is removed
136cdf0e10cSrcweir     sal_uLong			aIconStyleItemId[STYLE_SYMBOLS_THEMES_MAX];
137cdf0e10cSrcweir     SvtTabAppearanceCfg*	pAppearanceCfg;
138cdf0e10cSrcweir     CanvasSettings*			pCanvasSettings;
139cdf0e10cSrcweir     SvtOptionsDrawinglayer*	mpDrawinglayerOpt;
140cdf0e10cSrcweir 
141cdf0e10cSrcweir #if defined( UNX )
142cdf0e10cSrcweir 	DECL_LINK( OnAntialiasingToggled, void* );
143cdf0e10cSrcweir #endif
144cdf0e10cSrcweir 	// #i97672#
145cdf0e10cSrcweir 	DECL_LINK( OnSelectionToggled, void* );
146cdf0e10cSrcweir 
147cdf0e10cSrcweir public:
148cdf0e10cSrcweir 	OfaViewTabPage( Window* pParent, const SfxItemSet& rSet );
149cdf0e10cSrcweir 	~OfaViewTabPage();
150cdf0e10cSrcweir 
151cdf0e10cSrcweir 	static SfxTabPage*	Create( Window* pParent, const SfxItemSet& rAttrSet );
152cdf0e10cSrcweir 
153cdf0e10cSrcweir 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
154cdf0e10cSrcweir 	virtual	void 		Reset( const SfxItemSet& rSet );
155cdf0e10cSrcweir };
156cdf0e10cSrcweir /* -----------------------------23.11.00 13:04--------------------------------
157cdf0e10cSrcweir 
158cdf0e10cSrcweir  ---------------------------------------------------------------------------*/
159cdf0e10cSrcweir struct LanguageConfig_Impl;
160cdf0e10cSrcweir class OfaLanguagesTabPage : public SfxTabPage
161cdf0e10cSrcweir {
162cdf0e10cSrcweir     FixedLine       aUILanguageGB;
163cdf0e10cSrcweir     ReadOnlyImage   aLocaleSettingFI;
164cdf0e10cSrcweir     FixedText       aUserInterfaceFT;
165cdf0e10cSrcweir     ListBox         aUserInterfaceLB;
166cdf0e10cSrcweir     FixedText       aLocaleSettingFT;
167cdf0e10cSrcweir     SvxLanguageBox  aLocaleSettingLB;
168cdf0e10cSrcweir     ReadOnlyImage   aCurrencyFI;
169cdf0e10cSrcweir     FixedText       aDecimalSeparatorFT;
170cdf0e10cSrcweir     CheckBox        aDecimalSeparatorCB;
171cdf0e10cSrcweir     FixedText       aCurrencyFT;
172cdf0e10cSrcweir     ListBox         aCurrencyLB;
173cdf0e10cSrcweir 
174cdf0e10cSrcweir     FixedLine       aLinguLanguageGB;
175cdf0e10cSrcweir     ReadOnlyImage   aWesternLanguageFI;
176cdf0e10cSrcweir 	FixedText		aWesternLanguageFT;
177cdf0e10cSrcweir 	SvxLanguageBox	aWesternLanguageLB;
178cdf0e10cSrcweir     ReadOnlyImage   aAsianLanguageFI;
179cdf0e10cSrcweir 	FixedText		aAsianLanguageFT;
180cdf0e10cSrcweir 	SvxLanguageBox	aAsianLanguageLB;
181cdf0e10cSrcweir     ReadOnlyImage   aComplexLanguageFI;
182cdf0e10cSrcweir 	FixedText		aComplexLanguageFT;
183cdf0e10cSrcweir 	SvxLanguageBox	aComplexLanguageLB;
184cdf0e10cSrcweir     CheckBox        aCurrentDocCB;
185cdf0e10cSrcweir     FixedLine       aEnhancedFL;
186cdf0e10cSrcweir     ReadOnlyImage   aAsianSupportFI;
187cdf0e10cSrcweir     CheckBox        aAsianSupportCB;
188cdf0e10cSrcweir     ReadOnlyImage   aCTLSupportFI;
189cdf0e10cSrcweir     CheckBox        aCTLSupportCB;
190cdf0e10cSrcweir 
191cdf0e10cSrcweir     const String    sDecimalSeparatorLabel;
192cdf0e10cSrcweir 
193cdf0e10cSrcweir     sal_Bool        m_bOldAsian;
194cdf0e10cSrcweir 	sal_Bool		m_bOldCtl;
195cdf0e10cSrcweir     LanguageConfig_Impl*    pLangConfig;
196cdf0e10cSrcweir 
197cdf0e10cSrcweir     rtl::OUString m_sUserLocaleValue;
198cdf0e10cSrcweir 
199cdf0e10cSrcweir     DECL_LINK(  SupportHdl, CheckBox* ) ;
200cdf0e10cSrcweir     DECL_LINK(  LocaleSettingHdl, SvxLanguageBox* ) ;
201cdf0e10cSrcweir 
202cdf0e10cSrcweir public:
203cdf0e10cSrcweir 	OfaLanguagesTabPage( Window* pParent, const SfxItemSet& rSet );
204cdf0e10cSrcweir 	~OfaLanguagesTabPage();
205cdf0e10cSrcweir 
206cdf0e10cSrcweir 	static SfxTabPage*	Create( Window* pParent, const SfxItemSet& rAttrSet );
207cdf0e10cSrcweir 
208cdf0e10cSrcweir 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
209cdf0e10cSrcweir 	virtual	void 		Reset( const SfxItemSet& rSet );
210cdf0e10cSrcweir };
211cdf0e10cSrcweir #endif // #ifndef _OFA_OPTGDLG_HXX
212cdf0e10cSrcweir 
213cdf0e10cSrcweir 
214