diff dwt/internal/BidiUtil.d @ 1:8b48be5454ce

The internal cocoa classes compile now
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 19 Aug 2008 17:35:17 +0200
parents 380af2bdd8e5
children f565d3a95c0a
line wrap: on
line diff
--- a/dwt/internal/BidiUtil.d	Sat Aug 09 17:00:02 2008 +0200
+++ b/dwt/internal/BidiUtil.d	Tue Aug 19 17:35:17 2008 +0200
@@ -23,8 +23,7 @@
  * for win platforms) is not platform dependent.  Bidi text is not implemented on 
  * emulated platforms.
  */
-public class BidiUtil
-{
+public class BidiUtil {
     // Keyboard language types
     public static const int KEYBOARD_NON_BIDI = 0;
     public static const int KEYBOARD_BIDI = 1;
@@ -40,112 +39,81 @@
     public static const int CLASS_HEBREW = 2;
     public static const int CLASS_ARABIC = 2;
     public static const int CLASS_LOCALNUMBER = 4;
-    public static const int CLASS_LATINNUMBER = 5;
-    public static const int REORDER = 0;
+    public static const int CLASS_LATINNUMBER = 5;  
+    public static const int REORDER = 0;                
     public static const int LIGATE = 0;
     public static const int GLYPHSHAPE = 0;
 
-    /*
-     * Not implemented.
-     */
-    public static void addLanguageListener (int /*long*/hwnd,
-            Runnable runnable)
-    {
-    }
-
-    public static void addLanguageListener (Control control, Runnable runnable)
-    {
-    }
-
-    /*
-     * Not implemented.
-     *
-     */
-    public static void drawGlyphs (GC gc, char[] renderBuffer, int[] renderDx,
-            int x, int y)
-    {
-    }
-
-    /*
-     * Bidi not supported on emulated platforms.
-     *
-     */
-    public static bool isBidiPlatform ()
-    {
-        return false;
-    }
-
-    /*
-     * Not implemented.
-     */
-    public static bool isKeyboardBidi ()
-    {
-        return false;
-    }
-
-    /*
-     * Not implemented.
-     */
-    public static int getFontBidiAttributes (GC gc)
-    {
-        return 0;
-    }
-
-    /*
-     *  Not implemented.
-     *
-     */
-    public static void getOrderInfo (GC gc, String text, int[] order,
-            byte[] classBuffer, int flags, int[] offsets)
-    {
-    }
-
-    /*
-     *  Not implemented. Returns null.
-     *
-     */
-    public static char[] getRenderInfo (GC gc, String text, int[] order,
-            byte[] classBuffer, int[] dx, int flags, int[] offsets)
-    {
-        return null;
-    }
-
-    /*
-     * Not implemented. Returns 0.
-     */
-    public static int getKeyboardLanguage ()
-    {
-        return 0;
-    }
-
-    /*
-     * Not implemented.
-     */
-    public static void removeLanguageListener (int /*long*/hwnd)
-    {
-    }
-
-    public static void removeLanguageListener (Control control)
-    {
-    }
-
-    /*
-     * Not implemented.
-     */
-    public static void setKeyboardLanguage (int language)
-    {
-    }
-
-    /*
-     * Not implemented.
-     */
-    public static bool setOrientation (int /*long*/hwnd, int orientation)
-    {
-        return false;
-    }
-
-    public static bool setOrientation (Control control, int orientation)
-    {
-        return false;
-    }
+/*
+ * Not implemented.
+ */
+public static void addLanguageListener(int /*long*/ hwnd, Runnable runnable) {
+}
+public static void addLanguageListener (Control control, Runnable runnable) {
+}
+/*
+ * Not implemented.
+ *
+ */
+public static void drawGlyphs(GC gc, char[] renderBuffer, int[] renderDx, int x, int y) {
+}
+/*
+ * Bidi not supported on emulated platforms.
+ *
+ */
+public static boolean isBidiPlatform() {
+    return false;
+}
+/*
+ * Not implemented.
+ */
+public static boolean isKeyboardBidi() {
+    return false;
+}
+/*
+ * Not implemented.
+ */
+public static int getFontBidiAttributes(GC gc) {
+    return 0;   
 }
+/*
+ *  Not implemented.
+ *
+ */
+public static void getOrderInfo(GC gc, String text, int[] order, byte[] classBuffer, int flags, int [] offsets) {
+}
+/*
+ *  Not implemented. Returns null.
+ *
+ */
+public static char[] getRenderInfo(GC gc, String text, int[] order, byte[] classBuffer, int[] dx, int flags, int[] offsets) {
+    return null;
+}
+/*
+ * Not implemented. Returns 0.
+ */
+public static int getKeyboardLanguage() {
+    return 0;
+}
+/*
+ * Not implemented.
+ */
+public static void removeLanguageListener(int /*long*/ hwnd) {
+}   
+public static void removeLanguageListener (Control control) {
+}
+/*
+ * Not implemented.
+ */
+public static void setKeyboardLanguage(int language) {
+}
+/*
+ * Not implemented.
+ */
+public static boolean setOrientation(int /*long*/ hwnd, int orientation) {
+    return false;
+}
+public static boolean setOrientation (Control control, int orientation) {
+    return false;
+}
+}