1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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>
31 class SvtOptionsDrawinglayer
;
33 // class OfaMiscTabPage --------------------------------------------------
35 class OfaMiscTabPage
: public SfxTabPage
37 using TabPage::DeactivatePage
;
42 CheckBox aHelpAgentCB
;
43 PushButton aHelpAgentResetBtn
;
46 ReadOnlyImage aFileDlgROImage
;
49 FixedLine aPrintDlgFL
;
52 FixedLine aDocStatusFL
;
53 CheckBox aDocStatusCB
;
54 CheckBox aSaveAlwaysCB
;
56 FixedLine aTwoFigureFL
;
57 FixedText aInterpretFT
;
58 NumericField aYearValueField
;
63 DECL_LINK( TwoFigureHdl
, NumericField
* );
64 DECL_LINK( TwoFigureConfigHdl
, NumericField
* );
65 DECL_LINK(HelpCheckHdl_Impl
, void *);
66 DECL_LINK(HelpAgentResetHdl_Impl
, void *);
68 DECL_LINK( OnFileDlgToggled
, void* );
71 virtual int DeactivatePage( SfxItemSet
* pSet
= NULL
);
74 OfaMiscTabPage( Window
* pParent
, const SfxItemSet
& rSet
);
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
89 FixedLine aUserInterfaceFL
;
90 FixedText aWindowSizeFT
;
91 MetricField aWindowSizeMF
;
92 FixedText aIconSizeStyleFT
;
95 CheckBox m_aSystemFont
;
98 CheckBox aFontAntiAliasing
;
99 FixedText aAAPointLimitLabel
;
100 NumericField aAAPointLimit
;
101 FixedText aAAPointLimitUnits
;
105 FixedText aMenuIconsFT
;
106 ListBox aMenuIconsLB
;
108 FixedLine aFontListsFL
;
109 CheckBox aFontShowCB
;
110 CheckBox aFontHistoryCB
;
112 FixedLine aRenderingFL
;
113 CheckBox aUseHardwareAccell
;
114 CheckBox aUseAntiAliase
;
117 FixedText aMousePosFT
;
119 FixedText aMouseMiddleFT
;
120 ListBox aMouseMiddleLB
;
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
;
138 DECL_LINK( OnAntialiasingToggled
, void* );
141 DECL_LINK( OnSelectionToggled
, void* );
144 OfaViewTabPage( Window
* pParent
, const SfxItemSet
& rSet
);
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
;
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
;
193 LanguageConfig_Impl
* pLangConfig
;
195 rtl::OUString m_sUserLocaleValue
;
197 DECL_LINK( SupportHdl
, CheckBox
* ) ;
198 DECL_LINK( LocaleSettingHdl
, SvxLanguageBox
* ) ;
199 DECL_LINK( DatePatternsHdl
, Edit
* ) ;
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: */