diff options
author | Sven Jacobi <sj@openoffice.org> | 2007-09-28 14:49:57 +0000 |
---|---|---|
committer | Sven Jacobi <sj@openoffice.org> | 2007-09-28 14:49:57 +0000 |
commit | faf8bc07ca5ad87a4915ffb673a785d757300e44 (patch) | |
tree | 0f1478fd94f26fb3f36ef127c3b1d9df34293a22 /sdext/source/minimizer/informationdialog.cxx | |
parent | dab89dcb5cf9480af1122ea525bb04539c8e0726 (diff) |
now using displaying filename in a human readable form
Diffstat (limited to 'sdext/source/minimizer/informationdialog.cxx')
-rw-r--r-- | sdext/source/minimizer/informationdialog.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sdext/source/minimizer/informationdialog.cxx b/sdext/source/minimizer/informationdialog.cxx index 10a214da8cf3..e4fdf23b2bfb 100644 --- a/sdext/source/minimizer/informationdialog.cxx +++ b/sdext/source/minimizer/informationdialog.cxx @@ -4,9 +4,9 @@ * * $RCSfile: informationdialog.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: sj $ $Date: 2007-08-16 17:12:26 $ + * last change: $Author: sj $ $Date: 2007-09-28 15:49:57 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -321,10 +321,16 @@ void InformationDialog::InitDialog() OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ) ), mxMSF ), UNO_QUERY ); if ( xURLTransformer.is() ) { - util::URL aURL; + util::URL aURL, aPresentationURL; aURL.Complete = maSaveAsURL; xURLTransformer->parseSmart( aURL, rtl::OUString() ); - aTitle = aURL.Name; + + const OUString sFileProtocol( RTL_CONSTASCII_USTRINGPARAM( "file:///" ) ); + aPresentationURL.Complete = sFileProtocol.concat( aURL.Name ); + aTitle = xURLTransformer->getPresentation( aPresentationURL, sal_False ); + + if ( aTitle.match( sFileProtocol, 0 ) ) + aTitle = aTitle.replaceAt( 0, sFileProtocol.getLength(), rtl::OUString() ); } } |