merge the formfield patch from ooo-build
[ooovba.git] / vcl / os2 / source / app / sallang.cxx
blobae32085637eead08f82919d72a5d104d4ae24ce4
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: sallang.cxx,v $
10 * $Revision: 1.4 $
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 ************************************************************************/
31 #ifndef _SALLANG_HXX
32 #include <sallang.hxx>
33 #endif
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
44 L"Up", // LSTR_KEY_UP
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 ) )
68 switch ( eLang )
70 #if 0
71 case LANGUAGE_DANISH:
72 pLangTab = aImplLangDanishTab;
73 break;
75 case LANGUAGE_DUTCH:
76 case LANGUAGE_DUTCH_BELGIAN:
77 pLangTab = aImplLangDutchTab;
78 break;
80 case LANGUAGE_FINNISH:
81 pLangTab = aImplLangFinnishTab;
82 break;
84 case LANGUAGE_FRENCH:
85 pLangTab = aImplLangFrenchTab;
86 break;
88 case LANGUAGE_GERMAN:
89 pLangTab = aImplLangGermanTab;
90 break;
92 case LANGUAGE_ITALIAN:
93 pLangTab = aImplLangItalianTab;
94 break;
96 case LANGUAGE_NORWEGIAN:
97 case LANGUAGE_NORWEGIAN_BOKMAL:
98 pLangTab = aImplLangNorwegianTab;
99 break;
101 case LANGUAGE_PORTUGUESE:
102 case LANGUAGE_PORTUGUESE_BRAZILIAN:
103 pLangTab = aImplLangPortugueseTab;
104 break;
106 case LANGUAGE_SPANISH:
107 pLangTab = aImplLangSpanishTab;
108 break;
110 case LANGUAGE_SWEDISH:
111 pLangTab = aImplLangSwedishTab;
112 break;
113 #endif
114 default:
115 pLangTab = aImplLangEnglishTab;
116 break;
119 return (const sal_Unicode**)pLangTab;