tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / vcl / inc / unx / i18n_keysym.hxx
blobca4e25e982b7eda97c8e115fa6a6853ec5d4c2ee
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #pragma once
22 #include <X11/X.h>
24 #include <sal/types.h>
27 convert a keysym as defined in /usr/{X11R6|openwin}/include/X11/keysymdef.h
28 to unicode
30 supported charsets: (byte1 and byte2 are always 0x0)
32 Latin-1 Byte 3 = 0x00
33 Latin-2 Byte 3 = 0x01
34 Latin-3 Byte 3 = 0x02
35 Latin-4 Byte 3 = 0x03
36 Kana Byte 3 = 0x04
37 Arabic Byte 3 = 0x05
38 Cyrillic Byte 3 = 0x06
39 Greek Byte 3 = 0x07
40 Technical Byte 3 = 0x08
41 Special Byte 3 = 0x09
42 Publishing Byte 3 = 0x0a = 10
43 APL Byte 3 = 0x0b = 11
44 Hebrew Byte 3 = 0x0c = 12
45 Thai Byte 3 = 0x0d = 13
46 Korean Byte 3 = 0x0e = 14
47 Latin-9 Byte 3 = 0x13 = 19
48 Currency Byte 3 = 0x20 = 32
49 Keyboard Byte 3 = 0xff = 255
51 missing charsets:
53 Latin-8 Byte 3 = 0x12 = 18
54 Armenian Byte 3 = 0x14 = 20
55 Georgian Byte 3 = 0x15 = 21
56 Azeri Byte 3 = 0x16 = 22
57 Vietnamese Byte 3 = 0x1e = 30
59 of course not all keysyms can be mapped to a unicode code point
62 sal_Unicode KeysymToUnicode(KeySym nKeySym);
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */