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_xDocStatusCB;
42 std::unique_ptr<weld::Widget> m_xYearFrame;
43 std::unique_ptr<weld::SpinButton> m_xYearValueField;
44 std::unique_ptr<weld::Label> m_xToYearFT;
45 std::unique_ptr<weld::CheckButton> m_xCrashReport;
46 std::unique_ptr<weld::Widget> m_xQuickStarterFrame;
47 std::unique_ptr<weld::Label> m_xHelpImproveLabel;
48 std::unique_ptr<weld::CheckButton> m_xQuickLaunchCB;
49#if defined(_WIN32)
50 std::unique_ptr<weld::Widget> m_xFileAssocFrame;
51 std::unique_ptr<weld::Button> m_xFileAssocBtn;
52 std::unique_ptr<weld::CheckButton> m_xPerformFileExtCheck;
53#endif
54
55 DECL_LINK(TwoFigureHdl, weld::SpinButton&, void);
56#if defined(_WIN32)
58#endif
59protected:
60 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
61
62public:
63 OfaMiscTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
64 virtual ~OfaMiscTabPage() override;
65
66 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
67
68 virtual bool FillItemSet( SfxItemSet* rSet ) override;
69 virtual void Reset( const SfxItemSet* rSet ) override;
70};
71
73
75{
76private:
81
82 std::unique_ptr<SvtTabAppearanceCfg> pAppearanceCfg;
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::ComboBox> m_xIconStyleLB;
91
92 std::unique_ptr<weld::CheckButton> m_xFontAntiAliasing;
93 std::unique_ptr<weld::Label> m_xAAPointLimitLabel;
94 std::unique_ptr<weld::MetricSpinButton> m_xAAPointLimit;
95
96 std::unique_ptr<weld::Widget> m_xMenuIconBox;
97 std::unique_ptr<weld::ComboBox> m_xMenuIconsLB;
98
99 std::unique_ptr<weld::ComboBox> m_xContextMenuShortcutsLB;
100
101 std::unique_ptr<weld::CheckButton> m_xFontShowCB;
102
103 std::unique_ptr<weld::CheckButton> m_xUseHardwareAccell;
104 std::unique_ptr<weld::CheckButton> m_xUseAntiAliase;
105 std::unique_ptr<weld::CheckButton> m_xUseSkia;
106 std::unique_ptr<weld::CheckButton> m_xForceSkiaRaster;
107
108 std::unique_ptr<weld::Label> m_xSkiaStatusEnabled;
109 std::unique_ptr<weld::Label> m_xSkiaStatusDisabled;
110
111 std::unique_ptr<weld::ComboBox> m_xMousePosLB;
112 std::unique_ptr<weld::ComboBox> m_xMouseMiddleLB;
113 std::unique_ptr<weld::Button> m_xMoreIcons;
114 std::unique_ptr<weld::Button> m_xRunGPTests;
115
116 DECL_LINK(OnAntialiasingToggled, weld::Toggleable&, void);
117 DECL_LINK(OnUseSkiaToggled, weld::Toggleable&, void);
118 DECL_STATIC_LINK(OfaViewTabPage, OnMoreIconsClick, weld::Button&, void);
119 DECL_LINK(OnRunGPTestClick, weld::Button&, void);
120 void UpdateSkiaStatus();
121 void HideSkiaWidgets();
123
124public:
125 OfaViewTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
126 virtual ~OfaViewTabPage() override;
127
128 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
129
130 virtual bool FillItemSet( SfxItemSet* rSet ) override;
131 virtual void Reset( const SfxItemSet* rSet ) override;
132};
133
135
137{
140 std::unique_ptr<LanguageConfig_Impl> pLangConfig;
141
145
147
148 std::unique_ptr<weld::ComboBox> m_xUserInterfaceLB;
149 std::unique_ptr<weld::Label> m_xLocaleSettingFT;
150 std::unique_ptr<SvxLanguageBox> m_xLocaleSettingLB;
151 std::unique_ptr<weld::CheckButton> m_xDecimalSeparatorCB;
152 std::unique_ptr<weld::Label> m_xCurrencyFT;
153 std::unique_ptr<weld::ComboBox> m_xCurrencyLB;
154 std::unique_ptr<weld::Label> m_xDatePatternsFT;
155 std::unique_ptr<weld::Entry> m_xDatePatternsED;
156
157 std::unique_ptr<SvxLanguageBox> m_xWesternLanguageLB;
158 std::unique_ptr<weld::Label> m_xWesternLanguageFT;
159 std::unique_ptr<SvxLanguageBox> m_xAsianLanguageLB;
160 std::unique_ptr<SvxLanguageBox> m_xComplexLanguageLB;
161 std::unique_ptr<weld::CheckButton> m_xCurrentDocCB;
162 std::unique_ptr<weld::CheckButton> m_xAsianSupportCB;
163 std::unique_ptr<weld::CheckButton> m_xCTLSupportCB;
164 std::unique_ptr<weld::CheckButton> m_xIgnoreLanguageChangeCB;
165
166 DECL_LINK(SupportHdl, weld::Toggleable&, void);
167 DECL_LINK(LocaleSettingHdl, weld::ComboBox&, void);
168 DECL_LINK(DatePatternsHdl, weld::Entry&, void);
169
170 bool validateDatePatterns( bool& rbModified, OUString& rPatterns );
171
172public:
173 OfaLanguagesTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
174 virtual ~OfaLanguagesTabPage() override;
175
176 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
177
178 virtual bool FillItemSet( SfxItemSet* rSet ) override;
179 virtual void Reset( const SfxItemSet* rSet ) override;
180};
181
182/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::CheckButton > m_xCurrentDocCB
Definition: optgdlg.hxx:161
std::unique_ptr< weld::ComboBox > m_xUserInterfaceLB
Definition: optgdlg.hxx:148
std::unique_ptr< weld::CheckButton > m_xDecimalSeparatorCB
Definition: optgdlg.hxx:151
DECL_LINK(DatePatternsHdl, weld::Entry &, void)
OUString m_sSystemDefaultString
Definition: optgdlg.hxx:143
std::unique_ptr< weld::Label > m_xLocaleSettingFT
Definition: optgdlg.hxx:149
DECL_LINK(SupportHdl, weld::Toggleable &, void)
std::unique_ptr< SvxLanguageBox > m_xLocaleSettingLB
Definition: optgdlg.hxx:150
OUString m_sDecimalSeparatorLabel
Definition: optgdlg.hxx:144
std::unique_ptr< SvxLanguageBox > m_xAsianLanguageLB
Definition: optgdlg.hxx:159
std::unique_ptr< weld::CheckButton > m_xCTLSupportCB
Definition: optgdlg.hxx:163
std::unique_ptr< weld::CheckButton > m_xAsianSupportCB
Definition: optgdlg.hxx:162
std::unique_ptr< weld::Label > m_xDatePatternsFT
Definition: optgdlg.hxx:154
std::unique_ptr< weld::Label > m_xWesternLanguageFT
Definition: optgdlg.hxx:158
std::unique_ptr< weld::Entry > m_xDatePatternsED
Definition: optgdlg.hxx:155
OUString m_sUserLocaleValue
Definition: optgdlg.hxx:142
std::unique_ptr< weld::CheckButton > m_xIgnoreLanguageChangeCB
Definition: optgdlg.hxx:164
bool validateDatePatterns(bool &rbModified, OUString &rPatterns)
Definition: optgdlg.cxx:1723
std::unique_ptr< LanguageConfig_Impl > pLangConfig
Definition: optgdlg.hxx:140
virtual ~OfaLanguagesTabPage() override
Definition: optgdlg.cxx:1199
std::unique_ptr< SvxLanguageBox > m_xComplexLanguageLB
Definition: optgdlg.hxx:160
std::unique_ptr< weld::Label > m_xCurrencyFT
Definition: optgdlg.hxx:152
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optgdlg.cxx:1203
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optgdlg.cxx:1226
std::unique_ptr< SvxLanguageBox > m_xWesternLanguageLB
Definition: optgdlg.hxx:157
OfaLanguagesTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optgdlg.cxx:1029
DECL_LINK(LocaleSettingHdl, weld::ComboBox &, void)
std::unique_ptr< weld::ComboBox > m_xCurrencyLB
Definition: optgdlg.hxx:153
virtual void Reset(const SfxItemSet *rSet) override
Definition: optgdlg.cxx:1464
std::unique_ptr< weld::Widget > m_xQuickStarterFrame
Definition: optgdlg.hxx:46
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:212
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:41
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: optgdlg.cxx:102
std::unique_ptr< weld::CheckButton > m_xQuickLaunchCB
Definition: optgdlg.hxx:48
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optgdlg.cxx:217
std::unique_ptr< weld::Widget > m_xYearFrame
Definition: optgdlg.hxx:42
std::unique_ptr< weld::Widget > m_xFileDlgFrame
Definition: optgdlg.hxx:38
std::unique_ptr< weld::CheckButton > m_xPopUpNoHelpCB
Definition: optgdlg.hxx:36
std::unique_ptr< weld::SpinButton > m_xYearValueField
Definition: optgdlg.hxx:43
std::unique_ptr< weld::Label > m_xHelpImproveLabel
Definition: optgdlg.hxx:47
virtual ~OfaMiscTabPage() override
Definition: optgdlg.cxx:208
std::unique_ptr< weld::CheckButton > m_xCrashReport
Definition: optgdlg.hxx:45
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:282
std::unique_ptr< weld::Label > m_xToYearFT
Definition: optgdlg.hxx:44
std::unique_ptr< weld::Label > m_xAAPointLimitLabel
Definition: optgdlg.hxx:93
std::unique_ptr< weld::CheckButton > m_xForceSkiaRaster
Definition: optgdlg.hxx:106
std::unique_ptr< weld::ComboBox > m_xSidebarIconSizeLB
Definition: optgdlg.hxx:88
sal_Int32 nStyleLB_InitialSelection
Definition: optgdlg.hxx:80
void UpdateHardwareAccelStatus()
Definition: optgdlg.cxx:968
std::unique_ptr< weld::MetricSpinButton > m_xAAPointLimit
Definition: optgdlg.hxx:94
std::unique_ptr< SvtTabAppearanceCfg > pAppearanceCfg
Definition: optgdlg.hxx:82
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optgdlg.cxx:662
std::unique_ptr< weld::ComboBox > m_xIconStyleLB
Definition: optgdlg.hxx:90
void HideSkiaWidgets()
Definition: optgdlg.cxx:616
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optgdlg.cxx:667
void UpdateSkiaStatus()
Definition: optgdlg.cxx:624
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:109
std::unique_ptr< weld::Widget > m_xMenuIconBox
Definition: optgdlg.hxx:96
std::unique_ptr< weld::ComboBox > m_xMousePosLB
Definition: optgdlg.hxx:111
DECL_LINK(OnUseSkiaToggled, weld::Toggleable &, void)
std::unique_ptr< weld::ComboBox > m_xMenuIconsLB
Definition: optgdlg.hxx:97
std::unique_ptr< weld::CheckButton > m_xUseAntiAliase
Definition: optgdlg.hxx:104
std::unique_ptr< weld::Label > m_xSkiaStatusEnabled
Definition: optgdlg.hxx:108
std::unique_ptr< weld::CheckButton > m_xFontShowCB
Definition: optgdlg.hxx:101
std::unique_ptr< weld::Button > m_xRunGPTests
Definition: optgdlg.hxx:114
std::unique_ptr< weld::ComboBox > m_xContextMenuShortcutsLB
Definition: optgdlg.hxx:99
sal_Int32 nNotebookbarSizeLB_InitialSelection
Definition: optgdlg.hxx:79
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:520
std::unique_ptr< weld::CheckButton > m_xUseSkia
Definition: optgdlg.hxx:105
std::unique_ptr< weld::ComboBox > m_xIconSizeLB
Definition: optgdlg.hxx:87
virtual void Reset(const SfxItemSet *rSet) override
Definition: optgdlg.cxx:867
std::unique_ptr< weld::CheckButton > m_xUseHardwareAccell
Definition: optgdlg.hxx:103
std::unique_ptr< weld::Button > m_xMoreIcons
Definition: optgdlg.hxx:113
std::unique_ptr< weld::CheckButton > m_xFontAntiAliasing
Definition: optgdlg.hxx:92
sal_Int32 nSidebarSizeLB_InitialSelection
Definition: optgdlg.hxx:78
DECL_LINK(OnAntialiasingToggled, weld::Toggleable &, void)
std::unique_ptr< weld::ComboBox > m_xMouseMiddleLB
Definition: optgdlg.hxx:112
std::vector< vcl::IconThemeInfo > mInstalledIconThemes
Definition: optgdlg.hxx:85
sal_Int32 nSizeLB_InitialSelection
Definition: optgdlg.hxx:77
virtual ~OfaViewTabPage() override
Definition: optgdlg.cxx:586
const SfxItemSet * pSet
DeactivateRC