summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2017-09-25 15:06:50 -0300
committerJulien Nabet <serval2412@yahoo.fr>2017-09-27 14:10:17 +0200
commitc2999602e2463cb11dbce1f71f0bcb304494a2f4 (patch)
tree8b46cfc64936cf8a48f81169e5e85a2ad03c84e7 /sfx2
parent9313fb9b5b872d7c888993ac186effcdcf9f8f57 (diff)
Simplify call to external helponline
add indentation chnage helponline.l.org -> help.l.org for good. Change-Id: Ie52a0f0a716c56da1a9553a805e25ebcabcb1490 Reviewed-on: https://gerrit.libreoffice.org/42764 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/sfxhelp.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx
index 7773c29b9a50..cc06ba7550e0 100644
--- a/sfx2/source/appl/sfxhelp.cxx
+++ b/sfx2/source/appl/sfxhelp.cxx
@@ -54,6 +54,7 @@
#include <vcl/layout.hxx>
#include <svtools/ehdl.hxx>
#include <svtools/sfxecode.hxx>
+#include "openuriexternally.hxx"
#include "newhelp.hxx"
#include <sfx2/objsh.hxx>
@@ -530,16 +531,13 @@ static bool impl_showOnlineHelp( const OUString& rURL )
if ( rURL.getLength() <= aInternal.getLength() || !rURL.startsWith(aInternal) )
return false;
- OUString aHelpLink( "http://helponline.libreoffice.org/help.html?" );
+ OUString aHelpLink( "https://help.libreoffice.org/help.html?" );
aHelpLink += rURL.copy( aInternal.getLength() );
aHelpLink = aHelpLink.replaceAll("%2F","/");
try
{
- Reference< XSystemShellExecute > xSystemShell(
- SystemShellExecute::create(::comphelper::getProcessComponentContext()) );
-
- xSystemShell->execute( aHelpLink, OUString(), SystemShellExecuteFlags::URIS_ONLY );
+ sfx2::openUriExternally(aHelpLink, false);
return true;
}
catch (const Exception&)