1 #ifndef PREFS_PRINTERPS_H 2 #define PREFS_PRINTERPS_H 3 4 /* 5 printer PostScript(TM) prefs definitions 6 7 Copyright © 2002 The MorphOS Development Team, All Rights Reserved. 8 9 PostScript is a Registered Trademark of Adobe Systems, Inc. 10 */ 11 12 #ifndef EXEC_TYPES_H 13 # include <exec/types.h> 14 #endif 15 16 #ifndef LIBRARIES_IFFPARSE_H 17 # include <libraries/iffparse.h> 18 #endif 19 20 #pragma pack(2) 21 22 23 #define ID_PSPD MAKE_ID('P','S','P','D') 24 25 26 struct PrinterPSPrefs 27 { 28 LONG ps_Reserved[4]; 29 30 UBYTE ps_DriverMode; 31 UBYTE ps_PaperFormat; 32 UBYTE ps_Reserved1[2]; 33 LONG ps_Copies; 34 LONG ps_PaperWidth; 35 LONG ps_PaperHeight; 36 LONG ps_HorizontalDPI; 37 LONG ps_VerticalDPI; 38 39 UBYTE ps_Font; 40 UBYTE ps_Pitch; 41 UBYTE ps_Orientation; 42 UBYTE ps_Tab; 43 UBYTE ps_Reserved2[8]; 44 45 LONG ps_LeftMargin; 46 LONG ps_RightMargin; 47 LONG ps_TopMargin; 48 LONG ps_BottomMargin; 49 LONG ps_FontPointSize; 50 LONG ps_Leading; 51 UBYTE ps_Reserved3[8]; 52 53 LONG ps_LeftEdge; 54 LONG ps_TopEdge; 55 LONG ps_Width; 56 LONG ps_Height; 57 UBYTE ps_Image; 58 UBYTE ps_Shading; 59 UBYTE ps_Dithering; 60 UBYTE ps_Reserved4[9]; 61 62 UBYTE ps_Aspect; 63 UBYTE ps_ScalingType; 64 UBYTE ps_Reserved5; 65 UBYTE ps_Centering; 66 UBYTE ps_Reserved6[8]; 67 }; 68 69 70 #define DM_POSTSCRIPT 0 71 #define DM_PASSTHROUGH 1 72 73 74 #define PF_USLETTER 0 75 #define PF_USLEGAL 1 76 #define PF_A4 2 77 #define PF_CUSTOM 3 78 79 80 #define FONT_COURIER 0 81 #define FONT_TIMES 1 82 #define FONT_HELVETICA 2 83 #define FONT_HELV_NARROW 3 84 #define FONT_AVANTGARDE 4 85 #define FONT_BOOKMAN 5 86 #define FONT_NEWCENT 6 87 #define FONT_PALATINO 7 88 #define FONT_ZAPFCHANCERY 8 89 90 91 #define PITCH_NORMAL 0 92 #define PITCH_COMPRESSED 1 93 #define PITCH_EXPANDED 2 94 95 96 #define ORIENT_PORTRAIT 0 97 #define ORIENT_LANDSCAPE 1 98 99 100 #define TAB_4 0 101 #define TAB_8 1 102 #define TAB_QUART 2 103 #define TAB_HALF 3 104 #define TAB_INCH 4 105 106 107 #define IM_POSITIVE 0 108 #define IM_NEGATIVE 1 109 110 111 #define SHAD_BW 0 112 #define SHAD_GREYSCALE 1 113 #define SHAD_COLOR 2 114 115 116 #define DITH_DEFAULT 0 117 #define DITH_DOTTY 1 118 #define DITH_VERT 2 119 #define DITH_HORIZ 3 120 #define DITH_DIAG 4 121 122 123 #define ASP_HORIZ 0 124 #define ASP_VERT 1 125 126 127 #define ST_ASPECT_ASIS 0 128 #define ST_ASPECT_WIDE 1 129 #define ST_ASPECT_TALL 2 130 #define ST_ASPECT_BOTH 3 131 #define ST_FITS_WIDE 4 132 #define ST_FITS_TALL 5 133 #define ST_FITS_BOTH 6 134 135 136 #define CENT_NONE 0 137 #define CENT_HORIZ 1 138 #define CENT_VERT 2 139 #define CENT_BOTH 3 140 141 142 #pragma pack() 143 144 #endif /* PREFS_PRINTERPS_H */