diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-03-17 09:13:14 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-03-17 09:13:14 +0000 |
commit | 0244f3768b13d56284f2f041e2910bc1d1358917 (patch) | |
tree | 4f3be08df947e245142621c6038a778139fa3238 /extensions/source/plugin/base/context.cxx | |
parent | 8ede97acea98f1deffe827243917d7e95bf0c04e (diff) |
INTEGRATION: CWS vcl18 (1.7.228); FILE MERGED
2004/02/10 14:49:50 pl 1.7.228.1: #i12911# possibly provide seekable streams
Diffstat (limited to 'extensions/source/plugin/base/context.cxx')
-rw-r--r-- | extensions/source/plugin/base/context.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/extensions/source/plugin/base/context.cxx b/extensions/source/plugin/base/context.cxx index a8608de8a..be32e6dff 100644 --- a/extensions/source/plugin/base/context.cxx +++ b/extensions/source/plugin/base/context.cxx @@ -2,9 +2,9 @@ * * $RCSfile: context.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: rt $ $Date: 2002-12-03 10:31:03 $ + * last change: $Author: obo $ $Date: 2004-03-17 10:13:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -162,11 +162,12 @@ void XPluginContext_Impl::getURL(const Reference< ::com::sun::star::plugin::XPlu aURL.SetSmartProtocol( INET_PROT_FILE ); aURL.SetSmartURL( ::rtl::OUStringToOString( url, m_aEncoding ) ); + rtl::OUString aUrl = aURL.GetMainURL(INetURLObject::DECODE_TO_IURI); // the mimetype cannot be specified plugin->provideNewStream( ::rtl::OUString(), Reference< XActiveDataSource >(), - aURL.GetMainURL(INetURLObject::DECODE_TO_IURI), - 0, 0, sal_False ); + aUrl, + 0, 0, (sal_Bool)(aUrl.compareToAscii( "file:", 5 ) == 0) ); return; } |