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 <sfx2/tabdlg.hxx>
22#include <svx/langbox.hxx>
23
24class CanvasSettings;
25
26namespace vcl {
27 class IconThemeInfo;
28}
29
31{
32private:
34
35 std::unique_ptr<weld::CheckButton> m_xExtHelpCB;
36 std::unique_ptr<weld::CheckButton> m_xPopUpNoHelpCB;
37 std::unique_ptr<weld::CheckButton> m_xShowTipOfTheDay;
38 std::unique_ptr<weld::Widget> m_xFileDlgFrame;
39 std::unique_ptr<weld::Widget> m_xFileDlgROImage;
40 std::unique_ptr<weld::CheckButton> m_xFileDlgCB;
41 std::unique_ptr<weld::CheckButton> m_xPrintDlgCB;
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 std::unique_ptr<weld::CheckButton> m_xCrashReport;
47 std::unique_ptr<weld::Widget> m_xQuickStarterFrame;
48 std::unique_ptr<weld::Label> m_xHelpImproveLabel;
49 std::unique_ptr<weld::CheckButton> m_xQuickLaunchCB;
50#if defined(_WIN32)
51 std::unique_ptr<weld::Widget> m_xFileAssocFrame;
52 std::unique_ptr<weld::Button> m_xFileAssocBtn;
53 std::unique_ptr<weld::CheckButton> m_xPerformFileExtCheck;
54#endif
55
56 DECL_LINK(TwoFigureHdl, weld::SpinButton&, void);
57#if defined(_WIN32)
59#endif
60protected:
61 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
62
63public:
64 OfaMiscTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
65 virtual ~OfaMiscTabPage() override;
66
67 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
68
69 virtual bool FillItemSet( SfxItemSet* rSet ) override;
70 virtual void Reset( const SfxItemSet* rSet ) override;
71};
72
74
76{
77private:
82
83 std::unique_ptr<SvtTabAppearanceCfg> pAppearanceCfg;
84 std::unique_ptr<CanvasSettings> pCanvasSettings;
85
86 std::vector<vcl::IconThemeInfo> mInstalledIconThemes;
87
88 std::unique_ptr<weld::ComboBox> m_xIconSizeLB;
89 std::unique_ptr<weld::ComboBox> m_xSidebarIconSizeLB;
90 std::unique_ptr<weld::ComboBox> m_xNotebookbarIconSizeLB;
91 std::unique_ptr<weld::ComboBox> m_xIconStyleLB;
92
93 std::unique_ptr<weld::CheckButton> m_xFontAntiAliasing;
94 std::unique_ptr<weld::Label> m_xAAPointLimitLabel;
95 std::unique_ptr<weld::MetricSpinButton> m_xAAPointLimit;
96
97 std::unique_ptr<weld::Widget> m_xMenuIconBox;
98 std::unique_ptr<weld::ComboBox> m_xMenuIconsLB;
99
100 std::unique_ptr<weld::ComboBox> m_xContextMenuShortcutsLB;
101
102 std::unique_ptr<weld::CheckButton> m_xFontShowCB;
103
104 std::unique_ptr<weld::CheckButton> m_xUseHardwareAccell;
105 std::unique_ptr<weld::CheckButton> m_xUseAntiAliase;
106 std::unique_ptr<weld::CheckButton> m_xUseSkia;
107 std::unique_ptr<weld::CheckButton> m_xForceSkiaRaster;
108
109 std::unique_ptr<weld::Label> m_xSkiaStatusEnabled;
110 std::unique_ptr<weld::Label> m_xSkiaStatusDisabled;
111
112 std::unique_ptr<weld::ComboBox> m_xMousePosLB;
113 std::unique_ptr<weld::ComboBox> m_xMouseMiddleLB;
114 std::unique_ptr<weld::Button> m_xMoreIcons;
115 std::unique_ptr<weld::Button> m_xRunGPTests;
116
117 DECL_LINK(OnAntialiasingToggled, weld::Toggleable&, void);
118 DECL_LINK(OnUseSkiaToggled, weld::Toggleable&, void);
119 DECL_STATIC_LINK(OfaViewTabPage, OnMoreIconsClick, weld::Button&, void);
120 DECL_LINK(OnRunGPTestClick, weld::Button&, void);
121 void UpdateSkiaStatus();
122 void HideSkiaWidgets();
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
171public:
172 OfaLanguagesTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
173 virtual ~OfaLanguagesTabPage() override;
174
175 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
176
177 virtual bool FillItemSet( SfxItemSet* rSet ) override;
178 virtual void Reset( const SfxItemSet* rSet ) override;
179};
180
181/* 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
std::unique_ptr< LanguageConfig_Impl > pLangConfig
Definition: optgdlg.hxx:141
virtual ~OfaLanguagesTabPage() override
Definition: optgdlg.cxx:1200
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:1204
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optgdlg.cxx:1227
std::unique_ptr< SvxLanguageBox > m_xWesternLanguageLB
Definition: optgdlg.hxx:158
OfaLanguagesTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optgdlg.cxx:1030
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:1465
std::unique_ptr< weld::Widget > m_xQuickStarterFrame
Definition: optgdlg.hxx:47
std::unique_ptr< weld::CheckButton > m_xFileDlgCB
Definition: optgdlg.hxx:40
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optgdlg.cxx:213
DECL_LINK(TwoFigureHdl, weld::SpinButton &, void)
OUString m_aStrDateInfo
Definition: optgdlg.hxx:33
std::unique_ptr< weld::CheckButton > m_xExtHelpCB
Definition: optgdlg.hxx:35
std::unique_ptr< weld::CheckButton > m_xDocStatusCB
Definition: optgdlg.hxx:42
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: optgdlg.cxx:102
std::unique_ptr< weld::CheckButton > m_xQuickLaunchCB
Definition: optgdlg.hxx:49
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optgdlg.cxx:218
std::unique_ptr< weld::Widget > m_xYearFrame
Definition: optgdlg.hxx:43
std::unique_ptr< weld::Widget > m_xFileDlgFrame
Definition: optgdlg.hxx:38
std::unique_ptr< weld::CheckButton > m_xPrintDlgCB
Definition: optgdlg.hxx:41
std::unique_ptr< weld::CheckButton > m_xPopUpNoHelpCB
Definition: optgdlg.hxx:36
std::unique_ptr< weld::SpinButton > m_xYearValueField
Definition: optgdlg.hxx:44
std::unique_ptr< weld::Label > m_xHelpImproveLabel
Definition: optgdlg.hxx:48
virtual ~OfaMiscTabPage() override
Definition: optgdlg.cxx:209
std::unique_ptr< weld::CheckButton > m_xCrashReport
Definition: optgdlg.hxx:46
std::unique_ptr< weld::CheckButton > m_xShowTipOfTheDay
Definition: optgdlg.hxx:37
OfaMiscTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optgdlg.cxx:154
std::unique_ptr< weld::Widget > m_xFileDlgROImage
Definition: optgdlg.hxx:39
virtual void Reset(const SfxItemSet *rSet) override
Definition: optgdlg.cxx:283
std::unique_ptr< weld::Label > m_xToYearFT
Definition: optgdlg.hxx:45
std::unique_ptr< weld::Label > m_xAAPointLimitLabel
Definition: optgdlg.hxx:94
std::unique_ptr< weld::CheckButton > m_xForceSkiaRaster
Definition: optgdlg.hxx:107
std::unique_ptr< weld::ComboBox > m_xSidebarIconSizeLB
Definition: optgdlg.hxx:89
sal_Int32 nStyleLB_InitialSelection
Definition: optgdlg.hxx:81
void UpdateHardwareAccelStatus()
Definition: optgdlg.cxx:969
std::unique_ptr< weld::MetricSpinButton > m_xAAPointLimit
Definition: optgdlg.hxx:95
std::unique_ptr< SvtTabAppearanceCfg > pAppearanceCfg
Definition: optgdlg.hxx:83
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optgdlg.cxx:663
std::unique_ptr< weld::ComboBox > m_xIconStyleLB
Definition: optgdlg.hxx:91
void HideSkiaWidgets()
Definition: optgdlg.cxx:617
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optgdlg.cxx:668
void UpdateSkiaStatus()
Definition: optgdlg.cxx:625
DECL_STATIC_LINK(OfaViewTabPage, OnMoreIconsClick, weld::Button &, void)
std::unique_ptr< weld::ComboBox > m_xNotebookbarIconSizeLB
Definition: optgdlg.hxx:90
std::unique_ptr< weld::Label > m_xSkiaStatusDisabled
Definition: optgdlg.hxx:110
std::unique_ptr< weld::Widget > m_xMenuIconBox
Definition: optgdlg.hxx:97
std::unique_ptr< weld::ComboBox > m_xMousePosLB
Definition: optgdlg.hxx:112
DECL_LINK(OnUseSkiaToggled, weld::Toggleable &, void)
std::unique_ptr< weld::ComboBox > m_xMenuIconsLB
Definition: optgdlg.hxx:98
std::unique_ptr< weld::CheckButton > m_xUseAntiAliase
Definition: optgdlg.hxx:105
std::unique_ptr< weld::Label > m_xSkiaStatusEnabled
Definition: optgdlg.hxx:109
std::unique_ptr< weld::CheckButton > m_xFontShowCB
Definition: optgdlg.hxx:102
std::unique_ptr< weld::Button > m_xRunGPTests
Definition: optgdlg.hxx:115
std::unique_ptr< weld::ComboBox > m_xContextMenuShortcutsLB
Definition: optgdlg.hxx:100
sal_Int32 nNotebookbarSizeLB_InitialSelection
Definition: optgdlg.hxx:80
DECL_LINK(OnRunGPTestClick, weld::Button &, void)
std::unique_ptr< CanvasSettings > pCanvasSettings
Definition: optgdlg.hxx:84
OfaViewTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optgdlg.cxx:521
std::unique_ptr< weld::CheckButton > m_xUseSkia
Definition: optgdlg.hxx:106
std::unique_ptr< weld::ComboBox > m_xIconSizeLB
Definition: optgdlg.hxx:88
virtual void Reset(const SfxItemSet *rSet) override
Definition: optgdlg.cxx:868
std::unique_ptr< weld::CheckButton > m_xUseHardwareAccell
Definition: optgdlg.hxx:104
std::unique_ptr< weld::Button > m_xMoreIcons
Definition: optgdlg.hxx:114
std::unique_ptr< weld::CheckButton > m_xFontAntiAliasing
Definition: optgdlg.hxx:93
sal_Int32 nSidebarSizeLB_InitialSelection
Definition: optgdlg.hxx:79
DECL_LINK(OnAntialiasingToggled, weld::Toggleable &, void)
std::unique_ptr< weld::ComboBox > m_xMouseMiddleLB
Definition: optgdlg.hxx:113
std::vector< vcl::IconThemeInfo > mInstalledIconThemes
Definition: optgdlg.hxx:86
sal_Int32 nSizeLB_InitialSelection
Definition: optgdlg.hxx:78
virtual ~OfaViewTabPage() override
Definition: optgdlg.cxx:587
const SfxItemSet * pSet
DeactivateRC