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

  1. #define PAGES_OPH
  2.  
  3. #ifndef VARRAY_OPH
  4. #include <sdk\varray>
  5. #endif
  6.  
  7. #ifndef APPMAN_OPH
  8. #include <sdk\appman>
  9. #endif
  10.  
  11. #ifndef EPDOC_OPH
  12. #include <sdk\epdoc>
  13. #endif
  14.  
  15. #ifndef SCRLAY_OPH
  16. #include <sdk\scrlay>
  17. #endif
  18.  
  19. #ifndef TIME_OPH
  20. #include <sdk\time>
  21. #endif
  22.  
  23. #ifndef PRDRV_OPH
  24. #include <sdk\prdrv>
  25. #endif
  26.  
  27. /* Constants for pages */
  28.  
  29. #define PAGES_DONE_PAGE 0
  30. #define PAGES_DONE_DOC 1
  31. #define PAGES_DONE_END 2
  32. #define PAGES_DONE_ERROR 3
  33. #define PAGES_DOC_NEW_PAGE 0x01
  34. #define PAGES_DOC_RESET_PAGE_NUM 0x02
  35. #define PAGES_FLAGS_PRINTING 0x01
  36. #define PAGES_FLAGS_NOTFIRST 0x02
  37. #define PAGES_FLAGS_ZERODOWN 0x04
  38. #define PAGES_REGION_BODY 0
  39. #define PAGES_REGION_TOP 1
  40. #define PAGES_REGION_BOTTOM 2
  41. #define PAGES_REGION_LAST_BOTTOM 3
  42. #define PAGES_REGION_END 4
  43. #define PAGES_REGION_VERY_END 5
  44. #define PAGES_REGION_DOC_END 6
  45. #define PAGES_PAGENUM_ARABIC 0
  46. #define PAGES_PAGENUM_ROMAN_U 1
  47. #define PAGES_PAGENUM_ROMAN_L 2
  48. #define PAGES_HEADER_2_COLUMNS SCRLAY_ALIGN_JUSTIFY+1
  49. #define PAGES_HEADER_3_COLUMNS SCRLAY_ALIGN_JUSTIFY+2
  50.  
  51. /* Types for pages */
  52.  
  53. STRUCT UPOINT
  54.     x%
  55.     y%
  56. ENDS
  57.  
  58. STRUCT UEXTENT
  59.     tl#(SIZEOF(UPOINT))
  60.     width%
  61.     height%
  62. ENDS
  63.  
  64. STRUCT PAGES_DONE
  65.     event%
  66.     page%
  67.     pages%
  68. ENDS
  69.  
  70. STRUCT PAGES_HEADER
  71.     f#(SIZEOF(SCRLAY_FONT))
  72.     align#
  73.     first_page#
  74. ENDS
  75.  
  76. STRUCT PAGES_PAGE
  77.     width%
  78.     height%
  79.     body#(SIZEOF(UEXTENT))
  80.     hdtop%
  81.     hdbot%
  82. ENDS
  83.  
  84. STRUCT PAGES_PAGENUM
  85.     offset%
  86.     last%
  87.     style%
  88. ENDS
  89.  
  90. STRUCT PAGES_PARAMS
  91.     pg#(SIZEOF(PAGES_PAGE))
  92.     pdrflags%
  93.     docflags%
  94.     pgbeg%
  95.     pgend%
  96.     top#(SIZEOF(PAGES_HEADER))
  97.     bot#(SIZEOF(PAGES_HEADER))
  98.     pgnum#(SIZEOF(PAGES_PAGENUM))
  99. ENDS
  100.  
  101. STRUCT PAGES_CALLS
  102.     hread%
  103.     mread%
  104.     hdone%
  105.     mdone%
  106. ENDS
  107.  
  108. STRUCT PAGES_INIT
  109.     wdr%
  110.     c#(SIZEOF(PAGES_CALLS))
  111.     fname%
  112.     toptxt%
  113.     bottxt%
  114. ENDS
  115.  
  116. /* Property of pages */
  117.  
  118. STRUCT PRS_PAGES
  119.     pagarr%
  120.     todo%
  121.     ephead%
  122.     prhead%
  123.     pdr%
  124.     in#(SIZEOF(PAGES_INIT))
  125.     par#(SIZEOF(PAGES_PARAMS))
  126.     last_pos%
  127.     flags%
  128.     pheight%
  129.     brk_height%
  130.     brk_above%
  131.     brk_pos%
  132.     y%
  133.     nrec%
  134.     page%
  135.     reset_page#
  136.     newdoc#
  137.     started#
  138.     newpage#
  139.     region%
  140.     holding%
  141.     pos%
  142.     pr#(SIZEOF(WDR_PRINT))
  143.     tabs#(SIZEOF(SCRLAY_TABS))
  144.     spacing#(SIZEOF(SCRLAY_SPACING))
  145.     margins#(SIZEOF(SCRLAY_MARGINS))
  146.     time#(LN_TIME_DATE_STR)
  147.     date#(LN_TIME_TIME_STR-2)
  148.     ioclen%
  149. ENDS
  150.  
  151. STRUCT PR_PAGES
  152.     root#(SIZEOF(PRS_ROOT))
  153.     active#(SIZEOF(PRS_ACTIVE))
  154.     pages#(SIZEOF(PRS_PAGES))
  155. ENDS
  156.