summaryrefslogtreecommitdiffstats
path: root/sdext/source/minimizer/informationdialog.cxx
diff options
context:
space:
mode:
authorSven Jacobi <sj@openoffice.org>2007-09-28 14:49:57 +0000
committerSven Jacobi <sj@openoffice.org>2007-09-28 14:49:57 +0000
commitfaf8bc07ca5ad87a4915ffb673a785d757300e44 (patch)
tree0f1478fd94f26fb3f36ef127c3b1d9df34293a22 /sdext/source/minimizer/informationdialog.cxx
parentnow clearing undo stack after optimizing (diff)
downloadcore-faf8bc07ca5ad87a4915ffb673a785d757300e44.tar.gz
core-faf8bc07ca5ad87a4915ffb673a785d757300e44.zip
now using displaying filename in a human readable form
Diffstat (limited to 'sdext/source/minimizer/informationdialog.cxx')
-rw-r--r--sdext/source/minimizer/informationdialog.cxx14
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() );
}
}