Bump version to 6.4.7.2.M8
[LibreOffice.git] / svx / source / dialog / SafeModeDialog.hxx
blob713a95f4a3102eee9e829bd0689f25504653c0eb
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #ifndef INCLUDED_SVX_SOURCE_DIALOG_SAFEMODEDIALOG_HXX
11 #define INCLUDED_SVX_SOURCE_DIALOG_SAFEMODEDIALOG_HXX
13 #include <comphelper/backupfilehelper.hxx>
14 #include <vcl/weld.hxx>
16 class SafeModeDialog : public weld::GenericDialogController
18 public:
19 explicit SafeModeDialog(weld::Window* pParent);
20 virtual short run() override;
21 virtual ~SafeModeDialog() override;
23 private:
25 std::unique_ptr<weld::Button> mxBtnContinue;
26 std::unique_ptr<weld::Button> mxBtnRestart;
27 std::unique_ptr<weld::Button> mxBtnApply;
29 std::unique_ptr<weld::Container> mxBoxRestore;
30 std::unique_ptr<weld::Container> mxBoxConfigure;
31 std::unique_ptr<weld::Container> mxBoxDeinstall;
32 std::unique_ptr<weld::Container> mxBoxReset;
34 std::unique_ptr<weld::RadioButton> mxRadioRestore;
35 std::unique_ptr<weld::RadioButton> mxRadioConfigure;
36 std::unique_ptr<weld::RadioButton> mxRadioExtensions;
37 std::unique_ptr<weld::RadioButton> mxRadioReset;
39 std::unique_ptr<weld::CheckButton> mxCBCheckProfilesafeConfig;
40 std::unique_ptr<weld::CheckButton> mxCBCheckProfilesafeExtensions;
41 std::unique_ptr<weld::CheckButton> mxCBDisableAllExtensions;
42 std::unique_ptr<weld::CheckButton> mxCBDeinstallUserExtensions;
43 std::unique_ptr<weld::CheckButton> mxCBResetSharedExtensions;
44 std::unique_ptr<weld::CheckButton> mxCBResetBundledExtensions;
45 std::unique_ptr<weld::CheckButton> mxCBDisableHWAcceleration;
46 std::unique_ptr<weld::CheckButton> mxCBResetCustomizations;
47 std::unique_ptr<weld::CheckButton> mxCBResetWholeUserProfile;
49 std::unique_ptr<weld::LinkButton> mxBugLink;
50 std::unique_ptr<weld::LinkButton> mxUserProfileLink;
51 std::unique_ptr<weld::Button> mxBtnCreateZip;
52 std::unique_ptr<weld::Expander> mxExpander;
54 // local BackupFileHelper for handling possible restores
55 comphelper::BackupFileHelper maBackupFileHelper;
57 void enableDisableWidgets();
58 void applyChanges();
60 DECL_LINK(RadioBtnHdl, weld::Button&, void);
61 DECL_LINK(CheckBoxHdl, weld::ToggleButton&, void);
62 DECL_LINK(CreateZipBtnHdl, weld::Button&, void);
63 DECL_LINK(DialogBtnHdl, weld::Button&, void);
66 #endif
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */