From 940b4d1848e8c70ab7642901a68594e8016caffc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 18:51:28 +0200 Subject: Adding upstream version 1:7.0.4. Signed-off-by: Daniel Baumann --- svx/source/dialog/SafeModeDialog.hxx | 67 ++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 svx/source/dialog/SafeModeDialog.hxx (limited to 'svx/source/dialog/SafeModeDialog.hxx') diff --git a/svx/source/dialog/SafeModeDialog.hxx b/svx/source/dialog/SafeModeDialog.hxx new file mode 100644 index 000000000..daba66caf --- /dev/null +++ b/svx/source/dialog/SafeModeDialog.hxx @@ -0,0 +1,67 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_SVX_SOURCE_DIALOG_SAFEMODEDIALOG_HXX +#define INCLUDED_SVX_SOURCE_DIALOG_SAFEMODEDIALOG_HXX + +#include +#include + +class SafeModeDialog : public weld::GenericDialogController +{ +public: + explicit SafeModeDialog(weld::Window* pParent); + virtual short run() override; + virtual ~SafeModeDialog() override; + +private: + std::unique_ptr mxBtnContinue; + std::unique_ptr mxBtnRestart; + std::unique_ptr mxBtnApply; + + std::unique_ptr mxBoxRestore; + std::unique_ptr mxBoxConfigure; + std::unique_ptr mxBoxDeinstall; + std::unique_ptr mxBoxReset; + + std::unique_ptr mxRadioRestore; + std::unique_ptr mxRadioConfigure; + std::unique_ptr mxRadioExtensions; + std::unique_ptr mxRadioReset; + + std::unique_ptr mxCBCheckProfilesafeConfig; + std::unique_ptr mxCBCheckProfilesafeExtensions; + std::unique_ptr mxCBDisableAllExtensions; + std::unique_ptr mxCBDeinstallUserExtensions; + std::unique_ptr mxCBResetSharedExtensions; + std::unique_ptr mxCBResetBundledExtensions; + std::unique_ptr mxCBDisableHWAcceleration; + std::unique_ptr mxCBResetCustomizations; + std::unique_ptr mxCBResetWholeUserProfile; + + std::unique_ptr mxBugLink; + std::unique_ptr mxUserProfileLink; + std::unique_ptr mxBtnCreateZip; + std::unique_ptr mxExpander; + + // local BackupFileHelper for handling possible restores + comphelper::BackupFileHelper maBackupFileHelper; + + void enableDisableWidgets(); + void applyChanges(); + + DECL_LINK(RadioBtnHdl, weld::Button&, void); + DECL_LINK(CheckBoxHdl, weld::ToggleButton&, void); + DECL_LINK(CreateZipBtnHdl, weld::Button&, void); + DECL_LINK(DialogBtnHdl, weld::Button&, void); +}; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3