1*161f4cd1SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*161f4cd1SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*161f4cd1SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*161f4cd1SAndrew Rist * distributed with this work for additional information 6*161f4cd1SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*161f4cd1SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*161f4cd1SAndrew Rist * "License"); you may not use this file except in compliance 9*161f4cd1SAndrew Rist * with the License. You may obtain a copy of the License at 10*161f4cd1SAndrew Rist * 11*161f4cd1SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*161f4cd1SAndrew Rist * 13*161f4cd1SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*161f4cd1SAndrew Rist * software distributed under the License is distributed on an 15*161f4cd1SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*161f4cd1SAndrew Rist * KIND, either express or implied. See the License for the 17*161f4cd1SAndrew Rist * specific language governing permissions and limitations 18*161f4cd1SAndrew Rist * under the License. 19*161f4cd1SAndrew Rist * 20*161f4cd1SAndrew Rist *************************************************************/ 21*161f4cd1SAndrew Rist 22*161f4cd1SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _SAL_I18N_KEYSYM_HXX 25cdf0e10cSrcweir #define _SAL_I18N_KEYSYM_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir /* 28cdf0e10cSrcweir convert a keysym as defined in /usr/{X11R6|openwin}/include/X11/keysymdef.h 29cdf0e10cSrcweir to unicode 30cdf0e10cSrcweir 31cdf0e10cSrcweir supported charsets: (byte1 and byte2 are always 0x0) 32cdf0e10cSrcweir 33cdf0e10cSrcweir Latin-1 Byte 3 = 0x00 34cdf0e10cSrcweir Latin-2 Byte 3 = 0x01 35cdf0e10cSrcweir Latin-3 Byte 3 = 0x02 36cdf0e10cSrcweir Latin-4 Byte 3 = 0x03 37cdf0e10cSrcweir Kana Byte 3 = 0x04 38cdf0e10cSrcweir Arabic Byte 3 = 0x05 39cdf0e10cSrcweir Cyrillic Byte 3 = 0x06 40cdf0e10cSrcweir Greek Byte 3 = 0x07 41cdf0e10cSrcweir Technical Byte 3 = 0x08 42cdf0e10cSrcweir Special Byte 3 = 0x09 43cdf0e10cSrcweir Publishing Byte 3 = 0x0a = 10 44cdf0e10cSrcweir APL Byte 3 = 0x0b = 11 45cdf0e10cSrcweir Hebrew Byte 3 = 0x0c = 12 46cdf0e10cSrcweir Thai Byte 3 = 0x0d = 13 47cdf0e10cSrcweir Korean Byte 3 = 0x0e = 14 48cdf0e10cSrcweir Latin-9 Byte 3 = 0x13 = 19 49cdf0e10cSrcweir Currency Byte 3 = 0x20 = 32 50cdf0e10cSrcweir Keyboard Byte 3 = 0xff = 255 51cdf0e10cSrcweir 52cdf0e10cSrcweir missing charsets: 53cdf0e10cSrcweir 54cdf0e10cSrcweir Latin-8 Byte 3 = 0x12 = 18 55cdf0e10cSrcweir Armenian Byte 3 = 0x14 = 20 56cdf0e10cSrcweir Georgian Byte 3 = 0x15 = 21 57cdf0e10cSrcweir Azeri Byte 3 = 0x16 = 22 58cdf0e10cSrcweir Vietnamese Byte 3 = 0x1e = 30 59cdf0e10cSrcweir 60cdf0e10cSrcweir of course not all keysyms can be mapped to a unicode code point 61cdf0e10cSrcweir */ 62cdf0e10cSrcweir 63cdf0e10cSrcweir sal_Unicode KeysymToUnicode (KeySym nKeySym); 64cdf0e10cSrcweir 65cdf0e10cSrcweir #endif /* _SAL_I18N_KEYSYM_HXX */ 66cdf0e10cSrcweir 67cdf0e10cSrcweir 68