Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / cui / source / options / optgdlg.hxx
blob5c591e7c876f9611029a6d075c4cc4484ca6ea3b
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 <memory>
22 #include <sfx2/tabdlg.hxx>
23 #include <svx/langbox.hxx>
25 class CanvasSettings;
26 class SvtOptionsDrawinglayer;
28 namespace vcl {
29 class IconThemeInfo;
32 namespace svt {
33 class OpenGLCfg;
36 class OfaMiscTabPage : public SfxTabPage
38 private:
39 OUString m_aStrDateInfo;
41 std::unique_ptr<weld::CheckButton> m_xExtHelpCB;
42 std::unique_ptr<weld::CheckButton> m_xPopUpNoHelpCB;
43 std::unique_ptr<weld::CheckButton> m_xShowTipOfTheDay;
44 std::unique_ptr<weld::Widget> m_xFileDlgFrame;
45 std::unique_ptr<weld::Widget> m_xPrintDlgFrame;
46 std::unique_ptr<weld::Widget> m_xFileDlgROImage;
47 std::unique_ptr<weld::CheckButton> m_xFileDlgCB;
48 std::unique_ptr<weld::CheckButton> m_xPrintDlgCB;
49 std::unique_ptr<weld::CheckButton> m_xDocStatusCB;
50 std::unique_ptr<weld::Widget> m_xYearFrame;
51 std::unique_ptr<weld::SpinButton> m_xYearValueField;
52 std::unique_ptr<weld::Label> m_xToYearFT;
53 std::unique_ptr<weld::CheckButton> m_xCollectUsageInfo;
54 std::unique_ptr<weld::CheckButton> m_xCrashReport;
55 std::unique_ptr<weld::Widget> m_xQuickStarterFrame;
56 std::unique_ptr<weld::CheckButton> m_xQuickLaunchCB;
58 DECL_LINK(TwoFigureHdl, weld::SpinButton&, void);
59 protected:
60 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
62 public:
63 OfaMiscTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
64 virtual ~OfaMiscTabPage() override;
66 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
68 virtual bool FillItemSet( SfxItemSet* rSet ) override;
69 virtual void Reset( const SfxItemSet* rSet ) override;
72 class SvtTabAppearanceCfg;
74 class OfaViewTabPage : public SfxTabPage
76 private:
77 sal_Int32 nSizeLB_InitialSelection;
78 sal_Int32 nSidebarSizeLB_InitialSelection;
79 sal_Int32 nNotebookbarSizeLB_InitialSelection;
80 sal_Int32 nStyleLB_InitialSelection;
82 std::unique_ptr<SvtTabAppearanceCfg> pAppearanceCfg;
83 std::unique_ptr<CanvasSettings> pCanvasSettings;
84 std::unique_ptr<SvtOptionsDrawinglayer> mpDrawinglayerOpt;
85 std::unique_ptr<svt::OpenGLCfg> mpOpenGLConfig;
87 std::vector<vcl::IconThemeInfo> mInstalledIconThemes;
89 std::unique_ptr<weld::ComboBox> m_xIconSizeLB;
90 std::unique_ptr<weld::ComboBox> m_xSidebarIconSizeLB;
91 std::unique_ptr<weld::ComboBox> m_xNotebookbarIconSizeLB;
92 std::unique_ptr<weld::ComboBox> m_xIconStyleLB;
94 std::unique_ptr<weld::CheckButton> m_xFontAntiAliasing;
95 std::unique_ptr<weld::Label> m_xAAPointLimitLabel;
96 std::unique_ptr<weld::MetricSpinButton> m_xAAPointLimit;
98 std::unique_ptr<weld::Widget> m_xMenuIconBox;
99 std::unique_ptr<weld::ComboBox> m_xMenuIconsLB;
101 std::unique_ptr<weld::ComboBox> m_xContextMenuShortcutsLB;
103 std::unique_ptr<weld::CheckButton> m_xFontShowCB;
105 std::unique_ptr<weld::CheckButton> m_xUseHardwareAccell;
106 std::unique_ptr<weld::CheckButton> m_xUseAntiAliase;
107 std::unique_ptr<weld::CheckButton> m_xUseOpenGL;
108 std::unique_ptr<weld::CheckButton> m_xForceOpenGL;
110 std::unique_ptr<weld::Label> m_xOpenGLStatusEnabled;
111 std::unique_ptr<weld::Label> m_xOpenGLStatusDisabled;
113 std::unique_ptr<weld::ComboBox> m_xMousePosLB;
114 std::unique_ptr<weld::ComboBox> m_xMouseMiddleLB;
116 #if defined( UNX )
117 DECL_LINK(OnAntialiasingToggled, weld::ToggleButton&, void);
118 #endif
119 DECL_LINK(OnForceOpenGLToggled, weld::ToggleButton&, void);
120 void UpdateOGLStatus();
122 public:
123 OfaViewTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
124 virtual ~OfaViewTabPage() override;
126 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
128 virtual bool FillItemSet( SfxItemSet* rSet ) override;
129 virtual void Reset( const SfxItemSet* rSet ) override;
132 struct LanguageConfig_Impl;
134 class OfaLanguagesTabPage : public SfxTabPage
136 bool m_bOldAsian;
137 bool m_bOldCtl;
138 std::unique_ptr<LanguageConfig_Impl> pLangConfig;
140 OUString m_sUserLocaleValue;
141 OUString m_sSystemDefaultString;
142 OUString m_sDecimalSeparatorLabel;
144 bool m_bDatePatternsValid;
146 std::unique_ptr<weld::ComboBox> m_xUserInterfaceLB;
147 std::unique_ptr<weld::Label> m_xLocaleSettingFT;
148 std::unique_ptr<SvxLanguageBox> m_xLocaleSettingLB;
149 std::unique_ptr<weld::CheckButton> m_xDecimalSeparatorCB;
150 std::unique_ptr<weld::Label> m_xCurrencyFT;
151 std::unique_ptr<weld::ComboBox> m_xCurrencyLB;
152 std::unique_ptr<weld::Label> m_xDatePatternsFT;
153 std::unique_ptr<weld::Entry> m_xDatePatternsED;
155 std::unique_ptr<SvxLanguageBox> m_xWesternLanguageLB;
156 std::unique_ptr<weld::Label> m_xWesternLanguageFT;
157 std::unique_ptr<SvxLanguageBox> m_xAsianLanguageLB;
158 std::unique_ptr<SvxLanguageBox> m_xComplexLanguageLB;
159 std::unique_ptr<weld::CheckButton> m_xCurrentDocCB;
160 std::unique_ptr<weld::CheckButton> m_xAsianSupportCB;
161 std::unique_ptr<weld::CheckButton> m_xCTLSupportCB;
162 std::unique_ptr<weld::CheckButton> m_xIgnoreLanguageChangeCB;
164 DECL_LINK(SupportHdl, weld::ToggleButton&, void);
165 DECL_LINK(LocaleSettingHdl, weld::ComboBox&, void);
166 DECL_LINK(DatePatternsHdl, weld::Entry&, void);
168 public:
169 OfaLanguagesTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
170 virtual ~OfaLanguagesTabPage() override;
172 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
174 virtual bool FillItemSet( SfxItemSet* rSet ) override;
175 virtual void Reset( const SfxItemSet* rSet ) override;
178 #endif // INCLUDED_CUI_SOURCE_OPTIONS_OPTGDLG_HXX
180 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */