diff options
author | Eike Rathke <erack@redhat.com> | 2013-04-25 00:00:07 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-04-25 00:01:09 +0200 |
commit | 86acfb46ceb8946c6029811592d93041936e0091 (patch) | |
tree | 5d372de613512e5d5a55fc0dfde44fe7b2d681da /lotuswordpro | |
parent | f62a00f32a1adb4052b05e406cb0e040c7f2360d (diff) |
removed commented out code that wouldn't be correct anyway
Change-Id: I1fc5f6b7e779ae0c9ac5f30934c2c5d75757581d
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwptools.cxx | 45 |
1 files changed, 0 insertions, 45 deletions
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 |