bump product version to 5.0.4.1
[LibreOffice.git] / sfx2 / source / inc / openuriexternally.hxx
blob42013cd70609cb3cca37d07ac36c3e1f6f25de4d
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/.
8 */
10 #ifndef INCLUDED_SFX2_SOURCE_INC_OPENURIEXTERNALLY_HXX
11 #define INCLUDED_SFX2_SOURCE_INC_OPENURIEXTERNALLY_HXX
13 #include <sal/config.h>
16 namespace sfx2 {
18 /// Open a URI via com.sun.star.system.SystemShellExecute
19 ///
20 /// Handles XSystemShellExecute.execute's IllegalArgumentException (throwing a
21 /// RuntimeException if it is unexpected, i.e., not caused by the given uri not
22 /// being an absolute URI reference).
23 ///
24 /// Handles XSystemShellExecute.execute's SystemShellExecuteException unless the
25 /// given handleSystemShellExecuteException is false (in which case the
26 /// exception is re-thrown).
27 ///
28 /// @return true iff execution was successful
29 bool openUriExternally(
30 OUString const & uri, bool handleSystemShellExecuteException);
34 #endif
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */