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

  1. #define SCRLAY_OPH
  2.  
  3. #ifndef OLIB_OPH
  4. #include <sdk\olib>
  5. #endif
  6.  
  7. #ifndef P_GRAF_OPH
  8. #include <p\graf>
  9. #endif
  10.  
  11. /* Constants for scrlay */
  12.  
  13. #define SCRLAY_SYM_HARD_HYPHEN 7
  14. #define SCRLAY_SYM_SOFT_HYPHEN 14
  15. #define SCRLAY_SYM_HARD_SPACE 15
  16. #define SCRLAY_SYM_SHOW_SPACE 8
  17. #define SCRLAY_SHOW_TABS 0x01
  18. #define SCRLAY_SHOW_SPACES 0x02
  19. #define SCRLAY_SHOW_CRS 0x04
  20. #define SCRLAY_SHOW_HYPHENS 0x08
  21. #define SCRLAY_SHOW_LFS 0x10
  22. #define SCRLAY_WIDOW_ORPHAN 0x20
  23. #define SCRLAY_ALIGN_LEFT 0
  24. #define SCRLAY_ALIGN_RIGHT 1
  25. #define SCRLAY_ALIGN_CENTRE 2
  26. #define SCRLAY_ALIGN_JUSTIFY 3
  27. #define SCRLAY_REPEAT_TAB 3
  28. #define SCRLAY_NTABS_MAX 8
  29. #define SCRLAY_SCAN_POS 0
  30. #define SCRLAY_SCAN_XY 1
  31. #define SCRLAY_SCAN_LINE 2
  32. #define SCRLAY_SPACING_KEEP_NEXT 0x01
  33. #define SCRLAY_SPACING_KEEP_TOGETHER 0x02
  34. #define SCRLAY_SPACING_NEW_PAGE 0x04
  35. #define SCRLAY_TBOX_TAB 0x8000
  36. #define SCRLAY_TBOX_TAB_USED 0x4000
  37. #define SCRLAY_TBOX_TAB_LEFT 0x2000
  38. #define SCRLAY_TBOX_NO_STYLE 0x1000
  39. #define SCRLAY_TBOX_MASK_LEN 0xff
  40.  
  41. /* Types for scrlay */
  42.  
  43. STRUCT SCRLAY_TABSTOP
  44.     x%
  45.     type%
  46. ENDS
  47.  
  48. STRUCT SCRLAY_TABS
  49.     ntab%
  50.     tab#(OPPEVAL(SIZEOF(SCRLAY_TABSTOP)*SCRLAY_NTABS_MAX))
  51. ENDS
  52.  
  53. STRUCT SCRLAY_MARGINS
  54.     left%
  55.     right%
  56.     indent%
  57.     align%
  58. ENDS
  59.  
  60. STRUCT SCRLAY_SPACING
  61.     line%
  62.     above%
  63.     below%
  64.     flags%
  65. ENDS
  66.  
  67. STRUCT SCRLAY_FONT
  68.     fid%
  69.     style%
  70.     height%
  71. ENDS
  72.  
  73. STRUCT SCRLAY_SENSECHARS
  74.     pos%
  75.     printer%
  76.     buf%
  77.     blen%
  78. ENDS
  79.  
  80. STRUCT SCRLAY_PDATA
  81.     margins%
  82.     tabs%
  83.     spacing%
  84. ENDS
  85.  
  86. STRUCT SCRLAY_PLABEL
  87.     font#(SIZEOF(SCRLAY_FONT))
  88.     align%
  89.     buf%
  90.     blen%
  91. ENDS
  92.  
  93. STRUCT SCRLAY_DOC
  94.     len%
  95.     content%
  96.     sensechars%
  97.     sensepdata%
  98.     senseplabel%
  99.     toparst%
  100.     enqpage%
  101. ENDS
  102.  
  103. STRUCT QUE_TBOX
  104.     next%
  105.     prev%
  106. ENDS
  107.  
  108. STRUCT SCRLAY_TBOX
  109.     hd#(SIZEOF(QUE_TBOX))
  110.     width%
  111.     tlen%
  112. ENDS
  113.  
  114. STRUCT QUE_LINE
  115.     next%
  116.     prev%
  117. ENDS
  118.  
  119. STRUCT SCRLAY_LINE
  120.     hd#(SIZEOF(QUE_LINE))
  121.     tboxs#(SIZEOF(QUE_TBOX))
  122.     indent%
  123.     len%
  124.     islast#
  125.     new_page#
  126. ENDS
  127.  
  128. STRUCT QUE_PARA
  129.     next%
  130.     prev%
  131. ENDS
  132.  
  133. STRUCT SCRLAY_PARA
  134.     hd#(SIZEOF(QUE_PARA))
  135.     lines#(SIZEOF(QUE_LINE))
  136. ENDS
  137.  
  138. STRUCT SCRLAY_PLX
  139.     pos%
  140.     line%
  141.     x%
  142. ENDS
  143.  
  144. STRUCT SCRLAY_SCAN
  145.     scan%
  146.     test#(SIZEOF(SCRLAY_PLX))
  147.     pbeg#(SIZEOF(SCRLAY_PLX))
  148.     lbeg#(SIZEOF(SCRLAY_PLX))
  149.     tbeg#(SIZEOF(SCRLAY_PLX))
  150.     pt%
  151.     pl%
  152.     pp%
  153. ENDS
  154.  
  155. STRUCT SCRLAY_READ
  156.     label%
  157.     f#(SIZEOF(SCRLAY_FONT))
  158.     width%
  159.     indent%
  160.     blen#
  161.     isfirst#
  162.     islast#
  163.     new_page#
  164. ENDS
  165.  
  166. STRUCT SCRLAY_RD
  167.     pp%
  168.     pl%
  169.     pt%
  170.     pos%
  171. ENDS
  172.  
  173. STRUCT SCRLAY_FMT
  174.     pp%
  175.     pos%
  176.     line%
  177.     pend%
  178.     lend%
  179. ENDS
  180.  
  181. STRUCT SCRLAY_STYLE
  182.     options#
  183.     printer#
  184.     pd#(SIZEOF(SCRLAY_PDATA))
  185.     font%
  186.     fwtab%
  187.     scrpwidth%
  188.     sfont%
  189. ENDS
  190.  
  191. /* Property of scrlay */
  192.  
  193. STRUCT PRS_SCRLAY
  194.     paras#(SIZEOF(QUE_PARA))
  195.     first#(SIZEOF(SCRLAY_PLX))
  196.     nomemory#
  197.     adjust#
  198.     scan%
  199.     rd#(SIZEOF(SCRLAY_RD))
  200.     fmt#(SIZEOF(SCRLAY_FMT))
  201.     doc#(SIZEOF(SCRLAY_DOC))
  202.     slines%
  203.     spadjust%
  204.     st#(SIZEOF(SCRLAY_STYLE))
  205. ENDS
  206.  
  207. STRUCT PR_SCRLAY
  208.     root#(SIZEOF(PRS_ROOT))
  209.     scrlay#(SIZEOF(PRS_SCRLAY))
  210. ENDS
  211.  
  212. /* Types for prnlay */
  213.  
  214. STRUCT PRNLAY_PLABEL
  215.     s#(SIZEOF(SCRLAY_PLABEL))
  216.     wid%
  217.     margin%
  218.     gutter%
  219. ENDS
  220.  
  221. /* Property of prnlay */
  222.  
  223. STRUCT PRS_PRNLAY
  224.     tbxlen%
  225.     senselen%
  226.     sensebuf%
  227.     pos%
  228.     line%
  229.     nlines%
  230.     below%
  231.     excess%
  232.     ngaps%
  233.     ngap%
  234.     used%
  235.     ptab%
  236.     plabel%
  237. ENDS
  238.  
  239. STRUCT PR_PRNLAY
  240.     root#(SIZEOF(PRS_ROOT))
  241.     scrlay#(SIZEOF(PRS_SCRLAY))
  242.     prnlay#(SIZEOF(PRS_PRNLAY))
  243. ENDS
  244.