Change-Id: I0096b3d7db51e28eb58c7209109c30b73b382478 Reviewed-on: https://gerrit.libreoffice.org/30448 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
64 lines
1.8 KiB
C++
64 lines
1.8 KiB
C++
/* -*- 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 <vcl/dialog.hxx>
|
|
#include <vcl/button.hxx>
|
|
#include <vcl/fixed.hxx>
|
|
#include <vcl/edit.hxx>
|
|
#include <vcl/vclmedit.hxx>
|
|
#include <vcl/fixedhyper.hxx>
|
|
#include <comphelper/backupfilehelper.hxx>
|
|
|
|
class SafeModeDialog : public Dialog
|
|
{
|
|
public:
|
|
|
|
explicit SafeModeDialog(vcl::Window* pParent);
|
|
|
|
virtual ~SafeModeDialog() override;
|
|
|
|
virtual void dispose() override;
|
|
|
|
virtual bool Close() override;
|
|
|
|
private:
|
|
|
|
VclPtr<Button> mpBtnContinue;
|
|
VclPtr<Button> mpBtnQuit;
|
|
VclPtr<Button> mpBtnRestart;
|
|
|
|
VclPtr<CheckBox> mpCBCheckProfilesafeConfig;
|
|
VclPtr<CheckBox> mpCBCheckProfilesafeExtensions;
|
|
VclPtr<CheckBox> mpCBDisableAllExtensions;
|
|
VclPtr<CheckBox> mpCBDeinstallUserExtensions;
|
|
VclPtr<CheckBox> mpCBDeinstallAllExtensions;
|
|
VclPtr<CheckBox> mpCBDisableHWAcceleration;
|
|
VclPtr<CheckBox> mpCBResetCustomizations;
|
|
VclPtr<CheckBox> mpCBResetWholeUserProfile;
|
|
|
|
VclPtr<FixedHyperlink> mpBugLink;
|
|
VclPtr<FixedHyperlink> mpUserProfileLink;
|
|
|
|
// local BackupFileHelper for handling possible restores
|
|
comphelper::BackupFileHelper maBackupFileHelper;
|
|
|
|
void applyChanges();
|
|
static void openWebBrowser(const OUString & sURL, const OUString &sTitle);
|
|
|
|
DECL_LINK(CheckBoxHdl, CheckBox&, void);
|
|
DECL_LINK(BtnHdl, Button*, void);
|
|
};
|
|
|
|
#endif
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|