diff options
author | Mathias Bauer <mba@openoffice.org> | 2000-12-08 07:56:14 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2000-12-08 07:56:14 +0000 |
commit | c8b0f5e763ea29ffc6f68821f00fce684c06d794 (patch) | |
tree | 34537e5eb507ae7451db59c924cafde1f749dd27 /unotools/source/config/configmgr.cxx | |
parent | 668cfdb6f86771d21ace98517867c34c52393c68 (diff) |
#79541#: exchangeable product name cached
Diffstat (limited to 'unotools/source/config/configmgr.cxx')
-rw-r--r-- | unotools/source/config/configmgr.cxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx index aaf1af99e6ad..3c258a16e28b 100644 --- a/unotools/source/config/configmgr.cxx +++ b/unotools/source/config/configmgr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: configmgr.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: mba $ $Date: 2000-11-30 09:11:37 $ + * last change: $Author: mba $ $Date: 2000-12-08 08:56:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -101,6 +101,8 @@ const char* cConfigBaseURL = "/org.openoffice."; //const char* cConfigBaseURL = "/com.sun.star."; const char* cAccessSrvc = "com.sun.star.configuration.ConfigurationUpdateAccess"; +static ::rtl::OUString aBrandName; + //----------------------------------------------------------------------------- struct ConfigItemListEntry_Impl { @@ -287,6 +289,12 @@ rtl::OUString ConfigManager::GetConfigBaseURL() Any ConfigManager::GetDirectConfigProperty(ConfigProperty eProp) { Any aRet; + if ( eProp == PRODUCTNAME && aBrandName.getLength() ) + { + aRet <<= aBrandName; + return aRet; + } + OUString sPath = C2U(cConfigBaseURL); switch(eProp) { @@ -332,6 +340,10 @@ Any ConfigManager::GetDirectConfigProperty(ConfigProperty eProp) { } } + + if ( eProp == PRODUCTNAME ) + aRet >>= aBrandName; + return aRet; } |