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

  1. #define EDWIN_OPH
  2.  
  3. #ifndef LODGER_OPH
  4. #include <sdk\lodger>
  5. #endif
  6.  
  7. #ifndef SCRLAY_OPH
  8. #include <sdk\scrlay>
  9. #endif
  10.  
  11. /* Constants for edwin */
  12.  
  13. #define PR_EDWIN_DIALLABLE 0x0001
  14. #define PR_EDWIN_ACCEPT_TABS 0x0002
  15. #define PR_EDWIN_ACCEPT_SOFT_HYPHENS 0x0004
  16. #define PR_EDWIN_AUTO_CUR_END 0x0008
  17. #define PR_EDWIN_AUTO_SELECT 0x0010
  18. #define PR_EDWIN_DOC_SUPPLIED 0x0020
  19. #define PR_EDWIN_CLIPBOARD 0x0040
  20. #define PR_EDWIN_NOTIFY_OVERFLOW 0x0080
  21. #define PR_EDWIN_READONLY 0x8000
  22. #define IN_EDWIN_DIALLABLE PR_EDWIN_DIALLABLE
  23. #define IN_EDWIN_ACCEPT_TABS PR_EDWIN_ACCEPT_TABS
  24. #define IN_EDWIN_ACCEPT_SOFT_HYPHENS PR_EDWIN_ACCEPT_SOFT_HYPHENS
  25. #define IN_EDWIN_AUTO_CUR_END (PR_EDWIN_AUTO_CUR_END|PR_EDWIN_AUTO_SELECT)
  26. #define IN_EDWIN_NO_AUTOSELECT PR_EDWIN_AUTO_SELECT
  27. #define IN_EDWIN_DOC_SUPPLIED PR_EDWIN_DOC_SUPPLIED
  28. #define IN_EDWIN_CLIPBOARD PR_EDWIN_CLIPBOARD
  29. #define IN_EDWIN_VULEN 0x0080
  30. #define IN_EDWIN_VULEN_NOSCALE 0x0100
  31. #define IN_EDWIN_VULEN_CHARACTERS IN_EDWIN_VULEN
  32. #define IN_EDWIN_VULEN_PIXELS (IN_EDWIN_VULEN|IN_EDWIN_VULEN_NOSCALE)
  33. #define IN_EDWIN_LEFT_CURSOR 0x0200
  34. #define IN_EDWIN_TEXT_SEGMENTED 0x0400
  35. #define IN_EDWIN_POSITION_SUPPLIED 0x0800
  36. #define IN_EDWIN_FONT_SUPPLIED 0x1000
  37. #define IN_EDWIN_LEADING_SUPPLIED 0x2000
  38. #define IN_EDWIN_VISLINES_SUPPLIED 0x4000
  39. #define IN_EDWIN_PAGINATABLE 0x8000
  40. #define SET_EDWIN_TXT 0x01
  41. #define SET_EDWIN_EMPTY 0x02
  42. #define SET_EDWIN_CUR_END 0x04
  43. #define SET_EDWIN_SEL_ALL 0x08
  44. #define SET_EDWIN_CURSOR 0x10
  45. #define SET_EDWIN_ANCHOR 0x20
  46. #define EWF_BACKWARDS 0x0001
  47. #define EWF_CASESENS 0x0002
  48. #define EW_CHANGE_SINCE_SAVED 0x01
  49. #define EW_CHANGE_SINCE_PAGINATE 0x02
  50. #define EW_CHANGE 0xffff
  51. #define EW_BRING_SINGLE_SHOT 0xf000
  52.  
  53. /* Types for edwin */
  54.  
  55. STRUCT IN_EDWIN
  56.     vulen%
  57.     flags%
  58.     maxlen%
  59.     contents#(1)
  60. ENDS
  61.  
  62. STRUCT EDWIN_LEADING
  63.     total%
  64.     top%
  65. ENDS
  66.  
  67. STRUCT IN_EDWIN_X
  68.     vislines%
  69.     pos#(SIZEOF(P_POINT))
  70.     font%
  71.     style%
  72.     leading#(SIZEOF(EDWIN_LEADING))
  73.     doc%
  74.     clip%
  75. ENDS
  76.  
  77. STRUCT SE_EDWIN
  78.     buf%
  79.     len%
  80. ENDS
  81.  
  82. STRUCT SET_EDWIN
  83.     flags%
  84.     txt#(SIZEOF(SE_EDWIN))
  85.     cursor%
  86.     anchor%
  87. ENDS
  88.  
  89. STRUCT SENSE_EDWIN
  90.     cursor%
  91.     anchor%
  92. ENDS
  93.  
  94. /* Property of edwin */
  95.  
  96. STRUCT PRS_EDWIN
  97.     scrimg%
  98.     scrlay%
  99.     doc%
  100.     cpos%
  101.     clen%
  102.     clip%
  103.     select%
  104.     change%
  105.     flags%
  106.     margins#(SIZEOF(SCRLAY_MARGINS))
  107.     font#(SIZEOF(SCRLAY_FONT))
  108. ENDS
  109.  
  110. STRUCT PR_EDWIN
  111.     root#(SIZEOF(PRS_ROOT))
  112.     win#(SIZEOF(PRS_WIN))
  113.     lodger#(SIZEOF(PRS_LODGER))
  114.     edwin#(SIZEOF(PRS_EDWIN))
  115. ENDS
  116.  
  117. /* Property of punctued */
  118.  
  119. STRUCT PR_PUNCTUED
  120.     root#(SIZEOF(PRS_ROOT))
  121.     win#(SIZEOF(PRS_WIN))
  122.     lodger#(SIZEOF(PRS_LODGER))
  123.     edwin#(SIZEOF(PRS_EDWIN))
  124. ENDS
  125.  
  126. /* Property of ewlinksv */
  127.  
  128. STRUCT PRS_EWLINKSV
  129.     doc%
  130.     state%
  131.     pos%
  132.     parend%
  133.     posend%
  134.     buf#(256)
  135. ENDS
  136.  
  137. STRUCT PR_EWLINKSV
  138.     root#(SIZEOF(PRS_ROOT))
  139.     ewlinksv#(SIZEOF(PRS_EWLINKSV))
  140. ENDS
  141.