diff options
author | Petr Mladek <pmladek@suse.cz> | 2011-12-16 14:08:38 +0100 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-12-16 14:29:13 +0100 |
commit | dac89858f63c0f9527f11ad3a6c8b5ea16053c85 (patch) | |
tree | ef1da3fd7966179c685963acd48f3151487ec865 /unotools | |
parent | 32f07ecc8e57a95c5da0ef4f137644c808d71305 (diff) |
add version suffix (beta1) to about dialog
configurable at build time via ABOUTBOXPRODUCTVERSIONSUFFIX in
instsetoo_native/util/openoffice.lst
configurable at runtime via registry/data/org/openoffice/Setup.xcu
and ooSetupVersionAboutBoxSuffix property
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/inc/unotools/configmgr.hxx | 2 | ||||
-rw-r--r-- | unotools/source/config/configmgr.cxx | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/unotools/inc/unotools/configmgr.hxx b/unotools/inc/unotools/configmgr.hxx index 1ac1868585d1..56a216a5392f 100644 --- a/unotools/inc/unotools/configmgr.hxx +++ b/unotools/inc/unotools/configmgr.hxx @@ -50,6 +50,8 @@ class UNOTOOLS_DLLPUBLIC ConfigManager: private boost::noncopyable { public: static rtl::OUString getAboutBoxProductVersion(); + static rtl::OUString getAboutBoxProductVersionSuffix(); + static rtl::OUString getDefaultCurrency(); static rtl::OUString getLocale(); diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx index 553e15aae54c..f761c5f0901f 100644 --- a/unotools/source/config/configmgr.cxx +++ b/unotools/source/config/configmgr.cxx @@ -114,6 +114,13 @@ rtl::OUString utl::ConfigManager::getAboutBoxProductVersion() { RTL_CONSTASCII_USTRINGPARAM("Product/ooSetupVersionAboutBox"))); } +rtl::OUString utl::ConfigManager::getAboutBoxProductVersionSuffix() { + return getConfigurationString( + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Setup")), + rtl::OUString( + RTL_CONSTASCII_USTRINGPARAM("Product/ooSetupVersionAboutBoxSuffix"))); +} + rtl::OUString utl::ConfigManager::getDefaultCurrency() { return getConfigurationString( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Setup")), |