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