LibreOffice Module cui (master) 1
optgdlg.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20#include <memory>
21#include <config_features.h>
22#include <sfx2/tabdlg.hxx>
23#include <svx/langbox.hxx>
24
25class CanvasSettings;
26
27namespace vcl {
28 class IconThemeInfo;
29}
30
32{
33private:
35
36 std::unique_ptr<weld::CheckButton> m_xExtHelpCB;
37 std::unique_ptr<weld::CheckButton> m_xPopUpNoHelpCB;
38 std::unique_ptr<weld::CheckButton> m_xShowTipOfTheDay;
39 std::unique_ptr<weld::Widget> m_xFileDlgFrame;
40 std::unique_ptr<weld::Widget> m_xFileDlgROImage;
41 std::unique_ptr<weld::CheckButton> m_xFileDlgCB;
42 std::unique_ptr<weld::CheckButton> m_xDocStatusCB;
43 std::unique_ptr<weld::Widget> m_xYearFrame;
44 std::unique_ptr<weld::SpinButton> m_xYearValueField;
45 std::unique_ptr<weld::Label> m_xToYearFT;
46#if HAVE_FEATURE_BREAKPAD
47 std::unique_ptr<weld::Widget> m_xPrivacyFrame;
48 std::unique_ptr<weld::CheckButton> m_xCrashReport;
49#endif
50#if defined(_WIN32)
51 std::unique_ptr<weld::Widget> m_xQuickStarterFrame;
52 std::unique_ptr<weld::CheckButton> m_xQuickLaunchCB;
53 std::unique_ptr<weld::Widget> m_xFileAssocFrame;
54 std::unique_ptr<weld::Button> m_xFileAssocBtn;
55 std::unique_ptr<weld::CheckButton> m_xPerformFileExtCheck;
56#endif
57
58 DECL_LINK(TwoFigureHdl, weld::SpinButton&, void);
59#if defined(_WIN32)
61#endif
62protected:
63 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
64
65public:
66 OfaMiscTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
67 virtual ~OfaMiscTabPage() override;
68
69 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
70
71 virtual bool FillItemSet( SfxItemSet* rSet ) override;
72 virtual void Reset( const SfxItemSet* rSet ) override;
73};
74
76{
77private:
82
83 std::unique_ptr<CanvasSettings> pCanvasSettings;
84
85 std::vector<vcl::IconThemeInfo> mInstalledIconThemes;
86
87 std::unique_ptr<weld::ComboBox> m_xIconSizeLB;
88 std::unique_ptr<weld::ComboBox> m_xSidebarIconSizeLB;
89 std::unique_ptr<weld::ComboBox> m_xNotebookbarIconSizeLB;
90 std::unique_ptr<weld::Widget> m_xDarkModeFrame;
91 std::unique_ptr<weld::ComboBox> m_xAppearanceStyleLB;
92 std::unique_ptr<weld::ComboBox> m_xIconStyleLB;
93
94 std::unique_ptr<weld::CheckButton> m_xFontAntiAliasing;
95 std::unique_ptr<weld::Label> m_xAAPointLimitLabel;
96 std::unique_ptr<weld::MetricSpinButton> m_xAAPointLimit;
97
98 std::unique_ptr<weld::CheckButton> m_xFontShowCB;
99
100 std::unique_ptr<weld::CheckButton> m_xUseHardwareAccell;
101 std::unique_ptr<weld::CheckButton> m_xUseAntiAliase;
102 std::unique_ptr<weld::CheckButton> m_xUseSkia;
103 std::unique_ptr<weld::CheckButton> m_xForceSkiaRaster;
104
105 std::unique_ptr<weld::Label> m_xSkiaStatusEnabled;
106 std::unique_ptr<weld::Label> m_xSkiaStatusDisabled;
107 std::unique_ptr<weld::Button> m_xSkiaLog;
108
109 std::unique_ptr<weld::ComboBox> m_xMouseMiddleLB;
110 std::unique_ptr<weld::Button> m_xMoreIcons;
111 std::unique_ptr<weld::Button> m_xRunGPTests;
112
113 OUString m_sAutoStr;
114
115 DECL_LINK(OnAntialiasingToggled, weld::Toggleable&, void);
116 DECL_LINK(OnUseSkiaToggled, weld::Toggleable&, void);
117 DECL_LINK(OnCopySkiaLog, weld::Button&, void);
118 DECL_STATIC_LINK(OfaViewTabPage, OnMoreIconsClick, weld::Button&, void);
119 DECL_LINK(OnRunGPTestClick, weld::Button&, void);
120 void UpdateSkiaStatus();
121 void HideSkiaWidgets();
123 void UpdateIconThemes();
124
125public:
126 OfaViewTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
127 virtual ~OfaViewTabPage() override;
128
129 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
130
131 virtual bool FillItemSet( SfxItemSet* rSet ) override;
132 virtual void Reset( const SfxItemSet* rSet ) override;
133};
134
136
138{
141 std::unique_ptr<LanguageConfig_Impl> pLangConfig;
142
146
148
149 std::unique_ptr<weld::ComboBox> m_xUserInterfaceLB;
150 std::unique_ptr<weld::Label> m_xLocaleSettingFT;
151 std::unique_ptr<SvxLanguageBox> m_xLocaleSettingLB;
152 std::unique_ptr<weld::CheckButton> m_xDecimalSeparatorCB;
153 std::unique_ptr<weld::Label> m_xCurrencyFT;
154 std::unique_ptr<weld::ComboBox> m_xCurrencyLB;
155 std::unique_ptr<weld::Label> m_xDatePatternsFT;
156 std::unique_ptr<weld::Entry> m_xDatePatternsED;
157
158 std::unique_ptr<SvxLanguageBox> m_xWesternLanguageLB;
159 std::unique_ptr<weld::Label> m_xWesternLanguageFT;
160 std::unique_ptr<SvxLanguageBox> m_xAsianLanguageLB;
161 std::unique_ptr<SvxLanguageBox> m_xComplexLanguageLB;
162 std::unique_ptr<weld::CheckButton> m_xCurrentDocCB;
163 std::unique_ptr<weld::CheckButton> m_xAsianSupportCB;
164 std::unique_ptr<weld::CheckButton> m_xCTLSupportCB;
165 std::unique_ptr<weld::CheckButton> m_xIgnoreLanguageChangeCB;
166
167 DECL_LINK(SupportHdl, weld::Toggleable&, void);
168 DECL_LINK(LocaleSettingHdl, weld::ComboBox&, void);
169 DECL_LINK(DatePatternsHdl, weld::Entry&, void);
170
171 bool validateDatePatterns( bool& rbModified, OUString& rPatterns );
172
173public:
174 OfaLanguagesTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
175 virtual ~OfaLanguagesTabPage() override;
176
177 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
178
179 virtual bool FillItemSet( SfxItemSet* rSet ) override;
180 virtual void Reset( const SfxItemSet* rSet ) override;
181};
182
183/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::CheckButton > m_xCurrentDocCB
Definition: optgdlg.hxx:162
std::unique_ptr< weld::ComboBox > m_xUserInterfaceLB
Definition: optgdlg.hxx:149
std::unique_ptr< weld::CheckButton > m_xDecimalSeparatorCB
Definition: optgdlg.hxx:152
DECL_LINK(DatePatternsHdl, weld::Entry &, void)
OUString m_sSystemDefaultString
Definition: optgdlg.hxx:144
std::unique_ptr< weld::Label > m_xLocaleSettingFT
Definition: optgdlg.hxx:150
DECL_LINK(SupportHdl, weld::Toggleable &, void)
std::unique_ptr< SvxLanguageBox > m_xLocaleSettingLB
Definition: optgdlg.hxx:151
OUString m_sDecimalSeparatorLabel
Definition: optgdlg.hxx:145
std::unique_ptr< SvxLanguageBox > m_xAsianLanguageLB
Definition: optgdlg.hxx:160
std::unique_ptr< weld::CheckButton > m_xCTLSupportCB
Definition: optgdlg.hxx:164
std::unique_ptr< weld::CheckButton > m_xAsianSupportCB
Definition: optgdlg.hxx:163
std::unique_ptr< weld::Label > m_xDatePatternsFT
Definition: optgdlg.hxx:155
std::unique_ptr< weld::Label > m_xWesternLanguageFT
Definition: optgdlg.hxx:159
std::unique_ptr< weld::Entry > m_xDatePatternsED
Definition: optgdlg.hxx:156
OUString m_sUserLocaleValue
Definition: optgdlg.hxx:143
std::unique_ptr< weld::CheckButton > m_xIgnoreLanguageChangeCB
Definition: optgdlg.hxx:165
bool validateDatePatterns(bool &rbModified, OUString &rPatterns)
Definition: optgdlg.cxx:1706
std::unique_ptr< LanguageConfig_Impl > pLangConfig
Definition: optgdlg.hxx:141
virtual ~OfaLanguagesTabPage() override
Definition: optgdlg.cxx:1182
std::unique_ptr< SvxLanguageBox > m_xComplexLanguageLB
Definition: optgdlg.hxx:161
std::unique_ptr< weld::Label > m_xCurrencyFT
Definition: optgdlg.hxx:153
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optgdlg.cxx:1186
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optgdlg.cxx:1209
std::unique_ptr< SvxLanguageBox > m_xWesternLanguageLB
Definition: optgdlg.hxx:158
OfaLanguagesTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optgdlg.cxx:1012
DECL_LINK(LocaleSettingHdl, weld::ComboBox &, void)
std::unique_ptr< weld::ComboBox > m_xCurrencyLB
Definition: optgdlg.hxx:154
virtual void Reset(const SfxItemSet *rSet) override
Definition: optgdlg.cxx:1447
std::unique_ptr< weld::CheckButton > m_xFileDlgCB
Definition: optgdlg.hxx:41
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optgdlg.cxx:215
DECL_LINK(TwoFigureHdl, weld::SpinButton &, void)
OUString m_aStrDateInfo
Definition: optgdlg.hxx:34
std::unique_ptr< weld::CheckButton > m_xExtHelpCB
Definition: optgdlg.hxx:36
std::unique_ptr< weld::CheckButton > m_xDocStatusCB
Definition: optgdlg.hxx:42
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: optgdlg.cxx:107
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optgdlg.cxx:220
std::unique_ptr< weld::Widget > m_xYearFrame
Definition: optgdlg.hxx:43
std::unique_ptr< weld::Widget > m_xFileDlgFrame
Definition: optgdlg.hxx:39
std::unique_ptr< weld::CheckButton > m_xPopUpNoHelpCB
Definition: optgdlg.hxx:37
std::unique_ptr< weld::SpinButton > m_xYearValueField
Definition: optgdlg.hxx:44
virtual ~OfaMiscTabPage() override
Definition: optgdlg.cxx:211
std::unique_ptr< weld::CheckButton > m_xShowTipOfTheDay
Definition: optgdlg.hxx:38
OfaMiscTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optgdlg.cxx:159
std::unique_ptr< weld::Widget > m_xFileDlgROImage
Definition: optgdlg.hxx:40
virtual void Reset(const SfxItemSet *rSet) override
Definition: optgdlg.cxx:285
std::unique_ptr< weld::Label > m_xToYearFT
Definition: optgdlg.hxx:45
std::unique_ptr< weld::Label > m_xAAPointLimitLabel
Definition: optgdlg.hxx:95
std::unique_ptr< weld::Button > m_xSkiaLog
Definition: optgdlg.hxx:107
std::unique_ptr< weld::CheckButton > m_xForceSkiaRaster
Definition: optgdlg.hxx:103
std::unique_ptr< weld::ComboBox > m_xSidebarIconSizeLB
Definition: optgdlg.hxx:88
sal_Int32 nStyleLB_InitialSelection
Definition: optgdlg.hxx:81
void UpdateHardwareAccelStatus()
Definition: optgdlg.cxx:951
std::unique_ptr< weld::MetricSpinButton > m_xAAPointLimit
Definition: optgdlg.hxx:96
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optgdlg.cxx:680
DECL_LINK(OnCopySkiaLog, weld::Button &, void)
std::unique_ptr< weld::ComboBox > m_xIconStyleLB
Definition: optgdlg.hxx:92
void HideSkiaWidgets()
Definition: optgdlg.cxx:632
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optgdlg.cxx:685
void UpdateSkiaStatus()
Definition: optgdlg.cxx:641
OUString m_sAutoStr
Definition: optgdlg.hxx:113
DECL_STATIC_LINK(OfaViewTabPage, OnMoreIconsClick, weld::Button &, void)
std::unique_ptr< weld::ComboBox > m_xNotebookbarIconSizeLB
Definition: optgdlg.hxx:89
std::unique_ptr< weld::Label > m_xSkiaStatusDisabled
Definition: optgdlg.hxx:106
void UpdateIconThemes()
Definition: optgdlg.cxx:568
DECL_LINK(OnUseSkiaToggled, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > m_xUseAntiAliase
Definition: optgdlg.hxx:101
std::unique_ptr< weld::Label > m_xSkiaStatusEnabled
Definition: optgdlg.hxx:105
std::unique_ptr< weld::CheckButton > m_xFontShowCB
Definition: optgdlg.hxx:98
std::unique_ptr< weld::ComboBox > m_xAppearanceStyleLB
Definition: optgdlg.hxx:91
std::unique_ptr< weld::Button > m_xRunGPTests
Definition: optgdlg.hxx:111
sal_Int32 nNotebookbarSizeLB_InitialSelection
Definition: optgdlg.hxx:80
DECL_LINK(OnRunGPTestClick, weld::Button &, void)
std::unique_ptr< CanvasSettings > pCanvasSettings
Definition: optgdlg.hxx:83
OfaViewTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optgdlg.cxx:521
std::unique_ptr< weld::CheckButton > m_xUseSkia
Definition: optgdlg.hxx:102
std::unique_ptr< weld::ComboBox > m_xIconSizeLB
Definition: optgdlg.hxx:87
virtual void Reset(const SfxItemSet *rSet) override
Definition: optgdlg.cxx:854
std::unique_ptr< weld::CheckButton > m_xUseHardwareAccell
Definition: optgdlg.hxx:100
std::unique_ptr< weld::Button > m_xMoreIcons
Definition: optgdlg.hxx:110
std::unique_ptr< weld::CheckButton > m_xFontAntiAliasing
Definition: optgdlg.hxx:94
sal_Int32 nSidebarSizeLB_InitialSelection
Definition: optgdlg.hxx:79
DECL_LINK(OnAntialiasingToggled, weld::Toggleable &, void)
std::unique_ptr< weld::ComboBox > m_xMouseMiddleLB
Definition: optgdlg.hxx:109
std::unique_ptr< weld::Widget > m_xDarkModeFrame
Definition: optgdlg.hxx:90
std::vector< vcl::IconThemeInfo > mInstalledIconThemes
Definition: optgdlg.hxx:85
sal_Int32 nSizeLB_InitialSelection
Definition: optgdlg.hxx:78
virtual ~OfaViewTabPage() override
Definition: optgdlg.cxx:590
DeactivateRC