Mon, 31 Dec 2001 08:25:04 +0000
track bookmark level.
1 typedef struct
2 {
3 double width;
4 double height;
5 } page_size_t;
7 typedef struct
8 {
9 int first;
10 int last;
11 } range_t;
13 typedef struct
14 {
15 double left;
16 double right;
17 double top;
18 double bottom;
19 } crop_t;
22 typedef enum
23 {
24 INPUT_MODIFIER_ALL,
25 INPUT_MODIFIER_ODD,
26 INPUT_MODIFIER_EVEN,
27 INPUT_MODIFIER_TYPE_COUNT /* must be last */
28 } input_modifier_type_t;
31 typedef struct bookmark_t
32 {
33 struct bookmark_t *next;
34 int level; /* 1 is outermost */
35 char *name;
36 } bookmark_t;
39 extern int line; /* line number in spec file */
40 extern int bookmark_level;
43 boolean parse_spec_file (char *fn);
46 /* semantic routines for input statements */
47 void input_push_context (void);
48 void input_pop_context (void);
49 void input_set_modifier_context (input_modifier_type_t type);
50 void input_set_file (char *name);
51 void input_set_rotation (int rotation);
52 void input_images (range_t range);
54 /* semantic routines for output statements */
55 void output_push_context (void);
56 void output_pop_context (void);
57 void output_set_file (char *name);
58 void output_set_bookmark (char *name);
59 void output_set_page_number_format (char *format);
60 void output_pages (range_t range);