2 * Copyright 2005 Jacek Caban
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
35 #include "wine/debug.h"
37 #include "mshtml_private.h"
39 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
41 #define HTMLDOC_THIS(iface) DEFINE_THIS(HTMLDocument, HTMLDocument2, iface)
43 static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID riid, void **ppvObject)
45 HTMLDocument *This = HTMLDOC_THIS(iface);
48 if(IsEqualGUID(&IID_IUnknown, riid)) {
49 TRACE("(%p)->(IID_IUnknown, %p)\n", This, ppvObject);
50 *ppvObject = HTMLDOC(This);
51 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
52 TRACE("(%p)->(IID_IDispatch, %p)\n", This, ppvObject);
53 *ppvObject = HTMLDOC(This);
54 }else if(IsEqualGUID(&IID_IHTMLDocument, riid)) {
55 TRACE("(%p)->(IID_IHTMLDocument, %p)\n", This, ppvObject);
56 *ppvObject = HTMLDOC(This);
57 }else if(IsEqualGUID(&IID_IHTMLDocument2, riid)) {
58 TRACE("(%p)->(IID_IHTMLDocument2, %p)\n", This, ppvObject);
59 *ppvObject = HTMLDOC(This);
60 }else if(IsEqualGUID(&IID_IPersist, riid)) {
61 TRACE("(%p)->(IID_IPersist, %p)\n", This, ppvObject);
62 *ppvObject = PERSIST(This);
63 }else if(IsEqualGUID(&IID_IPersistMoniker, riid)) {
64 TRACE("(%p)->(IID_IPersistMoniker, %p)\n", This, ppvObject);
65 *ppvObject = PERSISTMON(This);
66 }else if(IsEqualGUID(&IID_IPersistFile, riid)) {
67 TRACE("(%p)->(IID_IPersistFile, %p)\n", This, ppvObject);
68 *ppvObject = PERSISTFILE(This);
69 }else if(IsEqualGUID(&IID_IMonikerProp, riid)) {
70 TRACE("(%p)->(IID_IMonikerProp, %p)\n", This, ppvObject);
71 *ppvObject = MONPROP(This);
72 }else if(IsEqualGUID(&IID_IOleObject, riid)) {
73 TRACE("(%p)->(IID_IOleObject, %p)\n", This, ppvObject);
74 *ppvObject = OLEOBJ(This);
75 }else if(IsEqualGUID(&IID_IOleDocument, riid)) {
76 TRACE("(%p)->(IID_IOleDocument, %p)\n", This, ppvObject);
77 *ppvObject = OLEDOC(This);
78 }else if(IsEqualGUID(&IID_IOleDocumentView, riid)) {
79 TRACE("(%p)->(IID_IOleDocumentView, %p)\n", This, ppvObject);
80 *ppvObject = DOCVIEW(This);
81 }else if(IsEqualGUID(&IID_IOleInPlaceActiveObject, riid)) {
82 TRACE("(%p)->(IID_IOleInPlaceActiveObject, %p)\n", This, ppvObject);
83 *ppvObject = ACTOBJ(This);
84 }else if(IsEqualGUID(&IID_IViewObject, riid)) {
85 TRACE("(%p)->(IID_IViewObject, %p)\n", This, ppvObject);
86 *ppvObject = VIEWOBJ(This);
87 }else if(IsEqualGUID(&IID_IViewObject2, riid)) {
88 TRACE("(%p)->(IID_IViewObject2, %p)\n", This, ppvObject);
89 *ppvObject = VIEWOBJ2(This);
90 }else if(IsEqualGUID(&IID_IOleWindow, riid)) {
91 TRACE("(%p)->(IID_IOleWindow, %p)\n", This, ppvObject);
92 *ppvObject = OLEWIN(This);
93 }else if(IsEqualGUID(&IID_IOleInPlaceObject, riid)) {
94 TRACE("(%p)->(IID_IOleInPlaceObject, %p)\n", This, ppvObject);
95 *ppvObject = INPLACEOBJ(This);
96 }else if(IsEqualGUID(&IID_IOleInPlaceObjectWindowless, riid)) {
97 TRACE("(%p)->(IID_IOleInPlaceObjectWindowless, %p)\n", This, ppvObject);
98 *ppvObject = INPLACEWIN(This);
99 }else if(IsEqualGUID(&IID_IServiceProvider, riid)) {
100 TRACE("(%p)->(IID_IServiceProvider, %p)\n", This, ppvObject);
101 *ppvObject = SERVPROV(This);
102 }else if(IsEqualGUID(&IID_IOleCommandTarget, riid)) {
103 TRACE("(%p)->(IID_IOleCommandTarget, %p)\n", This, ppvObject);
104 *ppvObject = CMDTARGET(This);
105 }else if(IsEqualGUID(&IID_IOleControl, riid)) {
106 TRACE("(%p)->(IID_IOleControl, %p)\n", This, ppvObject);
107 *ppvObject = CONTROL(This);
111 IHTMLDocument2_AddRef(iface);
115 FIXME("(%p)->(%s %p) interface not supported\n", This, debugstr_guid(riid), ppvObject);
116 return E_NOINTERFACE;
119 static ULONG WINAPI HTMLDocument_AddRef(IHTMLDocument2 *iface)
121 HTMLDocument *This = HTMLDOC_THIS(iface);
122 ULONG ref = InterlockedIncrement(&This->ref);
123 TRACE("(%p) ref = %lu\n", This, ref);
127 static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface)
129 HTMLDocument *This = HTMLDOC_THIS(iface);
130 ULONG ref = InterlockedDecrement(&This->ref);
132 TRACE("(%p) ref = %lu\n", This, ref);
136 IOleObject_SetClientSite(OLEOBJ(This), NULL);
137 if(This->in_place_active)
138 IOleInPlaceObjectWindowless_InPlaceDeactivate(INPLACEWIN(This));
140 IOleDocumentView_SetInPlaceSite(DOCVIEW(This), NULL);
142 DestroyWindow(This->hwnd);
143 if(This->nscontainer)
144 HTMLDocument_NSContainer_Destroy(This);
145 HeapFree(GetProcessHeap(), 0, This);
153 static HRESULT WINAPI HTMLDocument_GetTypeInfoCount(IHTMLDocument2 *iface, UINT *pctinfo)
155 FIXME("(%p)->(%p)\n", iface, pctinfo);
159 static HRESULT WINAPI HTMLDocument_GetTypeInfo(IHTMLDocument2 *iface, UINT iTInfo,
160 LCID lcid, ITypeInfo **ppTInfo)
162 FIXME("(%p)->(%u %lu %p)\n", iface, iTInfo, lcid, ppTInfo);
166 static HRESULT WINAPI HTMLDocument_GetIDsOfNames(IHTMLDocument2 *iface, REFIID riid,
167 LPOLESTR *rgszNames, UINT cNames,
168 LCID lcid, DISPID *rgDispId)
170 FIXME("(%p)->(%s %p %u %lu %p)\n", iface, debugstr_guid(riid), rgszNames, cNames,
175 static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMember,
176 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
177 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
179 FIXME("(%p)->(%ld %s %ld %d %p %p %p %p)\n", iface, dispIdMember, debugstr_guid(riid),
180 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
184 static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch **p)
186 FIXME("(%p)->(%p)\n", iface, p);
190 static HRESULT WINAPI HTMLDocument_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p)
192 FIXME("(%p)->(%p)\n", iface, p);
196 static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement **p)
198 FIXME("(%p)->(%p)\n", iface, p);
202 static HRESULT WINAPI HTMLDocument_get_activeElement(IHTMLDocument2 *iface, IHTMLElement **p)
204 FIXME("(%p)->(%p)\n", iface, p);
208 static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElementCollection **p)
210 FIXME("(%p)->(%p)\n", iface, p);
214 static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLElementCollection **p)
216 FIXME("(%p)->(%p)\n", iface, p);
220 static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElementCollection **p)
222 FIXME("(%p)->(%p)\n", iface, p);
226 static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElementCollection **p)
228 FIXME("(%p)->(%p)\n", iface, p);
232 static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLElementCollection **p)
234 FIXME("(%p)->(%p)\n", iface, p);
238 static HRESULT WINAPI HTMLDocument_put_title(IHTMLDocument2 *iface, BSTR v)
240 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
244 static HRESULT WINAPI HTMLDocument_get_title(IHTMLDocument2 *iface, BSTR *p)
246 FIXME("(%p)->(%p)\n", iface, p);
250 static HRESULT WINAPI HTMLDocument_get_scripts(IHTMLDocument2 *iface, IHTMLElementCollection **p)
252 FIXME("(%p)->(%p)\n", iface, p);
256 static HRESULT WINAPI HTMLDocument_put_designMode(IHTMLDocument2 *iface, BSTR v)
258 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
262 static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p)
264 FIXME("(%p)->(%p)\n", iface, p);
268 static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSelectionObject **p)
270 FIXME("(%p)->(%p)\n", iface, p);
274 static HRESULT WINAPI HTMLDocument_get_readyState(IHTMLDocument2 *iface, BSTR *p)
276 FIXME("(%p)->(%p)\n", iface, p);
280 static HRESULT WINAPI HTMLDocument_get_frames(IHTMLDocument2 *iface, IHTMLFramesCollection2 **p)
282 FIXME("(%p)->(%p)\n", iface, p);
286 static HRESULT WINAPI HTMLDocument_get_embeds(IHTMLDocument2 *iface, IHTMLElementCollection **p)
288 FIXME("(%p)->(%p)\n", iface, p);
292 static HRESULT WINAPI HTMLDocument_get_plugins(IHTMLDocument2 *iface, IHTMLElementCollection **p)
294 FIXME("(%p)->(%p)\n", iface, p);
298 static HRESULT WINAPI HTMLDocument_put_alinkColor(IHTMLDocument2 *iface, VARIANT v)
300 FIXME("(%p)\n", iface);
304 static HRESULT WINAPI HTMLDocument_get_alinkColor(IHTMLDocument2 *iface, VARIANT *p)
306 FIXME("(%p)->(%p)\n", iface, p);
310 static HRESULT WINAPI HTMLDocument_put_bgColor(IHTMLDocument2 *iface, VARIANT v)
312 FIXME("(%p)\n", iface);
316 static HRESULT WINAPI HTMLDocument_get_bgColor(IHTMLDocument2 *iface, VARIANT *p)
318 FIXME("(%p)->(%p)\n", iface, p);
322 static HRESULT WINAPI HTMLDocument_put_fgColor(IHTMLDocument2 *iface, VARIANT v)
324 FIXME("(%p)\n", iface);
328 static HRESULT WINAPI HTMLDocument_get_fgColor(IHTMLDocument2 *iface, VARIANT *p)
330 FIXME("(%p)->(%p)\n", iface, p);
334 static HRESULT WINAPI HTMLDocument_put_linkColor(IHTMLDocument2 *iface, VARIANT v)
336 FIXME("(%p)->()\n", iface);
340 static HRESULT WINAPI HTMLDocument_get_linkColor(IHTMLDocument2 *iface, VARIANT *p)
342 FIXME("(%p)->(%p)\n", iface, p);
346 static HRESULT WINAPI HTMLDocument_put_vlinkColor(IHTMLDocument2 *iface, VARIANT v)
348 FIXME("(%p)\n", iface);
352 static HRESULT WINAPI HTMLDocument_get_vlinkColor(IHTMLDocument2 *iface, VARIANT *p)
354 FIXME("(%p)->(%p)\n", iface, p);
358 static HRESULT WINAPI HTMLDocument_get_referrer(IHTMLDocument2 *iface, BSTR *p)
360 FIXME("(%p)->(%p)\n", iface, p);
364 static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLocation **p)
366 FIXME("(%p)->(%p)\n", iface, p);
370 static HRESULT WINAPI HTMLDocument_get_lastModified(IHTMLDocument2 *iface, BSTR *p)
372 FIXME("(%p)->(%p)\n", iface, p);
376 static HRESULT WINAPI HTMLDocument_put_URL(IHTMLDocument2 *iface, BSTR v)
378 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
382 static HRESULT WINAPI HTMLDocument_get_URL(IHTMLDocument2 *iface, BSTR *p)
384 FIXME("(%p)->(%p)\n", iface, p);
388 static HRESULT WINAPI HTMLDocument_put_domain(IHTMLDocument2 *iface, BSTR v)
390 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
394 static HRESULT WINAPI HTMLDocument_get_domain(IHTMLDocument2 *iface, BSTR *p)
396 FIXME("(%p)->(%p)\n", iface, p);
400 static HRESULT WINAPI HTMLDocument_put_cookie(IHTMLDocument2 *iface, BSTR v)
402 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
406 static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p)
408 FIXME("(%p)->(%p)\n", iface, p);
412 static HRESULT WINAPI HTMLDocument_put_expando(IHTMLDocument2 *iface, VARIANT_BOOL v)
414 FIXME("(%p)->(%x)\n", iface, v);
418 static HRESULT WINAPI HTMLDocument_get_expando(IHTMLDocument2 *iface, VARIANT_BOOL *p)
420 FIXME("(%p)->(%p)\n", iface, p);
424 static HRESULT WINAPI HTMLDocument_put_charset(IHTMLDocument2 *iface, BSTR v)
426 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
430 static HRESULT WINAPI HTMLDocument_get_charset(IHTMLDocument2 *iface, BSTR *p)
432 FIXME("(%p)->(%p)\n", iface, p);
436 static HRESULT WINAPI HTMLDocument_put_defaultCharset(IHTMLDocument2 *iface, BSTR v)
438 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
442 static HRESULT WINAPI HTMLDocument_get_defaultCharset(IHTMLDocument2 *iface, BSTR *p)
444 FIXME("(%p)->(%p)\n", iface, p);
448 static HRESULT WINAPI HTMLDocument_get_mimeType(IHTMLDocument2 *iface, BSTR *p)
450 FIXME("(%p)->(%p)\n", iface, p);
454 static HRESULT WINAPI HTMLDocument_get_fileSize(IHTMLDocument2 *iface, BSTR *p)
456 FIXME("(%p)->(%p)\n", iface, p);
460 static HRESULT WINAPI HTMLDocument_get_fileCreatedDate(IHTMLDocument2 *iface, BSTR *p)
462 FIXME("(%p)->(%p)\n", iface, p);
466 static HRESULT WINAPI HTMLDocument_get_fileModifiedDate(IHTMLDocument2 *iface, BSTR *p)
468 FIXME("(%p)->(%p)\n", iface, p);
472 static HRESULT WINAPI HTMLDocument_get_fileUpdatedDate(IHTMLDocument2 *iface, BSTR *p)
474 FIXME("(%p)->(%p)\n", iface, p);
478 static HRESULT WINAPI HTMLDocument_get_security(IHTMLDocument2 *iface, BSTR *p)
480 FIXME("(%p)->(%p)\n", iface, p);
484 static HRESULT WINAPI HTMLDocument_get_protocol(IHTMLDocument2 *iface, BSTR *p)
486 FIXME("(%p)->(%p)\n", iface, p);
490 static HRESULT WINAPI HTMLDocument_get_nameProp(IHTMLDocument2 *iface, BSTR *p)
492 FIXME("(%p)->(%p)\n", iface, p);
496 static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarray)
498 FIXME("(%p)->(%p)\n", iface, psarray);
502 static HRESULT WINAPI HTMLDocument_writeln(IHTMLDocument2 *iface, SAFEARRAY *psarray)
504 FIXME("(%p)->(%p)\n", iface, psarray);
508 static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT name,
509 VARIANT features, VARIANT replace, IDispatch **pomWindowResult)
511 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(url), pomWindowResult);
515 static HRESULT WINAPI HTMLDocument_close(IHTMLDocument2 *iface)
517 FIXME("(%p)\n", iface);
521 static HRESULT WINAPI HTMLDocument_clear(IHTMLDocument2 *iface)
523 FIXME("(%p)\n", iface);
527 static HRESULT WINAPI HTMLDocument_queryCommandSupported(IHTMLDocument2 *iface, BSTR cmdID,
530 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
534 static HRESULT WINAPI HTMLDocument_queryCommandEnabled(IHTMLDocument2 *iface, BSTR cmdID,
537 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
541 static HRESULT WINAPI HTMLDocument_queryCommandState(IHTMLDocument2 *iface, BSTR cmdID,
544 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
548 static HRESULT WINAPI HTMLDocument_queryCommandIndeterm(IHTMLDocument2 *iface, BSTR cmdID,
551 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
555 static HRESULT WINAPI HTMLDocument_queryCommandText(IHTMLDocument2 *iface, BSTR cmdID,
558 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
562 static HRESULT WINAPI HTMLDocument_queryCommandValue(IHTMLDocument2 *iface, BSTR cmdID,
565 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
569 static HRESULT WINAPI HTMLDocument_execCommand(IHTMLDocument2 *iface, BSTR cmdID,
570 VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet)
572 FIXME("(%p)->(%s %x %p)\n", iface, debugstr_w(cmdID), showUI, pfRet);
576 static HRESULT WINAPI HTMLDocument_execCommandShowHelp(IHTMLDocument2 *iface, BSTR cmdID,
579 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
583 static HRESULT WINAPI HTMLDocument_createElement(IHTMLDocument2 *iface, BSTR eTag,
584 IHTMLElement **newElem)
586 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(eTag), newElem);
590 static HRESULT WINAPI HTMLDocument_put_onhelp(IHTMLDocument2 *iface, VARIANT v)
592 FIXME("(%p)\n", iface);
596 static HRESULT WINAPI HTMLDocument_get_onhelp(IHTMLDocument2 *iface, VARIANT *p)
598 FIXME("(%p)->(%p)\n", iface, p);
602 static HRESULT WINAPI HTMLDocument_put_onclick(IHTMLDocument2 *iface, VARIANT v)
604 FIXME("(%p)\n", iface);
608 static HRESULT WINAPI HTMLDocument_get_onclick(IHTMLDocument2 *iface, VARIANT *p)
610 FIXME("(%p)->(%p)\n", iface, p);
614 static HRESULT WINAPI HTMLDocument_put_ondblclick(IHTMLDocument2 *iface, VARIANT v)
616 FIXME("(%p)\n", iface);
620 static HRESULT WINAPI HTMLDocument_get_ondblclick(IHTMLDocument2 *iface, VARIANT *p)
622 FIXME("(%p)->(%p)\n", iface, p);
626 static HRESULT WINAPI HTMLDocument_put_onkeyup(IHTMLDocument2 *iface, VARIANT v)
628 FIXME("(%p)\n", iface);
632 static HRESULT WINAPI HTMLDocument_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p)
634 FIXME("(%p)->(%p)\n", iface, p);
638 static HRESULT WINAPI HTMLDocument_put_onkeydown(IHTMLDocument2 *iface, VARIANT v)
640 FIXME("(%p)\n", iface);
644 static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT *p)
646 FIXME("(%p)->(%p)\n", iface, p);
650 static HRESULT WINAPI HTMLDocument_put_onkeypress(IHTMLDocument2 *iface, VARIANT v)
652 FIXME("(%p)\n", iface);
656 static HRESULT WINAPI HTMLDocument_get_onkeypress(IHTMLDocument2 *iface, VARIANT *p)
658 FIXME("(%p)->(%p)\n", iface, p);
662 static HRESULT WINAPI HTMLDocument_put_onmouseup(IHTMLDocument2 *iface, VARIANT v)
664 FIXME("(%p)\n", iface);
668 static HRESULT WINAPI HTMLDocument_get_onmouseup(IHTMLDocument2 *iface, VARIANT *p)
670 FIXME("(%p)->(%p)\n", iface, p);
674 static HRESULT WINAPI HTMLDocument_put_onmousedown(IHTMLDocument2 *iface, VARIANT v)
676 FIXME("(%p)\n", iface);
680 static HRESULT WINAPI HTMLDocument_get_onmousedown(IHTMLDocument2 *iface, VARIANT *p)
682 FIXME("(%p)->(%p)\n", iface, p);
686 static HRESULT WINAPI HTMLDocument_put_onmousemove(IHTMLDocument2 *iface, VARIANT v)
688 FIXME("(%p)\n", iface);
692 static HRESULT WINAPI HTMLDocument_get_onmousemove(IHTMLDocument2 *iface, VARIANT *p)
694 FIXME("(%p)->(%p)\n", iface, p);
698 static HRESULT WINAPI HTMLDocument_put_onmouseout(IHTMLDocument2 *iface, VARIANT v)
700 FIXME("(%p)\n", iface);
704 static HRESULT WINAPI HTMLDocument_get_onmouseout(IHTMLDocument2 *iface, VARIANT *p)
706 FIXME("(%p)->(%p)\n", iface, p);
710 static HRESULT WINAPI HTMLDocument_put_onmouseover(IHTMLDocument2 *iface, VARIANT v)
712 FIXME("(%p)\n", iface);
716 static HRESULT WINAPI HTMLDocument_get_onmouseover(IHTMLDocument2 *iface, VARIANT *p)
718 FIXME("(%p)->(%p)\n", iface, p);
722 static HRESULT WINAPI HTMLDocument_put_onreadystatechange(IHTMLDocument2 *iface, VARIANT v)
724 FIXME("(%p)\n", iface);
728 static HRESULT WINAPI HTMLDocument_get_onreadystatechange(IHTMLDocument2 *iface, VARIANT *p)
730 FIXME("(%p)->(%p)\n", iface, p);
734 static HRESULT WINAPI HTMLDocument_put_onafterupdate(IHTMLDocument2 *iface, VARIANT v)
736 FIXME("(%p)\n", iface);
740 static HRESULT WINAPI HTMLDocument_get_onafterupdate(IHTMLDocument2 *iface, VARIANT *p)
742 FIXME("(%p)->(%p)\n", iface, p);
746 static HRESULT WINAPI HTMLDocument_put_onrowexit(IHTMLDocument2 *iface, VARIANT v)
748 FIXME("(%p)\n", iface);
752 static HRESULT WINAPI HTMLDocument_get_onrowexit(IHTMLDocument2 *iface, VARIANT *p)
754 FIXME("(%p)->(%p)\n", iface, p);
758 static HRESULT WINAPI HTMLDocument_put_onrowenter(IHTMLDocument2 *iface, VARIANT v)
760 FIXME("(%p)\n", iface);
764 static HRESULT WINAPI HTMLDocument_get_onrowenter(IHTMLDocument2 *iface, VARIANT *p)
766 FIXME("(%p)->(%p)\n", iface, p);
770 static HRESULT WINAPI HTMLDocument_put_ondragstart(IHTMLDocument2 *iface, VARIANT v)
772 FIXME("(%p)\n", iface);
776 static HRESULT WINAPI HTMLDocument_get_ondragstart(IHTMLDocument2 *iface, VARIANT *p)
778 FIXME("(%p)->(%p)\n", iface, p);
782 static HRESULT WINAPI HTMLDocument_put_onselectstart(IHTMLDocument2 *iface, VARIANT v)
784 FIXME("(%p)\n", iface);
788 static HRESULT WINAPI HTMLDocument_get_onselectstart(IHTMLDocument2 *iface, VARIANT *p)
790 FIXME("(%p)->(%p)\n", iface, p);
794 static HRESULT WINAPI HTMLDocument_elementFromPoint(IHTMLDocument2 *iface, long x, long y,
795 IHTMLElement **elementHit)
797 FIXME("(%p)->(%ld %ld %p)\n", iface, x, y, elementHit);
801 static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTMLWindow2 **p)
803 FIXME("(%p)->(%p)\n", iface, p);
807 static HRESULT WINAPI HTMLDocument_get_styleSheets(IHTMLDocument2 *iface,
808 IHTMLStyleSheetsCollection **p)
810 FIXME("(%p)->(%p)\n", iface, p);
814 static HRESULT WINAPI HTMLDocument_put_onbeforeupdate(IHTMLDocument2 *iface, VARIANT v)
816 FIXME("(%p)\n", iface);
820 static HRESULT WINAPI HTMLDocument_get_onbeforeupdate(IHTMLDocument2 *iface, VARIANT *p)
822 FIXME("(%p)->(%p)\n", iface, p);
826 static HRESULT WINAPI HTMLDocument_put_onerrorupdate(IHTMLDocument2 *iface, VARIANT v)
828 FIXME("(%p)\n", iface);
832 static HRESULT WINAPI HTMLDocument_get_onerrorupdate(IHTMLDocument2 *iface, VARIANT *p)
834 FIXME("(%p)->(%p)\n", iface, p);
838 static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String)
840 FIXME("(%p)->(%p)\n", iface, String);
844 static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref,
845 long lIndex, IHTMLStyleSheet **ppnewStyleSheet)
847 FIXME("(%p)->(%s %ld %p)\n", iface, debugstr_w(bstrHref), lIndex, ppnewStyleSheet);
851 static const IHTMLDocument2Vtbl HTMLDocumentVtbl = {
852 HTMLDocument_QueryInterface,
854 HTMLDocument_Release,
855 HTMLDocument_GetTypeInfoCount,
856 HTMLDocument_GetTypeInfo,
857 HTMLDocument_GetIDsOfNames,
859 HTMLDocument_get_Script,
860 HTMLDocument_get_all,
861 HTMLDocument_get_body,
862 HTMLDocument_get_activeElement,
863 HTMLDocument_get_images,
864 HTMLDocument_get_applets,
865 HTMLDocument_get_links,
866 HTMLDocument_get_forms,
867 HTMLDocument_get_anchors,
868 HTMLDocument_put_title,
869 HTMLDocument_get_title,
870 HTMLDocument_get_scripts,
871 HTMLDocument_put_designMode,
872 HTMLDocument_get_designMode,
873 HTMLDocument_get_selection,
874 HTMLDocument_get_readyState,
875 HTMLDocument_get_frames,
876 HTMLDocument_get_embeds,
877 HTMLDocument_get_plugins,
878 HTMLDocument_put_alinkColor,
879 HTMLDocument_get_alinkColor,
880 HTMLDocument_put_bgColor,
881 HTMLDocument_get_bgColor,
882 HTMLDocument_put_fgColor,
883 HTMLDocument_get_fgColor,
884 HTMLDocument_put_linkColor,
885 HTMLDocument_get_linkColor,
886 HTMLDocument_put_vlinkColor,
887 HTMLDocument_get_vlinkColor,
888 HTMLDocument_get_referrer,
889 HTMLDocument_get_location,
890 HTMLDocument_get_lastModified,
891 HTMLDocument_put_URL,
892 HTMLDocument_get_URL,
893 HTMLDocument_put_domain,
894 HTMLDocument_get_domain,
895 HTMLDocument_put_cookie,
896 HTMLDocument_get_cookie,
897 HTMLDocument_put_expando,
898 HTMLDocument_get_expando,
899 HTMLDocument_put_charset,
900 HTMLDocument_get_charset,
901 HTMLDocument_put_defaultCharset,
902 HTMLDocument_get_defaultCharset,
903 HTMLDocument_get_mimeType,
904 HTMLDocument_get_fileSize,
905 HTMLDocument_get_fileCreatedDate,
906 HTMLDocument_get_fileModifiedDate,
907 HTMLDocument_get_fileUpdatedDate,
908 HTMLDocument_get_security,
909 HTMLDocument_get_protocol,
910 HTMLDocument_get_nameProp,
912 HTMLDocument_writeln,
916 HTMLDocument_queryCommandSupported,
917 HTMLDocument_queryCommandEnabled,
918 HTMLDocument_queryCommandState,
919 HTMLDocument_queryCommandIndeterm,
920 HTMLDocument_queryCommandText,
921 HTMLDocument_queryCommandValue,
922 HTMLDocument_execCommand,
923 HTMLDocument_execCommandShowHelp,
924 HTMLDocument_createElement,
925 HTMLDocument_put_onhelp,
926 HTMLDocument_get_onhelp,
927 HTMLDocument_put_onclick,
928 HTMLDocument_get_onclick,
929 HTMLDocument_put_ondblclick,
930 HTMLDocument_get_ondblclick,
931 HTMLDocument_put_onkeyup,
932 HTMLDocument_get_onkeyup,
933 HTMLDocument_put_onkeydown,
934 HTMLDocument_get_onkeydown,
935 HTMLDocument_put_onkeypress,
936 HTMLDocument_get_onkeypress,
937 HTMLDocument_put_onmouseup,
938 HTMLDocument_get_onmouseup,
939 HTMLDocument_put_onmousedown,
940 HTMLDocument_get_onmousedown,
941 HTMLDocument_put_onmousemove,
942 HTMLDocument_get_onmousemove,
943 HTMLDocument_put_onmouseout,
944 HTMLDocument_get_onmouseout,
945 HTMLDocument_put_onmouseover,
946 HTMLDocument_get_onmouseover,
947 HTMLDocument_put_onreadystatechange,
948 HTMLDocument_get_onreadystatechange,
949 HTMLDocument_put_onafterupdate,
950 HTMLDocument_get_onafterupdate,
951 HTMLDocument_put_onrowexit,
952 HTMLDocument_get_onrowexit,
953 HTMLDocument_put_onrowenter,
954 HTMLDocument_get_onrowenter,
955 HTMLDocument_put_ondragstart,
956 HTMLDocument_get_ondragstart,
957 HTMLDocument_put_onselectstart,
958 HTMLDocument_get_onselectstart,
959 HTMLDocument_elementFromPoint,
960 HTMLDocument_get_parentWindow,
961 HTMLDocument_get_styleSheets,
962 HTMLDocument_put_onbeforeupdate,
963 HTMLDocument_get_onbeforeupdate,
964 HTMLDocument_put_onerrorupdate,
965 HTMLDocument_get_onerrorupdate,
966 HTMLDocument_toString,
967 HTMLDocument_createStyleSheet
970 HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
975 TRACE("(%p %s %p)\n", pUnkOuter, debugstr_guid(riid), ppvObject);
977 ret = HeapAlloc(GetProcessHeap(), 0, sizeof(HTMLDocument));
978 ret->lpHTMLDocument2Vtbl = &HTMLDocumentVtbl;
981 hres = IHTMLDocument_QueryInterface(HTMLDOC(ret), riid, ppvObject);
983 HeapFree(GetProcessHeap(), 0, ret);
989 HTMLDocument_Persist_Init(ret);
990 HTMLDocument_OleObj_Init(ret);
991 HTMLDocument_View_Init(ret);
992 HTMLDocument_Window_Init(ret);
993 HTMLDocument_Service_Init(ret);
994 HTMLDocument_NSContainer_Init(ret);