summaryrefslogtreecommitdiff
path: root/unotools/source/config/bootstrap.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-06-20 06:09:49 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-06-20 06:09:49 +0000
commit0f0d5b65114d40dba0134f054e81be309f30827c (patch)
tree6aef9d788561b50f1c1a747ceb997fda56d26ff1 /unotools/source/config/bootstrap.cxx
parent6ee5334b5a2cee8e3448135861c545f1e1a7938b (diff)
INTEGRATION: CWS fwk88 (1.25.6); FILE MERGED
2008/05/26 11:38:29 pb 1.25.6.1: fix: #i89054# new: getProductSource()
Diffstat (limited to 'unotools/source/config/bootstrap.cxx')
-rw-r--r--unotools/source/config/bootstrap.cxx14
1 files changed, 13 insertions, 1 deletions
diff --git a/unotools/source/config/bootstrap.cxx b/unotools/source/config/bootstrap.cxx
index f89706806268..2e2c2ad8e5cd 100644
--- a/unotools/source/config/bootstrap.cxx
+++ b/unotools/source/config/bootstrap.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: bootstrap.cxx,v $
- * $Revision: 1.26 $
+ * $Revision: 1.27 $
*
* This file is part of OpenOffice.org.
*
@@ -54,6 +54,7 @@
#define BOOTSTRAP_DATA_NAME SAL_CONFIGFILE("bootstrap")
#define BOOTSTRAP_ITEM_PRODUCT_KEY "ProductKey"
+#define BOOTSTRAP_ITEM_PRODUCT_SOURCE "ProductSource"
#define BOOTSTRAP_ITEM_VERSIONFILE "Location"
#define BOOTSTRAP_ITEM_LOGO "Logo"
#define BOOTSTRAP_ITEM_BUILDID "buildid"
@@ -656,6 +657,17 @@ OUString Bootstrap::getProductKey(OUString const& _sDefault)
}
// ---------------------------------------------------------------------------------------
+OUString Bootstrap::getProductSource(OUString const& _sDefault)
+{
+ OUString const csProductSourceItem(RTL_CONSTASCII_USTRINGPARAM(BOOTSTRAP_ITEM_PRODUCT_SOURCE));
+
+ OUString sProductSource;
+ // read ProductSource from version.ini (versionrc)
+ data().getVersionValue( csProductSourceItem, sProductSource, _sDefault );
+ return sProductSource;
+}
+// ---------------------------------------------------------------------------------------
+
OUString Bootstrap::getLogoData(OUString const& _sDefault)
{
OUString const csLogoItem(RTL_CONSTASCII_USTRINGPARAM(BOOTSTRAP_ITEM_LOGO));