summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-05-10 11:59:41 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-05-10 11:59:41 +0000
commit84cb470c6b10f04413b014a7f2cfee4061aa93f8 (patch)
tree0db2cfecc13e56273030cb559a85dc1b5e657b19 /sfx2
parent7fe5269871d6350b7b96bdc552bec8121f57add8 (diff)
INTEGRATION: CWS defaultbrowser (1.77.26); FILE MERGED
2004/04/30 05:36:02 obr 1.77.26.2: #i27120# do not convert file url to system patchs here 2004/04/22 11:31:11 obr 1.77.26.1: #i27118# changed error message for >browser not found<
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appopen.cxx51
1 files changed, 24 insertions, 27 deletions
diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx
index e60a8fbd92c5..96c749d83d0d 100644
--- a/sfx2/source/appl/appopen.cxx
+++ b/sfx2/source/appl/appopen.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: appopen.cxx,v $
*
- * $Revision: 1.78 $
+ * $Revision: 1.79 $
*
- * last change: $Author: svesik $ $Date: 2004-04-21 12:15:52 $
+ * last change: $Author: hr $ $Date: 2004-05-10 12:59:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1249,13 +1249,13 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq )
{
vos::OGuard aGuard( Application::GetSolarMutex() );
Window *pWindow = SFX_APP()->GetTopWindow();
- ErrorBox( pWindow, SfxResId( MSG_ERR_WEBBROWSER_NOT_STARTED )).Execute();
+ 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_WEBBROWSER_NOT_STARTED )).Execute();
+ ErrorBox( pWindow, SfxResId( MSG_ERR_NO_WEBBROWSER_FOUND )).Execute();
}
return;
@@ -1267,35 +1267,32 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq )
// security reservation: => we have to check the referer before executing
if ( SFX_APP()->IsSecureURL( String(), &aReferer ) )
{
- ::rtl::OUString aSysPathFileName;
- ::osl::FileBase::RC nError = ::osl::FileBase::getSystemPathFromFileURL( aURL.Complete, aSysPathFileName );
- if ( nError == ::osl::FileBase::E_None )
+ ::rtl::OUString aURLString( aURL.Complete );
+
+ try
{
- try
- {
- // give os this file
- xSystemShellExecute->execute( aSysPathFileName, ::rtl::OUString(), SystemShellExecuteFlags::DEFAULTS );
- }
- catch ( ::com::sun::star::lang::IllegalArgumentException& )
+ // give os this file
+ 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& )
+ {
+ if ( !pFilter )
{
vos::OGuard aGuard( Application::GetSolarMutex() );
Window *pWindow = SFX_APP()->GetTopWindow();
- ErrorBox( pWindow, SfxResId( MSG_ERR_EXTERNAL_APP_NOT_FOUND )).Execute();
+ ErrorBox( pWindow, SfxResId( MSG_ERR_NO_WEBBROWSER_FOUND )).Execute();
}
- catch ( ::com::sun::star::system::SystemShellExecuteException& )
+ else
{
- if ( !pFilter )
- {
- vos::OGuard aGuard( Application::GetSolarMutex() );
- Window *pWindow = SFX_APP()->GetTopWindow();
- ErrorBox( pWindow, SfxResId( MSG_ERR_EXTERNAL_APP_NOT_FOUND )).Execute();
- }
- else
- {
- rReq.RemoveItem( SID_TARGETNAME );
- rReq.AppendItem( SfxStringItem( SID_TARGETNAME, String::CreateFromAscii("_default") ) );
- bLoadInternal = TRUE;
- }
+ rReq.RemoveItem( SID_TARGETNAME );
+ rReq.AppendItem( SfxStringItem( SID_TARGETNAME, String::CreateFromAscii("_default") ) );
+ bLoadInternal = TRUE;
}
}
}