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>
15 #include <rtl/ustring.hxx>
19 /** Open a URI via com.sun.star.system.SystemShellExecute
21 Handles XSystemShellExecute.execute's IllegalArgumentException (throwing a
22 RuntimeException if it is unexpected, i.e., not caused by the given uri not
23 being an absolute URI reference).
25 Handles XSystemShellExecute.execute's SystemShellExecuteException unless the
26 given handleSystemShellExecuteException is false (in which case the
27 exception is re-thrown).
29 void openUriExternally(const OUString
& sURI
, bool bHandleSystemShellExecuteException
);
34 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */