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_SFX2_SOURCE_INC_OPENURIEXTERNALLY_HXX
11 #define INCLUDED_SFX2_SOURCE_INC_OPENURIEXTERNALLY_HXX
13 #include <sal/config.h>
18 /// Open a URI via com.sun.star.system.SystemShellExecute
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).
24 /// Handles XSystemShellExecute.execute's SystemShellExecuteException unless the
25 /// given handleSystemShellExecuteException is false (in which case the
26 /// exception is re-thrown).
28 /// @return true iff execution was successful
29 bool openUriExternally(
30 OUString
const & uri
, bool handleSystemShellExecuteException
);
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */