1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
// File: Bidi.h
//
// For use with Bidi Reference Implementation
// For rights, disclaimers and description see associated BIDI.CPP file
//
// Copyright (C) 1999, ASMUS, Inc. All Rights Reserved
#if WINDOWS_UI
// disable some warnings generated by windows.h
#pragma warning (disable : 4514 4201)
#endif
#if JAVA_INTERFACE
#include "biditest.h" // not part of the reference implementation
#else
#if WINDOWS_UI > 1
#include "main.h" // private header, includes Windows,h
#include "window.h" // center
#if DEBUG_ENABLED
#define DEBUGGING 1 // conditionally enable debug support
#endif // for private build
#elif WINDOWS_UI
#define ASSERT(x) // suppress ASSERTs for standalone
#include "windows.h" // standard include file for windows
#include "windowsx.h" // extended include file for windows
#else
// commandline version, define printf based ASSERT
#include <stdio.h>
#define ASSERT(x) if (!(x)) fprintf(stdout, "assert failed: %s\n", #x); else ;
#endif
#endif
// provides constants for UI elements declared in BIDI.RC
#ifndef IDC_INPUT
#define IDC_INPUT 2189
#define IDC_LEVEL 2190
#define IDC_EX_LEVEL 2190
#define IDC_DISPL 2191
#define IDC_TYPES 2192
#define IDC_N_TYPES 2193
#define IDC_IM_LEVEL 2194
#define IDC_W_TYPES 2195
#define IDC_RLE 2196
#define IDC_LRE 2197
#define IDC_RLO 2198
#define IDC_LRO 2199
#define IDC_MIRROR 2200
#define IDC_RLM 2201
#define IDC_NBSP 2202
#define IDC_X_TYPES 2202
#define IDC_LRM 2204
#define IDC_CLEAN 2205
#define IDC_LS 2206
#define IDC_LEGEND 2216
#define IDC_BASELEVEL 2217
#endif
// duplicate some windows.h defines for commandline
#ifndef TEXT
#define TCHAR char
#define LPTSTR char *
#endif
#if WINDOWS_UI
BOOL CALLBACK BidiDlgProc (HWND hwndDlg, UINT message, WPARAM wParam,
LPARAM lParam);
#endif
#ifdef _MAIN_H_
BOOL CALLBACK BidiDlgProc (HWND hwndDlg, UINT message, WPARAM wParam,
LPARAM lParam);
#endif
|