home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / at-inc-bin.lha / os-include / prefs / printerps.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  4KB  |  160 lines

  1. #ifndef PREFS_PRINTERPS_H
  2. #define PREFS_PRINTERPS_H
  3. /*
  4. **    $VER: printerps.h 38.6 (6.5.93)
  5. **    Includes Release 40.15
  6. **
  7. **    File format for PostScript printer preferences
  8. **
  9. **    (C) Copyright 1991-1993 Commodore-Amiga, Inc.
  10. **    All Rights Reserved
  11. */
  12.  
  13. /*****************************************************************************/
  14.  
  15.  
  16. #ifndef EXEC_TYPES_H
  17. #include <exec/types.h>
  18. #endif
  19.  
  20. #ifndef LIBRARIES_IFFPARSE_H
  21. #include <libraries/iffparse.h>
  22. #endif
  23.  
  24.  
  25. /*****************************************************************************/
  26.  
  27.  
  28. #define ID_PSPD MAKE_ID('P','S','P','D')
  29.  
  30.  
  31. struct PrinterPSPrefs
  32. {
  33.     LONG  ps_Reserved[4];        /* System reserved */
  34.  
  35.     /* Global printing attributes */
  36.     UBYTE ps_DriverMode;
  37.     UBYTE ps_PaperFormat;
  38.     UBYTE ps_Reserved1[2];
  39.     LONG  ps_Copies;
  40.     LONG  ps_PaperWidth;
  41.     LONG  ps_PaperHeight;
  42.     LONG  ps_HorizontalDPI;
  43.     LONG  ps_VerticalDPI;
  44.  
  45.     /* Text Options */
  46.     UBYTE ps_Font;
  47.     UBYTE ps_Pitch;
  48.     UBYTE ps_Orientation;
  49.     UBYTE ps_Tab;
  50.     UBYTE ps_Reserved2[8];
  51.  
  52.     /* Text Dimensions */
  53.     LONG  ps_LeftMargin;
  54.     LONG  ps_RightMargin;
  55.     LONG  ps_TopMargin;
  56.     LONG  ps_BottomMargin;
  57.     LONG  ps_FontPointSize;
  58.     LONG  ps_Leading;
  59.     UBYTE ps_Reserved3[8];
  60.  
  61.     /* Graphics Options */
  62.     LONG  ps_LeftEdge;
  63.     LONG  ps_TopEdge;
  64.     LONG  ps_Width;
  65.     LONG  ps_Height;
  66.     UBYTE ps_Image;
  67.     UBYTE ps_Shading;
  68.     UBYTE ps_Dithering;
  69.     UBYTE ps_Reserved4[9];
  70.  
  71.     /* Graphics Scaling */
  72.     UBYTE ps_Aspect;
  73.     UBYTE ps_ScalingType;
  74.     UBYTE ps_Reserved5;
  75.     UBYTE ps_Centering;
  76.     UBYTE ps_Reserved6[8];
  77. };
  78.  
  79. /* All measurements are in Millipoints which is 1/1000 of a point, or
  80.  * in other words 1/72000 of an inch
  81.  */
  82.  
  83. /* constants for PrinterPSPrefs.ps_DriverMode */
  84. #define DM_POSTSCRIPT  0
  85. #define DM_PASSTHROUGH 1
  86.  
  87. /* constants for PrinterPSPrefs.ps_PaperFormat */
  88. #define PF_USLETTER 0
  89. #define PF_USLEGAL  1
  90. #define PF_A4        2
  91. #define PF_CUSTOM   3
  92.  
  93. /* constants for PrinterPSPrefs.ps_Font */
  94. #define FONT_COURIER      0
  95. #define FONT_TIMES      1
  96. #define FONT_HELVETICA      2
  97. #define FONT_HELV_NARROW  3
  98. #define FONT_AVANTGARDE   4
  99. #define FONT_BOOKMAN      5
  100. #define FONT_NEWCENT      6
  101. #define FONT_PALATINO      7
  102. #define FONT_ZAPFCHANCERY 8
  103.  
  104. /* constants for PrinterPSPrefs.ps_Pitch */
  105. #define PITCH_NORMAL     0
  106. #define PITCH_COMPRESSED 1
  107. #define PITCH_EXPANDED     2
  108.  
  109. /* constants for PrinterPSPrefs.ps_Orientation */
  110. #define ORIENT_PORTRAIT  0
  111. #define ORIENT_LANDSCAPE 1
  112.  
  113. /* constants for PrinterPSPrefs.ps_Tab */
  114. #define TAB_4      0
  115. #define TAB_8      1
  116. #define TAB_QUART 2
  117. #define TAB_HALF  3
  118. #define TAB_INCH  4
  119.  
  120. /* constants for PrinterPSPrefs.ps_Image */
  121. #define IM_POSITIVE 0
  122. #define IM_NEGATIVE 1
  123.  
  124. /* constants for PrinterPSPrefs.ps_Shading */
  125. #define SHAD_BW        0
  126. #define SHAD_GREYSCALE 1
  127. #define SHAD_COLOR     2
  128.  
  129. /* constants for PrinterPSPrefs.ps_Dithering */
  130. #define DITH_DEFAULT 0
  131. #define DITH_DOTTY   1
  132. #define DITH_VERT    2
  133. #define DITH_HORIZ   3
  134. #define DITH_DIAG    4
  135.  
  136. /* constants for PrinterPSPrefs.ps_Aspect */
  137. #define ASP_HORIZ 0
  138. #define ASP_VERT  1
  139.  
  140. /* constants for PrinterPSPrefs.ps_ScalingType */
  141. #define ST_ASPECT_ASIS      0
  142. #define ST_ASPECT_WIDE      1
  143. #define ST_ASPECT_TALL      2
  144. #define ST_ASPECT_BOTH      3
  145. #define ST_FITS_WIDE      4
  146. #define ST_FITS_TALL      5
  147. #define ST_FITS_BOTH      6
  148.  
  149. /* constants for PrinterPSPrefs.ps_Centering */
  150. #define CENT_NONE  0
  151. #define CENT_HORIZ 1
  152. #define CENT_VERT  2
  153. #define CENT_BOTH  3
  154.  
  155.  
  156. /*****************************************************************************/
  157.  
  158.  
  159. #endif /* PREFS_PRINTERPS_H */
  160.