1 | /* psparse.h |
---|
2 | * |
---|
3 | * Copyright (C) 1990,1992 Adobe Systems Incorporated. All rights reserved. |
---|
4 | * GOVERNMENT END USERS: See notice of rights in Notice file in TranScript |
---|
5 | * library directory -- probably /usr/lib/ps/Notice |
---|
6 | * RCSID: $Header: /afs/dev.mit.edu/source/repository/third/transcript/src/psparse.h,v 1.1.1.1 1996-10-07 20:25:52 ghudson Exp $ |
---|
7 | * |
---|
8 | * interface file for psparse package. |
---|
9 | * |
---|
10 | * $Log: not supported by cvs2svn $ |
---|
11 | * Revision 3.4 1992/08/21 16:26:32 snichols |
---|
12 | * Release 4.0 |
---|
13 | * |
---|
14 | * Revision 3.3 1992/07/14 22:36:41 snichols |
---|
15 | * Updated copyright. |
---|
16 | * |
---|
17 | * Revision 3.2 1992/05/18 20:09:06 snichols |
---|
18 | * support for shrink to fit, and translating by page length. |
---|
19 | * |
---|
20 | * Revision 3.1 1992/05/05 22:10:53 snichols |
---|
21 | * support for adding showpage. |
---|
22 | * |
---|
23 | * Revision 3.0 1991/06/17 16:46:10 snichols |
---|
24 | * Release3.0 |
---|
25 | * |
---|
26 | * Revision 1.5 1991/01/23 16:32:36 snichols |
---|
27 | * Added support for landscape, cleaned up some defaults, and |
---|
28 | * handled *PageRegion features better. |
---|
29 | * |
---|
30 | * Revision 1.4 91/01/16 14:14:15 snichols |
---|
31 | * Added support for LZW compression and ascii85 encoding for Level 2 printers. |
---|
32 | * |
---|
33 | * Revision 1.3 90/12/12 10:37:35 snichols |
---|
34 | * added range information. |
---|
35 | * |
---|
36 | * |
---|
37 | */ |
---|
38 | |
---|
39 | #define PSBUFSIZ 255 |
---|
40 | |
---|
41 | #define MAXRANGES 30 |
---|
42 | |
---|
43 | struct range { |
---|
44 | int begin; |
---|
45 | int end; |
---|
46 | }; |
---|
47 | |
---|
48 | struct comfeatures { |
---|
49 | char keyword[50]; |
---|
50 | char option[50]; |
---|
51 | char *value; |
---|
52 | }; |
---|
53 | |
---|
54 | struct controlswitches { |
---|
55 | int force; |
---|
56 | int reverse; |
---|
57 | int norearrange; |
---|
58 | int noparse; |
---|
59 | int strip; |
---|
60 | int compress; |
---|
61 | int landscape; |
---|
62 | int addshowpage; |
---|
63 | int squeeze; |
---|
64 | int upper; |
---|
65 | struct range ranges[MAXRANGES]; |
---|
66 | struct comfeatures features[20]; |
---|
67 | int nfeatures; |
---|
68 | }; |
---|
69 | |
---|
70 | enum status { notps, notcon, handled, success }; |
---|
71 | |
---|
72 | enum status HandleComments(/* FILE *input, char *printer, char |
---|
73 | *resourcepath, struct |
---|
74 | controlswitches control */); |
---|
75 | void HandleOutput(/* FILE *input, FILE *output, struct controlswitches control */); |
---|
76 | |
---|
77 | |
---|
78 | |
---|