1*9f62ea84SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*9f62ea84SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*9f62ea84SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*9f62ea84SAndrew Rist * distributed with this work for additional information 6*9f62ea84SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*9f62ea84SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*9f62ea84SAndrew Rist * "License"); you may not use this file except in compliance 9*9f62ea84SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*9f62ea84SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*9f62ea84SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*9f62ea84SAndrew Rist * software distributed under the License is distributed on an 15*9f62ea84SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*9f62ea84SAndrew Rist * KIND, either express or implied. See the License for the 17*9f62ea84SAndrew Rist * specific language governing permissions and limitations 18*9f62ea84SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*9f62ea84SAndrew Rist *************************************************************/ 21*9f62ea84SAndrew Rist 22*9f62ea84SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _SALLANG_HXX 25cdf0e10cSrcweir #include <sallang.hxx> 26cdf0e10cSrcweir #endif 27cdf0e10cSrcweir 28cdf0e10cSrcweir // ======================================================================= 29cdf0e10cSrcweir 30cdf0e10cSrcweir // ----------------------------------------------------------------------- 31cdf0e10cSrcweir // English (US/UK/AUS/CAN/NZ/EIRE/SAFRICA/JAMAICA/CARRIBEAN) 32cdf0e10cSrcweir static const wchar_t* aImplLangEnglishTab[LSTR_COUNT] = 33cdf0e10cSrcweir { 34cdf0e10cSrcweir L"Shift", // LSTR_KEY_SHIFT 35cdf0e10cSrcweir L"Ctrl", // LSTR_KEY_CTRL 36cdf0e10cSrcweir L"Alt", // LSTR_KEY_ALT 37cdf0e10cSrcweir L"Up", // LSTR_KEY_UP 38cdf0e10cSrcweir L"Down", // LSTR_KEY_DOWN 39cdf0e10cSrcweir L"Left", // LSTR_KEY_LEFT 40cdf0e10cSrcweir L"Right", // LSTR_KEY_RIGHT 41cdf0e10cSrcweir L"Home", // LSTR_KEY_HOME 42cdf0e10cSrcweir L"End", // LSTR_KEY_END 43cdf0e10cSrcweir L"PageUp", // LSTR_KEY_PAGEUP 44cdf0e10cSrcweir L"PageDown", // LSTR_KEY_PAGEDOWN 45cdf0e10cSrcweir L"Enter", // LSTR_KEY_RETURN 46cdf0e10cSrcweir L"Esc", // LSTR_KEY_ESC 47cdf0e10cSrcweir L"Tab", // LSTR_KEY_TAB 48cdf0e10cSrcweir L"Backspace", // LSTR_KEY_BACKSPACE 49cdf0e10cSrcweir L"Space", // LSTR_KEY_SPACE 50cdf0e10cSrcweir L"Insert", // LSTR_KEY_INSERT 51cdf0e10cSrcweir L"Del", // LSTR_KEY_DELETE 52cdf0e10cSrcweir }; 53cdf0e10cSrcweir 54cdf0e10cSrcweir // ======================================================================= 55cdf0e10cSrcweir 56cdf0e10cSrcweir const sal_Unicode** ImplGetLangTab( LanguageType eLang ) 57cdf0e10cSrcweir { 58cdf0e10cSrcweir // Sprachtabelle ermitteln 59cdf0e10cSrcweir const wchar_t** pLangTab; 60cdf0e10cSrcweir //switch ( International::GetNeutralLanguage( eLang ) ) 61cdf0e10cSrcweir switch ( eLang ) 62cdf0e10cSrcweir { 63cdf0e10cSrcweir #if 0 64cdf0e10cSrcweir case LANGUAGE_DANISH: 65cdf0e10cSrcweir pLangTab = aImplLangDanishTab; 66cdf0e10cSrcweir break; 67cdf0e10cSrcweir 68cdf0e10cSrcweir case LANGUAGE_DUTCH: 69cdf0e10cSrcweir case LANGUAGE_DUTCH_BELGIAN: 70cdf0e10cSrcweir pLangTab = aImplLangDutchTab; 71cdf0e10cSrcweir break; 72cdf0e10cSrcweir 73cdf0e10cSrcweir case LANGUAGE_FINNISH: 74cdf0e10cSrcweir pLangTab = aImplLangFinnishTab; 75cdf0e10cSrcweir break; 76cdf0e10cSrcweir 77cdf0e10cSrcweir case LANGUAGE_FRENCH: 78cdf0e10cSrcweir pLangTab = aImplLangFrenchTab; 79cdf0e10cSrcweir break; 80cdf0e10cSrcweir 81cdf0e10cSrcweir case LANGUAGE_GERMAN: 82cdf0e10cSrcweir pLangTab = aImplLangGermanTab; 83cdf0e10cSrcweir break; 84cdf0e10cSrcweir 85cdf0e10cSrcweir case LANGUAGE_ITALIAN: 86cdf0e10cSrcweir pLangTab = aImplLangItalianTab; 87cdf0e10cSrcweir break; 88cdf0e10cSrcweir 89cdf0e10cSrcweir case LANGUAGE_NORWEGIAN: 90cdf0e10cSrcweir case LANGUAGE_NORWEGIAN_BOKMAL: 91cdf0e10cSrcweir pLangTab = aImplLangNorwegianTab; 92cdf0e10cSrcweir break; 93cdf0e10cSrcweir 94cdf0e10cSrcweir case LANGUAGE_PORTUGUESE: 95cdf0e10cSrcweir case LANGUAGE_PORTUGUESE_BRAZILIAN: 96cdf0e10cSrcweir pLangTab = aImplLangPortugueseTab; 97cdf0e10cSrcweir break; 98cdf0e10cSrcweir 99cdf0e10cSrcweir case LANGUAGE_SPANISH: 100cdf0e10cSrcweir pLangTab = aImplLangSpanishTab; 101cdf0e10cSrcweir break; 102cdf0e10cSrcweir 103cdf0e10cSrcweir case LANGUAGE_SWEDISH: 104cdf0e10cSrcweir pLangTab = aImplLangSwedishTab; 105cdf0e10cSrcweir break; 106cdf0e10cSrcweir #endif 107cdf0e10cSrcweir default: 108cdf0e10cSrcweir pLangTab = aImplLangEnglishTab; 109cdf0e10cSrcweir break; 110cdf0e10cSrcweir } 111cdf0e10cSrcweir 112cdf0e10cSrcweir return (const sal_Unicode**)pLangTab; 113cdf0e10cSrcweir } 114