LibreOffice Module svx (master) 1
SafeModeDialog.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
10#ifndef INCLUDED_SVX_SOURCE_DIALOG_SAFEMODEDIALOG_HXX
11#define INCLUDED_SVX_SOURCE_DIALOG_SAFEMODEDIALOG_HXX
12
14#include <vcl/weld.hxx>
15
17{
18public:
19 explicit SafeModeDialog(weld::Window* pParent);
20 virtual short run() override;
21 virtual ~SafeModeDialog() override;
22
23private:
24 std::unique_ptr<weld::Button> mxBtnContinue;
25 std::unique_ptr<weld::Button> mxBtnRestart;
26 std::unique_ptr<weld::Button> mxBtnApply;
27
28 std::unique_ptr<weld::Container> mxBoxRestore;
29 std::unique_ptr<weld::Container> mxBoxConfigure;
30 std::unique_ptr<weld::Container> mxBoxDeinstall;
31 std::unique_ptr<weld::Container> mxBoxReset;
32
33 std::unique_ptr<weld::RadioButton> mxRadioRestore;
34 std::unique_ptr<weld::RadioButton> mxRadioConfigure;
35 std::unique_ptr<weld::RadioButton> mxRadioExtensions;
36 std::unique_ptr<weld::RadioButton> mxRadioReset;
37
38 std::unique_ptr<weld::CheckButton> mxCBCheckProfilesafeConfig;
39 std::unique_ptr<weld::CheckButton> mxCBCheckProfilesafeExtensions;
40 std::unique_ptr<weld::CheckButton> mxCBDisableAllExtensions;
41 std::unique_ptr<weld::CheckButton> mxCBDeinstallUserExtensions;
42 std::unique_ptr<weld::CheckButton> mxCBResetSharedExtensions;
43 std::unique_ptr<weld::CheckButton> mxCBResetBundledExtensions;
44 std::unique_ptr<weld::CheckButton> mxCBDisableHWAcceleration;
45 std::unique_ptr<weld::CheckButton> mxCBResetCustomizations;
46 std::unique_ptr<weld::CheckButton> mxCBResetWholeUserProfile;
47
48 std::unique_ptr<weld::LinkButton> mxBugLink;
49 std::unique_ptr<weld::LinkButton> mxUserProfileLink;
50 std::unique_ptr<weld::Button> mxBtnCreateZip;
51
52 // local BackupFileHelper for handling possible restores
54
56 void applyChanges();
57
58 DECL_LINK(RadioBtnHdl, weld::Toggleable&, void);
59 DECL_LINK(CheckBoxHdl, weld::Toggleable&, void);
60 DECL_LINK(CreateZipBtnHdl, weld::Button&, void);
61 DECL_LINK(DialogBtnHdl, weld::Button&, void);
62};
63
64#endif
65
66/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::RadioButton > mxRadioConfigure
std::unique_ptr< weld::Button > mxBtnContinue
std::unique_ptr< weld::Button > mxBtnApply
SafeModeDialog(weld::Window *pParent)
std::unique_ptr< weld::CheckButton > mxCBResetWholeUserProfile
std::unique_ptr< weld::CheckButton > mxCBDeinstallUserExtensions
std::unique_ptr< weld::CheckButton > mxCBResetCustomizations
std::unique_ptr< weld::Container > mxBoxConfigure
std::unique_ptr< weld::CheckButton > mxCBCheckProfilesafeConfig
std::unique_ptr< weld::LinkButton > mxUserProfileLink
std::unique_ptr< weld::CheckButton > mxCBResetBundledExtensions
std::unique_ptr< weld::RadioButton > mxRadioRestore
virtual ~SafeModeDialog() override
virtual short run() override
std::unique_ptr< weld::LinkButton > mxBugLink
std::unique_ptr< weld::RadioButton > mxRadioExtensions
std::unique_ptr< weld::Container > mxBoxRestore
comphelper::BackupFileHelper maBackupFileHelper
std::unique_ptr< weld::CheckButton > mxCBCheckProfilesafeExtensions
std::unique_ptr< weld::Button > mxBtnCreateZip
DECL_LINK(DialogBtnHdl, weld::Button &, void)
DECL_LINK(RadioBtnHdl, weld::Toggleable &, void)
std::unique_ptr< weld::Button > mxBtnRestart
DECL_LINK(CreateZipBtnHdl, weld::Button &, void)
std::unique_ptr< weld::RadioButton > mxRadioReset
void enableDisableWidgets()
DECL_LINK(CheckBoxHdl, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > mxCBDisableHWAcceleration
std::unique_ptr< weld::Container > mxBoxDeinstall
std::unique_ptr< weld::Container > mxBoxReset
std::unique_ptr< weld::CheckButton > mxCBDisableAllExtensions
std::unique_ptr< weld::CheckButton > mxCBResetSharedExtensions