home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / psion / opp16f_zip / INCLUDE / SDK / PRINTER.OPH < prev    next >
Encoding:
Text File  |  1995-12-21  |  1.2 KB  |  74 lines

  1. #define PRINTER_OPH
  2.  
  3. #ifndef PAGES_OPH
  4. #include <sdk\pages>
  5. #endif
  6.  
  7. /* Constants for printer */
  8.  
  9. #define PRINTER_PORT_PARALLEL 0
  10. #define PRINTER_PORT_SERIAL 1
  11. #define PRINTER_PORT_FILE 2
  12. #define PRINTER_PORT_FAX 3
  13. #define PRINTER_PORT_NOT_SET 255
  14. #define PRINTER_HDR_TOP 0
  15. #define PRINTER_HDR_BOT 1
  16. #define PRINTER_PAGINATE 0
  17. #define PRINTER_PRINTING 1
  18. #define PRINTER_PREVIEW 2
  19. #define PRV_SEG_GRANULARITY 16
  20.  
  21. /* Types for printer */
  22.  
  23. STRUCT PRINTER_ALLOC
  24.     model%
  25.     hdtxt%(2)
  26. ENDS
  27.  
  28. STRUCT PRINTER_DATA
  29.     f#(SIZEOF(SCRLAY_FONT))
  30.     size_choice#
  31.     wo_control#
  32.     spare%(2)
  33. ENDS
  34.  
  35. STRUCT PRINTER_PARAMS
  36.     p#(SIZEOF(PAGES_PARAMS))
  37.     d#(SIZEOF(PRINTER_DATA))
  38. ENDS
  39.  
  40. STRUCT PREVIEW_INIT
  41.     pSegName%
  42.     pArray%
  43.     PrvSize#(SIZEOF(UPOINT))
  44.     BitWidth%
  45.     hPrvDone%
  46.     mPrvDone%
  47. ENDS
  48.  
  49. STRUCT PREVIEW_DATA
  50.     SegHandle%
  51.     pArray%
  52.     Size#(SIZEOF(UPOINT))
  53.     BitWidth%
  54.     hPrvDone%
  55.     mPrvDone%
  56. ENDS
  57.  
  58. /* Property of printer */
  59.  
  60. STRUCT PRS_PRINTER
  61.     wdr%
  62.     a#(SIZEOF(PRINTER_ALLOC))
  63.     port_type%
  64.     deftoptxt#(3)
  65.     defbottxt#(3)
  66.     p#(SIZEOF(PRINTER_PARAMS))
  67.     prv#(SIZEOF(PREVIEW_DATA))
  68. ENDS
  69.  
  70. STRUCT PR_PRINTER
  71.     root#(SIZEOF(PRS_ROOT))
  72.     printer#(SIZEOF(PRS_PRINTER))
  73. ENDS
  74.