|
1 #ifndef TCL_INTERFACE |
|
2 #define TCL_INTERFACE 1 |
|
3 #include <stdarg.h> |
|
4 #include <stdio.h> |
|
5 extern double SCALE_FACTOR; |
|
6 int mispelled(char* s); |
|
7 int error(char* s); |
|
8 int docommand(char* fmt, ...); |
|
9 int set_status(char* fmt, ...); |
|
10 int initialize_interpreter(); |
|
11 int load_user_interface(); |
|
12 int initialize_command_procs(); |
|
13 int initialize_link_vars(); |
|
14 void update(); |
|
15 void scale(int& coordinate); |
|
16 void scale(int& coordinate, double scaleFactor); |
|
17 #endif |
|
18 /* |
|
19 These commands can be called from Tcl |
|
20 (things in quotes are the tcl names, others are c++ functions) |
|
21 |
|
22 "page_open", page_open_cmd, |
|
23 "get_page_height", get_page_height_cmd, |
|
24 "get_page_width", get_page_width_cmd, |
|
25 |
|
26 "FIND_LINES_AND_RECOGNIZE", recognize_cmd, |
|
27 "GET_SKEW", get_skew_cmd, |
|
28 "DESKEW", deskew_cmd, |
|
29 "DISPLAY_INTERVALS", display_intervals_cmd, |
|
30 "QUIT", quit_cmd, |
|
31 "ZOOM_IN", zoom_in_cmd, |
|
32 "ZOOM_OUT", zoom_out_cmd, |
|
33 "DEALLOCATE_PAGE", deallocate_page_cmd, |
|
34 |
|
35 |
|
36 */ |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |