merge the formfield patch from ooo-build
[ooovba.git] / vcl / unx / inc / i18n_keysym.hxx
blob8def04f7b781eb81694944941f25eca3ef0d93ac
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: i18n_keysym.hxx,v $
10 * $Revision: 1.3 $
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 _SAL_I18N_KEYSYM_HXX
32 #define _SAL_I18N_KEYSYM_HXX
35 convert a keysym as defined in /usr/{X11R6|openwin}/include/X11/keysymdef.h
36 to unicode
38 supported charsets: (byte1 and byte2 are always 0x0)
40 Latin-1 Byte 3 = 0x00
41 Latin-2 Byte 3 = 0x01
42 Latin-3 Byte 3 = 0x02
43 Latin-4 Byte 3 = 0x03
44 Kana Byte 3 = 0x04
45 Arabic Byte 3 = 0x05
46 Cyrillic Byte 3 = 0x06
47 Greek Byte 3 = 0x07
48 Technical Byte 3 = 0x08
49 Special Byte 3 = 0x09
50 Publishing Byte 3 = 0x0a = 10
51 APL Byte 3 = 0x0b = 11
52 Hebrew Byte 3 = 0x0c = 12
53 Thai Byte 3 = 0x0d = 13
54 Korean Byte 3 = 0x0e = 14
55 Latin-9 Byte 3 = 0x13 = 19
56 Currency Byte 3 = 0x20 = 32
57 Keyboard Byte 3 = 0xff = 255
59 missing charsets:
61 Latin-8 Byte 3 = 0x12 = 18
62 Armenian Byte 3 = 0x14 = 20
63 Georgian Byte 3 = 0x15 = 21
64 Azeri Byte 3 = 0x16 = 22
65 Vietnamese Byte 3 = 0x1e = 30
67 of course not all keysyms can be mapped to a unicode code point
70 sal_Unicode KeysymToUnicode (KeySym nKeySym);
72 #endif /* _SAL_I18N_KEYSYM_HXX */