1 | /* |
---|
2 | * PrintPaneP.h |
---|
3 | * |
---|
4 | * Copyright (C) 1992 by Adobe Systems Incorporated. |
---|
5 | * All rights reserved. |
---|
6 | * $RCSID: $Header: /afs/dev.mit.edu/source/repository/third/transcript/src/printpanel/PrintPaneP.h,v 1.1.1.1 1996-10-07 20:25:54 ghudson Exp $ |
---|
7 | */ |
---|
8 | |
---|
9 | #ifndef _PrintPanelP_H |
---|
10 | #define _PrintPanelP_H |
---|
11 | |
---|
12 | #include "PrintPanel.h" |
---|
13 | #include "PrintPaneI.h" |
---|
14 | |
---|
15 | #define PICKONE 0 |
---|
16 | #define PICKMANY 1 |
---|
17 | #define BOOL 2 |
---|
18 | |
---|
19 | typedef struct _SecondaryData { |
---|
20 | int which_filter; |
---|
21 | Widget which_widget; |
---|
22 | } SecondaryData; |
---|
23 | |
---|
24 | typedef struct _FileSBData { |
---|
25 | Widget head; |
---|
26 | Widget which_sb; |
---|
27 | Widget which_field; |
---|
28 | char **name; |
---|
29 | } FileSBData; |
---|
30 | |
---|
31 | typedef struct _NUpData { |
---|
32 | int rows; |
---|
33 | int columns; |
---|
34 | int gaudy; |
---|
35 | int rotated; |
---|
36 | } NUpData; |
---|
37 | |
---|
38 | typedef struct _RangeData { |
---|
39 | int begin; |
---|
40 | int end; |
---|
41 | } RangeData; |
---|
42 | |
---|
43 | typedef struct _PslprData { |
---|
44 | int showpage; |
---|
45 | int squeeze; |
---|
46 | int landscape; |
---|
47 | int overtranslate; |
---|
48 | } PslprData; |
---|
49 | |
---|
50 | typedef struct _PsdraftData { |
---|
51 | char *font; |
---|
52 | float size; |
---|
53 | float angle; |
---|
54 | float gray; |
---|
55 | float xpos; |
---|
56 | float ypos; |
---|
57 | char *draftstring; |
---|
58 | int outline; |
---|
59 | } PsdraftData; |
---|
60 | |
---|
61 | typedef struct _EnscriptData { |
---|
62 | char *font; |
---|
63 | float font_size; |
---|
64 | char *header_font; |
---|
65 | float header_font_size; |
---|
66 | char *header; |
---|
67 | int tab_width; |
---|
68 | int columns; |
---|
69 | int lines; |
---|
70 | int rotated; |
---|
71 | int norotate; |
---|
72 | int gaudy; |
---|
73 | int lpt_mode; |
---|
74 | int no_header; |
---|
75 | int truncate_lines; |
---|
76 | int ignore_binary; |
---|
77 | int report_missing_chars; |
---|
78 | int quiet_mode; |
---|
79 | int no_burst_page; |
---|
80 | } EnscriptData; |
---|
81 | |
---|
82 | typedef struct _RoffData { |
---|
83 | char *font; |
---|
84 | char *options; |
---|
85 | char *font_dir; |
---|
86 | } RoffData; |
---|
87 | |
---|
88 | typedef struct _PS630Data { |
---|
89 | char *body_font; |
---|
90 | char *bold_font; |
---|
91 | char *pitch; |
---|
92 | } PS630Data; |
---|
93 | |
---|
94 | typedef struct _PS4014Data { |
---|
95 | char *scale; |
---|
96 | char *left; |
---|
97 | char *bottom; |
---|
98 | char *width; |
---|
99 | char *height; |
---|
100 | int portrait; |
---|
101 | int cr_no_lf; |
---|
102 | int lf_no_cr; |
---|
103 | int margin_2; |
---|
104 | } PS4014Data; |
---|
105 | |
---|
106 | typedef struct _FeatureData { |
---|
107 | char *name; |
---|
108 | int num; |
---|
109 | char *value[20]; |
---|
110 | char *tmpvalue[20]; |
---|
111 | } FeatureData; |
---|
112 | |
---|
113 | typedef struct _FaxData { |
---|
114 | char key[100]; |
---|
115 | char name[100]; |
---|
116 | char phone[10]; |
---|
117 | int sendps; |
---|
118 | char *passwd; |
---|
119 | int save; |
---|
120 | char *filename; |
---|
121 | } FaxData; |
---|
122 | |
---|
123 | typedef struct _FeatureValueData { |
---|
124 | Widget head; |
---|
125 | int which_feature; |
---|
126 | char *choice; |
---|
127 | int which_key; |
---|
128 | int which_option; |
---|
129 | } FeatureValueData; |
---|
130 | |
---|
131 | typedef struct _ConstraintData { |
---|
132 | struct _UIData *no_key; |
---|
133 | struct _OptionData *no_option; |
---|
134 | } ConstraintData; |
---|
135 | |
---|
136 | typedef struct _OptionData { |
---|
137 | char name[255]; |
---|
138 | char name_tran[255]; |
---|
139 | int gray; |
---|
140 | Widget imp; |
---|
141 | int num_constraints; |
---|
142 | ConstraintData constraints[20]; |
---|
143 | } OptionData; |
---|
144 | |
---|
145 | typedef struct _UIData { |
---|
146 | int type; |
---|
147 | char keyword[255]; |
---|
148 | char key_tran[255]; |
---|
149 | int default_option; |
---|
150 | Widget imp; |
---|
151 | int display; |
---|
152 | int num_options; |
---|
153 | OptionData options[50]; |
---|
154 | } UIData; |
---|
155 | |
---|
156 | typedef struct _PPDData { |
---|
157 | char format_version[10]; |
---|
158 | long free_vm; |
---|
159 | char product[255]; |
---|
160 | char ps_version[10]; |
---|
161 | char model[255]; |
---|
162 | char nickname[255]; |
---|
163 | int language_level; |
---|
164 | int color_device; |
---|
165 | char default_resolution[20]; |
---|
166 | int supports_fax; |
---|
167 | int num_uis; |
---|
168 | UIData uis[20]; |
---|
169 | } PPDData; |
---|
170 | |
---|
171 | typedef struct _OptionWidgets { |
---|
172 | Widget child[MAXCHILDREN]; |
---|
173 | int num_children; |
---|
174 | } OptionWidgets; |
---|
175 | |
---|
176 | typedef struct _FilterListData { |
---|
177 | char name[255]; |
---|
178 | int index; |
---|
179 | } FilterListData; |
---|
180 | |
---|
181 | |
---|
182 | typedef struct { |
---|
183 | XtCallbackList ok_callback; |
---|
184 | XtCallbackList cancel_callback; |
---|
185 | String in_file_name; |
---|
186 | String filter_name; |
---|
187 | String printer_name; |
---|
188 | Widget panel_child; |
---|
189 | Widget ok_button_child; |
---|
190 | Widget apply_button_child; |
---|
191 | Widget reset_button_child; |
---|
192 | Widget cancel_button_child; |
---|
193 | Widget bottom_separator_child; |
---|
194 | Widget top_separator_child; |
---|
195 | Widget print_toggle_child; |
---|
196 | Widget preview_toggle_child; |
---|
197 | Widget save_toggle_child; |
---|
198 | Widget fax_toggle_child; |
---|
199 | Widget radio_box_child; |
---|
200 | Widget save_label_child; |
---|
201 | Widget save_text_child; |
---|
202 | Widget save_button_child; |
---|
203 | Widget fax_label_child; |
---|
204 | Widget fax_text_child; |
---|
205 | Widget fax_button_child; |
---|
206 | Widget printer_list_child; |
---|
207 | Widget printer_label_child; |
---|
208 | Widget printer_field_child; |
---|
209 | Widget filter_list_child; |
---|
210 | Widget filter_label_child; |
---|
211 | Widget filter_field_child; |
---|
212 | Widget printer_option_button_child; |
---|
213 | Widget filter_option_button_child; |
---|
214 | Widget open_button_child; |
---|
215 | Widget open_field_child; |
---|
216 | Widget special_button_child; |
---|
217 | Widget status_button_child; |
---|
218 | Widget copy_label_child; |
---|
219 | Widget copy_field_child; |
---|
220 | Widget page_label_child; |
---|
221 | Widget page_box_child; |
---|
222 | Widget all_toggle_child; |
---|
223 | Widget range_toggle_child; |
---|
224 | Widget begin_field_child; |
---|
225 | Widget end_field_child; |
---|
226 | Widget range_label_child; |
---|
227 | Widget range_button_child; |
---|
228 | Widget input_file_selection_child; |
---|
229 | Widget output_file_selection_child; |
---|
230 | Widget message_dialog_child; |
---|
231 | Widget special_form_child; |
---|
232 | Widget special_ok_button_child; |
---|
233 | Widget special_apply_button_child; |
---|
234 | Widget special_reset_button_child; |
---|
235 | Widget special_cancel_button_child; |
---|
236 | Widget special_separator_child; |
---|
237 | Widget special_nup_toggle_child; |
---|
238 | Widget special_nup_row_label_child; |
---|
239 | Widget special_nup_row_field_child; |
---|
240 | Widget special_nup_column_label_child; |
---|
241 | Widget special_nup_column_field_child; |
---|
242 | Widget special_gaudy_toggle_child; |
---|
243 | Widget special_rotate_toggle_child; |
---|
244 | Widget special_showpage_toggle_child; |
---|
245 | Widget special_landscape_toggle_child; |
---|
246 | Widget special_squeeze_toggle_child; |
---|
247 | Widget special_overtranslate_toggle_child; |
---|
248 | Widget special_draft_toggle_child; |
---|
249 | Widget special_draft_button_child; |
---|
250 | Widget draft_form_child; |
---|
251 | Widget draft_label_child; |
---|
252 | Widget draft_ok_button_child; |
---|
253 | Widget draft_apply_button_child; |
---|
254 | Widget draft_reset_button_child; |
---|
255 | Widget draft_cancel_button_child; |
---|
256 | Widget draft_separator_child; |
---|
257 | Widget draft_string_label_child; |
---|
258 | Widget draft_string_field_child; |
---|
259 | Widget draft_x_label_child; |
---|
260 | Widget draft_x_field_child; |
---|
261 | Widget draft_y_label_child; |
---|
262 | Widget draft_y_field_child; |
---|
263 | Widget draft_font_label_child; |
---|
264 | Widget draft_font_field_child; |
---|
265 | Widget draft_size_label_child; |
---|
266 | Widget draft_size_field_child; |
---|
267 | Widget draft_angle_label_child; |
---|
268 | Widget draft_angle_field_child; |
---|
269 | Widget draft_gray_label_child; |
---|
270 | Widget draft_gray_field_child; |
---|
271 | Widget draft_outline_toggle_child; |
---|
272 | Widget generic_panel_child; |
---|
273 | Widget generic_label_child; |
---|
274 | Widget generic_separator_child; |
---|
275 | Widget generic_ok_button_child; |
---|
276 | Widget generic_apply_button_child; |
---|
277 | Widget generic_reset_button_child; |
---|
278 | Widget generic_cancel_button_child; |
---|
279 | Widget fax_panel_child; |
---|
280 | Widget fax_panel_label_child; |
---|
281 | Widget fax_ok_button_child; |
---|
282 | Widget fax_apply_button_child; |
---|
283 | Widget fax_reset_button_child; |
---|
284 | Widget fax_cancel_button_child; |
---|
285 | Widget fax_separator_child; |
---|
286 | Widget fax_phone_button_child; |
---|
287 | Widget fax_add_button_child; |
---|
288 | Widget fax_extra_button_child; |
---|
289 | Widget fax_save_toggle_child; |
---|
290 | Widget fax_save_button_child; |
---|
291 | Widget fax_save_selection_child; |
---|
292 | Widget fax_rec_label_child; |
---|
293 | Widget fax_rec_field_child; |
---|
294 | Widget fax_num_label_child; |
---|
295 | Widget fax_num_field_child; |
---|
296 | Widget fax_format_radio_child; |
---|
297 | Widget fax_standard_toggle_child; |
---|
298 | Widget fax_fine_toggle_child; |
---|
299 | Widget fax_teleps_toggle_child; |
---|
300 | Widget fax_teleps_label_child; |
---|
301 | Widget fax_teleps_field_child; |
---|
302 | Widget fax_phone_panel_child; |
---|
303 | Widget fax_phone_ok_button_child; |
---|
304 | Widget fax_phone_apply_button_child; |
---|
305 | Widget fax_phone_reset_button_child; |
---|
306 | Widget fax_phone_cancel_button_child; |
---|
307 | Widget fax_phone_separator_child; |
---|
308 | Widget fax_phone_label_child; |
---|
309 | Widget fax_phone_list_child; |
---|
310 | Widget feature_window_child; |
---|
311 | Widget feature_panel_child; |
---|
312 | Widget feature_form_child; |
---|
313 | Widget feature_label_child; |
---|
314 | Widget feature_separator_child; |
---|
315 | Widget feature_ok_button_child; |
---|
316 | Widget feature_apply_button_child; |
---|
317 | Widget feature_reset_button_child; |
---|
318 | Widget feature_cancel_button_child; |
---|
319 | Widget pulldown_menu_child; |
---|
320 | Widget pulldown_buttons[3]; |
---|
321 | Widget feature_children[100]; |
---|
322 | int num_feature_children; |
---|
323 | Widget fax_phone_children[100]; |
---|
324 | int fax_phone_num_children; |
---|
325 | OptionWidgets option_children[6]; |
---|
326 | Widget plot_selection_box; |
---|
327 | |
---|
328 | /* Private */ |
---|
329 | char *input_file; |
---|
330 | char *output_file; |
---|
331 | char current_printer_name[30]; |
---|
332 | char *default_printer_name; |
---|
333 | char *default_filter_name; |
---|
334 | char *preview_path; |
---|
335 | char *fax_path; |
---|
336 | int filter; |
---|
337 | int old_filter; |
---|
338 | int use_pslpr; |
---|
339 | int use_psnup; |
---|
340 | int use_psdraft, tmp_psdraft; |
---|
341 | int tmp_psnup; |
---|
342 | int action; |
---|
343 | int range; |
---|
344 | int copies; |
---|
345 | NUpData nup_info, tmp_nup_info; |
---|
346 | RangeData page_ranges[10]; |
---|
347 | PslprData pslpr_info, tmp_pslpr_info; |
---|
348 | PsdraftData psdraft_info, tmp_psdraft_info; |
---|
349 | FileSBData input_sb_data, output_sb_data; |
---|
350 | FileSBData plot_data; |
---|
351 | FileSBData fax_file_data; |
---|
352 | EnscriptData enscript_info, tmp_enscript_info; |
---|
353 | RoffData roff_info, tmp_roff_info; |
---|
354 | PS630Data ps630_info, tmp_ps630_info; |
---|
355 | char *plot_profile, *tmp_plot_profile; |
---|
356 | PS4014Data ps4014_info, tmp_ps4014_info; |
---|
357 | FeatureData feature_info[50]; |
---|
358 | int num_features; |
---|
359 | FilterListData filterlist[20]; |
---|
360 | int num_filters; |
---|
361 | Widget filter_widget; |
---|
362 | int error_fd; |
---|
363 | int status_fd; |
---|
364 | int save_fd; |
---|
365 | XmString err_list; |
---|
366 | XmString status_list; |
---|
367 | char builtup_line[1024]; |
---|
368 | char tmp_line[1024]; |
---|
369 | SecondaryData option_callback_data, special_call_data; |
---|
370 | SecondaryData feature_callback_data, fax_callback_data; |
---|
371 | FeatureValueData choice_callback_data[100]; |
---|
372 | FaxData fax_data, tmp_fax_data; |
---|
373 | char *printers[MAXPRINTERS]; |
---|
374 | int num_printers; |
---|
375 | char *keys[10]; |
---|
376 | int num_keys; |
---|
377 | int max_keys; |
---|
378 | int error_pipes[10][2]; |
---|
379 | int connection_pipes[10][2]; |
---|
380 | PPDData features; |
---|
381 | char faxdb[255]; |
---|
382 | } PrintPanelPart; |
---|
383 | |
---|
384 | typedef struct _PrintPanelRec { |
---|
385 | CorePart core; |
---|
386 | CompositePart composite; |
---|
387 | ConstraintPart constraint; |
---|
388 | XmManagerPart manager; |
---|
389 | PrintPanelPart printpanel; |
---|
390 | } PrintPanelRec; |
---|
391 | |
---|
392 | typedef struct { |
---|
393 | XtPointer extension; |
---|
394 | } PrintPanelClassPart; |
---|
395 | |
---|
396 | typedef struct _PrintPanelClassRec { |
---|
397 | CoreClassPart core_class; |
---|
398 | CompositeClassPart composite_class; |
---|
399 | ConstraintClassPart constraint_class; |
---|
400 | XmManagerClassPart manager_class; |
---|
401 | PrintPanelClassPart printpanel_class; |
---|
402 | } PrintPanelClassRec, *PrintPanelWidgetClass; |
---|
403 | |
---|
404 | #endif /* _PrintPanelP_H */ |
---|
405 | /* DO NOT ADD ANYTHING AFTER THIS ENDIF */ |
---|