1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef _SALLANG_HXX 29 #include <sallang.hxx> 30 #endif 31 32 // ======================================================================= 33 34 // ----------------------------------------------------------------------- 35 // English (US/UK/AUS/CAN/NZ/EIRE/SAFRICA/JAMAICA/CARRIBEAN) 36 static const wchar_t* aImplLangEnglishTab[LSTR_COUNT] = 37 { 38 L"Shift", // LSTR_KEY_SHIFT 39 L"Ctrl", // LSTR_KEY_CTRL 40 L"Alt", // LSTR_KEY_ALT 41 L"Up", // LSTR_KEY_UP 42 L"Down", // LSTR_KEY_DOWN 43 L"Left", // LSTR_KEY_LEFT 44 L"Right", // LSTR_KEY_RIGHT 45 L"Home", // LSTR_KEY_HOME 46 L"End", // LSTR_KEY_END 47 L"PageUp", // LSTR_KEY_PAGEUP 48 L"PageDown", // LSTR_KEY_PAGEDOWN 49 L"Enter", // LSTR_KEY_RETURN 50 L"Esc", // LSTR_KEY_ESC 51 L"Tab", // LSTR_KEY_TAB 52 L"Backspace", // LSTR_KEY_BACKSPACE 53 L"Space", // LSTR_KEY_SPACE 54 L"Insert", // LSTR_KEY_INSERT 55 L"Del", // LSTR_KEY_DELETE 56 }; 57 58 // ======================================================================= 59 60 const sal_Unicode** ImplGetLangTab( LanguageType eLang ) 61 { 62 // Sprachtabelle ermitteln 63 const wchar_t** pLangTab; 64 //switch ( International::GetNeutralLanguage( eLang ) ) 65 switch ( eLang ) 66 { 67 #if 0 68 case LANGUAGE_DANISH: 69 pLangTab = aImplLangDanishTab; 70 break; 71 72 case LANGUAGE_DUTCH: 73 case LANGUAGE_DUTCH_BELGIAN: 74 pLangTab = aImplLangDutchTab; 75 break; 76 77 case LANGUAGE_FINNISH: 78 pLangTab = aImplLangFinnishTab; 79 break; 80 81 case LANGUAGE_FRENCH: 82 pLangTab = aImplLangFrenchTab; 83 break; 84 85 case LANGUAGE_GERMAN: 86 pLangTab = aImplLangGermanTab; 87 break; 88 89 case LANGUAGE_ITALIAN: 90 pLangTab = aImplLangItalianTab; 91 break; 92 93 case LANGUAGE_NORWEGIAN: 94 case LANGUAGE_NORWEGIAN_BOKMAL: 95 pLangTab = aImplLangNorwegianTab; 96 break; 97 98 case LANGUAGE_PORTUGUESE: 99 case LANGUAGE_PORTUGUESE_BRAZILIAN: 100 pLangTab = aImplLangPortugueseTab; 101 break; 102 103 case LANGUAGE_SPANISH: 104 pLangTab = aImplLangSpanishTab; 105 break; 106 107 case LANGUAGE_SWEDISH: 108 pLangTab = aImplLangSwedishTab; 109 break; 110 #endif 111 default: 112 pLangTab = aImplLangEnglishTab; 113 break; 114 } 115 116 return (const sal_Unicode**)pLangTab; 117 } 118