summaryrefslogtreecommitdiff
path: root/desktop/source/app/userinstall.cxx
diff options
context:
space:
mode:
authorHans-Joachim Lankenau <hjs@openoffice.org>2004-07-07 14:53:39 +0000
committerHans-Joachim Lankenau <hjs@openoffice.org>2004-07-07 14:53:39 +0000
commit6340d16e5f2b681aeaef865f70cd97748da9c6f9 (patch)
tree15ba41a0808e223f80aaf23cecb914facb89a6f4 /desktop/source/app/userinstall.cxx
parent2b47ca80a7582ab5de48096cee0a60bcca8a9dae (diff)
#i10000# fix usage of removed things
Diffstat (limited to 'desktop/source/app/userinstall.cxx')
-rw-r--r--desktop/source/app/userinstall.cxx29
1 files changed, 11 insertions, 18 deletions
diff --git a/desktop/source/app/userinstall.cxx b/desktop/source/app/userinstall.cxx
index 836cc64bdea1..62ebee71d853 100644
--- a/desktop/source/app/userinstall.cxx
+++ b/desktop/source/app/userinstall.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: userinstall.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: rt $ $Date: 2004-07-05 10:40:08 $
+ * last change: $Author: hjs $ $Date: 2004-07-07 15:53:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -163,9 +163,14 @@ namespace desktop {
theMSF->createInstance(sConfigSrvc), UNO_QUERY_THROW);
// localize the provider to user selection
+// Reference< XLocalizable > localizable(theConfigProvider, UNO_QUERY_THROW);
+// LanguageType aUserLanguageType = LanguageSelection::getLanguageType();
+// OUString aUserLanguage = ConvertLanguageToIsoString(aUserLanguageType);
+// Locale aLocale = LanguageSelection::IsoStringToLocale(aUserLanguage);
+// localizable->setLocale(aLocale);
+
Reference< XLocalizable > localizable(theConfigProvider, UNO_QUERY_THROW);
- LanguageType aUserLanguageType = LanguageSelection::getLanguageType();
- OUString aUserLanguage = ConvertLanguageToIsoString(aUserLanguageType);
+ OUString aUserLanguage = LanguageSelection::getLanguageString();
Locale aLocale = LanguageSelection::IsoStringToLocale(aUserLanguage);
localizable->setLocale(aLocale);
@@ -220,24 +225,12 @@ namespace desktop {
// path exists, check if an installation lives there
if ( is_user_install() )
{
- // User installation already there, just check license.
- if (License::check())
- return E_None;
- else
- return E_License;
+ return E_None;
}
// Note: fall-thru intended.
}
case Bootstrap::PATH_VALID:
- {
- Reference< XMultiServiceFactory > xMultiServiceFactory( ::comphelper::getProcessServiceFactory() );
- rDesktop.RegisterServices( xMultiServiceFactory );
- }
-
- if (License::check())
- return create_user_install(aUserInstallPath);
- else
- return E_License;
+ return create_user_install(aUserInstallPath);
default:
return E_Unknown;