tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / offapi / com / sun / star / task / XRestartManager.idl
blob3018d1993eabbac46ca4d950008abd095b68147a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 module com { module sun { module star { module task {
23 /** allows to try to restart the office.
25 @since OOo 3.3
27 published interface XRestartManager : com::sun::star::uno::XInterface
29 /** let the office restart asynchronously
30 @param xInteractionHandler
31 the com::sun::star::task::InteractionHandler
32 service implementation, that is used in case a problem is detected
33 during requesting the restart.
35 @throws com::sun::star::uno::Exception
36 to notify the caller about possible failures
38 void requestRestart(
39 [in] com::sun::star::task::XInteractionHandler xInteractionHandler )
40 raises( com::sun::star::uno::Exception );
42 /** allows to get info whether the restart has been requested and provide
43 the initialization status.
45 <p>
46 The office has to call this method just before the main loop has been
47 started, with the `TRUE` as argument, so that the implementation
48 knows that the office is initialized. If the method returns `TRUE`,
49 the office should restart without starting the main loop.
50 </p>
52 @param bInitialized
53 specifies whether the office process is initialized already,
54 if the caller does not have this information, he should provide
55 `FALSE`.
57 @returns
58 `TRUE` if the office restart has been requested,
59 `FALSE` otherwise
61 @throws com::sun::star::uno::Exception
62 to notify the caller about possible failures
64 boolean isRestartRequested(
65 [in] boolean bInitialized )
66 raises( com::sun::star::uno::Exception );
69 }; }; }; };
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */