From 86acfb46ceb8946c6029811592d93041936e0091 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 25 Apr 2013 00:00:07 +0200 Subject: removed commented out code that wouldn't be correct anyway Change-Id: I1fc5f6b7e779ae0c9ac5f30934c2c5d75757581d --- lotuswordpro/source/filter/lwptools.cxx | 45 --------------------------------- 1 file changed, 45 deletions(-) (limited to 'lotuswordpro') diff --git a/lotuswordpro/source/filter/lwptools.cxx b/lotuswordpro/source/filter/lwptools.cxx index 9ef4ec577e39..77eb3dc7bf63 100644 --- a/lotuswordpro/source/filter/lwptools.cxx +++ b/lotuswordpro/source/filter/lwptools.cxx @@ -262,29 +262,7 @@ XFDateStyle* LwpTools::GetSystemDateStyle(sal_Bool bLongFormat) style = icu::DateFormat::FULL;//system full date format else style = icu::DateFormat::SHORT;//system short date format -/* ::com::sun::star::lang::Locale aLocale=Application::GetSettings().GetLocale(); - OUString strLang = aLocale.Language; - OUString strCountry = aLocale.Country; - strLang = strLang + A2OUSTR("_"); - OUString strLocale = strLang + strCountry; - int32_t nLength = 0; - int32_t nLengthNeed; - UErrorCode status = U_ZERO_ERROR; - UChar* pattern = NULL; - - UDateFormat* fmt= udat_open(UDAT_FULL, UDAT_FULL, - (char*)(OUStringToOString(strLocale,RTL_TEXTENCODING_MS_1252).getStr()), NULL, 0, NULL, 0, &status); - - nLengthNeed = udat_toPattern(fmt,true,NULL,nLength,&status); - if (status == U_BUFFER_OVERFLOW_ERROR) - { - status = U_ZERO_ERROR; - nLength = nLengthNeed +1; - pattern = (UChar*)malloc(sizeof(UChar)*nLength); - udat_toPattern(fmt,true,pattern,nLength,&status); - } -*/ //1 get locale for system icu::Locale aLocale( LanguageTagIcu::getIcuLocale( Application::GetSettings().GetLanguageTag())); //2 get icu format pattern by locale @@ -671,29 +649,6 @@ XFDateStyle* LwpTools::GetSystemDateStyle(sal_Bool bLongFormat) */ XFTimeStyle* LwpTools::GetSystemTimeStyle() { -/* ::com::sun::star::lang::Locale aLocale=Application::GetSettings().GetLocale(); - OUString strLang = aLocale.Language; - OUString strCountry = aLocale.Country; - strLang = strLang + A2OUSTR("_"); - OUString strLocale = strLang + strCountry; - - int32_t nLength = 0; - int32_t nLengthNeed; - UErrorCode status = U_ZERO_ERROR; - UChar* pattern = NULL; - - UDateFormat* fmt= udat_open(UDAT_FULL, UDAT_FULL, - (char*)(OUStringToOString(strLocale,RTL_TEXTENCODING_MS_1252).getStr()), NULL, 0, NULL, 0, &status); - - nLengthNeed = udat_toPattern(fmt,true,NULL,nLength,&status); - if (status == U_BUFFER_OVERFLOW_ERROR) - { - status = U_ZERO_ERROR; - nLength = nLengthNeed +1; - pattern = (UChar*)malloc(sizeof(UChar)*nLength); - udat_toPattern(fmt,true,pattern,nLength,&status); - } -*/ //1 get locale for system icu::Locale aLocale( LanguageTagIcu::getIcuLocale( Application::GetSettings().GetLanguageTag())); //2 get icu format pattern by locale -- cgit