xref: /aoo41x/main/cui/source/options/optgdlg.hxx (revision cdf0e10c)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir #ifndef _OFA_OPTGDLG_HXX
28*cdf0e10cSrcweir #define _OFA_OPTGDLG_HXX
29*cdf0e10cSrcweir #include <vcl/lstbox.hxx>
30*cdf0e10cSrcweir #include <vcl/group.hxx>
31*cdf0e10cSrcweir #include <vcl/field.hxx>
32*cdf0e10cSrcweir #include <vcl/fixed.hxx>
33*cdf0e10cSrcweir #include <sfx2/tabdlg.hxx>
34*cdf0e10cSrcweir #include <svx/langbox.hxx>
35*cdf0e10cSrcweir #include <readonlyimage.hxx>
36*cdf0e10cSrcweir #define FOLDERWEBVIEW_DEFAULTFILE   "folder.so"
37*cdf0e10cSrcweir 
38*cdf0e10cSrcweir // predeclarations
39*cdf0e10cSrcweir class CanvasSettings;
40*cdf0e10cSrcweir class SvtOptionsDrawinglayer;
41*cdf0e10cSrcweir 
42*cdf0e10cSrcweir // class OfaMiscTabPage --------------------------------------------------
43*cdf0e10cSrcweir 
44*cdf0e10cSrcweir class OfaMiscTabPage : public SfxTabPage
45*cdf0e10cSrcweir {
46*cdf0e10cSrcweir 	using TabPage::DeactivatePage;
47*cdf0e10cSrcweir private:
48*cdf0e10cSrcweir 	FixedLine           aHelpFL;
49*cdf0e10cSrcweir 	CheckBox			aToolTipsCB;
50*cdf0e10cSrcweir 	CheckBox            aExtHelpCB;
51*cdf0e10cSrcweir 	CheckBox            aHelpAgentCB;
52*cdf0e10cSrcweir 	PushButton          aHelpAgentResetBtn;
53*cdf0e10cSrcweir     FixedText           aHelpFormatFT;
54*cdf0e10cSrcweir     ListBox             aHelpFormatLB;
55*cdf0e10cSrcweir 
56*cdf0e10cSrcweir     FixedLine           aFileDlgFL;
57*cdf0e10cSrcweir     ReadOnlyImage       aFileDlgROImage;
58*cdf0e10cSrcweir 	CheckBox            aFileDlgCB;
59*cdf0e10cSrcweir 
60*cdf0e10cSrcweir     FixedLine           aPrintDlgFL;
61*cdf0e10cSrcweir 	CheckBox            aPrintDlgCB;
62*cdf0e10cSrcweir 
63*cdf0e10cSrcweir     FixedLine           aDocStatusFL;
64*cdf0e10cSrcweir     CheckBox            aDocStatusCB;
65*cdf0e10cSrcweir 
66*cdf0e10cSrcweir 	FixedLine           aTwoFigureFL;
67*cdf0e10cSrcweir 	FixedText			aInterpretFT;
68*cdf0e10cSrcweir 	NumericField		aYearValueField;
69*cdf0e10cSrcweir 	FixedText			aToYearFT;
70*cdf0e10cSrcweir 
71*cdf0e10cSrcweir     String              aStrDateInfo;
72*cdf0e10cSrcweir 
73*cdf0e10cSrcweir 	DECL_LINK( TwoFigureHdl, NumericField* );
74*cdf0e10cSrcweir 	DECL_LINK( TwoFigureConfigHdl, NumericField* );
75*cdf0e10cSrcweir 	DECL_LINK( HelpCheckHdl_Impl, CheckBox* );
76*cdf0e10cSrcweir 	DECL_LINK( HelpAgentResetHdl_Impl, PushButton* );
77*cdf0e10cSrcweir protected:
78*cdf0e10cSrcweir 	virtual int         DeactivatePage( SfxItemSet* pSet = NULL );
79*cdf0e10cSrcweir 
80*cdf0e10cSrcweir public:
81*cdf0e10cSrcweir 	OfaMiscTabPage( Window* pParent, const SfxItemSet& rSet );
82*cdf0e10cSrcweir 	~OfaMiscTabPage();
83*cdf0e10cSrcweir 
84*cdf0e10cSrcweir 	static SfxTabPage*	Create( Window* pParent, const SfxItemSet& rAttrSet );
85*cdf0e10cSrcweir 
86*cdf0e10cSrcweir 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
87*cdf0e10cSrcweir 	virtual	void 		Reset( const SfxItemSet& rSet );
88*cdf0e10cSrcweir };
89*cdf0e10cSrcweir 
90*cdf0e10cSrcweir // class OfaViewTabPage --------------------------------------------------
91*cdf0e10cSrcweir class SvtTabAppearanceCfg;
92*cdf0e10cSrcweir 
93*cdf0e10cSrcweir class OfaViewTabPage : public SfxTabPage
94*cdf0e10cSrcweir {
95*cdf0e10cSrcweir private:
96*cdf0e10cSrcweir     FixedLine       aUserInterfaceFL;
97*cdf0e10cSrcweir     FixedText       aWindowSizeFT;
98*cdf0e10cSrcweir     MetricField     aWindowSizeMF;
99*cdf0e10cSrcweir     FixedText       aIconSizeStyleFT;
100*cdf0e10cSrcweir     ListBox         aIconSizeLB;
101*cdf0e10cSrcweir     ListBox         aIconStyleLB;
102*cdf0e10cSrcweir 	CheckBox   		m_aSystemFont;
103*cdf0e10cSrcweir 
104*cdf0e10cSrcweir #if defined( UNX )
105*cdf0e10cSrcweir 	CheckBox		aFontAntiAliasing;
106*cdf0e10cSrcweir 	FixedText		aAAPointLimitLabel;
107*cdf0e10cSrcweir 	NumericField	aAAPointLimit;
108*cdf0e10cSrcweir 	FixedText		aAAPointLimitUnits;
109*cdf0e10cSrcweir #endif
110*cdf0e10cSrcweir 
111*cdf0e10cSrcweir     FixedLine       aMenuFL;
112*cdf0e10cSrcweir     FixedText       aMenuIconsFT;
113*cdf0e10cSrcweir     ListBox         aMenuIconsLB;
114*cdf0e10cSrcweir 
115*cdf0e10cSrcweir     FixedLine       aFontListsFL;
116*cdf0e10cSrcweir 	CheckBox		aFontShowCB;
117*cdf0e10cSrcweir     CheckBox        aFontHistoryCB;
118*cdf0e10cSrcweir 
119*cdf0e10cSrcweir     FixedLine       aRenderingFL;
120*cdf0e10cSrcweir     CheckBox        aUseHardwareAccell;
121*cdf0e10cSrcweir 	CheckBox        aUseAntiAliase;
122*cdf0e10cSrcweir 
123*cdf0e10cSrcweir 	FixedLine		aMouseFL;
124*cdf0e10cSrcweir 	FixedText		aMousePosFT;
125*cdf0e10cSrcweir 	ListBox			aMousePosLB;
126*cdf0e10cSrcweir 	FixedText		aMouseMiddleFT;
127*cdf0e10cSrcweir 	ListBox			aMouseMiddleLB;
128*cdf0e10cSrcweir 
129*cdf0e10cSrcweir 	// #i97672#
130*cdf0e10cSrcweir     FixedLine       maSelectionFL;
131*cdf0e10cSrcweir     CheckBox        maSelectionCB;
132*cdf0e10cSrcweir     MetricField     maSelectionMF;
133*cdf0e10cSrcweir 
134*cdf0e10cSrcweir 	sal_uInt16			nSizeLB_InitialSelection;
135*cdf0e10cSrcweir 	sal_uInt16			nStyleLB_InitialSelection;
136*cdf0e10cSrcweir 	sal_Bool			bSfxSymbolsAuto;
137*cdf0e10cSrcweir 
138*cdf0e10cSrcweir     // item ID for the given icon theme
139*cdf0e10cSrcweir     // might be zero when the theme is not installed and the item is removed
140*cdf0e10cSrcweir     sal_uLong			aIconStyleItemId[STYLE_SYMBOLS_THEMES_MAX];
141*cdf0e10cSrcweir     SvtTabAppearanceCfg*	pAppearanceCfg;
142*cdf0e10cSrcweir     CanvasSettings*			pCanvasSettings;
143*cdf0e10cSrcweir     SvtOptionsDrawinglayer*	mpDrawinglayerOpt;
144*cdf0e10cSrcweir 
145*cdf0e10cSrcweir #if defined( UNX )
146*cdf0e10cSrcweir 	DECL_LINK( OnAntialiasingToggled, void* );
147*cdf0e10cSrcweir #endif
148*cdf0e10cSrcweir 	// #i97672#
149*cdf0e10cSrcweir 	DECL_LINK( OnSelectionToggled, void* );
150*cdf0e10cSrcweir 
151*cdf0e10cSrcweir public:
152*cdf0e10cSrcweir 	OfaViewTabPage( Window* pParent, const SfxItemSet& rSet );
153*cdf0e10cSrcweir 	~OfaViewTabPage();
154*cdf0e10cSrcweir 
155*cdf0e10cSrcweir 	static SfxTabPage*	Create( Window* pParent, const SfxItemSet& rAttrSet );
156*cdf0e10cSrcweir 
157*cdf0e10cSrcweir 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
158*cdf0e10cSrcweir 	virtual	void 		Reset( const SfxItemSet& rSet );
159*cdf0e10cSrcweir };
160*cdf0e10cSrcweir /* -----------------------------23.11.00 13:04--------------------------------
161*cdf0e10cSrcweir 
162*cdf0e10cSrcweir  ---------------------------------------------------------------------------*/
163*cdf0e10cSrcweir struct LanguageConfig_Impl;
164*cdf0e10cSrcweir class OfaLanguagesTabPage : public SfxTabPage
165*cdf0e10cSrcweir {
166*cdf0e10cSrcweir     FixedLine       aUILanguageGB;
167*cdf0e10cSrcweir     ReadOnlyImage   aLocaleSettingFI;
168*cdf0e10cSrcweir     FixedText       aUserInterfaceFT;
169*cdf0e10cSrcweir     ListBox         aUserInterfaceLB;
170*cdf0e10cSrcweir     FixedText       aLocaleSettingFT;
171*cdf0e10cSrcweir     SvxLanguageBox  aLocaleSettingLB;
172*cdf0e10cSrcweir     ReadOnlyImage   aCurrencyFI;
173*cdf0e10cSrcweir     FixedText       aDecimalSeparatorFT;
174*cdf0e10cSrcweir     CheckBox        aDecimalSeparatorCB;
175*cdf0e10cSrcweir     FixedText       aCurrencyFT;
176*cdf0e10cSrcweir     ListBox         aCurrencyLB;
177*cdf0e10cSrcweir 
178*cdf0e10cSrcweir     FixedLine       aLinguLanguageGB;
179*cdf0e10cSrcweir     ReadOnlyImage   aWesternLanguageFI;
180*cdf0e10cSrcweir 	FixedText		aWesternLanguageFT;
181*cdf0e10cSrcweir 	SvxLanguageBox	aWesternLanguageLB;
182*cdf0e10cSrcweir     ReadOnlyImage   aAsianLanguageFI;
183*cdf0e10cSrcweir 	FixedText		aAsianLanguageFT;
184*cdf0e10cSrcweir 	SvxLanguageBox	aAsianLanguageLB;
185*cdf0e10cSrcweir     ReadOnlyImage   aComplexLanguageFI;
186*cdf0e10cSrcweir 	FixedText		aComplexLanguageFT;
187*cdf0e10cSrcweir 	SvxLanguageBox	aComplexLanguageLB;
188*cdf0e10cSrcweir     CheckBox        aCurrentDocCB;
189*cdf0e10cSrcweir     FixedLine       aEnhancedFL;
190*cdf0e10cSrcweir     ReadOnlyImage   aAsianSupportFI;
191*cdf0e10cSrcweir     CheckBox        aAsianSupportCB;
192*cdf0e10cSrcweir     ReadOnlyImage   aCTLSupportFI;
193*cdf0e10cSrcweir     CheckBox        aCTLSupportCB;
194*cdf0e10cSrcweir 
195*cdf0e10cSrcweir     const String    sDecimalSeparatorLabel;
196*cdf0e10cSrcweir 
197*cdf0e10cSrcweir     sal_Bool        m_bOldAsian;
198*cdf0e10cSrcweir 	sal_Bool		m_bOldCtl;
199*cdf0e10cSrcweir     LanguageConfig_Impl*    pLangConfig;
200*cdf0e10cSrcweir 
201*cdf0e10cSrcweir     rtl::OUString m_sUserLocaleValue;
202*cdf0e10cSrcweir 
203*cdf0e10cSrcweir     DECL_LINK(  SupportHdl, CheckBox* ) ;
204*cdf0e10cSrcweir     DECL_LINK(  LocaleSettingHdl, SvxLanguageBox* ) ;
205*cdf0e10cSrcweir 
206*cdf0e10cSrcweir public:
207*cdf0e10cSrcweir 	OfaLanguagesTabPage( Window* pParent, const SfxItemSet& rSet );
208*cdf0e10cSrcweir 	~OfaLanguagesTabPage();
209*cdf0e10cSrcweir 
210*cdf0e10cSrcweir 	static SfxTabPage*	Create( Window* pParent, const SfxItemSet& rAttrSet );
211*cdf0e10cSrcweir 
212*cdf0e10cSrcweir 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
213*cdf0e10cSrcweir 	virtual	void 		Reset( const SfxItemSet& rSet );
214*cdf0e10cSrcweir };
215*cdf0e10cSrcweir #endif // #ifndef _OFA_OPTGDLG_HXX
216*cdf0e10cSrcweir 
217*cdf0e10cSrcweir 
218