msvcrt/tests: Don't test function directly when reporting GetLastError().
[wine.git] / include / dhtmled.idl
blob25f3ea9432d71188ef479fb5ca211bb73cdc3a8c
1 /*
2 * Copyright 2017 Alex Henrie
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 import "oaidl.idl";
20 import "ocidl.idl";
21 import "docobj.idl";
22 import "mshtml.idl";
24 #include "dhtmldid.h"
27 uuid(683364a1-b37d-11d1-adc5-006008a5848c),
28 version(1.0)
30 library DHTMLEDLib
32 importlib("stdole2.tlb");
34 typedef
36 uuid(7179FC44-B2E4-11d1-ADC5-006008A5848C)
38 enum DHTMLEDITAPPEARANCE {
39 DEAPPEARANCE_FLAT,
40 DEAPPEARANCE_3D
41 } DHTMLEDITAPPEARANCE;
43 typedef
45 uuid(bf82426a-b961-11d1-adc5-006008a5848c)
47 enum DHTMLEDITCMDF {
48 DECMDF_NOTSUPPORTED = 0,
49 DECMDF_DISABLED = 1,
50 DECMDF_ENABLED = 3,
51 DECMDF_LATCHED = 7,
52 DECMDF_NINCHED = 11
53 } DHTMLEDITCMDF;
55 typedef enum DHTMLEDITCMDID {
56 DECMD_BOLD = 5000,
57 DECMD_COPY = 5002,
58 DECMD_CUT,
59 DECMD_DELETE,
60 DECMD_DELETECELLS,
61 DECMD_DELETECOLS,
62 DECMD_DELETEROWS,
63 DECMD_FINDTEXT,
64 DECMD_FONT,
65 DECMD_GETBACKCOLOR,
66 DECMD_GETBLOCKFMT,
67 DECMD_GETBLOCKFMTNAMES,
68 DECMD_GETFONTNAME,
69 DECMD_GETFONTSIZE,
70 DECMD_GETFORECOLOR,
71 DECMD_HYPERLINK,
72 DECMD_IMAGE,
73 DECMD_INDENT,
74 DECMD_INSERTCELL,
75 DECMD_INSERTCOL,
76 DECMD_INSERTROW,
77 DECMD_INSERTTABLE,
78 DECMD_ITALIC,
79 DECMD_JUSTIFYCENTER,
80 DECMD_JUSTIFYLEFT,
81 DECMD_JUSTIFYRIGHT,
82 DECMD_LOCK_ELEMENT,
83 DECMD_MAKE_ABSOLUTE,
84 DECMD_MERGECELLS,
85 DECMD_ORDERLIST,
86 DECMD_OUTDENT,
87 DECMD_PASTE,
88 DECMD_REDO,
89 DECMD_REMOVEFORMAT,
90 DECMD_SELECTALL,
91 DECMD_SEND_BACKWARD,
92 DECMD_BRING_FORWARD,
93 DECMD_SEND_BELOW_TEXT,
94 DECMD_BRING_ABOVE_TEXT,
95 DECMD_SEND_TO_BACK,
96 DECMD_BRING_TO_FRONT,
97 DECMD_SETBACKCOLOR,
98 DECMD_SETBLOCKFMT,
99 DECMD_SETFONTNAME,
100 DECMD_SETFONTSIZE,
101 DECMD_SETFORECOLOR,
102 DECMD_SPLITCELL,
103 DECMD_UNDERLINE,
104 DECMD_UNDO,
105 DECMD_UNLINK,
106 DECMD_UNORDERLIST,
107 DECMD_PROPERTIES
108 } DHTMLEDITCMDID;
111 object,
112 uuid(ce04b590-2b1f-11d2-8d1e-00a0c959bc0a),
113 dual,
114 pointer_default(unique)
116 interface IDHTMLSafe : IDispatch
119 id(DISPID_EXECCOMMAND)
121 HRESULT ExecCommand(
122 [in] DHTMLEDITCMDID cmd_id,
123 [in, defaultvalue(OLECMDEXECOPT_DODEFAULT)] OLECMDEXECOPT options,
124 [in, optional] VARIANT *code_in,
125 [out, retval] VARIANT *code_out
129 id(DISPID_QUERYSTATUS)
131 HRESULT QueryStatus(
132 [in] DHTMLEDITCMDID cmd_id,
133 [out, retval] DHTMLEDITCMDF *status
137 id(DISPID_SETCONTEXTMENU)
139 HRESULT SetContextMenu(
140 [in] VARIANT *strings,
141 [in] VARIANT *states
145 id(DISPID_NEWDOCUMENT)
147 HRESULT NewDocument();
150 id(DISPID_LOADURL)
152 HRESULT LoadURL(
153 [in] BSTR url
157 id(DISPID_FILTERSRCCODE)
159 HRESULT FilterSourceCode(
160 [in] BSTR in,
161 [out, retval] BSTR *out
165 id(DISPID_REFRESHDOC)
167 HRESULT Refresh();
170 propget,
171 id(DISPID_DOCUMENT)
173 HRESULT DOM(
174 [out, retval] IHTMLDocument2 **value
178 propget,
179 id(DISPID_DOCUMENTHTML)
181 HRESULT DocumentHTML(
182 [out, retval] BSTR *value
186 propput,
187 id(DISPID_DOCUMENTHTML)
189 HRESULT DocumentHTML(
190 [in] BSTR html
194 propget,
195 id(DISPID_ACTIVATEAPPLETS)
197 HRESULT ActivateApplets(
198 [out, retval] VARIANT_BOOL *value
202 propput,
203 id(DISPID_ACTIVATEAPPLETS)
205 HRESULT ActivateApplets(
206 [in] VARIANT_BOOL value
210 propget,
211 id(DISPID_ACTIVATEACTIVEXCONTROLS)
213 HRESULT ActivateActiveXControls(
214 [out, retval] VARIANT_BOOL *value
218 propput,
219 id(DISPID_ACTIVATEACTIVEXCONTROLS)
221 HRESULT ActivateActiveXControls(
222 [in] VARIANT_BOOL value
226 propget,
227 id(DISPID_ACTIVATEDTCS)
229 HRESULT ActivateDTCs(
230 [out, retval] VARIANT_BOOL *value
234 propput,
235 id(DISPID_ACTIVATEDTCS)
237 HRESULT ActivateDTCs(
238 [in] VARIANT_BOOL value
242 propget,
243 id(DISPID_SHOWDETAILS)
245 HRESULT ShowDetails(
246 [out, retval] VARIANT_BOOL *value
250 propput,
251 id(DISPID_SHOWDETAILS)
253 HRESULT ShowDetails(
254 [in] VARIANT_BOOL value
258 propget,
259 id(DISPID_SHOWBORDERS)
261 HRESULT ShowBorders(
262 [out, retval] VARIANT_BOOL *value
266 propput,
267 id(DISPID_SHOWBORDERS)
269 HRESULT ShowBorders(
270 [in] VARIANT_BOOL value
274 propget,
275 id(DISPID_DHTMLEDITAPPEARANCE)
277 HRESULT Appearance(
278 [out, retval] DHTMLEDITAPPEARANCE *value
282 propput,
283 id(DISPID_DHTMLEDITAPPEARANCE)
285 HRESULT Appearance(
286 [in] DHTMLEDITAPPEARANCE value
290 propget,
291 id(DISPID_DHTMLEDITSCROLLBARS)
293 HRESULT Scrollbars(
294 [out, retval] VARIANT_BOOL *value
298 propput,
299 id(DISPID_DHTMLEDITSCROLLBARS)
301 HRESULT Scrollbars(
302 [in] VARIANT_BOOL value
306 propget,
307 id(DISPID_SCROLLBARAPPEARANCE)
309 HRESULT ScrollbarAppearance(
310 [out, retval] DHTMLEDITAPPEARANCE *value
314 propput,
315 id(DISPID_SCROLLBARAPPEARANCE)
317 HRESULT ScrollbarAppearance(
318 [in] DHTMLEDITAPPEARANCE value
322 propget,
323 id(DISPID_SOURCECODEPRESERVATION)
325 HRESULT SourceCodePreservation(
326 [out, retval] VARIANT_BOOL *value
330 propput,
331 id(DISPID_SOURCECODEPRESERVATION)
333 HRESULT SourceCodePreservation(
334 [in] VARIANT_BOOL value
338 propget,
339 id(DISPID_ABSOLUTEDROPMODE)
341 HRESULT AbsoluteDropMode(
342 [out, retval] VARIANT_BOOL *value
346 propput,
347 id(DISPID_ABSOLUTEDROPMODE)
349 HRESULT AbsoluteDropMode(
350 [in] VARIANT_BOOL value
354 propget,
355 id(DISPID_SNAPTOGRIDX)
357 HRESULT SnapToGridX(
358 [out, retval] long *value
362 propput,
363 id(DISPID_SNAPTOGRIDX)
365 HRESULT SnapToGridX(
366 [in] long value
370 propget,
371 id(DISPID_SNAPTOGRIDY)
373 HRESULT SnapToGridY(
374 [out, retval] long *value
378 propput,
379 id(DISPID_SNAPTOGRIDY)
381 HRESULT SnapToGridY(
382 [in] long value
386 propget,
387 id(DISPID_SNAPTOGRID)
389 HRESULT SnapToGrid(
390 [out, retval] VARIANT_BOOL *value
394 propput,
395 id(DISPID_SNAPTOGRID)
397 HRESULT SnapToGrid(
398 [in] VARIANT_BOOL value
402 propget,
403 id(DISPID_ISDIRTY)
405 HRESULT IsDirty(
406 [out, retval] VARIANT_BOOL *value
410 propget,
411 id(DISPID_CURRENTDOCUMENTPATH)
413 HRESULT CurrentDocumentPath(
414 [out, retval] BSTR *value
418 propget,
419 id(DISPID_BASEURL)
421 HRESULT BaseURL(
422 [out, retval] BSTR *value
426 propput,
427 id(DISPID_BASEURL)
429 HRESULT BaseURL(
430 [in] BSTR value
434 propget,
435 id(DISPID_DOCUMENTTITLE)
437 HRESULT DocumentTitle(
438 [out, retval] BSTR *value
442 propget,
443 id(DISPID_USEDIVONCR)
445 HRESULT UseDivOnCarriageReturn(
446 [out, retval] VARIANT_BOOL *value
450 propput,
451 id(DISPID_USEDIVONCR)
453 HRESULT UseDivOnCarriageReturn(
454 [in] VARIANT_BOOL value
458 propget,
459 id(DISPID_BUSY)
461 HRESULT Busy(
462 [out, retval] VARIANT_BOOL *value
467 uuid(d1fc78e8-b380-11d1-adc5-006008a5848c)
469 dispinterface _DHTMLSafeEvents
471 properties:
472 methods:
474 id(DISPID_DOCUMENTCOMPLETE)
476 void DocumentComplete();
479 id(DISPID_DISPLAYCHANGED)
481 void DisplayChanged();
484 id(DISPID_SHOWCONTEXTMENU)
486 void ShowContextMenu(
487 [in] long x,
488 [in] long y
492 id(DISPID_CONTEXTMENUACTION)
494 void ContextMenuAction(
495 [in] long index
499 id(DISPID_ONMOUSEDOWN)
501 void onmousedown();
504 id(DISPID_ONMOUSEMOVE)
506 void onmousemove();
509 id(DISPID_ONMOUSEUP)
511 void onmouseup();
514 id(DISPID_ONMOUSEOUT)
516 void onmouseout();
519 id(DISPID_ONMOUSEOVER)
521 void onmouseover();
524 id(DISPID_ONCLICK)
526 void onclick();
529 id(DISPID_ONDBLCLICK)
531 void ondblclick();
534 id(DISPID_ONKEYDOWN)
536 void onkeydown();
539 id(DISPID_ONKEYPRESS)
541 void onkeypress();
544 id(DISPID_ONKEYUP)
546 void onkeyup();
549 id(DISPID_ONBLUR)
551 void onblur();
554 id(DISPID_ONREADYSTATECHANGE)
556 void onreadystatechange();
560 uuid(2d360201-fff5-11d1-8d03-00a0c959bc0a)
562 coclass DHTMLSafe
564 [default] interface IDHTMLSafe;
565 [default, source] interface _DHTMLSafeEvents;
569 uuid(ce04b591-2b1f-11d2-8d1e-00a0c959bc0a),
570 dual,
571 pointer_default(unique)
573 interface IDHTMLEdit : IDHTMLSafe
576 id(DISPID_LOADDOCUMENT)
578 HRESULT LoadDocument(
579 [in] VARIANT *path,
580 [in, optional] VARIANT *prompt
584 id(DISPID_SAVEDOCUMENT)
586 HRESULT SaveDocument(
587 [in] VARIANT *path,
588 [in, optional] VARIANT *prompt
592 id(DISPID_PRINT)
594 HRESULT PrintDocument(
595 [in, optional] VARIANT *prompt
599 propget,
600 id(DISPID_BROWSEMODE)
602 HRESULT BrowseMode(
603 [out, retval] VARIANT_BOOL *value
607 propput,
608 id(DISPID_BROWSEMODE)
610 HRESULT BrowseMode(
611 [in] VARIANT_BOOL value
616 uuid(588d5040-cf28-11d1-8cd3-00a0c959bc0a)
618 dispinterface _DHTMLEditEvents
620 properties:
621 methods:
623 id(DISPID_DOCUMENTCOMPLETE)
625 void DocumentComplete();
628 id(DISPID_DISPLAYCHANGED)
630 void DisplayChanged();
633 id(DISPID_SHOWCONTEXTMENU)
635 void ShowContextMenu(
636 [in] long x,
637 [in] long y
641 id(DISPID_CONTEXTMENUACTION)
643 void ContextMenuAction(
644 [in] long index
648 id(DISPID_ONMOUSEDOWN)
650 void onmousedown();
653 id(DISPID_ONMOUSEMOVE)
655 void onmousemove();
658 id(DISPID_ONMOUSEUP)
660 void onmouseup();
663 id(DISPID_ONMOUSEOUT)
665 void onmouseout();
668 id(DISPID_ONMOUSEOVER)
670 void onmouseover();
673 id(DISPID_ONCLICK)
675 void onclick();
678 id(DISPID_ONDBLCLICK)
680 void ondblclick();
683 id(DISPID_ONKEYDOWN)
685 void onkeydown();
688 id(DISPID_ONKEYPRESS)
690 void onkeypress();
693 id(DISPID_ONKEYUP)
695 void onkeyup();
698 id(DISPID_ONBLUR)
700 void onblur();
703 id(DISPID_ONREADYSTATECHANGE)
705 void onreadystatechange();
709 uuid(2d360200-fff5-11d1-8d03-00a0c959bc0a)
711 coclass DHTMLEdit
713 [default] interface IDHTMLEdit;
714 [default, source] interface _DHTMLEditEvents;