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

  1. #define POLYTEXT_OPH
  2.  
  3. #ifndef P_OBJECT_OPH
  4. #include <p\object>
  5. #endif
  6.  
  7. #ifndef VARRAY_OPH
  8. #include <sdk\varray>
  9. #endif
  10.  
  11. /* Constants for ptroot */
  12.  
  13. #define PT_FIND_DEFAULT 0x0000
  14. #define PT_FIND_BACKWARDS 0x0001
  15. #define PT_FIND_CAN_STAY 0x0002
  16. #define PT_STY_DEFAULT 0x00
  17. #define PT_STY_BREAK_AT_START 0x01
  18. #define PT_STY_BREAK_AT_END 0x02
  19. #define PT_STY_OSTRIKE_XLEFT 0x20
  20. #define PT_STY_OSTRIKE_XRIGHT 0x40
  21. #define PT_STY_OVERSTRIKE 0x80
  22. #define PT_MAX_PHRASE_LEN 236
  23. #define PT_DESCR_MOD_FONT 0x0001
  24. #define PT_DESCR_MOD_WS_STYLE 0x0002
  25. #define PT_DESCR_MOD_PT_STYLE 0x0004
  26. #define PT_DESCR_MOD_ATTRIB 0x0008
  27. #define PT_DESCR_MOD_TLEN 0x0010
  28.  
  29. /* Types for ptroot */
  30.  
  31. STRUCT PT_FONT_SPEC
  32.     font_id%
  33.     attrib#
  34. ENDS
  35.  
  36. STRUCT PT_PHRASE_INFO
  37.     line%
  38.     offset%
  39.     width%
  40. ENDS
  41.  
  42. STRUCT PT_PHRASE_DESCR
  43.     font_id%
  44.     ws_style#
  45.     pt_style#
  46.     attrib#
  47.     tlen#
  48. ENDS
  49.  
  50. STRUCT PT_PHRASE
  51.     descr#(SIZEOF(PT_PHRASE_DESCR))
  52.     txt#(1)
  53. ENDS
  54.  
  55. /* Property of ptroot */
  56.  
  57. STRUCT PRS_PTROOT
  58.     nphrases%
  59.     nchars%
  60.     nlines%
  61.     wwidth%
  62.     lmargin%
  63.     ascent%
  64. ENDS
  65.  
  66. STRUCT PR_PTROOT
  67.     root#(SIZEOF(PRS_ROOT))
  68.     ptroot#(SIZEOF(PRS_PTROOT))
  69. ENDS
  70.  
  71. /* Property of ptseg */
  72.  
  73. STRUCT PRS_PTSEG
  74.     phrases%
  75. ENDS
  76.  
  77. STRUCT PR_PTSEG
  78.     root#(SIZEOF(PRS_ROOT))
  79.     ptroot#(SIZEOF(PRS_PTROOT))
  80.     ptseg#(SIZEOF(PRS_PTSEG))
  81. ENDS
  82.  
  83. /* Property of ptflat */
  84.  
  85. STRUCT PRS_PTFLAT
  86.     buffer%
  87.     bufsize%
  88.     granularity%
  89.     nextoff%
  90. ENDS
  91.  
  92. STRUCT PR_PTFLAT
  93.     root#(SIZEOF(PRS_ROOT))
  94.     ptroot#(SIZEOF(PRS_PTROOT))
  95.     ptflat#(SIZEOF(PRS_PTFLAT))
  96. ENDS
  97.