diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-04-17 08:57:58 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-04-17 08:57:58 +0000 |
commit | 742ae202ef8bc28a10dfbc7f5bcb736863053207 (patch) | |
tree | 09c69328e4141e9bb3ae3819904cc330a3337752 /svx | |
parent | 0d7839453262d03e6e1d3c28adcb5079033335ba (diff) |
INTEGRATION: CWS sw009 (1.49.2.2.48); FILE MERGED
2003/03/18 09:59:07 oj 1.49.2.2.48.1: #107657# moved GetScriptTypeOfLanguage to svtools SvtLanguageOptions
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/items/textitem.cxx | 112 |
1 files changed, 3 insertions, 109 deletions
diff --git a/svx/source/items/textitem.cxx b/svx/source/items/textitem.cxx index a5e913fa3e46..8e60aa3bd5c6 100644 --- a/svx/source/items/textitem.cxx +++ b/svx/source/items/textitem.cxx @@ -2,9 +2,9 @@ * * $RCSfile: textitem.cxx,v $ * - * $Revision: 1.51 $ + * $Revision: 1.52 $ * - * last change: $Author: hr $ $Date: 2003-04-04 18:04:07 $ + * last change: $Author: vg $ $Date: 2003-04-17 09:57:58 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -3732,116 +3732,10 @@ void GetDefaultFonts( SvxFontItem& rLatin, SvxFontItem& rAsian, SvxFontItem& rCo } } -// returns for a language the scripttype -USHORT GetScriptTypeOfLanguage( USHORT nLang ) -{ - if( LANGUAGE_DONTKNOW == nLang ) - nLang = LANGUAGE_ENGLISH_US; - else if( LANGUAGE_SYSTEM == nLang ) - nLang = Application::GetSettings().GetLanguage(); - - USHORT nScript; - switch( nLang ) - { - // CJK - case LANGUAGE_CHINESE: - case LANGUAGE_CHINESE_TRADITIONAL: - case LANGUAGE_CHINESE_SIMPLIFIED: - case LANGUAGE_CHINESE_HONGKONG: - case LANGUAGE_CHINESE_SINGAPORE: - case LANGUAGE_CHINESE_MACAU: - case LANGUAGE_JAPANESE: - case LANGUAGE_KOREAN: - case LANGUAGE_KOREAN_JOHAB: - nScript = SCRIPTTYPE_ASIAN; - break; - - // CTL - case LANGUAGE_ARABIC: - case LANGUAGE_ARABIC_SAUDI_ARABIA: - case LANGUAGE_ARABIC_IRAQ: - case LANGUAGE_ARABIC_EGYPT: - case LANGUAGE_ARABIC_LIBYA: - case LANGUAGE_ARABIC_ALGERIA: - case LANGUAGE_ARABIC_MOROCCO: - case LANGUAGE_ARABIC_TUNISIA: - case LANGUAGE_ARABIC_OMAN: - case LANGUAGE_ARABIC_YEMEN: - case LANGUAGE_ARABIC_SYRIA: - case LANGUAGE_ARABIC_JORDAN: - case LANGUAGE_ARABIC_LEBANON: - case LANGUAGE_ARABIC_KUWAIT: - case LANGUAGE_ARABIC_UAE: - case LANGUAGE_ARABIC_BAHRAIN: - case LANGUAGE_ARABIC_QATAR: - case LANGUAGE_HEBREW: - case LANGUAGE_MARATHI: - case LANGUAGE_PUNJABI: - case LANGUAGE_GUJARATI: - case LANGUAGE_HINDI: - case LANGUAGE_KANNADA: - case LANGUAGE_TAMIL: - case LANGUAGE_TELUGU: - case LANGUAGE_THAI: - case LANGUAGE_URDU: - case LANGUAGE_URDU_PAKISTAN: - case LANGUAGE_URDU_INDIA: - case LANGUAGE_VIETNAMESE: // not included in langtab.src? - nScript = SCRIPTTYPE_COMPLEX; - break; - -// currently not knowing scripttype - defaultet to LATIN: -/* -#define LANGUAGE_AFRIKAANS 0x0436 -#define LANGUAGE_ARMENIAN 0x042B -#define LANGUAGE_ASSAMESE 0x044D -#define LANGUAGE_AZERI 0x002C -#define LANGUAGE_AZERI_LATIN 0x042C -#define LANGUAGE_AZERI_CYRILLIC 0x082C -#define LANGUAGE_BASQUE 0x042D -#define LANGUAGE_BELARUSIAN 0x0423 -#define LANGUAGE_BENGALI 0x0445 -#define LANGUAGE_INDONESIAN 0x0421 -#define LANGUAGE_KASHMIRI 0x0460 -#define LANGUAGE_KASHMIRI_INDIA 0x0860 -#define LANGUAGE_KAZAK 0x043F -#define LANGUAGE_KONKANI 0x0457 -#define LANGUAGE_LATVIAN 0x0426 -#define LANGUAGE_LITHUANIAN 0x0427 -#define LANGUAGE_LITHUANIAN_CLASSIC 0x0827 -#define LANGUAGE_MACEDONIAN 0x042F -#define LANGUAGE_MALAY 0x003E -#define LANGUAGE_MALAY_MALAYSIA 0x043E -#define LANGUAGE_MALAY_BRUNEI_DARUSSALAM 0x083E -#define LANGUAGE_MALAYALAM 0x044C -#define LANGUAGE_MANIPURI 0x0458 -#define LANGUAGE_NEPALI 0x0461 -#define LANGUAGE_NEPALI_INDIA 0x0861 -#define LANGUAGE_ORIYA 0x0448 -#define LANGUAGE_SANSKRIT 0x044F -#define LANGUAGE_SERBIAN 0x041A -#define LANGUAGE_SERBIAN_LATIN 0x081A -#define LANGUAGE_SERBIAN_CYRILLIC 0x0C1A -#define LANGUAGE_SINDHI 0x0459 -#define LANGUAGE_SWAHILI 0x5041 -#define LANGUAGE_TATAR 0x0444 -#define LANGUAGE_TURKISH 0x041F -#define LANGUAGE_UKRAINIAN 0x0422 -#define LANGUAGE_UZBEK 0x0043 -#define LANGUAGE_UZBEK_LATIN 0x0443 -#define LANGUAGE_UZBEK_CYRILLIC 0x0843 -*/ - - default: - nScript = SCRIPTTYPE_LATIN; - break; - } - return nScript; -} USHORT GetI18NScriptTypeOfLanguage( USHORT nLang ) { - return GetI18NScriptType( GetScriptTypeOfLanguage( nLang ) ); + return GetI18NScriptType( SvtLanguageOptions::GetScriptTypeOfLanguage( nLang ) ); } USHORT GetItemScriptType( short nI18NType ) |