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/.
12 #include <sal/config.h>
14 #include <svtools/svtdllapi.h>
16 namespace com :: sun :: star :: uno
{ template <typename
> class Reference
; }
18 namespace weld
{ class Window
; }
19 namespace com::sun::star::uno
{
20 class XComponentContext
;
26 // "For the selected Java runtime environment to work properly,
27 // %PRODUCTNAME must be restarted.":
29 // "For the bibliography to work properly,
30 // %PRODUCTNAME must be restarted.":
31 RESTART_REASON_BIBLIOGRAPHY_INSTALL
,
32 // "For the mail merge to work properly,
33 // %PRODUCTNAME must be restarted.":
34 RESTART_REASON_MAILMERGE_INSTALL
,
35 // "For the updated language settings to take effect,
36 // %PRODUCTNAME must be restarted.":
37 RESTART_REASON_LANGUAGE_CHANGE
,
38 // "For the added path to take effect,
39 // %PRODUCTNAME must be restarted.":
40 RESTART_REASON_ADDING_PATH
,
41 // "For the assigned java parameters to take effect,
42 // %PRODUCTNAME must be restarted.":
43 RESTART_REASON_ASSIGNING_JAVAPARAMETERS
,
44 // "For the assigned folders and archives to take effect,
45 // %PRODUCTNAME must be restarted.":
46 RESTART_REASON_ASSIGNING_FOLDERS
,
47 // "For the modified experimental features to take effect,
48 // %PRODUCTNAME must be restarted.":
49 RESTART_REASON_EXP_FEATURES
,
50 // "For the extension to work properly,
51 // %PRODUCTNAME must be restarted.":
52 RESTART_REASON_EXTENSION_INSTALL
,
53 // For the Skia changes to take effect,
54 // %PRODUCTNAME must be restarted:
56 // For the OpenCL changes to take effect,
57 // %PRODUCTNAME must be restarted:
58 RESTART_REASON_OPENCL
,
59 // For the multi-threaded calculation changes to take effect,
60 // %PRODUCTNAME must be restarted:
61 RESTART_REASON_THREADING
,
62 // To apply changes, %PRODUCTNAME,
63 // %PRODUCTNAME must be restarted:
64 RESTART_REASON_UI_CHANGE
,
65 // No particular reason:
69 // Must be called with the solar mutex locked; returns if restart was initiated:
70 SVT_DLLPUBLIC
bool executeRestartDialog(
71 css::uno::Reference
< css::uno::XComponentContext
> const & context
,
72 weld::Window
* parent
, RestartReason reason
);
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */