1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: sallang.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
32 #include <sallang.hxx>
35 // =======================================================================
37 // -----------------------------------------------------------------------
38 // English (US/UK/AUS/CAN/NZ/EIRE/SAFRICA/JAMAICA/CARRIBEAN)
39 static const wchar_t* aImplLangEnglishTab
[LSTR_COUNT
] =
41 L
"Shift", // LSTR_KEY_SHIFT
42 L
"Ctrl", // LSTR_KEY_CTRL
43 L
"Alt", // LSTR_KEY_ALT
45 L
"Down", // LSTR_KEY_DOWN
46 L
"Left", // LSTR_KEY_LEFT
47 L
"Right", // LSTR_KEY_RIGHT
48 L
"Home", // LSTR_KEY_HOME
49 L
"End", // LSTR_KEY_END
50 L
"PageUp", // LSTR_KEY_PAGEUP
51 L
"PageDown", // LSTR_KEY_PAGEDOWN
52 L
"Enter", // LSTR_KEY_RETURN
53 L
"Esc", // LSTR_KEY_ESC
54 L
"Tab", // LSTR_KEY_TAB
55 L
"Backspace", // LSTR_KEY_BACKSPACE
56 L
"Space", // LSTR_KEY_SPACE
57 L
"Insert", // LSTR_KEY_INSERT
58 L
"Del", // LSTR_KEY_DELETE
61 // =======================================================================
63 const sal_Unicode
** ImplGetLangTab( LanguageType eLang
)
65 // Sprachtabelle ermitteln
66 const wchar_t** pLangTab
;
67 //switch ( International::GetNeutralLanguage( eLang ) )
72 pLangTab
= aImplLangDanishTab
;
76 case LANGUAGE_DUTCH_BELGIAN
:
77 pLangTab
= aImplLangDutchTab
;
80 case LANGUAGE_FINNISH
:
81 pLangTab
= aImplLangFinnishTab
;
85 pLangTab
= aImplLangFrenchTab
;
89 pLangTab
= aImplLangGermanTab
;
92 case LANGUAGE_ITALIAN
:
93 pLangTab
= aImplLangItalianTab
;
96 case LANGUAGE_NORWEGIAN
:
97 case LANGUAGE_NORWEGIAN_BOKMAL
:
98 pLangTab
= aImplLangNorwegianTab
;
101 case LANGUAGE_PORTUGUESE
:
102 case LANGUAGE_PORTUGUESE_BRAZILIAN
:
103 pLangTab
= aImplLangPortugueseTab
;
106 case LANGUAGE_SPANISH
:
107 pLangTab
= aImplLangSpanishTab
;
110 case LANGUAGE_SWEDISH
:
111 pLangTab
= aImplLangSwedishTab
;
115 pLangTab
= aImplLangEnglishTab
;
119 return (const sal_Unicode
**)pLangTab
;