2016-10-07 18:19:25 +02:00
|
|
|
/* -*- 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>
|
2016-10-17 11:45:27 +02:00
|
|
|
#include <vcl/fixedhyper.hxx>
|
2016-10-13 18:31:51 +02:00
|
|
|
#include <comphelper/backupfilehelper.hxx>
|
2016-10-07 18:19:25 +02:00
|
|
|
|
|
|
|
class SafeModeDialog : public Dialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
explicit SafeModeDialog(vcl::Window* pParent);
|
|
|
|
|
|
|
|
virtual ~SafeModeDialog() override;
|
|
|
|
|
|
|
|
virtual void dispose() override;
|
|
|
|
|
2016-10-12 11:18:08 +02:00
|
|
|
virtual bool Close() override;
|
|
|
|
|
2016-10-07 18:19:25 +02:00
|
|
|
private:
|
|
|
|
|
|
|
|
VclPtr<Button> mpBtnContinue;
|
|
|
|
VclPtr<Button> mpBtnQuit;
|
|
|
|
VclPtr<Button> mpBtnRestart;
|
|
|
|
|
2016-10-13 18:31:51 +02:00
|
|
|
VclPtr<CheckBox> mpCBCheckProfilesafeConfig;
|
|
|
|
VclPtr<CheckBox> mpCBCheckProfilesafeExtensions;
|
|
|
|
VclPtr<CheckBox> mpCBDisableAllExtensions;
|
2016-10-20 13:30:40 +02:00
|
|
|
VclPtr<CheckBox> mpCBDeinstallUserExtensions;
|
|
|
|
VclPtr<CheckBox> mpCBDeinstallAllExtensions;
|
2016-10-20 18:15:05 +02:00
|
|
|
VclPtr<CheckBox> mpCBDisableHWAcceleration;
|
2016-10-13 18:31:51 +02:00
|
|
|
VclPtr<CheckBox> mpCBResetCustomizations;
|
|
|
|
VclPtr<CheckBox> mpCBResetWholeUserProfile;
|
|
|
|
|
2016-10-17 11:45:27 +02:00
|
|
|
VclPtr<FixedHyperlink> mpBugLink;
|
|
|
|
|
2016-10-13 18:31:51 +02:00
|
|
|
// local BackupFileHelper for handling possible restores
|
|
|
|
comphelper::BackupFileHelper maBackupFileHelper;
|
2016-10-07 18:19:25 +02:00
|
|
|
|
2016-10-13 18:31:51 +02:00
|
|
|
void applyChanges();
|
2016-10-17 11:45:27 +02:00
|
|
|
static void openWebBrowser(const OUString & sURL, const OUString &sTitle);
|
2016-10-12 13:01:15 +02:00
|
|
|
|
2016-10-12 13:35:52 +02:00
|
|
|
DECL_LINK(CheckBoxHdl, CheckBox&, void);
|
2016-10-07 18:19:25 +02:00
|
|
|
DECL_LINK(BtnHdl, Button*, void);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|