rpms/openoffice.org/devel openoffice.org-2.4.0.ooo87490.sfx2.allprotocols.urlopen.patch, NONE, 1.1 openoffice.org.spec, 1.1454, 1.1455
Caolan McNamara (caolanm)
fedora-extras-commits at redhat.com
Thu Mar 27 09:36:59 UTC 2008
Author: caolanm
Update of /cvs/pkgs/rpms/openoffice.org/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25127
Modified Files:
openoffice.org.spec
Added Files:
openoffice.org-2.4.0.ooo87490.sfx2.allprotocols.urlopen.patch
Log Message:
add openoffice.org-2.4.0.ooo87490.sfx2.allprotocols.urlopen.patch
openoffice.org-2.4.0.ooo87490.sfx2.allprotocols.urlopen.patch:
--- NEW FILE openoffice.org-2.4.0.ooo87490.sfx2.allprotocols.urlopen.patch ---
Index: source/appl/appopen.cxx
===================================================================
RCS file: /cvs/framework/sfx2/source/appl/appopen.cxx,v
retrieving revision 1.116
diff -u -r1.116 appopen.cxx
--- openoffice.org.orig/sfx2/source/appl/appopen.cxx 26 Nov 2007 16:46:28 -0000 1.116
+++ openoffice.org/sfx2/source/appl/appopen.cxx 27 Mar 2008 09:17:09 -0000
@@ -1206,32 +1206,13 @@
::rtl::OUString::createFromAscii( "com.sun.star.system.SystemShellExecute" )), UNO_QUERY );
if ( xSystemShellExecute.is() )
{
- if ( aINetProtocol == INET_PROT_FTP ||
- aINetProtocol == INET_PROT_HTTP ||
- aINetProtocol == INET_PROT_HTTPS )
+ if ( aINetProtocol == INET_PROT_MAILTO )
{
- try
- {
- // start browser
- ::rtl::OUString aURLString( aURL.Complete );
- xSystemShellExecute->execute( aURLString, ::rtl::OUString(), SystemShellExecuteFlags::DEFAULTS );
- }
- catch ( ::com::sun::star::lang::IllegalArgumentException& )
- {
- vos::OGuard aGuard( Application::GetSolarMutex() );
- Window *pWindow = SFX_APP()->GetTopWindow();
- ErrorBox( pWindow, SfxResId( MSG_ERR_NO_WEBBROWSER_FOUND )).Execute();
- }
- catch ( ::com::sun::star::system::SystemShellExecuteException& )
- {
- vos::OGuard aGuard( Application::GetSolarMutex() );
- Window *pWindow = SFX_APP()->GetTopWindow();
- ErrorBox( pWindow, SfxResId( MSG_ERR_NO_WEBBROWSER_FOUND )).Execute();
- }
-
- return;
+ // don't dispatch mailto hyperlink to desktop dispatcher
+ rReq.RemoveItem( SID_TARGETNAME );
+ rReq.AppendItem( SfxStringItem( SID_TARGETNAME, String::CreateFromAscii("_self") ) );
}
- else if ( aINetProtocol == INET_PROT_FILE )
+ else
{
BOOL bLoadInternal = FALSE;
@@ -1276,12 +1257,6 @@
if ( !bLoadInternal )
return;
}
- else if ( aINetProtocol == INET_PROT_MAILTO )
- {
- // don't dispatch mailto hyperlink to desktop dispatcher
- rReq.RemoveItem( SID_TARGETNAME );
- rReq.AppendItem( SfxStringItem( SID_TARGETNAME, String::CreateFromAscii("_self") ) );
- }
}
}
else
Index: openoffice.org.spec
===================================================================
RCS file: /cvs/pkgs/rpms/openoffice.org/devel/openoffice.org.spec,v
retrieving revision 1.1454
retrieving revision 1.1455
diff -u -r1.1454 -r1.1455
--- openoffice.org.spec 26 Mar 2008 13:12:37 -0000 1.1454
+++ openoffice.org.spec 27 Mar 2008 09:36:02 -0000 1.1455
@@ -147,6 +147,7 @@
Patch74: openoffice.org-2.3.0.ooo86882.vcl.unsigned_int_to_long.patch
Patch75: openoffice.org-2.4.0.ooo86924.sfx2.iconchanges.patch
Patch76: openoffice.org-2.4.0.ooo87204.toolkit.64bitevent.patch
+Patch77: openoffice.org-2.4.0.ooo87490.sfx2.allprotocols.urlopen.patch
%define instdir %{_libdir}/openoffice.org
@@ -1108,6 +1109,7 @@
%patch74 -p1 -b .ooo86882.vcl.unsigned_int_to_long.patch
%patch75 -p1 -b .ooo86924.sfx2.iconchanges.patch
%patch76 -p1 -b .ooo87204.toolkit.64bitevent.patch
+%patch77 -p1 -b .ooo87490.sfx2.allprotocols.urlopen.patch
%build
echo build start time is `date`, diskspace: `df -h . | tail -n 1`
@@ -2887,6 +2889,7 @@
%changelog
* Wed Mar 19 2008 Caolan McNamara <caolanm at redhat.com> - 1:2.4.0-12.2
- add openoffice.org-2.4.0.ooo87204.toolkit.64bitevent.patch
+- add openoffice.org-2.4.0.ooo87490.sfx2.allprotocols.urlopen.patch
* Sun Mar 16 2008 Caolan McNamara <caolanm at redhat.com> - 1:2.4.0-12.1
- yet another release candidate
More information about the fedora-extras-commits
mailing list