Mercurial > projects > dwt-linux
annotate dwt/internal/BidiUtil.d @ 10:63c023465156
moved from org.eclipse.swt to dwt
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 05 Jan 2008 17:58:37 +0100 |
parents | ad2b69216039 |
children | 92223a4ecca7 |
rev | line source |
---|---|
5 | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2004 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 *******************************************************************************/ | |
10
63c023465156
moved from org.eclipse.swt to dwt
Frank Benoit <benoit@tionex.de>
parents:
9
diff
changeset
|
11 module dwt.internal.BidiUtil; |
5 | 12 |
10
63c023465156
moved from org.eclipse.swt to dwt
Frank Benoit <benoit@tionex.de>
parents:
9
diff
changeset
|
13 //import dwt.graphics.GC; |
5 | 14 |
15 // PORTING_TYPE | |
16 class GC{} | |
17 class Runnable{} | |
18 | |
19 /* | |
20 * This class is supplied so that the StyledText code that supports bidi text (supported | |
21 * for win platforms) is not platform dependent. Bidi text is not implemented on | |
22 * emulated platforms. | |
23 */ | |
24 public class BidiUtil { | |
25 // Keyboard language types | |
26 public static const int KEYBOARD_NON_BIDI = 0; | |
27 public static const int KEYBOARD_BIDI = 1; | |
28 | |
29 // bidi rendering input flag constants, not used | |
30 // on emulated platforms | |
31 public static const int CLASSIN = 1; | |
32 public static const int LINKBEFORE = 2; | |
33 public static const int LINKAFTER = 4; | |
34 | |
35 // bidi rendering/ordering constants, not used on | |
36 // emulated platforms | |
37 public static const int CLASS_HEBREW = 2; | |
38 public static const int CLASS_ARABIC = 2; | |
39 public static const int CLASS_LOCALNUMBER = 4; | |
40 public static const int CLASS_LATINNUMBER = 5; | |
41 public static const int REORDER = 0; | |
42 public static const int LIGATE = 0; | |
43 public static const int GLYPHSHAPE = 0; | |
44 | |
45 /* | |
46 * Not implemented. | |
47 */ | |
48 public static void addLanguageListener(int /*long*/ hwnd, Runnable runnable) { | |
49 } | |
50 /* | |
51 * Not implemented. | |
52 * | |
53 */ | |
54 public static void drawGlyphs(GC gc, char[] renderBuffer, int[] renderDx, int x, int y) { | |
55 } | |
56 /* | |
57 * Bidi not supported on emulated platforms. | |
58 * | |
59 */ | |
60 public static bool isBidiPlatform() { | |
61 return false; | |
62 } | |
63 /* | |
64 * Not implemented. | |
65 */ | |
66 public static bool isKeyboardBidi() { | |
67 return false; | |
68 } | |
69 /* | |
70 * Not implemented. | |
71 */ | |
72 public static int getFontBidiAttributes(GC gc) { | |
73 return 0; | |
74 } | |
75 /* | |
76 * Not implemented. | |
77 * | |
78 */ | |
79 public static void getOrderInfo(GC gc, char[] text, int[] order, byte[] classBuffer, int flags, int [] offsets) { | |
80 } | |
81 /* | |
82 * Not implemented. Returns null. | |
83 * | |
84 */ | |
85 public static char[] getRenderInfo(GC gc, char[] text, int[] order, byte[] classBuffer, int[] dx, int flags, int[] offsets) { | |
86 return null; | |
87 } | |
88 /* | |
89 * Not implemented. Returns 0. | |
90 */ | |
91 public static int getKeyboardLanguage() { | |
92 return 0; | |
93 } | |
94 /* | |
95 * Not implemented. | |
96 */ | |
97 public static void removeLanguageListener(int /*long*/ hwnd) { | |
98 } | |
99 /* | |
100 * Not implemented. | |
101 */ | |
102 public static void setKeyboardLanguage(int language) { | |
103 } | |
104 /* | |
105 * Not implemented. | |
106 */ | |
107 public static bool setOrientation(int /*long*/ hwnd, int orientation) { | |
108 return false; | |
109 } | |
110 } |