Tue, 01 Jan 2002 05:02:44 +0000
create temporary TIFF file.
eric@18 | 1 | typedef struct |
eric@18 | 2 | { |
eric@18 | 3 | double width; |
eric@18 | 4 | double height; |
eric@18 | 5 | } page_size_t; |
eric@18 | 6 | |
eric@18 | 7 | typedef struct |
eric@18 | 8 | { |
eric@18 | 9 | int first; |
eric@18 | 10 | int last; |
eric@18 | 11 | } range_t; |
eric@18 | 12 | |
eric@18 | 13 | typedef struct |
eric@18 | 14 | { |
eric@18 | 15 | double left; |
eric@18 | 16 | double right; |
eric@18 | 17 | double top; |
eric@18 | 18 | double bottom; |
eric@18 | 19 | } crop_t; |
eric@18 | 20 | |
eric@25 | 21 | typedef struct |
eric@25 | 22 | { |
eric@25 | 23 | char *prefix; |
eric@25 | 24 | char style; |
eric@25 | 25 | } page_label_t; |
eric@25 | 26 | |
eric@18 | 27 | |
eric@18 | 28 | typedef enum |
eric@18 | 29 | { |
eric@18 | 30 | INPUT_MODIFIER_ALL, |
eric@18 | 31 | INPUT_MODIFIER_ODD, |
eric@18 | 32 | INPUT_MODIFIER_EVEN, |
eric@18 | 33 | INPUT_MODIFIER_TYPE_COUNT /* must be last */ |
eric@18 | 34 | } input_modifier_type_t; |
eric@18 | 35 | |
eric@18 | 36 | |
eric@24 | 37 | typedef struct bookmark_t |
eric@24 | 38 | { |
eric@24 | 39 | struct bookmark_t *next; |
eric@24 | 40 | int level; /* 1 is outermost */ |
eric@24 | 41 | char *name; |
eric@24 | 42 | } bookmark_t; |
eric@24 | 43 | |
eric@24 | 44 | |
eric@20 | 45 | extern int line; /* line number in spec file */ |
eric@24 | 46 | extern int bookmark_level; |
eric@16 | 47 | |
eric@16 | 48 | |
eric@16 | 49 | /* semantic routines for input statements */ |
eric@19 | 50 | void input_push_context (void); |
eric@16 | 51 | void input_pop_context (void); |
eric@19 | 52 | void input_set_modifier_context (input_modifier_type_t type); |
eric@16 | 53 | void input_set_file (char *name); |
eric@19 | 54 | void input_set_rotation (int rotation); |
eric@20 | 55 | void input_images (range_t range); |
eric@16 | 56 | |
eric@16 | 57 | /* semantic routines for output statements */ |
eric@24 | 58 | void output_push_context (void); |
eric@24 | 59 | void output_pop_context (void); |
eric@16 | 60 | void output_set_file (char *name); |
eric@20 | 61 | void output_set_bookmark (char *name); |
eric@25 | 62 | void output_set_page_label (page_label_t label); |
eric@20 | 63 | void output_pages (range_t range); |
eric@26 | 64 | |
eric@26 | 65 | |
eric@26 | 66 | /* functions to be called from main program: */ |
eric@26 | 67 | boolean parse_spec_file (char *fn); |
eric@26 | 68 | boolean process_specs (void); |