summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorStephan Bergmann <sb@openoffice.org>2000-12-14 07:07:50 +0000
committerStephan Bergmann <sb@openoffice.org>2000-12-14 07:07:50 +0000
commit2b45aca7f152e2df836121a81c1149f7c88b8afb (patch)
tree2450ad0118b1223a0261a37f124d306ded507bc3 /unotools
parent62b43447cd591f55b652f3a6b01015aa3590f0b8 (diff)
#77385# Made 'OfficeInstall' and 'InstallPath' local properties.
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/configmgr.cxx23
1 files changed, 21 insertions, 2 deletions
diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx
index af966349d02e..5c81e88b3168 100644
--- a/unotools/source/config/configmgr.cxx
+++ b/unotools/source/config/configmgr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: configmgr.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: os $ $Date: 2000-12-13 08:04:43 $
+ * last change: $Author: sb $ $Date: 2000-12-14 08:07:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -344,6 +344,25 @@ rtl::OUString ConfigManager::GetConfigBaseURL()
---------------------------------------------------------------------------*/
Any ConfigManager::GetDirectConfigProperty(ConfigProperty eProp)
{
+ ConfigManager * pTheConfigManager = GetConfigManager();
+ if (pTheConfigManager->IsLocalConfigProvider())
+ switch (eProp)
+ {
+ case INSTALLPATH:
+ return
+ pTheConfigManager->
+ GetLocalProperty(
+ rtl::OUString::createFromAscii(
+ "UserProfile/Office/InstallPath"));
+
+ case OFFICEINSTALL:
+ return
+ pTheConfigManager->
+ GetLocalProperty(
+ rtl::OUString::createFromAscii(
+ "Office.Common/Path/Current/OfficeInstall"));
+ }
+
Any aRet;
if ( eProp == PRODUCTNAME && aBrandName.getLength() )
{