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

  1. #define GATE_OPH
  2.  
  3. #ifndef OLIB_OPH
  4. #include <sdk\olib>
  5. #endif
  6.  
  7. /* Constants for gate */
  8.  
  9. #define PR_XWSERV_SHUTDOWN 0x01
  10. #define PR_XWSERV_QUERY_ALERT 0x02
  11. #define PR_XWSERV_S3FS 0x04
  12. #define PVV_TEXT_MAX_LEN 50
  13. #define OPRINTER_DO_PREVIEW 1
  14. #define OPRINTER_PRINT_AFTER 2
  15.  
  16. /* Types for gate */
  17.  
  18. STRUCT DITEM_LIST
  19.     class%
  20.     data%
  21. ENDS
  22.  
  23. STRUCT PURE_GATE
  24.     xwim%
  25.     nmenus%
  26.     menus%
  27.     ulines%(16)
  28.     count%
  29.     dialret#(OPPEVAL(SIZEOF(DITEM_LIST)*9))
  30.     nrec%
  31.     orec%
  32.     preview%
  33. ENDS
  34.  
  35. STRUCT PVV_DISPLAY
  36.     Mode#
  37.     Flags#
  38. ENDS
  39.  
  40. STRUCT X_CONSTANTS
  41.     fht%
  42.     fds%
  43.     fas%
  44.     fnw%
  45.     fmw%
  46.     cht%
  47.     mbht%
  48.     bfid%
  49.     bulyo%
  50.     bulht%
  51.     ninlb%
  52.     ssww%
  53.     bsww%
  54.     hllg%
  55.     samo%
  56.     damo%
  57. ENDS
  58.  
  59. STRUCT DLG_X_CONSTANTS
  60.     fht%
  61.     fds%
  62.     fas%
  63.     fnw%
  64.     fmw%
  65.     cht%
  66.     bulyo%
  67.     bulht%
  68.     ninlb%
  69. ENDS
  70.  
  71. /* Property of gate */
  72.  
  73. STRUCT PRS_GATE
  74.     waotstat%
  75.     concb%
  76.     xadd%
  77.     flags%
  78.     dialres%
  79.     x#(SIZEOF(X_CONSTANTS))
  80.     getkeys%
  81.     lastkey%
  82.     lastmods%
  83.     atpid%
  84.     atson%
  85.     today_hook%
  86.     shift_txt#(10)
  87.     prevdisp#(SIZEOF(PVV_DISPLAY))
  88.     dx#(SIZEOF(DLG_X_CONSTANTS))
  89.     g#(SIZEOF(PURE_GATE))
  90. ENDS
  91.  
  92. STRUCT PR_GATE
  93.     root#(SIZEOF(PRS_ROOT))
  94.     gate#(SIZEOF(PRS_GATE))
  95. ENDS
  96.  
  97. /* AC:Set current resource file */
  98.  
  99. #include <opp/process>
  100.  
  101. #define SET_RESFILE(fname_ptr)    send(peekw(DatDatGate),O_GT_SET_RSCFILE,#fname_ptr)
  102.  
  103.