From d9e4c74811855de15f1bf2045c2c9b061a2d4dc6 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 19 Jun 2012 13:48:45 +0100 Subject: merge together hand-crafted traditional/simplified chinese tests merge together a gadzillion hand-crafted isSimpleChinese/isTraditionalChinese/isKoreanVariants/isCJK implementations which should fix a goodly amount of them add a MsLangId::isFamilyNameFirst for locales where family name appears first while I'm at it. Change-Id: I65377793be037d16fe7250cd7450b28aec689e83 --- reportdesign/source/core/api/ReportComponent.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'reportdesign/source') diff --git a/reportdesign/source/core/api/ReportComponent.cxx b/reportdesign/source/core/api/ReportComponent.cxx index 38b80c859b12..4045db843562 100644 --- a/reportdesign/source/core/api/ReportComponent.cxx +++ b/reportdesign/source/core/api/ReportComponent.cxx @@ -58,13 +58,8 @@ void lcl_getDefaultFonts( Font& rLatinFont, Font& rCJKFont, Font& rCTLFont,Langu // be queried for Korean, too (the Latin language from the document can't be Korean). // This is the same logic as in SwDocShell::InitNew. LanguageType eUiLanguage = Application::GetSettings().GetUILanguage(); - switch( eUiLanguage ) - { - case LANGUAGE_KOREAN: - case LANGUAGE_KOREAN_JOHAB: - eLatin = eUiLanguage; - break; - } + if (MsLangId::isKorean(eUiLanguage)) + eLatin = eUiLanguage; rLatinFont = OutputDevice::GetDefaultFont( DEFAULTFONT_LATIN_PRESENTATION, eLatin, DEFAULTFONT_FLAGS_ONLYONE ); rCJKFont = OutputDevice::GetDefaultFont( DEFAULTFONT_CJK_PRESENTATION, _eCJK, DEFAULTFONT_FLAGS_ONLYONE ); -- cgit