1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef INCLUDED_SVTOOLS_RESTARTDIALOG_HXX
11 #define INCLUDED_SVTOOLS_RESTARTDIALOG_HXX
13 #include <sal/config.h>
15 #include <svtools/svtdllapi.h>
17 namespace com :: sun :: star :: uno
{ template <typename
> class Reference
; }
19 namespace weld
{ class Window
; }
20 namespace com
{ namespace sun
{ namespace star
{ namespace uno
{
21 class XComponentContext
;
27 // "For the selected Java runtime environment to work properly,
28 // %PRODUCTNAME must be restarted.":
30 // For the modified default print job format to take effect,
31 // %PRODUCTNAME must be restarted:
32 RESTART_REASON_PDF_AS_STANDARD_JOB_FORMAT
,
33 // "For the bibliography to work properly,
34 // %PRODUCTNAME must be restarted.":
35 RESTART_REASON_BIBLIOGRAPHY_INSTALL
,
36 // "For the mail merge to work properly,
37 // %PRODUCTNAME must be restarted.":
38 RESTART_REASON_MAILMERGE_INSTALL
,
39 // "For the updated language settings to take effect,
40 // %PRODUCTNAME must be restarted.":
41 RESTART_REASON_LANGUAGE_CHANGE
,
42 // "For the added path to take effect,
43 // %PRODUCTNAME must be restarted.":
44 RESTART_REASON_ADDING_PATH
,
45 // "For the assigned java parameters to take effect,
46 // %PRODUCTNAME must be restarted.":
47 RESTART_REASON_ASSIGNING_JAVAPARAMETERS
,
48 // "For the assigned folders and archives to take effect,
49 // %PRODUCTNAME must be restarted.":
50 RESTART_REASON_ASSIGNING_FOLDERS
,
51 // "For the modified experimental features to take effect,
52 // %PRODUCTNAME must be restarted.":
53 RESTART_REASON_EXP_FEATURES
,
54 // "For the extension to work properly,
55 // %PRODUCTNAME must be restarted.":
56 RESTART_REASON_EXTENSION_INSTALL
,
57 // For the OpenGL changes to take effect,
58 // %PRODUCTNAME must be restarted:
59 RESTART_REASON_OPENGL
,
60 // For the Skia changes to take effect,
61 // %PRODUCTNAME must be restarted:
63 // For the OpenCL changes to take effect,
64 // %PRODUCTNAME must be restarted:
65 RESTART_REASON_OPENCL
,
66 // For the multi-threaded calculation changes to take effect,
67 // %PRODUCTNAME must be restarted:
68 RESTART_REASON_THREADING
,
69 // For restructuring the Form menu,
70 // %PRODUCTNAME must be restarted:
71 RESTART_REASON_MSCOMPATIBLE_FORMS_MENU
,
72 // No particular reason:
76 // Must be called with the solar mutex locked; returns if restart was initiated:
77 SVT_DLLPUBLIC
bool executeRestartDialog(
78 css::uno::Reference
< css::uno::XComponentContext
> const & context
,
79 weld::Window
* parent
, RestartReason reason
);
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */