1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
12 #include <comphelper/backupfilehelper.hxx>
13 #include <vcl/weld.hxx>
15 class SafeModeDialog
: public weld::GenericDialogController
18 explicit SafeModeDialog(weld::Window
* pParent
);
19 virtual short run() override
;
20 virtual ~SafeModeDialog() override
;
23 std::unique_ptr
<weld::Button
> mxBtnContinue
;
24 std::unique_ptr
<weld::Button
> mxBtnRestart
;
25 std::unique_ptr
<weld::Button
> mxBtnApply
;
27 std::unique_ptr
<weld::Container
> mxBoxRestore
;
28 std::unique_ptr
<weld::Container
> mxBoxConfigure
;
29 std::unique_ptr
<weld::Container
> mxBoxDeinstall
;
30 std::unique_ptr
<weld::Container
> mxBoxReset
;
32 std::unique_ptr
<weld::RadioButton
> mxRadioRestore
;
33 std::unique_ptr
<weld::RadioButton
> mxRadioConfigure
;
34 std::unique_ptr
<weld::RadioButton
> mxRadioExtensions
;
35 std::unique_ptr
<weld::RadioButton
> mxRadioReset
;
37 std::unique_ptr
<weld::CheckButton
> mxCBCheckProfilesafeConfig
;
38 std::unique_ptr
<weld::CheckButton
> mxCBCheckProfilesafeExtensions
;
39 std::unique_ptr
<weld::CheckButton
> mxCBDisableAllExtensions
;
40 std::unique_ptr
<weld::CheckButton
> mxCBDeinstallUserExtensions
;
41 std::unique_ptr
<weld::CheckButton
> mxCBResetSharedExtensions
;
42 std::unique_ptr
<weld::CheckButton
> mxCBResetBundledExtensions
;
43 std::unique_ptr
<weld::CheckButton
> mxCBDisableHWAcceleration
;
44 std::unique_ptr
<weld::CheckButton
> mxCBResetCustomizations
;
45 std::unique_ptr
<weld::CheckButton
> mxCBResetWholeUserProfile
;
47 std::unique_ptr
<weld::LinkButton
> mxBugLink
;
48 std::unique_ptr
<weld::LinkButton
> mxUserProfileLink
;
49 std::unique_ptr
<weld::Button
> mxBtnCreateZip
;
51 // local BackupFileHelper for handling possible restores
52 comphelper::BackupFileHelper maBackupFileHelper
;
54 void enableDisableWidgets();
57 DECL_LINK(RadioBtnHdl
, weld::Toggleable
&, void);
58 DECL_LINK(CheckBoxHdl
, weld::Toggleable
&, void);
59 DECL_LINK(CreateZipBtnHdl
, weld::Button
&, void);
60 DECL_LINK(DialogBtnHdl
, weld::Button
&, void);
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */