tom.bmx 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. ' tom.bmx
  2. Import pub.win32
  3. Strict
  4. Const TOMTRUE = -1
  5. Const TOMFALSE = 0
  6. Const TOMNONE = 0
  7. Const TOMSINGLE = 1
  8. Const TOMWORDS = 2
  9. Const TOMDOUBLE = 3
  10. Const TOMDOTTED = 4
  11. Extern "win32"
  12. Type IRichEditOLE Extends IUnknown
  13. Method GetClientSite()' (THIS_ LPOLECLIENTSITE FAR * lplpolesite) PURE;
  14. Method GetObjectCount()' (THIS) PURE;
  15. Method GetLinkCount()' (THIS) PURE;
  16. Method GetObject()' (THIS_ Long iob, REOBJECT FAR * lpreobject, DWORD dwFlags) PURE;
  17. Method InsertObject()' (THIS_ REOBJECT FAR * lpreobject) PURE;
  18. Method ConvertObject()' (THIS_ Long iob, REFCLSID rclsidNew, LPCSTR lpstrUserTypeNew) PURE;
  19. Method ActivateAs()' (THIS_ REFCLSID rclsid, REFCLSID rclsidAs) PURE;
  20. Method SetHostNames()' (THIS_ LPCSTR lpstrContainerApp, LPCSTR lpstrContainerObj) PURE;
  21. Method SetLinkAvailable()' (THIS_ Long iob, BOOL fAvailable) PURE;
  22. Method SetDvaspect()' (THIS_ Long iob, DWORD dvaspect) PURE;
  23. Method HandsOffStorage()' (THIS_ Long iob) PURE;
  24. Method SaveCompleted()' (THIS_ Long iob, LPSTORAGE lpstg) PURE;
  25. Method InPlaceDeactivate()' (THIS) PURE;
  26. Method ContextSensitiveHelp()' (THIS_ BOOL fEnterMode) PURE;
  27. Method GetClipboardData()' (THIS_ CHARRANGE FAR * lpchrg, DWORD reco,LPDATAOBJECT FAR * lplpdataobj) PURE;
  28. Method ImportDataObject()' (THIS_ LPDATAOBJECT lpdataobj,CLIPFORMAT cf, HGLOBAL hMetaPict) PURE;
  29. End Type
  30. Const ITextDocument_UUID$="{8CC497C0-A1DF-11ce-8098-00AA0047BE5D}"
  31. Type ITextDocument Extends IDispatch
  32. Method GetName()
  33. Method GetSlection()
  34. Method GetStoryCount( storycount:Int Var)
  35. Method GetStoryRanges()
  36. Method GetSaved()
  37. Method SetSaved()
  38. Method GetDefaultTabStop(Value# Var)
  39. Method SetDefaultTabStop(Value#)
  40. Method NewDocument()
  41. Method Open()
  42. Method Save()
  43. Method Freeze(count Var)
  44. Method UnFreeze(count Var)
  45. Method BeginEditCollection()
  46. Method EndEditCollection()
  47. Method Undo()
  48. Method Redo()
  49. Method Range(p0,p1,irange:ITextRange Var)
  50. Method RangeFromPoint(x,y,irange:ITextRange Var)
  51. End Type
  52. Type ITextRange Extends IDispatch
  53. Method GetText(bstr:Short Ptr Ptr)
  54. Method SetText(bstr:Short Ptr)
  55. Method GetChar()
  56. Method SetChar()
  57. Method GetDuplicate(irange:ITextRange Var)
  58. Method GetFormattedText()
  59. Method SetFormattedText()
  60. Method GetStart()
  61. Method SetStart()
  62. Method GetEnd()
  63. Method SetEnd()
  64. Method GetFont(ifont:ITextFont Var)
  65. Method SetFont(ifont:ITextFont)
  66. Method GetPara(para:ITextPara Var)
  67. Method SetPara(para:ITextPara)
  68. Method GetStoryLength( length:Int Var )
  69. Method GetStoryType( storytype:Int Var)
  70. Method Collapse()
  71. Method Expand()
  72. Method GetIndex()
  73. Method SetIndex()
  74. Method SetRange(cp1,cp2)
  75. Method InRange()
  76. Method InStory()
  77. Method IsEqual()
  78. Method Select_()
  79. Method StartOf()
  80. Method EndOf()
  81. Method Move()
  82. Method MoveStart()
  83. Method MoveEnd()
  84. Method MoveWhile()
  85. Method MoveStartWhile()
  86. Method MoveEndWhile()
  87. Method MoveUntil()
  88. Method MoveStartUntil()
  89. Method MoveEndUntil()
  90. Method FindText()
  91. Method FindTextStart()
  92. Method FindTextEnd()
  93. Method Delete_()
  94. Method Cut()
  95. Method Copy()
  96. Method Paste()
  97. Method CanPaste()
  98. Method CanEdit(bool Var)
  99. Method ChangeCase()
  100. Method GetPoint()
  101. Method SetPoint()
  102. Method ScrollIntoView()
  103. Method GetEmbeddedObject()
  104. EndType
  105. Type ITextFont Extends IDispatch
  106. Method GetDuplicate(ifont:ITextFont Var)
  107. Method SetDuplicate()
  108. Method CanChange()
  109. Method IsEqual()
  110. Method Reset()
  111. Method GetStyle(Value:Int Ptr)
  112. Method SetStyle(Value)
  113. Method GetAllCaps(Value:Int Ptr)
  114. Method SetAllCaps(Value)
  115. Method GetAnimation(Value:Int Ptr)
  116. Method SetAnimation(Value)
  117. Method GetBackColor(Value:Int Ptr)
  118. Method SetBackColor(Value)
  119. Method GetBold(Value:Int Ptr)
  120. Method SetBold(Value)
  121. Method GetEmboss(Value:Int Ptr)
  122. Method SetEmboss(Value)
  123. Method GetForeColor(Value:Int Ptr)
  124. Method SetForeColor(Value)
  125. Method GetHidden(Value:Int Ptr)
  126. Method SetHidden(Value)
  127. Method GetEngrave(Value:Int Ptr)
  128. Method SetEngrave(Value)
  129. Method GetItalic(Value:Int Ptr)
  130. Method SetItalic(Value)
  131. Method GetKerning(Value:Int Ptr)
  132. Method SetKerning(Value)
  133. Method GetLanguageID()
  134. Method SetLanguageID()
  135. Method GetName()
  136. Method SetName()
  137. Method GetOutline(Value:Int Ptr)
  138. Method SetOutline(Value)
  139. Method GetPosition(Value:Int Ptr)
  140. Method SetPosition(Value)
  141. Method GetProtected(Value:Int Ptr)
  142. Method SetProtected(Value)
  143. Method GetShadow(Value:Int Ptr)
  144. Method SetShadow(Value)
  145. Method GetSize(Value:Int Ptr)
  146. Method SetSize(Value)
  147. Method GetSmallCaps(Value:Int Ptr)
  148. Method SetSmallCaps(Value)
  149. Method GetSpacing(Value:Int Ptr)
  150. Method SetSpacing(Value)
  151. Method GetStrikeThrough(Value:Int Ptr)
  152. Method SetStrikeThrough(Value)
  153. Method GetSubscript(Value:Int Ptr)
  154. Method SetSubscript(Value)
  155. Method GetSuperscript(Value:Int Ptr)
  156. Method SetSuperscript(Value)
  157. Method GetUnderline(Value:Int Ptr)
  158. Method SetUnderline(Value)
  159. Method GetWeight(Value:Int Ptr)
  160. Method SetWeight(Value)
  161. End Type
  162. Const ITextPara_UUID$="{8CC497C4-A1DF-11ce-8098-00AA0047BE5D}"
  163. Type ITextPara Extends IDispatch
  164. Method GetDuplicate(ipara:ITextPara Var)
  165. Method SetDuplicate()
  166. Method CanChange()
  167. Method IsEqual(para)
  168. Method Reset(value)
  169. Method GetStyle()
  170. Method SetStyle(value)
  171. Method GetAlignment()
  172. Method SetAlignment(value)
  173. Method GetHyphenation()
  174. Method SetHyphenation(value)
  175. Method GetFirstLineIndent()
  176. Method GetKeepTogether()
  177. Method SetKeepTogether(value)
  178. Method GetKeepWithNext()
  179. Method SetKeepWithNext(value)
  180. Method GetLeftIndent#()
  181. Method GetLineSpacing#()
  182. Method GetLineSpacingRule()
  183. Method GetListAlignment()
  184. Method SetListAlignment( value)
  185. Method GetListLevelIndex()
  186. Method SetListLevelIndex(value)
  187. Method GetListStart()
  188. Method SetListStart(value)
  189. Method GetListTab#()
  190. Method SetListTab(value#)
  191. Method GetListType()
  192. Method SetListType(value)
  193. Method GetNoLineNumber()
  194. Method SetNoLineNumber(value)
  195. Method GetPageBreakBefore()
  196. Method SetPageBreakBefore(value)
  197. Method GetRightIndent#()
  198. Method SetRightIndent(value#)
  199. Method SetIndents(startindent#,leftindent#,rightindent#)
  200. Method SetLineSpacing( rule,spacing# )
  201. Method GetSpaceAfter()
  202. Method SetSpaceAfter(value#)
  203. Method GetSpaceBefore#()
  204. Method SetSpaceBefore(value#)
  205. Method GetWidowControl()
  206. Method SetWidowControl(value)
  207. Method GetTabCount( )
  208. Method AddTab( pos#,align,leader )
  209. Method ClearAllTabs()
  210. Method DeleteTab(pos#)
  211. Method GetTab(tab,pos,align,leader)
  212. End Type
  213. End Extern