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