diff options
author | Carsten Driesner <cd@openoffice.org> | 2001-12-06 08:59:43 +0000 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2001-12-06 08:59:43 +0000 |
commit | 40b58658b7c4aa255b9722f23a597c79177cf2ef (patch) | |
tree | 8f38c905fa6d2cf6bc92776fa737baca429d3d89 /unotools/source | |
parent | a01b00af30767ebc9f7d831696f7c55f52cdabd8 (diff) |
#95517# support new entry InstallMode
Diffstat (limited to 'unotools/source')
-rw-r--r-- | unotools/source/config/bootstrap.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/unotools/source/config/bootstrap.cxx b/unotools/source/config/bootstrap.cxx index a92274eb55be..212700f212bc 100644 --- a/unotools/source/config/bootstrap.cxx +++ b/unotools/source/config/bootstrap.cxx @@ -2,9 +2,9 @@ * * $RCSfile: bootstrap.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: jb $ $Date: 2001-11-20 14:35:52 $ + * last change: $Author: cd $ $Date: 2001-12-06 09:59:43 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -101,6 +101,7 @@ #define BOOTSTRAP_ITEM_VERSIONFILE "Location" #define BOOTSTRAP_ITEM_LOGO "Logo" #define BOOTSTRAP_ITEM_BUILDID "buildid" +#define BOOTSTRAP_ITEM_INSTALLMODE "InstallMode" #define BOOTSTRAP_ITEM_BASEINSTALLATION "BaseInstallation" #define BOOTSTRAP_ITEM_USERINSTALLATION "UserInstallation" @@ -707,6 +708,15 @@ OUString Bootstrap::getBuildIdData(OUString const& _sDefault) } // --------------------------------------------------------------------------------------- +/// retrieve the installation mode information item; uses the given default, if not found +OUString Bootstrap::getInstallMode(rtl::OUString const& _sDefault) +{ + OUString const csInstallModeItem(RTL_CONSTASCII_USTRINGPARAM(BOOTSTRAP_ITEM_INSTALLMODE)); + + return data().getBootstrapValue( csInstallModeItem, _sDefault ); +} +// --------------------------------------------------------------------------------------- + Bootstrap::PathStatus Bootstrap::locateBaseInstallation(OUString& _rURL) { Impl::PathData const& aPathData = data().aBaseInstall_; |