]> git.pld-linux.org Git - packages/libreoffice.git/blame - openoffice-help-support.patch
- up
[packages/libreoffice.git] / openoffice-help-support.patch
CommitLineData
efef92ce 1Index: svx/inc/globlmn.hrc
2===================================================================
3RCS file: /cvs/graphics/svx/inc/globlmn.hrc,v
4retrieving revision 1.117
5diff -u -p -u -r1.117 globlmn.hrc
6--- svx/inc/globlmn.hrc 22 May 2003 08:57:45 -0000 1.117
7+++ svx/inc/globlmn.hrc 4 Jun 2003 10:10:34 -0000
8@@ -5283,10 +5283,6 @@
9 {\
10 ITEM_HELP_SUPPORTPAGE\
11 };\
12- MenuItem\
13- {\
14- ITEM_HELP_ONLINE_REGISTRATION\
15- };\
16 MenuItem\
17 {\
18 Separator = TRUE ; \
19Index: sfx2/source/appl/appserv.cxx
20===================================================================
21RCS file: /cvs/framework/sfx2/source/appl/appserv.cxx,v
22retrieving revision 1.30
23diff -u -p -u -r1.30 appserv.cxx
24--- sfx2/source/appl/appserv.cxx 4 Apr 2003 17:33:45 -0000 1.30
25+++ sfx2/source/appl/appserv.cxx 4 Jun 2003 10:13:06 -0000
26@@ -126,6 +126,12 @@
27 #ifndef _SV_HELP_HXX
28 #include <vcl/help.hxx>
29 #endif
30+#ifndef _COM_SUN_STAR_SYSTEM_XSYSTEMSHELLEXECUTE_HPP_
31+#include <com/sun/star/system/XSystemShellExecute.hpp>
32+#endif
33+#ifndef _COM_SUN_STAR_SYSTEM_SYSTEMSHELLEXECUTEFLAGS_HPP_
34+#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
35+#endif
36
37 #include <svtools/pathoptions.hxx>
38 #include <svtools/helpopt.hxx>
39@@ -602,9 +608,24 @@ void SfxApplication::MiscExec_Impl( SfxR
40 break;
41 }
42
43+ case SID_HELP_SUPPORTPAGE:
44+ {
45+ try {
46+ Reference< com::sun::star::system::XSystemShellExecute > xSystemShell
47+ ( ::comphelper::getProcessServiceFactory()->createInstance( DEFINE_CONST_UNICODE("com.sun.star.system.SystemShellExecute" ) ), UNO_QUERY );
48+ if ( xSystemShell.is()) {
96b5d30d 49+ rtl::OUString aURI( DEFINE_CONST_UNICODE( "http://www.pld-linux.org/" ) );
efef92ce 50+ xSystemShell->execute( aURI, ::rtl::OUString(), com::sun::star::system::SystemShellExecuteFlags::DEFAULTS );
51+ }
52+
53+ break;
54+ } catch (const ::com::sun::star::uno::Exception &) {
55+ }
56+ /* drop through on exception */
57+ }
58+
59 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
60 case SID_HELPINDEX:
61- case SID_HELP_SUPPORTPAGE:
62 {
63 Help* pHelp = Application::GetHelp();
64 if ( pHelp )
This page took 0.123827 seconds and 4 git commands to generate.