Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

346 lines
16 KiB

  1. #include <olectl.h>
  2. // DHTMLEd.idl : IDL source for DHTMLEd.dll
  3. // Copyright 1998-1999 Microsoft Corporation. All rights reserved.
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (DHTMLEd.tlb) and marshalling code.
  6. import "oaidl.idl";
  7. import "ocidl.idl";
  8. import "docobj.idl";
  9. #include "triedtctlid.h"
  10. cpp_quote("")
  11. cpp_quote("#define DE_E_INVALIDARG E_INVALIDARG")
  12. cpp_quote("#define DE_E_PATH_NOT_FOUND HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND)")
  13. cpp_quote("#define DE_E_FILE_NOT_FOUND HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)")
  14. cpp_quote("#define DE_E_UNEXPECTED E_UNEXPECTED")
  15. cpp_quote("#define DE_E_DISK_FULL HRESULT_FROM_WIN32(ERROR_HANDLE_DISK_FULL)")
  16. cpp_quote("#define DE_E_NOTSUPPORTED OLECMDERR_E_NOTSUPPORTED")
  17. cpp_quote("#define DE_E_ACCESS_DENIED HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED)")
  18. cpp_quote("")
  19. cpp_quote("#define DE_E_URL_SYNTAX MK_E_SYNTAX")
  20. cpp_quote("#define DE_E_INVALID_URL 0x800C0002")
  21. cpp_quote("#define DE_E_NO_SESSION 0x800C0003")
  22. cpp_quote("#define DE_E_CANNOT_CONNECT 0x800C0004")
  23. cpp_quote("#define DE_E_RESOURCE_NOT_FOUND 0x800C0005")
  24. cpp_quote("#define DE_E_OBJECT_NOT_FOUND 0x800C0006")
  25. cpp_quote("#define DE_E_DATA_NOT_AVAILABLE 0x800C0007")
  26. cpp_quote("#define DE_E_DOWNLOAD_FAILURE 0x800C0008")
  27. cpp_quote("#define DE_E_AUTHENTICATION_REQUIRED 0x800C0009")
  28. cpp_quote("#define DE_E_NO_VALID_MEDIA 0x800C000A")
  29. cpp_quote("#define DE_E_CONNECTION_TIMEOUT 0x800C000B")
  30. cpp_quote("#define DE_E_INVALID_REQUEST 0x800C000C")
  31. cpp_quote("#define DE_E_UNKNOWN_PROTOCOL 0x800C000D")
  32. cpp_quote("#define DE_E_SECURITY_PROBLEM 0x800C000E")
  33. cpp_quote("#define DE_E_CANNOT_LOAD_DATA 0x800C000F")
  34. cpp_quote("#define DE_E_CANNOT_INSTANTIATE_OBJECT 0x800C0010")
  35. cpp_quote("#define DE_E_REDIRECT_FAILED 0x800C0014")
  36. cpp_quote("#define DE_E_REDIRECT_TO_DIR 0x800C0015")
  37. cpp_quote("#define DE_E_CANNOT_LOCK_REQUEST 0x800C0016")
  38. cpp_quote("")
  39. cpp_quote("#define DE_E_FILTER_FRAMESET 0x80100001")
  40. cpp_quote("#define DE_E_FILTER_SERVERSCRIPT 0x80100002")
  41. cpp_quote("#define DE_E_FILTER_MULTIPLETAGS 0x80100004")
  42. cpp_quote("#define DE_E_FILTER_SCRIPTLISTING 0x80100008")
  43. cpp_quote("#define DE_E_FILTER_SCRIPTLABEL 0x80100010")
  44. cpp_quote("#define DE_E_FILTER_SCRIPTTEXTAREA 0x80100020")
  45. cpp_quote("#define DE_E_FILTER_SCRIPTSELECT 0x80100040")
  46. [
  47. uuid(683364A1-B37D-11D1-ADC5-006008A5848C),
  48. version(1.0),
  49. helpstring("DHTML Edit Control for IE5")
  50. ]
  51. library DHTMLEDLib
  52. {
  53. importlib("stdole2.tlb");
  54. importlib("mshtml.tlb");
  55. typedef
  56. [
  57. uuid(B23B8AA2-A8B4-11d1-ADC2-006008A5848C),
  58. helpstring("Constants for DHTMLEdit commands")
  59. ]
  60. enum DHTMLEDITCMDID {
  61. DECMD_BOLD=5000,
  62. DECMD_COPY=5002,
  63. DECMD_CUT,
  64. DECMD_DELETE,
  65. DECMD_DELETECELLS,
  66. DECMD_DELETECOLS,
  67. DECMD_DELETEROWS,
  68. DECMD_FINDTEXT,
  69. DECMD_FONT,
  70. DECMD_GETBACKCOLOR,
  71. DECMD_GETBLOCKFMT,
  72. DECMD_GETBLOCKFMTNAMES,
  73. DECMD_GETFONTNAME,
  74. DECMD_GETFONTSIZE,
  75. DECMD_GETFORECOLOR,
  76. DECMD_HYPERLINK,
  77. DECMD_IMAGE,
  78. DECMD_INDENT,
  79. DECMD_INSERTCELL,
  80. DECMD_INSERTCOL,
  81. DECMD_INSERTROW,
  82. DECMD_INSERTTABLE,
  83. DECMD_ITALIC,
  84. DECMD_JUSTIFYCENTER,
  85. DECMD_JUSTIFYLEFT,
  86. DECMD_JUSTIFYRIGHT,
  87. DECMD_LOCK_ELEMENT,
  88. DECMD_MAKE_ABSOLUTE,
  89. DECMD_MERGECELLS,
  90. DECMD_ORDERLIST,
  91. DECMD_OUTDENT,
  92. DECMD_PASTE,
  93. DECMD_REDO,
  94. DECMD_REMOVEFORMAT,
  95. DECMD_SELECTALL,
  96. DECMD_SEND_BACKWARD,
  97. DECMD_BRING_FORWARD,
  98. DECMD_SEND_BELOW_TEXT,
  99. DECMD_BRING_ABOVE_TEXT,
  100. DECMD_SEND_TO_BACK,
  101. DECMD_BRING_TO_FRONT,
  102. DECMD_SETBACKCOLOR,
  103. DECMD_SETBLOCKFMT,
  104. DECMD_SETFONTNAME,
  105. DECMD_SETFONTSIZE,
  106. DECMD_SETFORECOLOR,
  107. DECMD_SPLITCELL,
  108. DECMD_UNDERLINE,
  109. DECMD_UNDO,
  110. DECMD_UNLINK,
  111. DECMD_UNORDERLIST,
  112. DECMD_PROPERTIES,
  113. } DHTMLEDITCMDID;
  114. typedef
  115. [
  116. uuid(BF82426A-B961-11d1-ADC5-006008A5848C),
  117. helpstring("Constants for DHTMLEdit QueryStatus")
  118. ]
  119. enum DHTMLEDITCMDF {
  120. [helpstring("Command is not supported by this object")] DECMDF_NOTSUPPORTED = 0x00000000,
  121. [helpstring("Command is available but disabled")] DECMDF_DISABLED = 0x00000001,
  122. [helpstring("Command is available and enabled")] DECMDF_ENABLED = 0x00000003,
  123. [helpstring("Command is an on-off toggle and is currently on")] DECMDF_LATCHED = 0x00000007,
  124. [helpstring("Command is enabled and command state is indeterminate")] DECMDF_NINCHED = 0x0000000B,
  125. } DHTMLEDITCMDF;
  126. typedef
  127. [
  128. uuid(7179FC44-B2E4-11d1-ADC5-006008A5848C),
  129. helpstring("Constants for DHTMLEdit appearance")
  130. ]
  131. enum DHTMLEDITAPPEARANCE {
  132. [helpstring("Flat")] DEAPPEARANCE_FLAT = 0x00000000,
  133. [helpstring("3D")] DEAPPEARANCE_3D = 0x00000001,
  134. } DHTMLEDITAPPEARANCE;
  135. [
  136. object,
  137. uuid(8D91090D-B955-11D1-ADC5-006008A5848C),
  138. dual,
  139. helpstring("IDEGetBlockFmtNamesParam Interface"),
  140. pointer_default(unique)
  141. ]
  142. interface IDEGetBlockFmtNamesParam : IDispatch
  143. {
  144. [propget, id(DISPID_NAMESPARAM_NAMES), helpstring("property Names")] HRESULT Names([out, retval] VARIANT *pVal);
  145. [propput, id(DISPID_NAMESPARAM_NAMES), helpstring("property Names")] [hidden] HRESULT Names([in] VARIANT* newVal);
  146. };
  147. [
  148. object,
  149. uuid(CE04B590-2B1F-11d2-8D1E-00A0C959BC0A),
  150. dual,
  151. helpstring("IDHTMLEdit Safe for Scripting Interface"),
  152. pointer_default(unique)
  153. ]
  154. interface IDHTMLSafe : IDispatch
  155. {
  156. [id(DISPID_EXECCOMMAND), helpstring("method ExecCommand")] HRESULT ExecCommand([in]DHTMLEDITCMDID cmdID, [in, defaultvalue(OLECMDEXECOPT_DODEFAULT)] OLECMDEXECOPT cmdexecopt, [in, optional] VARIANT* pInVar, [out, retval] VARIANT* pOutVar);
  157. [id(DISPID_QUERYSTATUS), helpstring("method QueryStatus")] HRESULT QueryStatus([in]DHTMLEDITCMDID cmdID, [out, retval] DHTMLEDITCMDF* retval);
  158. [id(DISPID_SETCONTEXTMENU), helpstring("method SetContextMenu")] HRESULT SetContextMenu([in] VARIANT* menuStrings, [in] VARIANT* menuStates);
  159. [id(DISPID_NEWDOCUMENT), helpstring("method NewDocument")] HRESULT NewDocument();
  160. [id(DISPID_LOADURL), helpstring("method LoadURL")] HRESULT LoadURL([in] BSTR url);
  161. [id(DISPID_FILTERSRCCODE), helpstring("method FilterSourceCode")] HRESULT FilterSourceCode([in] BSTR sourceCodeIn, [out, retval] BSTR* sourceCodeOut);
  162. [id(DISPID_REFRESHDOC), helpstring("method Refresh")] HRESULT Refresh();
  163. [propget, id(DISPID_DOCUMENT), helpstring("property Document Object Model")] HRESULT DOM([out, retval] IHTMLDocument2 **pVal);
  164. [propget, id(DISPID_DOCUMENTHTML), helpstring("property DocumentHTML")] HRESULT DocumentHTML([out, retval] BSTR *docHTML);
  165. [propput, id(DISPID_DOCUMENTHTML), helpstring("property DocumentHTML")] HRESULT DocumentHTML([in] BSTR docHTML);
  166. [propget, id(DISPID_ACTIVATEAPPLETS), helpstring("property ActivateApplets")] HRESULT ActivateApplets([out, retval] VARIANT_BOOL *pVal);
  167. [propput, id(DISPID_ACTIVATEAPPLETS), helpstring("property ActivateApplets")] HRESULT ActivateApplets([in] VARIANT_BOOL newVal);
  168. [propget, id(DISPID_ACTIVATEACTIVEXCONTROLS), helpstring("property ActivateActiveXControls")] HRESULT ActivateActiveXControls([out, retval] VARIANT_BOOL *pVal);
  169. [propput, id(DISPID_ACTIVATEACTIVEXCONTROLS), helpstring("property ActivateActiveXControls")] HRESULT ActivateActiveXControls([in] VARIANT_BOOL newVal);
  170. [propget, id(DISPID_ACTIVATEDTCS), helpstring("property ActivateDTCs")] HRESULT ActivateDTCs([out, retval] VARIANT_BOOL *pVal);
  171. [propput, id(DISPID_ACTIVATEDTCS), helpstring("property ActivateDTCs")] HRESULT ActivateDTCs([in] VARIANT_BOOL newVal);
  172. [propget, id(DISPID_SHOWDETAILS), helpstring("property ShowDetails")] HRESULT ShowDetails([out, retval] VARIANT_BOOL *pVal);
  173. [propput, id(DISPID_SHOWDETAILS), helpstring("property ShowDetails")] HRESULT ShowDetails([in] VARIANT_BOOL newVal);
  174. [propget, id(DISPID_SHOWBORDERS), helpstring("property ShowBorders")] HRESULT ShowBorders([out, retval] VARIANT_BOOL *pVal);
  175. [propput, id(DISPID_SHOWBORDERS), helpstring("property ShowBorders")] HRESULT ShowBorders([in] VARIANT_BOOL newVal);
  176. [propget, id(DISPID_DHTMLEDITAPPEARANCE), helpstring("property Appearance")] HRESULT Appearance([out, retval] DHTMLEDITAPPEARANCE *pVal);
  177. [propput, id(DISPID_DHTMLEDITAPPEARANCE), helpstring("property Appearance")] HRESULT Appearance([in] DHTMLEDITAPPEARANCE newVal);
  178. [propget, id(DISPID_DHTMLEDITSCROLLBARS), helpstring("property Scrollbars")] HRESULT Scrollbars([out, retval] VARIANT_BOOL *pVal);
  179. [propput, id(DISPID_DHTMLEDITSCROLLBARS), helpstring("property Scrollbars")] HRESULT Scrollbars([in] VARIANT_BOOL newVal);
  180. [propget, id(DISPID_SCROLLBARAPPEARANCE), helpstring("property ScrollbarAppearance")] HRESULT ScrollbarAppearance([out, retval] DHTMLEDITAPPEARANCE *pVal);
  181. [propput, id(DISPID_SCROLLBARAPPEARANCE), helpstring("property ScrollbarAppearance")] HRESULT ScrollbarAppearance([in] DHTMLEDITAPPEARANCE newVal);
  182. [propget, id(DISPID_SOURCECODEPRESERVATION), helpstring("property SourceCodePreservation")] HRESULT SourceCodePreservation([out, retval] VARIANT_BOOL *pVal);
  183. [propput, id(DISPID_SOURCECODEPRESERVATION), helpstring("property SourceCodePreservation")] HRESULT SourceCodePreservation([in] VARIANT_BOOL newVal);
  184. [propget, id(DISPID_ABSOLUTEDROPMODE), helpstring("property AbsoluteDropMode")] HRESULT AbsoluteDropMode([out, retval] VARIANT_BOOL *pVal);
  185. [propput, id(DISPID_ABSOLUTEDROPMODE), helpstring("property AbsoluteDropMode")] HRESULT AbsoluteDropMode([in] VARIANT_BOOL newVal);
  186. [propget, id(DISPID_SNAPTOGRIDX), helpstring("property SnapToGridX")] HRESULT SnapToGridX([out, retval] long *pVal);
  187. [propput, id(DISPID_SNAPTOGRIDX), helpstring("property SnapToGridX")] HRESULT SnapToGridX([in] long newVal);
  188. [propget, id(DISPID_SNAPTOGRIDY), helpstring("property SnapToGridY")] HRESULT SnapToGridY([out, retval] long *pVal);
  189. [propput, id(DISPID_SNAPTOGRIDY), helpstring("property SnapToGridY")] HRESULT SnapToGridY([in] long newVal);
  190. [propget, id(DISPID_SNAPTOGRID), helpstring("property SnapToGrid")] HRESULT SnapToGrid([out, retval] VARIANT_BOOL *pVal);
  191. [propput, id(DISPID_SNAPTOGRID), helpstring("property SnapToGrid")] HRESULT SnapToGrid([in] VARIANT_BOOL newVal);
  192. [propget, id(DISPID_ISDIRTY), helpstring("property IsDirty")] HRESULT IsDirty([out, retval] VARIANT_BOOL *pVal);
  193. [propget, id(DISPID_CURRENTDOCUMENTPATH), helpstring("property CurrentDocumentPath")] HRESULT CurrentDocumentPath([out, retval] BSTR *docPath);
  194. [propget, id(DISPID_BASEURL), helpstring("property BaseURL")] HRESULT BaseURL([out, retval] BSTR *baseURL);
  195. [propput, id(DISPID_BASEURL), helpstring("property BaseURL")] HRESULT BaseURL([in] BSTR baseURL);
  196. [propget, id(DISPID_DOCUMENTTITLE), helpstring("property DocumentTitle")] HRESULT DocumentTitle([out, retval] BSTR *docTitle);
  197. [propget, id(DISPID_USEDIVONCR), helpstring("property UseDivOnCarriageReturn")] HRESULT UseDivOnCarriageReturn([out, retval] VARIANT_BOOL *pVal);
  198. [propput, id(DISPID_USEDIVONCR), helpstring("property UseDivOnCarriageReturn")] HRESULT UseDivOnCarriageReturn([in] VARIANT_BOOL newVal);
  199. [propget, id(DISPID_BUSY), helpstring("property Busy")] HRESULT Busy([out, retval] VARIANT_BOOL *pVal);
  200. };
  201. [
  202. uuid(CE04B591-2B1F-11d2-8D1E-00A0C959BC0A),
  203. dual,
  204. helpstring("IDHTMLEdit Interface"),
  205. pointer_default(unique)
  206. ]
  207. interface IDHTMLEdit : IDHTMLSafe
  208. {
  209. [id(DISPID_LOADDOCUMENT), helpstring("method LoadDocument")] HRESULT LoadDocument([in] VARIANT* pathIn, [in, optional] VARIANT* promptUser);
  210. [id(DISPID_SAVEDOCUMENT), helpstring("method SaveDocument")] HRESULT SaveDocument([in] VARIANT* pathIn, [in, optional] VARIANT* promptUser);
  211. [id(DISPID_PRINT), helpstring("method PrintDocument")] HRESULT PrintDocument([in, optional] VARIANT* withUI );
  212. [propget, id(DISPID_BROWSEMODE), helpstring("property BrowseMode")] HRESULT BrowseMode([out, retval] VARIANT_BOOL *pVal);
  213. [propput, id(DISPID_BROWSEMODE), helpstring("property BrowseMode")] HRESULT BrowseMode([in] VARIANT_BOOL newVal);
  214. };
  215. [
  216. object,
  217. uuid(47B0DFC6-B7A3-11D1-ADC5-006008A5848C),
  218. dual,
  219. helpstring("IDEInsertTableParam Interface"),
  220. pointer_default(unique)
  221. ]
  222. interface IDEInsertTableParam : IDispatch
  223. {
  224. [propget, id(DISPID_TABLEPARAMS_NUMROWS), helpstring("property NumRows")] HRESULT NumRows([out, retval] long* pVal);
  225. [propput, id(DISPID_TABLEPARAMS_NUMROWS), helpstring("property NumRows")] HRESULT NumRows([in] long newVal);
  226. [propget, id(DISPID_TABLEPARAMS_NUMCOLS), helpstring("property NumCols")] HRESULT NumCols([out, retval] long *pVal);
  227. [propput, id(DISPID_TABLEPARAMS_NUMCOLS), helpstring("property NumCols")] HRESULT NumCols([in] long newVal);
  228. [propget, id(DISPID_TABLEPARAMS_TABLEATTRS), helpstring("property TableAttrs")] HRESULT TableAttrs([out, retval] BSTR *pVal);
  229. [propput, id(DISPID_TABLEPARAMS_TABLEATTRS), helpstring("property TableAttrs")] HRESULT TableAttrs([in] BSTR newVal);
  230. [propget, id(DISPID_TABLEPARAMS_CELLATTRS), helpstring("property CellAttrs")] HRESULT CellAttrs([out, retval] BSTR *pVal);
  231. [propput, id(DISPID_TABLEPARAMS_CELLATTRS), helpstring("property CellAttrs")] HRESULT CellAttrs([in] BSTR newVal);
  232. [propget, id(DISPID_TABLEPARAMS_CAPTION), helpstring("property Caption")] HRESULT Caption([out, retval] BSTR *pVal);
  233. [propput, id(DISPID_TABLEPARAMS_CAPTION), helpstring("property Caption")] HRESULT Caption([in] BSTR newVal);
  234. };
  235. [ uuid(D1FC78E8-B380-11d1-ADC5-006008A5848C),
  236. helpstring("Event interface for DHTMLSafe control")
  237. ]
  238. dispinterface _DHTMLSafeEvents
  239. {
  240. properties:
  241. // Event interface has no properties
  242. methods:
  243. [id(DISPID_DOCUMENTCOMPLETE)] void DocumentComplete();
  244. [id(DISPID_DISPLAYCHANGED)] void DisplayChanged();
  245. [id(DISPID_SHOWCONTEXTMENU)] void ShowContextMenu([in] long xPos, [in] long yPos);
  246. [id(DISPID_CONTEXTMENUACTION)] void ContextMenuAction([in] long itemIndex);
  247. [id(DISPID_ONMOUSEDOWN)] void onmousedown();
  248. [id(DISPID_ONMOUSEMOVE)] void onmousemove();
  249. [id(DISPID_ONMOUSEUP)] void onmouseup();
  250. [id(DISPID_ONMOUSEOUT)] void onmouseout();
  251. [id(DISPID_ONMOUSEOVER)] void onmouseover();
  252. [id(DISPID_ONCLICK)] void onclick();
  253. [id(DISPID_ONDBLCLICK)] void ondblclick();
  254. [id(DISPID_ONKEYDOWN)] void onkeydown();
  255. [id(DISPID_ONKEYPRESS)] void onkeypress();
  256. [id(DISPID_ONKEYUP)] void onkeyup();
  257. [id(DISPID_ONBLUR)] void onblur();
  258. [id(DISPID_ONREADYSTATECHANGE)] void onreadystatechange();
  259. };
  260. [
  261. uuid(588D5040-CF28-11d1-8CD3-00A0C959BC0A),
  262. helpstring("Event interface for DHTMLEdit control")
  263. ]
  264. dispinterface _DHTMLEditEvents
  265. {
  266. properties:
  267. // Event interface has no properties
  268. methods:
  269. [id(DISPID_DOCUMENTCOMPLETE)] void DocumentComplete();
  270. [id(DISPID_DISPLAYCHANGED)] void DisplayChanged();
  271. [id(DISPID_SHOWCONTEXTMENU)] void ShowContextMenu([in] long xPos, [in] long yPos);
  272. [id(DISPID_CONTEXTMENUACTION)] void ContextMenuAction([in] long itemIndex);
  273. [id(DISPID_ONMOUSEDOWN)] void onmousedown();
  274. [id(DISPID_ONMOUSEMOVE)] void onmousemove();
  275. [id(DISPID_ONMOUSEUP)] void onmouseup();
  276. [id(DISPID_ONMOUSEOUT)] void onmouseout();
  277. [id(DISPID_ONMOUSEOVER)] void onmouseover();
  278. [id(DISPID_ONCLICK)] void onclick();
  279. [id(DISPID_ONDBLCLICK)] void ondblclick();
  280. [id(DISPID_ONKEYDOWN)] void onkeydown();
  281. [id(DISPID_ONKEYPRESS)] void onkeypress();
  282. [id(DISPID_ONKEYUP)] void onkeyup();
  283. [id(DISPID_ONBLUR)] void onblur();
  284. [id(DISPID_ONREADYSTATECHANGE)] void onreadystatechange();
  285. };
  286. [
  287. uuid(2D360200-FFF5-11d1-8D03-00A0C959BC0A),
  288. helpstring("DHTML Edit Control for IE5")
  289. ]
  290. coclass DHTMLEdit
  291. {
  292. [default] interface IDHTMLEdit;
  293. [default, source] interface _DHTMLEditEvents;
  294. };
  295. [
  296. uuid(2D360201-FFF5-11d1-8D03-00A0C959BC0A),
  297. helpstring("DHTML Safe for Scripting Control for IE5")
  298. ]
  299. coclass DHTMLSafe
  300. {
  301. [default] interface IDHTMLSafe;
  302. [default, source] interface _DHTMLSafeEvents;
  303. };
  304. [
  305. uuid(47B0DFC7-B7A3-11D1-ADC5-006008A5848C),
  306. helpstring("DEInsertTableParam Class")
  307. ]
  308. coclass DEInsertTableParam
  309. {
  310. [default] interface IDEInsertTableParam;
  311. };
  312. [
  313. uuid(8D91090E-B955-11D1-ADC5-006008A5848C),
  314. helpstring("DEGetBlockFmtNamesParam Class")
  315. ]
  316. coclass DEGetBlockFmtNamesParam
  317. {
  318. [default] interface IDEGetBlockFmtNamesParam;
  319. };
  320. };