diff options
Diffstat (limited to 'unotools/source/config/bootstrap.cxx')
-rw-r--r-- | unotools/source/config/bootstrap.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/unotools/source/config/bootstrap.cxx b/unotools/source/config/bootstrap.cxx index ae5c8ad81a83..94c8c2e89f40 100644 --- a/unotools/source/config/bootstrap.cxx +++ b/unotools/source/config/bootstrap.cxx @@ -54,6 +54,7 @@ #define BOOTSTRAP_ITEM_PRODUCT_SOURCE "ProductSource" #define BOOTSTRAP_ITEM_VERSIONFILE "Location" #define BOOTSTRAP_ITEM_BUILDID "buildid" +#define BOOTSTRAP_ITEM_BUILDVERSION "BuildVersion" #define BOOTSTRAP_ITEM_BASEINSTALLATION "BRAND_BASE_DIR" #define BOOTSTRAP_ITEM_USERINSTALLATION "UserInstallation" @@ -642,6 +643,17 @@ OUString Bootstrap::getProductSource(OUString const& _sDefault) } // --------------------------------------------------------------------------------------- +OUString Bootstrap::getBuildVersion(OUString const& _sDefault) +{ + OUString const csBuildVersionItem(BOOTSTRAP_ITEM_BUILDVERSION); + + OUString sBuildVersion; + // read ProductSource from version.ini (versionrc) + data().getVersionValue( csBuildVersionItem, sBuildVersion, _sDefault ); + return sBuildVersion; +} +// --------------------------------------------------------------------------------------- + OUString Bootstrap::getBuildIdData(OUString const& _sDefault) { OUString const csBuildIdItem(RTL_CONSTASCII_USTRINGPARAM(BOOTSTRAP_ITEM_BUILDID)); |