Bump version to 4.3-4
[LibreOffice.git] / cui / source / options / optgdlg.hxx
blob61b22282cddd209bbc178b69ec7a4b01f119692a
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 INCLUDED_CUI_SOURCE_OPTIONS_OPTGDLG_HXX
20 #define INCLUDED_CUI_SOURCE_OPTIONS_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>
28 // predeclarations
29 class CanvasSettings;
30 class SvtOptionsDrawinglayer;
31 namespace vcl {
32 class IconThemeInfo;
35 // class OfaMiscTabPage --------------------------------------------------
37 class OfaMiscTabPage : public SfxTabPage
39 using TabPage::DeactivatePage;
40 private:
41 CheckBox* m_pToolTipsCB;
42 CheckBox* m_pExtHelpCB;
44 FixedImage* m_pFileDlgROImage;
45 CheckBox* m_pFileDlgCB;
47 CheckBox* m_pPrintDlgCB;
49 CheckBox* m_pDocStatusCB;
50 CheckBox* m_pSaveAlwaysCB;
52 VclContainer* m_pYearFrame;
53 NumericField* m_pYearValueField;
54 FixedText* m_pToYearFT;
56 OUString m_aStrDateInfo;
58 DECL_LINK( TwoFigureHdl, NumericField* );
59 DECL_LINK( TwoFigureConfigHdl, NumericField* );
60 DECL_LINK(HelpCheckHdl_Impl, void *);
61 #ifdef WNT
62 DECL_LINK( OnFileDlgToggled, void* );
63 #endif
64 protected:
65 virtual int DeactivatePage( SfxItemSet* pSet = NULL ) SAL_OVERRIDE;
67 public:
68 OfaMiscTabPage( Window* pParent, const SfxItemSet& rSet );
69 virtual ~OfaMiscTabPage();
71 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
73 virtual bool FillItemSet( SfxItemSet& rSet ) SAL_OVERRIDE;
74 virtual void Reset( const SfxItemSet& rSet ) SAL_OVERRIDE;
77 // class OfaViewTabPage --------------------------------------------------
78 class SvtTabAppearanceCfg;
80 class OfaViewTabPage : public SfxTabPage
82 private:
83 MetricField* m_pWindowSizeMF;
84 ListBox* m_pIconSizeLB;
85 ListBox* m_pIconStyleLB;
86 CheckBox* m_pSystemFont;
88 CheckBox* m_pFontAntiAliasing;
89 FixedText* m_pAAPointLimitLabel;
90 MetricField* m_pAAPointLimit;
92 ListBox* m_pMenuIconsLB;
94 CheckBox* m_pFontShowCB;
95 CheckBox* m_pFontHistoryCB;
97 CheckBox* m_pUseHardwareAccell;
98 CheckBox* m_pUseAntiAliase;
100 ListBox* m_pMousePosLB;
101 ListBox* m_pMouseMiddleLB;
103 // #i97672#
104 CheckBox* m_pSelectionCB;
105 MetricField* m_pSelectionMF;
107 sal_uInt16 nSizeLB_InitialSelection;
108 sal_uInt16 nStyleLB_InitialSelection;
110 SvtTabAppearanceCfg* pAppearanceCfg;
111 CanvasSettings* pCanvasSettings;
112 SvtOptionsDrawinglayer* mpDrawinglayerOpt;
114 std::vector<vcl::IconThemeInfo> mInstalledIconThemes;
116 #if defined( UNX )
117 DECL_LINK( OnAntialiasingToggled, void* );
118 #endif
119 // #i97672#
120 DECL_LINK( OnSelectionToggled, void* );
122 public:
123 OfaViewTabPage( Window* pParent, const SfxItemSet& rSet );
124 virtual ~OfaViewTabPage();
126 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
128 virtual bool FillItemSet( SfxItemSet& rSet ) SAL_OVERRIDE;
129 virtual void Reset( const SfxItemSet& rSet ) SAL_OVERRIDE;
132 struct LanguageConfig_Impl;
133 class OfaLanguagesTabPage : public SfxTabPage
135 ListBox* m_pUserInterfaceLB;
136 FixedText* m_pLocaleSettingFT;
137 SvxLanguageBox* m_pLocaleSettingLB;
138 CheckBox* m_pDecimalSeparatorCB;
139 FixedText* m_pCurrencyFT;
140 ListBox* m_pCurrencyLB;
141 FixedText* m_pDatePatternsFT;
142 Edit* m_pDatePatternsED;
144 SvxLanguageBox* m_pWesternLanguageLB;
145 FixedText* m_pWesternLanguageFT;
146 SvxLanguageBox* m_pAsianLanguageLB;
147 SvxLanguageBox* m_pComplexLanguageLB;
148 CheckBox* m_pCurrentDocCB;
149 CheckBox* m_pAsianSupportCB;
150 CheckBox* m_pCTLSupportCB;
151 CheckBox* m_pIgnoreLanguageChangeCB;
153 bool m_bOldAsian;
154 bool m_bOldCtl;
155 LanguageConfig_Impl* pLangConfig;
157 OUString m_sUserLocaleValue;
158 OUString m_sSystemDefaultString;
160 bool m_bDatePatternsValid;
162 DECL_LINK( SupportHdl, CheckBox* ) ;
163 DECL_LINK( LocaleSettingHdl, SvxLanguageBox* ) ;
164 DECL_LINK( DatePatternsHdl, Edit* ) ;
166 public:
167 OfaLanguagesTabPage( Window* pParent, const SfxItemSet& rSet );
168 virtual ~OfaLanguagesTabPage();
170 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
172 virtual bool FillItemSet( SfxItemSet& rSet ) SAL_OVERRIDE;
173 virtual void Reset( const SfxItemSet& rSet ) SAL_OVERRIDE;
175 #endif // INCLUDED_CUI_SOURCE_OPTIONS_OPTGDLG_HXX
178 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */