Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / cui / source / options / optgdlg.hxx
blob718344ba45b34a1030364eb0e6932b1f1771d635
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _OFA_OPTGDLG_HXX
20 #define _OFA_OPTGDLG_HXX
21 #include <vcl/lstbox.hxx>
22 #include <vcl/group.hxx>
23 #include <vcl/field.hxx>
24 #include <vcl/fixed.hxx>
25 #include <sfx2/tabdlg.hxx>
26 #include <svx/langbox.hxx>
27 #include <readonlyimage.hxx>
29 // predeclarations
30 class CanvasSettings;
31 class SvtOptionsDrawinglayer;
33 // class OfaMiscTabPage --------------------------------------------------
35 class OfaMiscTabPage : public SfxTabPage
37 using TabPage::DeactivatePage;
38 private:
39 FixedLine aHelpFL;
40 CheckBox aToolTipsCB;
41 CheckBox aExtHelpCB;
42 CheckBox aHelpAgentCB;
43 PushButton aHelpAgentResetBtn;
45 FixedLine aFileDlgFL;
46 ReadOnlyImage aFileDlgROImage;
47 CheckBox aFileDlgCB;
49 FixedLine aPrintDlgFL;
50 CheckBox aPrintDlgCB;
52 FixedLine aDocStatusFL;
53 CheckBox aDocStatusCB;
54 CheckBox aSaveAlwaysCB;
56 FixedLine aTwoFigureFL;
57 FixedText aInterpretFT;
58 NumericField aYearValueField;
59 FixedText aToYearFT;
61 String aStrDateInfo;
63 DECL_LINK( TwoFigureHdl, NumericField* );
64 DECL_LINK( TwoFigureConfigHdl, NumericField* );
65 DECL_LINK(HelpCheckHdl_Impl, void *);
66 DECL_LINK(HelpAgentResetHdl_Impl, void *);
67 #ifdef WNT
68 DECL_LINK( OnFileDlgToggled, void* );
69 #endif
70 protected:
71 virtual int DeactivatePage( SfxItemSet* pSet = NULL );
73 public:
74 OfaMiscTabPage( Window* pParent, const SfxItemSet& rSet );
75 ~OfaMiscTabPage();
77 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
79 virtual sal_Bool FillItemSet( SfxItemSet& rSet );
80 virtual void Reset( const SfxItemSet& rSet );
83 // class OfaViewTabPage --------------------------------------------------
84 class SvtTabAppearanceCfg;
86 class OfaViewTabPage : public SfxTabPage
88 private:
89 FixedLine aUserInterfaceFL;
90 FixedText aWindowSizeFT;
91 MetricField aWindowSizeMF;
92 FixedText aIconSizeStyleFT;
93 ListBox aIconSizeLB;
94 ListBox aIconStyleLB;
95 CheckBox m_aSystemFont;
97 #if defined( UNX )
98 CheckBox aFontAntiAliasing;
99 FixedText aAAPointLimitLabel;
100 NumericField aAAPointLimit;
101 FixedText aAAPointLimitUnits;
102 #endif
104 FixedLine aMenuFL;
105 FixedText aMenuIconsFT;
106 ListBox aMenuIconsLB;
108 FixedLine aFontListsFL;
109 CheckBox aFontShowCB;
110 CheckBox aFontHistoryCB;
112 FixedLine aRenderingFL;
113 CheckBox aUseHardwareAccell;
114 CheckBox aUseAntiAliase;
116 FixedLine aMouseFL;
117 FixedText aMousePosFT;
118 ListBox aMousePosLB;
119 FixedText aMouseMiddleFT;
120 ListBox aMouseMiddleLB;
122 // #i97672#
123 FixedLine maSelectionFL;
124 CheckBox maSelectionCB;
125 MetricField maSelectionMF;
127 sal_uInt16 nSizeLB_InitialSelection;
128 sal_uInt16 nStyleLB_InitialSelection;
130 // item ID for the given icon theme
131 // might be zero when the theme is not installed and the item is removed
132 sal_uLong aIconStyleItemId[STYLE_SYMBOLS_THEMES_MAX];
133 SvtTabAppearanceCfg* pAppearanceCfg;
134 CanvasSettings* pCanvasSettings;
135 SvtOptionsDrawinglayer* mpDrawinglayerOpt;
137 #if defined( UNX )
138 DECL_LINK( OnAntialiasingToggled, void* );
139 #endif
140 // #i97672#
141 DECL_LINK( OnSelectionToggled, void* );
143 public:
144 OfaViewTabPage( Window* pParent, const SfxItemSet& rSet );
145 ~OfaViewTabPage();
147 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
149 virtual sal_Bool FillItemSet( SfxItemSet& rSet );
150 virtual void Reset( const SfxItemSet& rSet );
153 struct LanguageConfig_Impl;
154 class OfaLanguagesTabPage : public SfxTabPage
156 FixedLine aUILanguageGB;
157 ReadOnlyImage aLocaleSettingFI;
158 FixedText aUserInterfaceFT;
159 ListBox aUserInterfaceLB;
160 FixedText aLocaleSettingFT;
161 SvxLanguageBox aLocaleSettingLB;
162 ReadOnlyImage aCurrencyFI;
163 FixedText aDecimalSeparatorFT;
164 CheckBox aDecimalSeparatorCB;
165 FixedText aCurrencyFT;
166 ListBox aCurrencyLB;
167 ReadOnlyImage aDatePatternsFI;
168 FixedText aDatePatternsFT;
169 Edit aDatePatternsED;
171 FixedLine aLinguLanguageGB;
172 ReadOnlyImage aWesternLanguageFI;
173 FixedText aWesternLanguageFT;
174 SvxLanguageBox aWesternLanguageLB;
175 ReadOnlyImage aAsianLanguageFI;
176 FixedText aAsianLanguageFT;
177 SvxLanguageBox aAsianLanguageLB;
178 ReadOnlyImage aComplexLanguageFI;
179 FixedText aComplexLanguageFT;
180 SvxLanguageBox aComplexLanguageLB;
181 CheckBox aCurrentDocCB;
182 FixedLine aEnhancedFL;
183 ReadOnlyImage aAsianSupportFI;
184 CheckBox aAsianSupportCB;
185 ReadOnlyImage aCTLSupportFI;
186 CheckBox aCTLSupportCB;
187 CheckBox aIgnoreLanguageChangeCB;
189 const String sDecimalSeparatorLabel;
191 sal_Bool m_bOldAsian;
192 sal_Bool m_bOldCtl;
193 LanguageConfig_Impl* pLangConfig;
195 rtl::OUString m_sUserLocaleValue;
197 DECL_LINK( SupportHdl, CheckBox* ) ;
198 DECL_LINK( LocaleSettingHdl, SvxLanguageBox* ) ;
199 DECL_LINK( DatePatternsHdl, Edit* ) ;
201 public:
202 OfaLanguagesTabPage( Window* pParent, const SfxItemSet& rSet );
203 ~OfaLanguagesTabPage();
205 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
207 virtual sal_Bool FillItemSet( SfxItemSet& rSet );
208 virtual void Reset( const SfxItemSet& rSet );
210 #endif // #ifndef _OFA_OPTGDLG_HXX
213 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */