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 #define threading
(model
)
29 #define vi_progid
(str
)
33 uuid(683364a1
-b37d
-11d1
-adc5
-006008a5848c
),
38 importlib
("stdole2.tlb");
42 uuid(7179FC44
-B2E4
-11d1
-ADC5
-006008A5848C
)
44 enum DHTMLEDITAPPEARANCE
{
47 } DHTMLEDITAPPEARANCE
;
51 uuid(bf82426a
-b961
-11d1
-adc5
-006008a5848c
)
54 DECMDF_NOTSUPPORTED
= 0,
61 typedef enum DHTMLEDITCMDID
{
73 DECMD_GETBLOCKFMTNAMES
,
99 DECMD_SEND_BELOW_TEXT
,
100 DECMD_BRING_ABOVE_TEXT
,
102 DECMD_BRING_TO_FRONT
,
118 uuid(ce04b590
-2b1f
-11d2
-8d1e
-00a0c959bc0a
),
120 pointer_default(unique)
122 interface IDHTMLSafe
: IDispatch
125 id(DISPID_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
)
138 [in] DHTMLEDITCMDID cmd_id
,
139 [out, retval] DHTMLEDITCMDF
*status
143 id(DISPID_SETCONTEXTMENU
)
145 HRESULT SetContextMenu
(
146 [in] VARIANT *strings
,
151 id(DISPID_NEWDOCUMENT
)
153 HRESULT NewDocument
();
163 id(DISPID_FILTERSRCCODE
)
165 HRESULT FilterSourceCode
(
167 [out, retval] BSTR *out
171 id(DISPID_REFRESHDOC
)
180 [out, retval] IHTMLDocument2
**value
185 id(DISPID_DOCUMENTHTML
)
187 HRESULT DocumentHTML
(
188 [out, retval] BSTR *value
193 id(DISPID_DOCUMENTHTML
)
195 HRESULT DocumentHTML
(
201 id(DISPID_ACTIVATEAPPLETS
)
203 HRESULT ActivateApplets
(
204 [out, retval] VARIANT_BOOL *value
209 id(DISPID_ACTIVATEAPPLETS
)
211 HRESULT ActivateApplets
(
212 [in] VARIANT_BOOL value
217 id(DISPID_ACTIVATEACTIVEXCONTROLS
)
219 HRESULT ActivateActiveXControls
(
220 [out, retval] VARIANT_BOOL *value
225 id(DISPID_ACTIVATEACTIVEXCONTROLS
)
227 HRESULT ActivateActiveXControls
(
228 [in] VARIANT_BOOL value
233 id(DISPID_ACTIVATEDTCS
)
235 HRESULT ActivateDTCs
(
236 [out, retval] VARIANT_BOOL *value
241 id(DISPID_ACTIVATEDTCS
)
243 HRESULT ActivateDTCs
(
244 [in] VARIANT_BOOL value
249 id(DISPID_SHOWDETAILS
)
252 [out, retval] VARIANT_BOOL *value
257 id(DISPID_SHOWDETAILS
)
260 [in] VARIANT_BOOL value
265 id(DISPID_SHOWBORDERS
)
268 [out, retval] VARIANT_BOOL *value
273 id(DISPID_SHOWBORDERS
)
276 [in] VARIANT_BOOL value
281 id(DISPID_DHTMLEDITAPPEARANCE
)
284 [out, retval] DHTMLEDITAPPEARANCE
*value
289 id(DISPID_DHTMLEDITAPPEARANCE
)
292 [in] DHTMLEDITAPPEARANCE value
297 id(DISPID_DHTMLEDITSCROLLBARS
)
300 [out, retval] VARIANT_BOOL *value
305 id(DISPID_DHTMLEDITSCROLLBARS
)
308 [in] VARIANT_BOOL value
313 id(DISPID_SCROLLBARAPPEARANCE
)
315 HRESULT ScrollbarAppearance
(
316 [out, retval] DHTMLEDITAPPEARANCE
*value
321 id(DISPID_SCROLLBARAPPEARANCE
)
323 HRESULT ScrollbarAppearance
(
324 [in] DHTMLEDITAPPEARANCE value
329 id(DISPID_SOURCECODEPRESERVATION
)
331 HRESULT SourceCodePreservation
(
332 [out, retval] VARIANT_BOOL *value
337 id(DISPID_SOURCECODEPRESERVATION
)
339 HRESULT SourceCodePreservation
(
340 [in] VARIANT_BOOL value
345 id(DISPID_ABSOLUTEDROPMODE
)
347 HRESULT AbsoluteDropMode
(
348 [out, retval] VARIANT_BOOL *value
353 id(DISPID_ABSOLUTEDROPMODE
)
355 HRESULT AbsoluteDropMode
(
356 [in] VARIANT_BOOL value
361 id(DISPID_SNAPTOGRIDX
)
364 [out, retval] long *value
369 id(DISPID_SNAPTOGRIDX
)
377 id(DISPID_SNAPTOGRIDY
)
380 [out, retval] long *value
385 id(DISPID_SNAPTOGRIDY
)
393 id(DISPID_SNAPTOGRID
)
396 [out, retval] VARIANT_BOOL *value
401 id(DISPID_SNAPTOGRID
)
404 [in] VARIANT_BOOL value
412 [out, retval] VARIANT_BOOL *value
417 id(DISPID_CURRENTDOCUMENTPATH
)
419 HRESULT CurrentDocumentPath
(
420 [out, retval] BSTR *value
428 [out, retval] BSTR *value
441 id(DISPID_DOCUMENTTITLE
)
443 HRESULT DocumentTitle
(
444 [out, retval] BSTR *value
449 id(DISPID_USEDIVONCR
)
451 HRESULT UseDivOnCarriageReturn
(
452 [out, retval] VARIANT_BOOL *value
457 id(DISPID_USEDIVONCR
)
459 HRESULT UseDivOnCarriageReturn
(
460 [in] VARIANT_BOOL value
468 [out, retval] VARIANT_BOOL *value
473 uuid(d1fc78e8
-b380
-11d1
-adc5
-006008a5848c
)
475 dispinterface _DHTMLSafeEvents
480 id(DISPID_DOCUMENTCOMPLETE
)
482 void DocumentComplete
();
485 id(DISPID_DISPLAYCHANGED
)
487 void DisplayChanged
();
490 id(DISPID_SHOWCONTEXTMENU
)
492 void ShowContextMenu
(
498 id(DISPID_CONTEXTMENUACTION
)
500 void ContextMenuAction
(
505 id(DISPID_ONMOUSEDOWN
)
510 id(DISPID_ONMOUSEMOVE
)
520 id(DISPID_ONMOUSEOUT
)
525 id(DISPID_ONMOUSEOVER
)
535 id(DISPID_ONDBLCLICK
)
545 id(DISPID_ONKEYPRESS
)
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")
573 [default] interface IDHTMLSafe
;
574 [default, source] interface _DHTMLSafeEvents
;
578 uuid(ce04b591
-2b1f
-11d2
-8d1e
-00a0c959bc0a
),
580 pointer_default(unique)
582 interface IDHTMLEdit
: IDHTMLSafe
585 id(DISPID_LOADDOCUMENT
)
587 HRESULT LoadDocument
(
589 [in, optional] VARIANT *prompt
593 id(DISPID_SAVEDOCUMENT
)
595 HRESULT SaveDocument
(
597 [in, optional] VARIANT *prompt
603 HRESULT PrintDocument
(
604 [in, optional] VARIANT *prompt
609 id(DISPID_BROWSEMODE
)
612 [out, retval] VARIANT_BOOL *value
617 id(DISPID_BROWSEMODE
)
620 [in] VARIANT_BOOL value
625 uuid(588d5040
-cf28
-11d1
-8cd3
-00a0c959bc0a
)
627 dispinterface _DHTMLEditEvents
632 id(DISPID_DOCUMENTCOMPLETE
)
634 void DocumentComplete
();
637 id(DISPID_DISPLAYCHANGED
)
639 void DisplayChanged
();
642 id(DISPID_SHOWCONTEXTMENU
)
644 void ShowContextMenu
(
650 id(DISPID_CONTEXTMENUACTION
)
652 void ContextMenuAction
(
657 id(DISPID_ONMOUSEDOWN
)
662 id(DISPID_ONMOUSEMOVE
)
672 id(DISPID_ONMOUSEOUT
)
677 id(DISPID_ONMOUSEOVER
)
687 id(DISPID_ONDBLCLICK
)
697 id(DISPID_ONKEYPRESS
)
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")
725 [default] interface IDHTMLEdit
;
726 [default, source] interface _DHTMLEditEvents
;