diff options
author | Hennes Rohling <hro@openoffice.org> | 2001-05-10 09:30:58 +0000 |
---|---|---|
committer | Hennes Rohling <hro@openoffice.org> | 2001-05-10 09:30:58 +0000 |
commit | 9040a13d39e557b3bf700cce88ea1dea0d858bd8 (patch) | |
tree | 5bb303c88127ba672ab757005e45b4e7962edcb7 /tools/source/stream/strmwnt.cxx | |
parent | a3ff188036e04d3c784c8f5d32dec4f07f8568c0 (diff) |
#TFU630#
Diffstat (limited to 'tools/source/stream/strmwnt.cxx')
-rw-r--r-- | tools/source/stream/strmwnt.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/source/stream/strmwnt.cxx b/tools/source/stream/strmwnt.cxx index 3d219a84bfd4..f391efb181ac 100644 --- a/tools/source/stream/strmwnt.cxx +++ b/tools/source/stream/strmwnt.cxx @@ -2,9 +2,9 @@ * * $RCSfile: strmwnt.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:03:09 $ + * last change: $Author: hro $ $Date: 2001-05-10 10:30:58 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -173,10 +173,16 @@ SvFileStream::SvFileStream( const String& rFileName, StreamMode nMode ) SetBufferSize( 8192 ); // convert URL to SystemPath, if necessary ::rtl::OUString aFileName, aNormPath; + +#ifdef TF_FILEURL + if ( FileBase::getSystemPathFromFileURL( rFileName, aFileName ) != FileBase::E_None ) + aFileName = rFileName; +#else if ( FileBase::getNormalizedPathFromFileURL( rFileName, aNormPath ) == FileBase::E_None ) FileBase::getSystemPathFromNormalizedPath( aNormPath, aFileName ); else aFileName = rFileName; +#endif Open( aFileName, nMode ); } |