DHtmled.idl
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:16k
源码类别:

模拟服务器

开发平台:

C/C++

  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 "dhtmldid.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("stdole32.tlb");
  54. importlib("stdole2.tlb");
  55. importlib("mshtml.tlb");
  56.     typedef
  57.     [
  58.         uuid(B23B8AA2-A8B4-11d1-ADC2-006008A5848C),
  59.         helpstring("Constants for DHTMLEdit commands")
  60.     ]
  61. enum DHTMLEDITCMDID {
  62. DECMD_BOLD=5000,
  63. DECMD_COPY=5002,
  64. DECMD_CUT,
  65. DECMD_DELETE,
  66. DECMD_DELETECELLS,
  67. DECMD_DELETECOLS,
  68. DECMD_DELETEROWS,
  69. DECMD_FINDTEXT,
  70. DECMD_FONT,
  71. DECMD_GETBACKCOLOR,
  72. DECMD_GETBLOCKFMT,
  73. DECMD_GETBLOCKFMTNAMES,
  74. DECMD_GETFONTNAME,
  75. DECMD_GETFONTSIZE,
  76. DECMD_GETFORECOLOR,
  77. DECMD_HYPERLINK,
  78. DECMD_IMAGE,
  79. DECMD_INDENT,
  80. DECMD_INSERTCELL,
  81. DECMD_INSERTCOL,
  82. DECMD_INSERTROW,
  83. DECMD_INSERTTABLE,
  84. DECMD_ITALIC,
  85. DECMD_JUSTIFYCENTER,
  86. DECMD_JUSTIFYLEFT,
  87. DECMD_JUSTIFYRIGHT,
  88. DECMD_LOCK_ELEMENT,
  89. DECMD_MAKE_ABSOLUTE,
  90. DECMD_MERGECELLS,
  91. DECMD_ORDERLIST,
  92. DECMD_OUTDENT,
  93. DECMD_PASTE,
  94. DECMD_REDO,
  95. DECMD_REMOVEFORMAT,
  96. DECMD_SELECTALL,
  97. DECMD_SEND_BACKWARD,
  98. DECMD_BRING_FORWARD,
  99. DECMD_SEND_BELOW_TEXT,
  100. DECMD_BRING_ABOVE_TEXT,
  101. DECMD_SEND_TO_BACK,
  102. DECMD_BRING_TO_FRONT,
  103. DECMD_SETBACKCOLOR,
  104. DECMD_SETBLOCKFMT,
  105. DECMD_SETFONTNAME,
  106. DECMD_SETFONTSIZE,
  107. DECMD_SETFORECOLOR,
  108. DECMD_SPLITCELL,
  109. DECMD_UNDERLINE,
  110. DECMD_UNDO,
  111. DECMD_UNLINK,
  112. DECMD_UNORDERLIST,
  113. DECMD_PROPERTIES,
  114. } DHTMLEDITCMDID;
  115.     typedef
  116.     [
  117.         uuid(BF82426A-B961-11d1-ADC5-006008A5848C),
  118.         helpstring("Constants for DHTMLEdit QueryStatus")
  119.     ]
  120.     enum DHTMLEDITCMDF {
  121.         [helpstring("Command is not supported by this object")] DECMDF_NOTSUPPORTED = 0x00000000,
  122.         [helpstring("Command is available but disabled")] DECMDF_DISABLED = 0x00000001,
  123.         [helpstring("Command is available and enabled")] DECMDF_ENABLED = 0x00000003,
  124.         [helpstring("Command is an on-off toggle and is currently on")] DECMDF_LATCHED = 0x00000007,
  125.         [helpstring("Command is enabled and command state is indeterminate")] DECMDF_NINCHED = 0x0000000B,
  126.     } DHTMLEDITCMDF;
  127.     typedef
  128.     [
  129.         uuid(7179FC44-B2E4-11d1-ADC5-006008A5848C),
  130.         helpstring("Constants for DHTMLEdit appearance")
  131.     ]
  132.     enum DHTMLEDITAPPEARANCE {
  133.         [helpstring("Flat")] DEAPPEARANCE_FLAT = 0x00000000,
  134.         [helpstring("3D")] DEAPPEARANCE_3D = 0x00000001,
  135.     } DHTMLEDITAPPEARANCE;
  136. [
  137. object,
  138. uuid(8D91090D-B955-11D1-ADC5-006008A5848C),
  139. dual,
  140. helpstring("IDEGetBlockFmtNamesParam Interface"),
  141. pointer_default(unique)
  142. ]
  143. interface IDEGetBlockFmtNamesParam : IDispatch
  144. {
  145. [propget, id(DISPID_NAMESPARAM_NAMES), helpstring("property Names")] HRESULT Names([out, retval] VARIANT *pVal);
  146. [propput, id(DISPID_NAMESPARAM_NAMES), helpstring("property Names")] [hidden] HRESULT Names([in] VARIANT* newVal);
  147. };
  148. [
  149. object,
  150. uuid(CE04B590-2B1F-11d2-8D1E-00A0C959BC0A),
  151. dual,
  152. helpstring("IDHTMLEdit Safe for Scripting Interface"),
  153. pointer_default(unique)
  154. ]
  155. interface IDHTMLSafe : IDispatch
  156. {
  157. [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);
  158. [id(DISPID_QUERYSTATUS), helpstring("method QueryStatus")] HRESULT QueryStatus([in]DHTMLEDITCMDID cmdID, [out, retval] DHTMLEDITCMDF* retval);
  159. [id(DISPID_SETCONTEXTMENU), helpstring("method SetContextMenu")] HRESULT SetContextMenu([in] VARIANT* menuStrings, [in] VARIANT* menuStates);
  160. [id(DISPID_NEWDOCUMENT), helpstring("method NewDocument")] HRESULT NewDocument();
  161. [id(DISPID_LOADURL), helpstring("method LoadURL")] HRESULT LoadURL([in] BSTR url);
  162. [id(DISPID_FILTERSRCCODE), helpstring("method FilterSourceCode")] HRESULT FilterSourceCode([in] BSTR sourceCodeIn, [out, retval] BSTR* sourceCodeOut);
  163. [id(DISPID_REFRESHDOC), helpstring("method Refresh")] HRESULT Refresh();
  164. [propget, id(DISPID_DOCUMENT), helpstring("property Document Object Model")] HRESULT DOM([out, retval] IHTMLDocument2 **pVal);
  165. [propget, id(DISPID_DOCUMENTHTML), helpstring("property DocumentHTML")] HRESULT DocumentHTML([out, retval] BSTR *docHTML);
  166. [propput, id(DISPID_DOCUMENTHTML), helpstring("property DocumentHTML")] HRESULT DocumentHTML([in] BSTR docHTML);
  167. [propget, id(DISPID_ACTIVATEAPPLETS), helpstring("property ActivateApplets")] HRESULT ActivateApplets([out, retval] VARIANT_BOOL *pVal);
  168. [propput, id(DISPID_ACTIVATEAPPLETS), helpstring("property ActivateApplets")] HRESULT ActivateApplets([in] VARIANT_BOOL newVal);
  169. [propget, id(DISPID_ACTIVATEACTIVEXCONTROLS), helpstring("property ActivateActiveXControls")] HRESULT ActivateActiveXControls([out, retval] VARIANT_BOOL *pVal);
  170. [propput, id(DISPID_ACTIVATEACTIVEXCONTROLS), helpstring("property ActivateActiveXControls")] HRESULT ActivateActiveXControls([in] VARIANT_BOOL newVal);
  171. [propget, id(DISPID_ACTIVATEDTCS), helpstring("property ActivateDTCs")] HRESULT ActivateDTCs([out, retval] VARIANT_BOOL *pVal);
  172. [propput, id(DISPID_ACTIVATEDTCS), helpstring("property ActivateDTCs")] HRESULT ActivateDTCs([in] VARIANT_BOOL newVal);
  173. [propget, id(DISPID_SHOWDETAILS), helpstring("property ShowDetails")] HRESULT ShowDetails([out, retval] VARIANT_BOOL *pVal);
  174. [propput, id(DISPID_SHOWDETAILS), helpstring("property ShowDetails")] HRESULT ShowDetails([in] VARIANT_BOOL newVal);
  175. [propget, id(DISPID_SHOWBORDERS), helpstring("property ShowBorders")] HRESULT ShowBorders([out, retval] VARIANT_BOOL *pVal);
  176. [propput, id(DISPID_SHOWBORDERS), helpstring("property ShowBorders")] HRESULT ShowBorders([in] VARIANT_BOOL newVal);
  177. [propget, id(DISPID_DHTMLEDITAPPEARANCE), helpstring("property Appearance")] HRESULT Appearance([out, retval] DHTMLEDITAPPEARANCE *pVal);
  178. [propput, id(DISPID_DHTMLEDITAPPEARANCE), helpstring("property Appearance")] HRESULT Appearance([in] DHTMLEDITAPPEARANCE newVal);
  179. [propget, id(DISPID_DHTMLEDITSCROLLBARS), helpstring("property Scrollbars")] HRESULT Scrollbars([out, retval] VARIANT_BOOL *pVal);
  180. [propput, id(DISPID_DHTMLEDITSCROLLBARS), helpstring("property Scrollbars")] HRESULT Scrollbars([in] VARIANT_BOOL newVal);
  181. [propget, id(DISPID_SCROLLBARAPPEARANCE), helpstring("property ScrollbarAppearance")] HRESULT ScrollbarAppearance([out, retval] DHTMLEDITAPPEARANCE *pVal);
  182. [propput, id(DISPID_SCROLLBARAPPEARANCE), helpstring("property ScrollbarAppearance")] HRESULT ScrollbarAppearance([in] DHTMLEDITAPPEARANCE newVal);
  183. [propget, id(DISPID_SOURCECODEPRESERVATION), helpstring("property SourceCodePreservation")] HRESULT SourceCodePreservation([out, retval] VARIANT_BOOL *pVal);
  184. [propput, id(DISPID_SOURCECODEPRESERVATION), helpstring("property SourceCodePreservation")] HRESULT SourceCodePreservation([in] VARIANT_BOOL newVal);
  185. [propget, id(DISPID_ABSOLUTEDROPMODE), helpstring("property AbsoluteDropMode")] HRESULT AbsoluteDropMode([out, retval] VARIANT_BOOL *pVal);
  186. [propput, id(DISPID_ABSOLUTEDROPMODE), helpstring("property AbsoluteDropMode")] HRESULT AbsoluteDropMode([in] VARIANT_BOOL newVal);
  187. [propget, id(DISPID_SNAPTOGRIDX), helpstring("property SnapToGridX")] HRESULT SnapToGridX([out, retval] long *pVal);
  188. [propput, id(DISPID_SNAPTOGRIDX), helpstring("property SnapToGridX")] HRESULT SnapToGridX([in] long newVal);
  189. [propget, id(DISPID_SNAPTOGRIDY), helpstring("property SnapToGridY")] HRESULT SnapToGridY([out, retval] long *pVal);
  190. [propput, id(DISPID_SNAPTOGRIDY), helpstring("property SnapToGridY")] HRESULT SnapToGridY([in] long newVal);
  191. [propget, id(DISPID_SNAPTOGRID), helpstring("property SnapToGrid")] HRESULT SnapToGrid([out, retval] VARIANT_BOOL *pVal);
  192. [propput, id(DISPID_SNAPTOGRID), helpstring("property SnapToGrid")] HRESULT SnapToGrid([in] VARIANT_BOOL newVal);
  193. [propget, id(DISPID_ISDIRTY), helpstring("property IsDirty")] HRESULT IsDirty([out, retval] VARIANT_BOOL *pVal);
  194. [propget, id(DISPID_CURRENTDOCUMENTPATH), helpstring("property CurrentDocumentPath")] HRESULT CurrentDocumentPath([out, retval] BSTR *docPath);
  195. [propget, id(DISPID_BASEURL), helpstring("property BaseURL")] HRESULT BaseURL([out, retval] BSTR *baseURL);
  196. [propput, id(DISPID_BASEURL), helpstring("property BaseURL")] HRESULT BaseURL([in] BSTR baseURL);
  197. [propget, id(DISPID_DOCUMENTTITLE), helpstring("property DocumentTitle")] HRESULT DocumentTitle([out, retval] BSTR *docTitle);
  198. [propget, id(DISPID_USEDIVONCR), helpstring("property UseDivOnCarriageReturn")] HRESULT UseDivOnCarriageReturn([out, retval] VARIANT_BOOL *pVal);
  199. [propput, id(DISPID_USEDIVONCR), helpstring("property UseDivOnCarriageReturn")] HRESULT UseDivOnCarriageReturn([in] VARIANT_BOOL newVal);
  200. [propget, id(DISPID_BUSY), helpstring("property Busy")] HRESULT Busy([out, retval] VARIANT_BOOL *pVal);
  201. };
  202. [
  203. uuid(CE04B591-2B1F-11d2-8D1E-00A0C959BC0A),
  204. dual,
  205. helpstring("IDHTMLEdit Interface"),
  206. pointer_default(unique)
  207. ]
  208. interface IDHTMLEdit : IDHTMLSafe
  209. {
  210. [id(DISPID_LOADDOCUMENT), helpstring("method LoadDocument")] HRESULT LoadDocument([in] VARIANT* pathIn, [in, optional] VARIANT* promptUser);
  211. [id(DISPID_SAVEDOCUMENT), helpstring("method SaveDocument")] HRESULT SaveDocument([in] VARIANT* pathIn, [in, optional] VARIANT* promptUser);
  212. [id(DISPID_PRINT), helpstring("method PrintDocument")] HRESULT PrintDocument([in, optional] VARIANT* withUI );
  213. [propget, id(DISPID_BROWSEMODE), helpstring("property BrowseMode")] HRESULT BrowseMode([out, retval] VARIANT_BOOL *pVal);
  214. [propput, id(DISPID_BROWSEMODE), helpstring("property BrowseMode")] HRESULT BrowseMode([in] VARIANT_BOOL newVal);
  215. };
  216. [
  217. object,
  218. uuid(47B0DFC6-B7A3-11D1-ADC5-006008A5848C),
  219. dual,
  220. helpstring("IDEInsertTableParam Interface"),
  221. pointer_default(unique)
  222. ]
  223. interface IDEInsertTableParam : IDispatch
  224. {
  225. [propget, id(DISPID_TABLEPARAMS_NUMROWS), helpstring("property NumRows")] HRESULT NumRows([out, retval] long* pVal);
  226. [propput, id(DISPID_TABLEPARAMS_NUMROWS), helpstring("property NumRows")] HRESULT NumRows([in] long newVal);
  227. [propget, id(DISPID_TABLEPARAMS_NUMCOLS), helpstring("property NumCols")] HRESULT NumCols([out, retval] long *pVal);
  228. [propput, id(DISPID_TABLEPARAMS_NUMCOLS), helpstring("property NumCols")] HRESULT NumCols([in] long newVal);
  229. [propget, id(DISPID_TABLEPARAMS_TABLEATTRS), helpstring("property TableAttrs")] HRESULT TableAttrs([out, retval] BSTR *pVal);
  230. [propput, id(DISPID_TABLEPARAMS_TABLEATTRS), helpstring("property TableAttrs")] HRESULT TableAttrs([in] BSTR newVal);
  231. [propget, id(DISPID_TABLEPARAMS_CELLATTRS), helpstring("property CellAttrs")] HRESULT CellAttrs([out, retval] BSTR *pVal);
  232. [propput, id(DISPID_TABLEPARAMS_CELLATTRS), helpstring("property CellAttrs")] HRESULT CellAttrs([in] BSTR newVal);
  233. [propget, id(DISPID_TABLEPARAMS_CAPTION), helpstring("property Caption")] HRESULT Caption([out, retval] BSTR *pVal);
  234. [propput, id(DISPID_TABLEPARAMS_CAPTION), helpstring("property Caption")] HRESULT Caption([in] BSTR newVal);
  235. };
  236. [ uuid(D1FC78E8-B380-11d1-ADC5-006008A5848C),
  237.   helpstring("Event interface for DHTMLSafe control")
  238. ]
  239. dispinterface _DHTMLSafeEvents
  240. {
  241. properties:
  242. //  Event interface has no properties
  243. methods:
  244. [id(DISPID_DOCUMENTCOMPLETE)] void DocumentComplete();
  245. [id(DISPID_DISPLAYCHANGED)] void DisplayChanged();
  246. [id(DISPID_SHOWCONTEXTMENU)] void ShowContextMenu([in] long xPos, [in] long yPos);
  247. [id(DISPID_CONTEXTMENUACTION)] void ContextMenuAction([in] long itemIndex);
  248. [id(DISPID_ONMOUSEDOWN)] void onmousedown();
  249. [id(DISPID_ONMOUSEMOVE)] void onmousemove();
  250. [id(DISPID_ONMOUSEUP)] void onmouseup();
  251. [id(DISPID_ONMOUSEOUT)] void onmouseout();
  252. [id(DISPID_ONMOUSEOVER)] void onmouseover();
  253. [id(DISPID_ONCLICK)] void onclick();
  254. [id(DISPID_ONDBLCLICK)] void ondblclick();
  255. [id(DISPID_ONKEYDOWN)] void onkeydown();
  256. [id(DISPID_ONKEYPRESS)] void onkeypress();
  257. [id(DISPID_ONKEYUP)] void onkeyup();
  258. [id(DISPID_ONBLUR)] void onblur();
  259. [id(DISPID_ONREADYSTATECHANGE)] void onreadystatechange();
  260. };
  261. [
  262. uuid(588D5040-CF28-11d1-8CD3-00A0C959BC0A),
  263. helpstring("Event interface for DHTMLEdit control")
  264. ]
  265. dispinterface _DHTMLEditEvents
  266. {
  267. properties:
  268. //  Event interface has no properties
  269. methods:
  270. [id(DISPID_DOCUMENTCOMPLETE)] void DocumentComplete();
  271. [id(DISPID_DISPLAYCHANGED)] void DisplayChanged();
  272. [id(DISPID_SHOWCONTEXTMENU)] void ShowContextMenu([in] long xPos, [in] long yPos);
  273. [id(DISPID_CONTEXTMENUACTION)] void ContextMenuAction([in] long itemIndex);
  274. [id(DISPID_ONMOUSEDOWN)] void onmousedown();
  275. [id(DISPID_ONMOUSEMOVE)] void onmousemove();
  276. [id(DISPID_ONMOUSEUP)] void onmouseup();
  277. [id(DISPID_ONMOUSEOUT)] void onmouseout();
  278. [id(DISPID_ONMOUSEOVER)] void onmouseover();
  279. [id(DISPID_ONCLICK)] void onclick();
  280. [id(DISPID_ONDBLCLICK)] void ondblclick();
  281. [id(DISPID_ONKEYDOWN)] void onkeydown();
  282. [id(DISPID_ONKEYPRESS)] void onkeypress();
  283. [id(DISPID_ONKEYUP)] void onkeyup();
  284. [id(DISPID_ONBLUR)] void onblur();
  285. [id(DISPID_ONREADYSTATECHANGE)] void onreadystatechange();
  286. };
  287. [
  288. uuid(2D360200-FFF5-11d1-8D03-00A0C959BC0A),
  289. helpstring("DHTML Edit Control for IE5")
  290. ]
  291. coclass DHTMLEdit
  292. {
  293. [default] interface IDHTMLEdit;
  294. [default, source] interface _DHTMLEditEvents;
  295. };
  296. [
  297. uuid(2D360201-FFF5-11d1-8D03-00A0C959BC0A),
  298. helpstring("DHTML Safe for Scripting Control for IE5")
  299. ]
  300. coclass DHTMLSafe
  301. {
  302. [default] interface IDHTMLSafe;
  303. [default, source] interface _DHTMLSafeEvents;
  304. };
  305. [
  306. uuid(47B0DFC7-B7A3-11D1-ADC5-006008A5848C),
  307. helpstring("DEInsertTableParam Class")
  308. ]
  309. coclass DEInsertTableParam
  310. {
  311. [default] interface IDEInsertTableParam;
  312. };
  313. [
  314. uuid(8D91090E-B955-11D1-ADC5-006008A5848C),
  315. helpstring("DEGetBlockFmtNamesParam Class")
  316. ]
  317. coclass DEGetBlockFmtNamesParam
  318. {
  319. [default] interface IDEGetBlockFmtNamesParam;
  320. };
  321. };