riched20: Return a run ptr from the run insert function.
[wine/zf.git] / include / dhtmled.idl
blob28064f29cbe76ddda3c54cace890cb65ba210c0f
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"
26 #ifndef __WIDL__
27 #define threading(model)
28 #define progid(str)
29 #define vi_progid(str)
30 #endif
33 uuid(683364a1-b37d-11d1-adc5-006008a5848c),
34 version(1.0)
36 library DHTMLEDLib
38 importlib("stdole2.tlb");
40 typedef
42 uuid(7179FC44-B2E4-11d1-ADC5-006008A5848C)
44 enum DHTMLEDITAPPEARANCE {
45 DEAPPEARANCE_FLAT,
46 DEAPPEARANCE_3D
47 } DHTMLEDITAPPEARANCE;
49 typedef
51 uuid(bf82426a-b961-11d1-adc5-006008a5848c)
53 enum DHTMLEDITCMDF {
54 DECMDF_NOTSUPPORTED = 0,
55 DECMDF_DISABLED = 1,
56 DECMDF_ENABLED = 3,
57 DECMDF_LATCHED = 7,
58 DECMDF_NINCHED = 11
59 } DHTMLEDITCMDF;
61 typedef 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;
117 object,
118 uuid(ce04b590-2b1f-11d2-8d1e-00a0c959bc0a),
119 dual,
120 pointer_default(unique)
122 interface IDHTMLSafe : IDispatch
125 id(DISPID_EXECCOMMAND)
127 HRESULT ExecCommand(
128 [in] DHTMLEDITCMDID cmd_id,
129 [in, defaultvalue(OLECMDEXECOPT_DODEFAULT)] OLECMDEXECOPT options,
130 [in, optional] VARIANT *code_in,
131 [out, retval] VARIANT *code_out
135 id(DISPID_QUERYSTATUS)
137 HRESULT QueryStatus(
138 [in] DHTMLEDITCMDID cmd_id,
139 [out, retval] DHTMLEDITCMDF *status
143 id(DISPID_SETCONTEXTMENU)
145 HRESULT SetContextMenu(
146 [in] VARIANT *strings,
147 [in] VARIANT *states
151 id(DISPID_NEWDOCUMENT)
153 HRESULT NewDocument();
156 id(DISPID_LOADURL)
158 HRESULT LoadURL(
159 [in] BSTR url
163 id(DISPID_FILTERSRCCODE)
165 HRESULT FilterSourceCode(
166 [in] BSTR in,
167 [out, retval] BSTR *out
171 id(DISPID_REFRESHDOC)
173 HRESULT Refresh();
176 propget,
177 id(DISPID_DOCUMENT)
179 HRESULT DOM(
180 [out, retval] IHTMLDocument2 **value
184 propget,
185 id(DISPID_DOCUMENTHTML)
187 HRESULT DocumentHTML(
188 [out, retval] BSTR *value
192 propput,
193 id(DISPID_DOCUMENTHTML)
195 HRESULT DocumentHTML(
196 [in] BSTR html
200 propget,
201 id(DISPID_ACTIVATEAPPLETS)
203 HRESULT ActivateApplets(
204 [out, retval] VARIANT_BOOL *value
208 propput,
209 id(DISPID_ACTIVATEAPPLETS)
211 HRESULT ActivateApplets(
212 [in] VARIANT_BOOL value
216 propget,
217 id(DISPID_ACTIVATEACTIVEXCONTROLS)
219 HRESULT ActivateActiveXControls(
220 [out, retval] VARIANT_BOOL *value
224 propput,
225 id(DISPID_ACTIVATEACTIVEXCONTROLS)
227 HRESULT ActivateActiveXControls(
228 [in] VARIANT_BOOL value
232 propget,
233 id(DISPID_ACTIVATEDTCS)
235 HRESULT ActivateDTCs(
236 [out, retval] VARIANT_BOOL *value
240 propput,
241 id(DISPID_ACTIVATEDTCS)
243 HRESULT ActivateDTCs(
244 [in] VARIANT_BOOL value
248 propget,
249 id(DISPID_SHOWDETAILS)
251 HRESULT ShowDetails(
252 [out, retval] VARIANT_BOOL *value
256 propput,
257 id(DISPID_SHOWDETAILS)
259 HRESULT ShowDetails(
260 [in] VARIANT_BOOL value
264 propget,
265 id(DISPID_SHOWBORDERS)
267 HRESULT ShowBorders(
268 [out, retval] VARIANT_BOOL *value
272 propput,
273 id(DISPID_SHOWBORDERS)
275 HRESULT ShowBorders(
276 [in] VARIANT_BOOL value
280 propget,
281 id(DISPID_DHTMLEDITAPPEARANCE)
283 HRESULT Appearance(
284 [out, retval] DHTMLEDITAPPEARANCE *value
288 propput,
289 id(DISPID_DHTMLEDITAPPEARANCE)
291 HRESULT Appearance(
292 [in] DHTMLEDITAPPEARANCE value
296 propget,
297 id(DISPID_DHTMLEDITSCROLLBARS)
299 HRESULT Scrollbars(
300 [out, retval] VARIANT_BOOL *value
304 propput,
305 id(DISPID_DHTMLEDITSCROLLBARS)
307 HRESULT Scrollbars(
308 [in] VARIANT_BOOL value
312 propget,
313 id(DISPID_SCROLLBARAPPEARANCE)
315 HRESULT ScrollbarAppearance(
316 [out, retval] DHTMLEDITAPPEARANCE *value
320 propput,
321 id(DISPID_SCROLLBARAPPEARANCE)
323 HRESULT ScrollbarAppearance(
324 [in] DHTMLEDITAPPEARANCE value
328 propget,
329 id(DISPID_SOURCECODEPRESERVATION)
331 HRESULT SourceCodePreservation(
332 [out, retval] VARIANT_BOOL *value
336 propput,
337 id(DISPID_SOURCECODEPRESERVATION)
339 HRESULT SourceCodePreservation(
340 [in] VARIANT_BOOL value
344 propget,
345 id(DISPID_ABSOLUTEDROPMODE)
347 HRESULT AbsoluteDropMode(
348 [out, retval] VARIANT_BOOL *value
352 propput,
353 id(DISPID_ABSOLUTEDROPMODE)
355 HRESULT AbsoluteDropMode(
356 [in] VARIANT_BOOL value
360 propget,
361 id(DISPID_SNAPTOGRIDX)
363 HRESULT SnapToGridX(
364 [out, retval] long *value
368 propput,
369 id(DISPID_SNAPTOGRIDX)
371 HRESULT SnapToGridX(
372 [in] long value
376 propget,
377 id(DISPID_SNAPTOGRIDY)
379 HRESULT SnapToGridY(
380 [out, retval] long *value
384 propput,
385 id(DISPID_SNAPTOGRIDY)
387 HRESULT SnapToGridY(
388 [in] long value
392 propget,
393 id(DISPID_SNAPTOGRID)
395 HRESULT SnapToGrid(
396 [out, retval] VARIANT_BOOL *value
400 propput,
401 id(DISPID_SNAPTOGRID)
403 HRESULT SnapToGrid(
404 [in] VARIANT_BOOL value
408 propget,
409 id(DISPID_ISDIRTY)
411 HRESULT IsDirty(
412 [out, retval] VARIANT_BOOL *value
416 propget,
417 id(DISPID_CURRENTDOCUMENTPATH)
419 HRESULT CurrentDocumentPath(
420 [out, retval] BSTR *value
424 propget,
425 id(DISPID_BASEURL)
427 HRESULT BaseURL(
428 [out, retval] BSTR *value
432 propput,
433 id(DISPID_BASEURL)
435 HRESULT BaseURL(
436 [in] BSTR value
440 propget,
441 id(DISPID_DOCUMENTTITLE)
443 HRESULT DocumentTitle(
444 [out, retval] BSTR *value
448 propget,
449 id(DISPID_USEDIVONCR)
451 HRESULT UseDivOnCarriageReturn(
452 [out, retval] VARIANT_BOOL *value
456 propput,
457 id(DISPID_USEDIVONCR)
459 HRESULT UseDivOnCarriageReturn(
460 [in] VARIANT_BOOL value
464 propget,
465 id(DISPID_BUSY)
467 HRESULT Busy(
468 [out, retval] VARIANT_BOOL *value
473 uuid(d1fc78e8-b380-11d1-adc5-006008a5848c)
475 dispinterface _DHTMLSafeEvents
477 properties:
478 methods:
480 id(DISPID_DOCUMENTCOMPLETE)
482 void DocumentComplete();
485 id(DISPID_DISPLAYCHANGED)
487 void DisplayChanged();
490 id(DISPID_SHOWCONTEXTMENU)
492 void ShowContextMenu(
493 [in] long x,
494 [in] long y
498 id(DISPID_CONTEXTMENUACTION)
500 void ContextMenuAction(
501 [in] long index
505 id(DISPID_ONMOUSEDOWN)
507 void onmousedown();
510 id(DISPID_ONMOUSEMOVE)
512 void onmousemove();
515 id(DISPID_ONMOUSEUP)
517 void onmouseup();
520 id(DISPID_ONMOUSEOUT)
522 void onmouseout();
525 id(DISPID_ONMOUSEOVER)
527 void onmouseover();
530 id(DISPID_ONCLICK)
532 void onclick();
535 id(DISPID_ONDBLCLICK)
537 void ondblclick();
540 id(DISPID_ONKEYDOWN)
542 void onkeydown();
545 id(DISPID_ONKEYPRESS)
547 void onkeypress();
550 id(DISPID_ONKEYUP)
552 void onkeyup();
555 id(DISPID_ONBLUR)
557 void onblur();
560 id(DISPID_ONREADYSTATECHANGE)
562 void onreadystatechange();
566 uuid(2d360201-fff5-11d1-8d03-00a0c959bc0a),
567 threading(apartment),
568 progid("DHTMLSafe.DHTMLSafe.1"),
569 vi_progid("DHTMLSafe.DHTMLSafe")
571 coclass DHTMLSafe
573 [default] interface IDHTMLSafe;
574 [default, source] interface _DHTMLSafeEvents;
578 uuid(ce04b591-2b1f-11d2-8d1e-00a0c959bc0a),
579 dual,
580 pointer_default(unique)
582 interface IDHTMLEdit : IDHTMLSafe
585 id(DISPID_LOADDOCUMENT)
587 HRESULT LoadDocument(
588 [in] VARIANT *path,
589 [in, optional] VARIANT *prompt
593 id(DISPID_SAVEDOCUMENT)
595 HRESULT SaveDocument(
596 [in] VARIANT *path,
597 [in, optional] VARIANT *prompt
601 id(DISPID_PRINT)
603 HRESULT PrintDocument(
604 [in, optional] VARIANT *prompt
608 propget,
609 id(DISPID_BROWSEMODE)
611 HRESULT BrowseMode(
612 [out, retval] VARIANT_BOOL *value
616 propput,
617 id(DISPID_BROWSEMODE)
619 HRESULT BrowseMode(
620 [in] VARIANT_BOOL value
625 uuid(588d5040-cf28-11d1-8cd3-00a0c959bc0a)
627 dispinterface _DHTMLEditEvents
629 properties:
630 methods:
632 id(DISPID_DOCUMENTCOMPLETE)
634 void DocumentComplete();
637 id(DISPID_DISPLAYCHANGED)
639 void DisplayChanged();
642 id(DISPID_SHOWCONTEXTMENU)
644 void ShowContextMenu(
645 [in] long x,
646 [in] long y
650 id(DISPID_CONTEXTMENUACTION)
652 void ContextMenuAction(
653 [in] long index
657 id(DISPID_ONMOUSEDOWN)
659 void onmousedown();
662 id(DISPID_ONMOUSEMOVE)
664 void onmousemove();
667 id(DISPID_ONMOUSEUP)
669 void onmouseup();
672 id(DISPID_ONMOUSEOUT)
674 void onmouseout();
677 id(DISPID_ONMOUSEOVER)
679 void onmouseover();
682 id(DISPID_ONCLICK)
684 void onclick();
687 id(DISPID_ONDBLCLICK)
689 void ondblclick();
692 id(DISPID_ONKEYDOWN)
694 void onkeydown();
697 id(DISPID_ONKEYPRESS)
699 void onkeypress();
702 id(DISPID_ONKEYUP)
704 void onkeyup();
707 id(DISPID_ONBLUR)
709 void onblur();
712 id(DISPID_ONREADYSTATECHANGE)
714 void onreadystatechange();
718 uuid(2d360200-fff5-11d1-8d03-00a0c959bc0a),
719 threading(apartment),
720 progid("DHTMLEdit.DHTMLEdit.1"),
721 vi_progid("DHTMLEdit.DHTMLEdit")
723 coclass DHTMLEdit
725 [default] interface IDHTMLEdit;
726 [default, source] interface _DHTMLEditEvents;