home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / w / webster / !Webster / Docs / structures < prev    next >
Encoding:
Text File  |  1996-03-10  |  5.1 KB  |  235 lines

  1. Structures & Variables
  2. ----------------------
  3.  
  4. Links
  5. -----
  6. +0 ptr to next OR 0
  7. +4 ptr to href FIELD
  8. +8 flags
  9.    0 = link has an image map
  10. +12..+32 iconhandles or icons for this link
  11.  
  12. Form
  13. ----
  14.  
  15. +0 ptr to next form
  16. +4 ptr to contents
  17. +8 method 0 - POST
  18.           1 - GET 
  19.           2 - sendmail
  20. +12.. Action
  21.  
  22. Form Contents
  23. -------------
  24. Type 0 - Text Field
  25. +0 ptr to next Content
  26. +4 type
  27. +8 Icon handle
  28. +12.. name$,default_value$
  29.  
  30. Type 1 - Check box / Radio
  31. +0 ptr to next Content
  32. +4 type
  33. +8 Icon Handle
  34. +12 Selected? (0 = No, 1 = Yes)
  35. +16.. name$,value_if_checked$
  36.  
  37. Type 2 = Submit
  38. +0 ptr to next Content
  39. +4 type
  40. +8 Icon Handle
  41. +12 1 if clicked on
  42. +16 Name
  43.  
  44. Type 3 = Reset
  45. +0 ptr to next Content
  46. +4 type
  47. +8 Icon Handle
  48.  
  49. Type 4 = Option
  50. +0 ptr to next Content
  51. +4 type
  52. +8 Value Icon Handle
  53. +12 Menu Icon Handle
  54. +16 ptr to menu
  55. +20 ptr to default menu
  56. +24 size of menu
  57. +28.. NAME
  58.  
  59. Type 5 = Option, Multiple Selections
  60. +0 ptr to next Content
  61. +4 type
  62. +8 Value Icon Handle
  63. +12 Menu Icon Handle
  64. +16 ptr to menu
  65. +20 ptr to default menu
  66. +24.. NAME
  67.  
  68. Type 6 = TextArea 
  69. +0 ptr to next Content
  70. +4 type
  71. +8 icon%
  72. +12 Rows
  73. +16 Cols
  74. +20 ptr to data lines
  75. +24 .. name$
  76.  
  77. Type 7 = ImageMap       - Not yet sendable
  78. +0 ptr to next Content
  79. +4 type
  80. +8 Value Icon Handle
  81. +12.. NAME
  82.  
  83. Type 8 - Range (HTML 3)
  84. +0 ptr to next Content
  85. +4 type
  86. +8 Icon Handle
  87. +12 ptr to min (REAL VALUE)
  88. +16 ptr to max (REAL VALUE)
  89. +20.. name$,value$
  90.  
  91. Misc
  92. ----
  93. Intermediate structure for <OPTION> value parts of
  94. <SELECT>..</SELECT>
  95.  
  96. +0 ptr to next
  97. +4 FLAG bit 0 = Selected, 1 = Shaded
  98. +8... CONTENT
  99.  
  100. HotList
  101. -------
  102. +0  Next
  103. +4  window handle
  104. +8  contents
  105. +12 Height (pixels)
  106. +16 Count for selected entry
  107. +20 Height (Lines)
  108. +24 open flag
  109.  
  110. Lists Contents
  111. --------------
  112. +0 ptr to next
  113. +4  spare
  114. +8  ptr to name
  115. +12 ptr to url
  116. +16 ptr to goto string (History list only)
  117. +20 Windows scroll value (History list only)
  118. +24 Windows height (History list only)
  119.  
  120. Method flags - mf%()
  121. --------------------
  122. 0 - Ignore
  123. 1 - Standard Fetcher
  124. 2 - Command line
  125. 3 - Open Edit Window
  126. 4 - Open Save Window
  127. 5 - Standard Fetcher with an Extended URL
  128.  
  129. Cache variables
  130. ---------------
  131. cs% - Cache Status (Pointer to an array of integers)
  132.  
  133. -2 - Closed     waiting for 'finished' message from fetcher.
  134. -1 - Unused     cache%=9999+
  135.  0 - Available  cache%=Age of entry (from 1)
  136.  1 - Fetching   cache%= -(task handle)
  137.                 csp% = Handle of file to contain Result +
  138.                        0x10000* Handle of file holding URL (if an Extended URL)
  139.                 csp% = 0 if pure command line
  140.  2 - Fetching   cache%= -(Fetch Message Referance)
  141.                 csp% = Handle of file to contain Result +
  142.                        0x10000* Handle of file holding URL (if an Extended URL)
  143.                 [next is 0 for fetch complete or 3 for 'inprogress' message received]
  144.  3 - File Available, but fetch is still in progress and browser CAN read the file.
  145.                 csp% = Handle of file containing the fetched data +
  146.                        0x10000* Handle of file holding URL.
  147.                 [next is 4 when browser starts reading, or 5 for errors or finished
  148.                 fetch]
  149.  4 - inuse      cache% = 0,
  150.                 Fetch is still in progress, browser *is* or *Has been* reading the
  151.                 file. Decode section must close the files.
  152.                 [next is 5 when fetch complete]
  153.  5 - Fetch complete, but was in state 3 or 4 so something is still in progress
  154.      if it was not in state 3 or 4, state changes to 0 not 5.
  155.      URL file is closed, but main data file still open.
  156.      
  157.  6 - currently scanning the file to find the size.
  158.      If 'Finish message' is received, goto state 4, this aborts peeking.
  159.      When peeking is finished it is always set to 4
  160.  7 - Image decode in progress
  161.                 cache%= -task handle
  162.  
  163. csp% - More Cache Status info, See above
  164.        (Pointer to an array of integers)
  165.  
  166. cache% - Cache time, See above (Pointer to
  167.          an array of integers)
  168.  
  169. cachet% - Filetype (Array of pointers to a string)
  170.  
  171. cacheu% - The cached URL (Array of pointers to a string,
  172.           in Capitals when fetched)
  173.  
  174. List Types
  175. ----------
  176. 0 - UL
  177. 1 - OL
  178. 2 - DIR
  179. 3 - MENU
  180.  
  181. Image alignment flags
  182. ---------------------
  183. 0 - left
  184. 1 - right
  185. 2 - top, texttop
  186. 3 - bottom, baseline
  187. 4 - middle, absmiddle
  188.  
  189. Choices flags (in MF%)
  190. ----------------------
  191. 1 - Window shift thingy
  192. 2 - Keep Main window on screen
  193. 4 - Can Toggle to screen width
  194. 8 - Single Click Follows links
  195.  
  196. Run Types
  197. ---------
  198. 0 - Nothing
  199. 1 - Filer_Run
  200. 2 - Load into Webster
  201. 3 - Command line
  202. 4 - Save Window
  203.  
  204. Image Cache
  205. -----------
  206. +0  - Next
  207. +4  - ptr to sprite area containing image
  208.       in 'missing' list, icon to fill in.
  209. +8  - Age decremented at every page, entry is freed when zero
  210. +12 - X size of image
  211. +16 - Y size of image
  212. +20 - ptr to image name
  213.       in missing list,  ptr to main disc cache entry
  214. +24 to end - url of image
  215.  
  216. Realms (Authentication data)
  217. ------
  218. +0  - Next
  219. +4  - ptr to coded password info
  220. +8
  221. ..
  222. n   - url the authentication applies to.
  223.  
  224. Displays - Images etc display manually
  225. --------
  226. +0  - next
  227. +4  - plot type
  228.       - 1 = jpeg image
  229. +8  -   left x
  230. +12 -   top y
  231. +16 -   rightx
  232. +20 -   bottom y
  233. +24 -   *jpeg data
  234. +28 -   length of above
  235.