summaryrefslogtreecommitdiff
path: root/svtools/source
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-08-28 10:30:16 +0000
committerMathias Bauer <mba@openoffice.org>2001-08-28 10:30:16 +0000
commitcceef76a12122d6c9ac6024be3a81d658ebf1594 (patch)
tree78b35c552189b82581151f9910086b98faa23068 /svtools/source
parent77e767d6c565c6b7bf00d1bdc0352c26210f2302 (diff)
#83399#: always return URLs
Diffstat (limited to 'svtools/source')
-rw-r--r--svtools/source/config/defaultoptions.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/svtools/source/config/defaultoptions.cxx b/svtools/source/config/defaultoptions.cxx
index 6c3f4ec8fb0b..b7e16f7fd127 100644
--- a/svtools/source/config/defaultoptions.cxx
+++ b/svtools/source/config/defaultoptions.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: defaultoptions.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: pb $ $Date: 2001-06-29 09:02:07 $
+ * last change: $Author: mba $ $Date: 2001-08-28 11:30:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -93,6 +93,7 @@
#endif
#include <vos/process.hxx>
+#include <unotools/localfilehelper.hxx>
using namespace osl;
using namespace utl;
@@ -247,6 +248,17 @@ String SvtDefaultOptions_Impl::GetDefaultPath( USHORT nId ) const
if ( nId == PathMap_Impl[nIdx]._ePath && PathMap_Impl[nIdx]._pDefaultPath )
{
aRet = this->*(PathMap_Impl[nIdx]._pDefaultPath);
+ if ( nId == SvtPathOptions::PATH_ADDIN ||
+ nId == SvtPathOptions::PATH_FILTER ||
+ nId == SvtPathOptions::PATH_HELP ||
+ nId == SvtPathOptions::PATH_MODULE ||
+ nId == SvtPathOptions::PATH_PLUGIN )
+ {
+ String aTmp;
+ ::utl::LocalFileHelper::ConvertPhysicalNameToURL( aRet, aTmp );
+ aRet = aTmp;
+ }
+
break;
}
++nIdx;