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
27 uuid(683364a1
-b37d
-11d1
-adc5
-006008a5848c
),
32 importlib
("stdole2.tlb");
36 uuid(7179FC44
-B2E4
-11d1
-ADC5
-006008A5848C
)
38 enum DHTMLEDITAPPEARANCE
{
41 } DHTMLEDITAPPEARANCE
;
45 uuid(bf82426a
-b961
-11d1
-adc5
-006008a5848c
)
48 DECMDF_NOTSUPPORTED
= 0,
55 typedef enum DHTMLEDITCMDID
{
67 DECMD_GETBLOCKFMTNAMES
,
93 DECMD_SEND_BELOW_TEXT
,
94 DECMD_BRING_ABOVE_TEXT
,
112 uuid(ce04b590
-2b1f
-11d2
-8d1e
-00a0c959bc0a
),
114 pointer_default(unique)
116 interface IDHTMLSafe
: IDispatch
119 id(DISPID_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
)
132 [in] DHTMLEDITCMDID cmd_id
,
133 [out, retval] DHTMLEDITCMDF
*status
137 id(DISPID_SETCONTEXTMENU
)
139 HRESULT SetContextMenu
(
140 [in] VARIANT *strings
,
145 id(DISPID_NEWDOCUMENT
)
147 HRESULT NewDocument
();
157 id(DISPID_FILTERSRCCODE
)
159 HRESULT FilterSourceCode
(
161 [out, retval] BSTR *out
165 id(DISPID_REFRESHDOC
)
174 [out, retval] IHTMLDocument2
**value
179 id(DISPID_DOCUMENTHTML
)
181 HRESULT DocumentHTML
(
182 [out, retval] BSTR *value
187 id(DISPID_DOCUMENTHTML
)
189 HRESULT DocumentHTML
(
195 id(DISPID_ACTIVATEAPPLETS
)
197 HRESULT ActivateApplets
(
198 [out, retval] VARIANT_BOOL *value
203 id(DISPID_ACTIVATEAPPLETS
)
205 HRESULT ActivateApplets
(
206 [in] VARIANT_BOOL value
211 id(DISPID_ACTIVATEACTIVEXCONTROLS
)
213 HRESULT ActivateActiveXControls
(
214 [out, retval] VARIANT_BOOL *value
219 id(DISPID_ACTIVATEACTIVEXCONTROLS
)
221 HRESULT ActivateActiveXControls
(
222 [in] VARIANT_BOOL value
227 id(DISPID_ACTIVATEDTCS
)
229 HRESULT ActivateDTCs
(
230 [out, retval] VARIANT_BOOL *value
235 id(DISPID_ACTIVATEDTCS
)
237 HRESULT ActivateDTCs
(
238 [in] VARIANT_BOOL value
243 id(DISPID_SHOWDETAILS
)
246 [out, retval] VARIANT_BOOL *value
251 id(DISPID_SHOWDETAILS
)
254 [in] VARIANT_BOOL value
259 id(DISPID_SHOWBORDERS
)
262 [out, retval] VARIANT_BOOL *value
267 id(DISPID_SHOWBORDERS
)
270 [in] VARIANT_BOOL value
275 id(DISPID_DHTMLEDITAPPEARANCE
)
278 [out, retval] DHTMLEDITAPPEARANCE
*value
283 id(DISPID_DHTMLEDITAPPEARANCE
)
286 [in] DHTMLEDITAPPEARANCE value
291 id(DISPID_DHTMLEDITSCROLLBARS
)
294 [out, retval] VARIANT_BOOL *value
299 id(DISPID_DHTMLEDITSCROLLBARS
)
302 [in] VARIANT_BOOL value
307 id(DISPID_SCROLLBARAPPEARANCE
)
309 HRESULT ScrollbarAppearance
(
310 [out, retval] DHTMLEDITAPPEARANCE
*value
315 id(DISPID_SCROLLBARAPPEARANCE
)
317 HRESULT ScrollbarAppearance
(
318 [in] DHTMLEDITAPPEARANCE value
323 id(DISPID_SOURCECODEPRESERVATION
)
325 HRESULT SourceCodePreservation
(
326 [out, retval] VARIANT_BOOL *value
331 id(DISPID_SOURCECODEPRESERVATION
)
333 HRESULT SourceCodePreservation
(
334 [in] VARIANT_BOOL value
339 id(DISPID_ABSOLUTEDROPMODE
)
341 HRESULT AbsoluteDropMode
(
342 [out, retval] VARIANT_BOOL *value
347 id(DISPID_ABSOLUTEDROPMODE
)
349 HRESULT AbsoluteDropMode
(
350 [in] VARIANT_BOOL value
355 id(DISPID_SNAPTOGRIDX
)
358 [out, retval] long *value
363 id(DISPID_SNAPTOGRIDX
)
371 id(DISPID_SNAPTOGRIDY
)
374 [out, retval] long *value
379 id(DISPID_SNAPTOGRIDY
)
387 id(DISPID_SNAPTOGRID
)
390 [out, retval] VARIANT_BOOL *value
395 id(DISPID_SNAPTOGRID
)
398 [in] VARIANT_BOOL value
406 [out, retval] VARIANT_BOOL *value
411 id(DISPID_CURRENTDOCUMENTPATH
)
413 HRESULT CurrentDocumentPath
(
414 [out, retval] BSTR *value
422 [out, retval] BSTR *value
435 id(DISPID_DOCUMENTTITLE
)
437 HRESULT DocumentTitle
(
438 [out, retval] BSTR *value
443 id(DISPID_USEDIVONCR
)
445 HRESULT UseDivOnCarriageReturn
(
446 [out, retval] VARIANT_BOOL *value
451 id(DISPID_USEDIVONCR
)
453 HRESULT UseDivOnCarriageReturn
(
454 [in] VARIANT_BOOL value
462 [out, retval] VARIANT_BOOL *value
467 uuid(d1fc78e8
-b380
-11d1
-adc5
-006008a5848c
)
469 dispinterface _DHTMLSafeEvents
474 id(DISPID_DOCUMENTCOMPLETE
)
476 void DocumentComplete
();
479 id(DISPID_DISPLAYCHANGED
)
481 void DisplayChanged
();
484 id(DISPID_SHOWCONTEXTMENU
)
486 void ShowContextMenu
(
492 id(DISPID_CONTEXTMENUACTION
)
494 void ContextMenuAction
(
499 id(DISPID_ONMOUSEDOWN
)
504 id(DISPID_ONMOUSEMOVE
)
514 id(DISPID_ONMOUSEOUT
)
519 id(DISPID_ONMOUSEOVER
)
529 id(DISPID_ONDBLCLICK
)
539 id(DISPID_ONKEYPRESS
)
554 id(DISPID_ONREADYSTATECHANGE
)
556 void onreadystatechange
();
560 uuid(2d360201
-fff5
-11d1
-8d03
-00a0c959bc0a
)
564 [default] interface IDHTMLSafe
;
565 [default, source] interface _DHTMLSafeEvents
;
569 uuid(ce04b591
-2b1f
-11d2
-8d1e
-00a0c959bc0a
),
571 pointer_default(unique)
573 interface IDHTMLEdit
: IDHTMLSafe
576 id(DISPID_LOADDOCUMENT
)
578 HRESULT LoadDocument
(
580 [in, optional] VARIANT *prompt
584 id(DISPID_SAVEDOCUMENT
)
586 HRESULT SaveDocument
(
588 [in, optional] VARIANT *prompt
594 HRESULT PrintDocument
(
595 [in, optional] VARIANT *prompt
600 id(DISPID_BROWSEMODE
)
603 [out, retval] VARIANT_BOOL *value
608 id(DISPID_BROWSEMODE
)
611 [in] VARIANT_BOOL value
616 uuid(588d5040
-cf28
-11d1
-8cd3
-00a0c959bc0a
)
618 dispinterface _DHTMLEditEvents
623 id(DISPID_DOCUMENTCOMPLETE
)
625 void DocumentComplete
();
628 id(DISPID_DISPLAYCHANGED
)
630 void DisplayChanged
();
633 id(DISPID_SHOWCONTEXTMENU
)
635 void ShowContextMenu
(
641 id(DISPID_CONTEXTMENUACTION
)
643 void ContextMenuAction
(
648 id(DISPID_ONMOUSEDOWN
)
653 id(DISPID_ONMOUSEMOVE
)
663 id(DISPID_ONMOUSEOUT
)
668 id(DISPID_ONMOUSEOVER
)
678 id(DISPID_ONDBLCLICK
)
688 id(DISPID_ONKEYPRESS
)
703 id(DISPID_ONREADYSTATECHANGE
)
705 void onreadystatechange
();
709 uuid(2d360200
-fff5
-11d1
-8d03
-00a0c959bc0a
)
713 [default] interface IDHTMLEdit
;
714 [default, source] interface _DHTMLEditEvents
;