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

  1. #define PREV_OPH
  2.  
  3. /* AC: Note some bits commented out and
  4.    hard-coded to save memory */
  5.  
  6. /*#ifndef HWIMMAN_OPH
  7. #include <sdk\hwimman>
  8. #endif
  9.  
  10. #ifndef GATE_OPH
  11. #include <sdk\gate>
  12. #endif*/
  13.  
  14. #ifndef DLGBOX_OPH
  15. #include <sdk\dlgbox>
  16. #endif
  17.  
  18. /*#ifndef PRVPDR_OPH
  19. #include <sdk\prvpdr>
  20. #endif
  21.  
  22. #ifndef PAGES_OPH
  23. #include <sdk\pages>
  24. #endif*/
  25.  
  26. /* Property of prvinfo */
  27.  
  28. STRUCT PRS_PRVINFO
  29.     NoPages%
  30.     FontHeight%
  31.     FontAscent%
  32. ENDS
  33.  
  34. STRUCT PR_PRVINFO
  35.     root#(SIZEOF(PRS_ROOT))
  36.     win#(SIZEOF(PRS_WIN))
  37.     prvinfo#(SIZEOF(PRS_PRVINFO))
  38. ENDS
  39.  
  40. /* Constants for prvview */
  41.  
  42. #define PVV_INTERPAGE_GAP 6
  43. #define PVV_TOP_GAP 4
  44. #define PVV_FOOTER_GAP 12
  45. #define PVV_PAGE_SHADOW 1
  46. #define PVV_SIDE_GAP 12
  47. #define PVV_PAGENO_DISP_GAP 60
  48. #define PVV_DISP_FACING 0
  49. #define PVV_DISP1 1
  50. #define PVV_DISP2 2
  51. #define PVV_DISP3 3
  52. #define PVV_DISP4 4
  53. #define PVV_MARGINS_ON 0x01
  54. #define PVV_PREVIEW_SET 0x80
  55. #define PVV_VIEW_MAX_PAGEVIEWS 4
  56.  
  57. /* Types for prvview */
  58.  
  59. STRUCT IN_PRVVIEW
  60. /*    Calls#(SIZEOF(PAGES_CALLS))*/
  61.     Calls#(8)
  62.     PrintMethod%
  63.     Spare1%
  64.     Spare2%
  65. ENDS
  66.  
  67. STRUCT PVV_PAGE_DATA
  68.     Margins#(SIZEOF(P_RECT  ))
  69.     HeadTop%
  70.     HeadBot%
  71.     Border#(SIZEOF(P_RECT  ))
  72.     Footer#(SIZEOF(P_RECT  ))
  73. ENDS
  74.  
  75. STRUCT PVV_PAGEVIEW_DATA
  76.     pArray%
  77.     NoPages%
  78.     FirstPage%
  79.     LastPage%
  80.     PageOffset%
  81.     PageNo%
  82. /*    Disp#(SIZEOF(PVV_DISPLAY))*/
  83.     Disp#(2)
  84.     UseGrey%
  85.     LeftOffset%
  86.     PageViewWidth%
  87.     Page#(SIZEOF(PVV_PAGE_DATA))
  88.     pBitRow%
  89.     pLastRow%
  90.     pRowRec%
  91.     PrvSegHandle%
  92. /*    Bmp#(SIZEOF(PRV_BITMAP))*/
  93.     Bmp#(12)
  94. ENDS
  95.  
  96. /* Property of prvview */
  97.  
  98. STRUCT PRS_PRVVIEW
  99.     pPages%
  100.     pPrvInfo%
  101.     pPageView%(PVV_VIEW_MAX_PAGEVIEWS)
  102.     pOldMenu%
  103.     pOldComman%
  104.     Started%
  105.     PrintMethod%
  106.     hdone%
  107.     mdone%
  108.     NoPageViews%
  109.     MaxNoPageViews%
  110.     ScrollArea#(SIZEOF(P_RECT  ))
  111.     Pv#(SIZEOF(PVV_PAGEVIEW_DATA))
  112. ENDS
  113.  
  114. STRUCT PR_PRVVIEW
  115.     root#(SIZEOF(PRS_ROOT))
  116.     win#(SIZEOF(PRS_WIN))
  117.     dlgchain#(SIZEOF(PRS_DLGCHAIN))
  118.     prvview#(SIZEOF(PRS_PRVVIEW))
  119. ENDS
  120.  
  121. /* Types for prvpage */
  122.  
  123. STRUCT IN_PRVPAGE
  124.     pPrvView%
  125.     Pos%
  126.     wid%
  127. ENDS
  128.  
  129. /* Property of prvpage */
  130.  
  131. STRUCT PRS_PRVPAGE
  132.     init#(SIZEOF(IN_PRVPAGE))
  133. ENDS
  134.  
  135. STRUCT PR_PRVPAGE
  136.     root#(SIZEOF(PRS_ROOT))
  137.     win#(SIZEOF(PRS_WIN))
  138.     prvpage#(SIZEOF(PRS_PRVPAGE))
  139. ENDS
  140.  
  141. /* Property of prvcomm */
  142.  
  143. STRUCT PRS_PRVCOMM
  144.     pPrvView%
  145. ENDS
  146.  
  147. STRUCT PR_PRVCOMM
  148.     root#(SIZEOF(PRS_ROOT))
  149.     prvcomm#(SIZEOF(PRS_PRVCOMM))
  150. ENDS
  151.  
  152. /* Property of prvjump_dlg */
  153.  
  154. STRUCT PR_PRVJUMP_DLG
  155.     root#(SIZEOF(PRS_ROOT))
  156.     win#(SIZEOF(PRS_WIN))
  157.     dlgchain#(SIZEOF(PRS_DLGCHAIN))
  158.     dlgbox#(SIZEOF(PRS_DLGBOX))
  159. ENDS
  160.  
  161. /* Property of prvoptions_dlg */
  162.  
  163. STRUCT PR_PRVOPTIONS_DLG
  164.     root#(SIZEOF(PRS_ROOT))
  165.     win#(SIZEOF(PRS_WIN))
  166.     dlgchain#(SIZEOF(PRS_DLGCHAIN))
  167.     dlgbox#(SIZEOF(PRS_DLGBOX))
  168. ENDS
  169.