merge the formfield patch from ooo-build
[ooovba.git] / applied_patches / 0219-help-support.diff
blobaf444c93b29179581eea321ed0cf460cecf8e878
1 Index: sfx2/source/appl/appserv.cxx
2 ===================================================================
3 RCS file: /cvs/framework/sfx2/source/appl/appserv.cxx,v
4 retrieving revision 1.30.116.1
5 diff -u -r1.30.116.1 appserv.cxx
6 --- sfx2/source/appl/appserv.cxx 20 Jan 2004 10:43:08 -0000 1.30.116.1
7 +++ sfx2/source/appl/appserv.cxx 9 Sep 2004 10:45:38 -0000
8 @@ -123,6 +123,8 @@
9 #include <tools/config.hxx>
10 #include <tools/diagnose_ex.h>
11 #include <vcl/msgbox.hxx>
12 +#include <com/sun/star/system/XSystemShellExecute.hpp>
13 +#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
14 #include <svtools/cancel.hxx>
15 #include <svtools/intitem.hxx>
16 #include <svtools/eitem.hxx>
17 @@ -467,9 +473,24 @@
18 break;
21 + case SID_HELP_SUPPORTPAGE:
22 + {
23 + try {
24 + Reference< com::sun::star::system::XSystemShellExecute > xSystemShell
25 + ( ::comphelper::getProcessServiceFactory()->createInstance( DEFINE_CONST_UNICODE("com.sun.star.system.SystemShellExecute" ) ), UNO_QUERY );
26 + if ( xSystemShell.is()) {
27 + rtl::OUString aURI( DEFINE_CONST_UNICODE( "http://www.novell.com/support" ) );
28 + xSystemShell->execute( aURI, ::rtl::OUString(), com::sun::star::system::SystemShellExecuteFlags::DEFAULTS );
29 + }
31 + break;
32 + } catch (const ::com::sun::star::uno::Exception &) {
33 + }
34 + /* drop through on exception */
35 + }
37 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
38 case SID_HELPINDEX:
39 - case SID_HELP_SUPPORTPAGE:
41 Help* pHelp = Application::GetHelp();
42 if ( pHelp )