summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2000-11-30 08:12:41 +0000
committerMathias Bauer <mba@openoffice.org>2000-11-30 08:12:41 +0000
commite2be5bb346c89c8b8b90b4b385df9447033f0612 (patch)
tree75babd337cd83f7d03d47c03f4fc83fcbeaa3c09 /unotools
parent5a2db2d1226a5e5179a74750dde9c2432b94d48f (diff)
#79541#: new direct property for product name
Diffstat (limited to 'unotools')
-rw-r--r--unotools/inc/unotools/configmgr.hxx7
-rw-r--r--unotools/source/config/configmgr.cxx6
2 files changed, 8 insertions, 5 deletions
diff --git a/unotools/inc/unotools/configmgr.hxx b/unotools/inc/unotools/configmgr.hxx
index 7cf2b6d95538..1880ccd902fb 100644
--- a/unotools/inc/unotools/configmgr.hxx
+++ b/unotools/inc/unotools/configmgr.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: configmgr.hxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: hr $ $Date: 2000-11-20 17:11:33 $
+ * last change: $Author: mba $ $Date: 2000-11-30 09:12:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -119,7 +119,8 @@ namespace utl
LOCALE,
OFFICEINSTALL,
USERINSTALLURL,
- OFFICEINSTALLURL
+ OFFICEINSTALLURL,
+ PRODUCTNAME
};
//direct readonly access to some special configuration elements
static com::sun::star::uno::Any GetDirectConfigProperty(ConfigProperty eProp);
diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx
index 6a1d60032122..aaf1af99e6ad 100644
--- a/unotools/source/config/configmgr.cxx
+++ b/unotools/source/config/configmgr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: configmgr.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: os $ $Date: 2000-11-24 11:39:12 $
+ * last change: $Author: mba $ $Date: 2000-11-30 09:11:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -294,6 +294,7 @@ Any ConfigManager::GetDirectConfigProperty(ConfigProperty eProp)
case USERINSTALLURL:
sPath += C2U("UserProfile/Office"); break;
case LOCALE: sPath += C2U("UserProfile/International"); break;
+ case PRODUCTNAME: sPath += C2U("Setup/Product"); break;
case OFFICEINSTALL:
case OFFICEINSTALLURL:
sPath += C2U("Office.Common/Path/Current"); break;
@@ -318,6 +319,7 @@ Any ConfigManager::GetDirectConfigProperty(ConfigProperty eProp)
{
case INSTALLPATH: sProperty = C2U("InstallPath"); break;
case LOCALE: sProperty = C2U("Locale"); break;
+ case PRODUCTNAME: sProperty = C2U("Name"); break;
case OFFICEINSTALL: sProperty = C2U("OfficeInstall"); break;
case USERINSTALLURL: sProperty = C2U("InstallURL"); break;
case OFFICEINSTALLURL: sProperty = C2U("OfficeInstallURL"); break;