comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/BidiUtil.d @ 9:950d84783eac

Removing direct tango deps.
author Frank Benoit <benoit@tionex.de>
date Mon, 09 Mar 2009 14:26:40 +0100
parents 6dd524f61e62
children 0ecb2b338560
comparison
equal deleted inserted replaced
8:2847134a5fc0 9:950d84783eac
16 import org.eclipse.swt.SWT; 16 import org.eclipse.swt.SWT;
17 import org.eclipse.swt.graphics.GC; 17 import org.eclipse.swt.graphics.GC;
18 import org.eclipse.swt.internal.win32.OS; 18 import org.eclipse.swt.internal.win32.OS;
19 19
20 import org.eclipse.swt.widgets.Control; 20 import org.eclipse.swt.widgets.Control;
21 import tango.util.Convert;
22 import java.lang.all; 21 import java.lang.all;
23 import java.lang.Runnable; 22 import java.lang.Runnable;
24 23
25 /* 24 /*
26 * Wraps Win32 API used to bidi enable the StyledText widget. 25 * Wraps Win32 API used to bidi enable the StyledText widget.
466 //if (callback !is null) callback.dispose(); 465 //if (callback !is null) callback.dispose();
467 //} 466 //}
468 if (isBidiPlatform_ is 1) return true; 467 if (isBidiPlatform_ is 1) return true;
469 // need to look at system code page for NT & 98 platforms since EnumSystemLanguageGroups is 468 // need to look at system code page for NT & 98 platforms since EnumSystemLanguageGroups is
470 // not supported for these platforms 469 // not supported for these platforms
471 String codePage = to!(String)(OS.GetACP()); 470 String codePage = String_valueOf(OS.GetACP());
472 if (CD_PG_ARABIC==/*eq*/codePage || CD_PG_HEBREW==/*eq*/codePage) { 471 if (CD_PG_ARABIC==/*eq*/codePage || CD_PG_HEBREW==/*eq*/codePage) {
473 isBidiPlatform_ = 1; 472 isBidiPlatform_ = 1;
474 } 473 }
475 return isBidiPlatform_ is 1; 474 return isBidiPlatform_ is 1;
476 } 475 }