/* -*- 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; // local BackupFileHelper for handling possible restores comphelper::BackupFileHelper maBackupFileHelper; void enableDisableWidgets(); void applyChanges(); DECL_LINK(RadioBtnHdl, weld::Toggleable&, void); DECL_LINK(CheckBoxHdl, weld::Toggleable&, void); DECL_LINK(CreateZipBtnHdl, weld::Button&, void); DECL_LINK(DialogBtnHdl, weld::Button&, void); }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */