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
31 #include "wine/debug.h"
33 #include "mshtml_private.h"
35 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
37 #define HTMLDOC_THIS(iface) DEFINE_THIS(HTMLDocument, HTMLDocument2, iface)
39 static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID riid, void **ppvObject)
41 HTMLDocument *This = HTMLDOC_THIS(iface);
44 if(IsEqualGUID(&IID_IUnknown, riid)) {
45 TRACE("(%p)->(IID_IUnknown, %p)\n", This, ppvObject);
46 *ppvObject = HTMLDOC(This);
47 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
48 TRACE("(%p)->(IID_IDispatch, %p)\n", This, ppvObject);
49 *ppvObject = HTMLDOC(This);
50 }else if(IsEqualGUID(&IID_IHTMLDocument, riid)) {
51 TRACE("(%p)->(IID_IHTMLDocument, %p)\n", This, ppvObject);
52 *ppvObject = HTMLDOC(This);
53 }else if(IsEqualGUID(&IID_IHTMLDocument2, riid)) {
54 TRACE("(%p)->(IID_IHTMLDocument2, %p)\n", This, ppvObject);
55 *ppvObject = HTMLDOC(This);
56 }else if(IsEqualGUID(&IID_IHTMLDocument3, riid)) {
57 TRACE("(%p)->(IID_IHTMLDocument3, %p)\n", This, ppvObject);
58 *ppvObject = HTMLDOC3(This);
59 }else if(IsEqualGUID(&IID_IPersist, riid)) {
60 TRACE("(%p)->(IID_IPersist, %p)\n", This, ppvObject);
61 *ppvObject = PERSIST(This);
62 }else if(IsEqualGUID(&IID_IPersistMoniker, riid)) {
63 TRACE("(%p)->(IID_IPersistMoniker, %p)\n", This, ppvObject);
64 *ppvObject = PERSISTMON(This);
65 }else if(IsEqualGUID(&IID_IPersistFile, riid)) {
66 TRACE("(%p)->(IID_IPersistFile, %p)\n", This, ppvObject);
67 *ppvObject = PERSISTFILE(This);
68 }else if(IsEqualGUID(&IID_IMonikerProp, riid)) {
69 TRACE("(%p)->(IID_IMonikerProp, %p)\n", This, ppvObject);
70 *ppvObject = MONPROP(This);
71 }else if(IsEqualGUID(&IID_IOleObject, riid)) {
72 TRACE("(%p)->(IID_IOleObject, %p)\n", This, ppvObject);
73 *ppvObject = OLEOBJ(This);
74 }else if(IsEqualGUID(&IID_IOleDocument, riid)) {
75 TRACE("(%p)->(IID_IOleDocument, %p)\n", This, ppvObject);
76 *ppvObject = OLEDOC(This);
77 }else if(IsEqualGUID(&IID_IOleDocumentView, riid)) {
78 TRACE("(%p)->(IID_IOleDocumentView, %p)\n", This, ppvObject);
79 *ppvObject = DOCVIEW(This);
80 }else if(IsEqualGUID(&IID_IOleInPlaceActiveObject, riid)) {
81 TRACE("(%p)->(IID_IOleInPlaceActiveObject, %p)\n", This, ppvObject);
82 *ppvObject = ACTOBJ(This);
83 }else if(IsEqualGUID(&IID_IViewObject, riid)) {
84 TRACE("(%p)->(IID_IViewObject, %p)\n", This, ppvObject);
85 *ppvObject = VIEWOBJ(This);
86 }else if(IsEqualGUID(&IID_IViewObject2, riid)) {
87 TRACE("(%p)->(IID_IViewObject2, %p)\n", This, ppvObject);
88 *ppvObject = VIEWOBJ2(This);
89 }else if(IsEqualGUID(&IID_IOleWindow, riid)) {
90 TRACE("(%p)->(IID_IOleWindow, %p)\n", This, ppvObject);
91 *ppvObject = OLEWIN(This);
92 }else if(IsEqualGUID(&IID_IOleInPlaceObject, riid)) {
93 TRACE("(%p)->(IID_IOleInPlaceObject, %p)\n", This, ppvObject);
94 *ppvObject = INPLACEOBJ(This);
95 }else if(IsEqualGUID(&IID_IOleInPlaceObjectWindowless, riid)) {
96 TRACE("(%p)->(IID_IOleInPlaceObjectWindowless, %p)\n", This, ppvObject);
97 *ppvObject = INPLACEWIN(This);
98 }else if(IsEqualGUID(&IID_IServiceProvider, riid)) {
99 TRACE("(%p)->(IID_IServiceProvider, %p)\n", This, ppvObject);
100 *ppvObject = SERVPROV(This);
101 }else if(IsEqualGUID(&IID_IOleCommandTarget, riid)) {
102 TRACE("(%p)->(IID_IOleCommandTarget, %p)\n", This, ppvObject);
103 *ppvObject = CMDTARGET(This);
104 }else if(IsEqualGUID(&IID_IOleControl, riid)) {
105 TRACE("(%p)->(IID_IOleControl, %p)\n", This, ppvObject);
106 *ppvObject = CONTROL(This);
107 }else if(IsEqualGUID(&IID_IHlinkTarget, riid)) {
108 TRACE("(%p)->(IID_IHlinkTarget, %p)\n", This, ppvObject);
109 *ppvObject = HLNKTARGET(This);
113 IHTMLDocument2_AddRef(iface);
117 FIXME("(%p)->(%s %p) interface not supported\n", This, debugstr_guid(riid), ppvObject);
118 return E_NOINTERFACE;
121 static ULONG WINAPI HTMLDocument_AddRef(IHTMLDocument2 *iface)
123 HTMLDocument *This = HTMLDOC_THIS(iface);
124 ULONG ref = InterlockedIncrement(&This->ref);
125 TRACE("(%p) ref = %lu\n", This, ref);
129 static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface)
131 HTMLDocument *This = HTMLDOC_THIS(iface);
132 ULONG ref = InterlockedDecrement(&This->ref);
134 TRACE("(%p) ref = %lu\n", This, ref);
138 IOleObject_SetClientSite(OLEOBJ(This), NULL);
139 if(This->in_place_active)
140 IOleInPlaceObjectWindowless_InPlaceDeactivate(INPLACEWIN(This));
142 IOleDocumentView_SetInPlaceSite(DOCVIEW(This), NULL);
144 if(This->tooltips_hwnd)
145 DestroyWindow(This->tooltips_hwnd);
147 DestroyWindow(This->hwnd);
151 if(This->nscontainer)
152 NSContainer_Release(This->nscontainer);
154 HeapFree(GetProcessHeap(), 0, This);
162 static HRESULT WINAPI HTMLDocument_GetTypeInfoCount(IHTMLDocument2 *iface, UINT *pctinfo)
164 FIXME("(%p)->(%p)\n", iface, pctinfo);
168 static HRESULT WINAPI HTMLDocument_GetTypeInfo(IHTMLDocument2 *iface, UINT iTInfo,
169 LCID lcid, ITypeInfo **ppTInfo)
171 FIXME("(%p)->(%u %lu %p)\n", iface, iTInfo, lcid, ppTInfo);
175 static HRESULT WINAPI HTMLDocument_GetIDsOfNames(IHTMLDocument2 *iface, REFIID riid,
176 LPOLESTR *rgszNames, UINT cNames,
177 LCID lcid, DISPID *rgDispId)
179 FIXME("(%p)->(%s %p %u %lu %p)\n", iface, debugstr_guid(riid), rgszNames, cNames,
184 static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMember,
185 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
186 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
188 FIXME("(%p)->(%ld %s %ld %d %p %p %p %p)\n", iface, dispIdMember, debugstr_guid(riid),
189 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
193 static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch **p)
195 FIXME("(%p)->(%p)\n", iface, p);
199 static HRESULT WINAPI HTMLDocument_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p)
201 FIXME("(%p)->(%p)\n", iface, p);
205 static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement **p)
207 HTMLDocument *This = HTMLDOC_THIS(iface);
208 nsIDOMDocument *nsdoc;
209 nsIDOMHTMLDocument *nshtmldoc;
210 nsIDOMHTMLElement *nsbody = NULL;
214 TRACE("(%p)->(%p)\n", This, p);
218 if(!This->nscontainer)
221 nsres = nsIWebNavigation_GetDocument(This->nscontainer->navigation, &nsdoc);
222 if(NS_FAILED(nsres)) {
223 ERR("GetDocument failed: %08lx\n", nsres);
227 if(NS_FAILED(nsres) || !nsdoc)
230 nsIDOMDocument_QueryInterface(nsdoc, &IID_nsIDOMHTMLDocument, (void**)&nshtmldoc);
231 nsIDOMDocument_Release(nsdoc);
233 nsres = nsIDOMHTMLDocument_GetBody(nshtmldoc, &nsbody);
234 nsIDOMHTMLDocument_Release(nshtmldoc);
236 if(NS_FAILED(nsres) || !nsbody) {
237 TRACE("Could not get body: %08lx\n", nsres);
241 node = get_node(This, (nsIDOMNode*)nsbody);
242 nsIDOMHTMLElement_Release(nsbody);
244 IHTMLDOMNode_QueryInterface(HTMLDOMNODE(node), &IID_IHTMLElement, (void**)p);
246 TRACE("*p = %p\n", *p);
250 static HRESULT WINAPI HTMLDocument_get_activeElement(IHTMLDocument2 *iface, IHTMLElement **p)
252 FIXME("(%p)->(%p)\n", iface, p);
256 static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElementCollection **p)
258 FIXME("(%p)->(%p)\n", iface, p);
262 static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLElementCollection **p)
264 FIXME("(%p)->(%p)\n", iface, p);
268 static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElementCollection **p)
270 FIXME("(%p)->(%p)\n", iface, p);
274 static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElementCollection **p)
276 FIXME("(%p)->(%p)\n", iface, p);
280 static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLElementCollection **p)
282 FIXME("(%p)->(%p)\n", iface, p);
286 static HRESULT WINAPI HTMLDocument_put_title(IHTMLDocument2 *iface, BSTR v)
288 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
292 static HRESULT WINAPI HTMLDocument_get_title(IHTMLDocument2 *iface, BSTR *p)
294 FIXME("(%p)->(%p)\n", iface, p);
298 static HRESULT WINAPI HTMLDocument_get_scripts(IHTMLDocument2 *iface, IHTMLElementCollection **p)
300 FIXME("(%p)->(%p)\n", iface, p);
304 static HRESULT WINAPI HTMLDocument_put_designMode(IHTMLDocument2 *iface, BSTR v)
306 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
310 static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p)
312 FIXME("(%p)->(%p)\n", iface, p);
316 static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSelectionObject **p)
318 FIXME("(%p)->(%p)\n", iface, p);
322 static HRESULT WINAPI HTMLDocument_get_readyState(IHTMLDocument2 *iface, BSTR *p)
324 FIXME("(%p)->(%p)\n", iface, p);
328 static HRESULT WINAPI HTMLDocument_get_frames(IHTMLDocument2 *iface, IHTMLFramesCollection2 **p)
330 FIXME("(%p)->(%p)\n", iface, p);
334 static HRESULT WINAPI HTMLDocument_get_embeds(IHTMLDocument2 *iface, IHTMLElementCollection **p)
336 FIXME("(%p)->(%p)\n", iface, p);
340 static HRESULT WINAPI HTMLDocument_get_plugins(IHTMLDocument2 *iface, IHTMLElementCollection **p)
342 FIXME("(%p)->(%p)\n", iface, p);
346 static HRESULT WINAPI HTMLDocument_put_alinkColor(IHTMLDocument2 *iface, VARIANT v)
348 FIXME("(%p)\n", iface);
352 static HRESULT WINAPI HTMLDocument_get_alinkColor(IHTMLDocument2 *iface, VARIANT *p)
354 FIXME("(%p)->(%p)\n", iface, p);
358 static HRESULT WINAPI HTMLDocument_put_bgColor(IHTMLDocument2 *iface, VARIANT v)
360 FIXME("(%p)\n", iface);
364 static HRESULT WINAPI HTMLDocument_get_bgColor(IHTMLDocument2 *iface, VARIANT *p)
366 FIXME("(%p)->(%p)\n", iface, p);
370 static HRESULT WINAPI HTMLDocument_put_fgColor(IHTMLDocument2 *iface, VARIANT v)
372 FIXME("(%p)\n", iface);
376 static HRESULT WINAPI HTMLDocument_get_fgColor(IHTMLDocument2 *iface, VARIANT *p)
378 FIXME("(%p)->(%p)\n", iface, p);
382 static HRESULT WINAPI HTMLDocument_put_linkColor(IHTMLDocument2 *iface, VARIANT v)
384 FIXME("(%p)->()\n", iface);
388 static HRESULT WINAPI HTMLDocument_get_linkColor(IHTMLDocument2 *iface, VARIANT *p)
390 FIXME("(%p)->(%p)\n", iface, p);
394 static HRESULT WINAPI HTMLDocument_put_vlinkColor(IHTMLDocument2 *iface, VARIANT v)
396 FIXME("(%p)\n", iface);
400 static HRESULT WINAPI HTMLDocument_get_vlinkColor(IHTMLDocument2 *iface, VARIANT *p)
402 FIXME("(%p)->(%p)\n", iface, p);
406 static HRESULT WINAPI HTMLDocument_get_referrer(IHTMLDocument2 *iface, BSTR *p)
408 FIXME("(%p)->(%p)\n", iface, p);
412 static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLocation **p)
414 FIXME("(%p)->(%p)\n", iface, p);
418 static HRESULT WINAPI HTMLDocument_get_lastModified(IHTMLDocument2 *iface, BSTR *p)
420 FIXME("(%p)->(%p)\n", iface, p);
424 static HRESULT WINAPI HTMLDocument_put_URL(IHTMLDocument2 *iface, BSTR v)
426 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
430 static HRESULT WINAPI HTMLDocument_get_URL(IHTMLDocument2 *iface, BSTR *p)
432 FIXME("(%p)->(%p)\n", iface, p);
436 static HRESULT WINAPI HTMLDocument_put_domain(IHTMLDocument2 *iface, BSTR v)
438 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
442 static HRESULT WINAPI HTMLDocument_get_domain(IHTMLDocument2 *iface, BSTR *p)
444 FIXME("(%p)->(%p)\n", iface, p);
448 static HRESULT WINAPI HTMLDocument_put_cookie(IHTMLDocument2 *iface, BSTR v)
450 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
454 static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p)
456 FIXME("(%p)->(%p)\n", iface, p);
460 static HRESULT WINAPI HTMLDocument_put_expando(IHTMLDocument2 *iface, VARIANT_BOOL v)
462 FIXME("(%p)->(%x)\n", iface, v);
466 static HRESULT WINAPI HTMLDocument_get_expando(IHTMLDocument2 *iface, VARIANT_BOOL *p)
468 FIXME("(%p)->(%p)\n", iface, p);
472 static HRESULT WINAPI HTMLDocument_put_charset(IHTMLDocument2 *iface, BSTR v)
474 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
478 static HRESULT WINAPI HTMLDocument_get_charset(IHTMLDocument2 *iface, BSTR *p)
480 FIXME("(%p)->(%p)\n", iface, p);
484 static HRESULT WINAPI HTMLDocument_put_defaultCharset(IHTMLDocument2 *iface, BSTR v)
486 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
490 static HRESULT WINAPI HTMLDocument_get_defaultCharset(IHTMLDocument2 *iface, BSTR *p)
492 FIXME("(%p)->(%p)\n", iface, p);
496 static HRESULT WINAPI HTMLDocument_get_mimeType(IHTMLDocument2 *iface, BSTR *p)
498 FIXME("(%p)->(%p)\n", iface, p);
502 static HRESULT WINAPI HTMLDocument_get_fileSize(IHTMLDocument2 *iface, BSTR *p)
504 FIXME("(%p)->(%p)\n", iface, p);
508 static HRESULT WINAPI HTMLDocument_get_fileCreatedDate(IHTMLDocument2 *iface, BSTR *p)
510 FIXME("(%p)->(%p)\n", iface, p);
514 static HRESULT WINAPI HTMLDocument_get_fileModifiedDate(IHTMLDocument2 *iface, BSTR *p)
516 FIXME("(%p)->(%p)\n", iface, p);
520 static HRESULT WINAPI HTMLDocument_get_fileUpdatedDate(IHTMLDocument2 *iface, BSTR *p)
522 FIXME("(%p)->(%p)\n", iface, p);
526 static HRESULT WINAPI HTMLDocument_get_security(IHTMLDocument2 *iface, BSTR *p)
528 FIXME("(%p)->(%p)\n", iface, p);
532 static HRESULT WINAPI HTMLDocument_get_protocol(IHTMLDocument2 *iface, BSTR *p)
534 FIXME("(%p)->(%p)\n", iface, p);
538 static HRESULT WINAPI HTMLDocument_get_nameProp(IHTMLDocument2 *iface, BSTR *p)
540 FIXME("(%p)->(%p)\n", iface, p);
544 static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarray)
546 FIXME("(%p)->(%p)\n", iface, psarray);
550 static HRESULT WINAPI HTMLDocument_writeln(IHTMLDocument2 *iface, SAFEARRAY *psarray)
552 FIXME("(%p)->(%p)\n", iface, psarray);
556 static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT name,
557 VARIANT features, VARIANT replace, IDispatch **pomWindowResult)
559 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(url), pomWindowResult);
563 static HRESULT WINAPI HTMLDocument_close(IHTMLDocument2 *iface)
565 FIXME("(%p)\n", iface);
569 static HRESULT WINAPI HTMLDocument_clear(IHTMLDocument2 *iface)
571 FIXME("(%p)\n", iface);
575 static HRESULT WINAPI HTMLDocument_queryCommandSupported(IHTMLDocument2 *iface, BSTR cmdID,
578 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
582 static HRESULT WINAPI HTMLDocument_queryCommandEnabled(IHTMLDocument2 *iface, BSTR cmdID,
585 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
589 static HRESULT WINAPI HTMLDocument_queryCommandState(IHTMLDocument2 *iface, BSTR cmdID,
592 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
596 static HRESULT WINAPI HTMLDocument_queryCommandIndeterm(IHTMLDocument2 *iface, BSTR cmdID,
599 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
603 static HRESULT WINAPI HTMLDocument_queryCommandText(IHTMLDocument2 *iface, BSTR cmdID,
606 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
610 static HRESULT WINAPI HTMLDocument_queryCommandValue(IHTMLDocument2 *iface, BSTR cmdID,
613 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
617 static HRESULT WINAPI HTMLDocument_execCommand(IHTMLDocument2 *iface, BSTR cmdID,
618 VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet)
620 FIXME("(%p)->(%s %x %p)\n", iface, debugstr_w(cmdID), showUI, pfRet);
624 static HRESULT WINAPI HTMLDocument_execCommandShowHelp(IHTMLDocument2 *iface, BSTR cmdID,
627 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
631 static HRESULT WINAPI HTMLDocument_createElement(IHTMLDocument2 *iface, BSTR eTag,
632 IHTMLElement **newElem)
634 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(eTag), newElem);
638 static HRESULT WINAPI HTMLDocument_put_onhelp(IHTMLDocument2 *iface, VARIANT v)
640 FIXME("(%p)\n", iface);
644 static HRESULT WINAPI HTMLDocument_get_onhelp(IHTMLDocument2 *iface, VARIANT *p)
646 FIXME("(%p)->(%p)\n", iface, p);
650 static HRESULT WINAPI HTMLDocument_put_onclick(IHTMLDocument2 *iface, VARIANT v)
652 FIXME("(%p)\n", iface);
656 static HRESULT WINAPI HTMLDocument_get_onclick(IHTMLDocument2 *iface, VARIANT *p)
658 FIXME("(%p)->(%p)\n", iface, p);
662 static HRESULT WINAPI HTMLDocument_put_ondblclick(IHTMLDocument2 *iface, VARIANT v)
664 FIXME("(%p)\n", iface);
668 static HRESULT WINAPI HTMLDocument_get_ondblclick(IHTMLDocument2 *iface, VARIANT *p)
670 FIXME("(%p)->(%p)\n", iface, p);
674 static HRESULT WINAPI HTMLDocument_put_onkeyup(IHTMLDocument2 *iface, VARIANT v)
676 FIXME("(%p)\n", iface);
680 static HRESULT WINAPI HTMLDocument_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p)
682 FIXME("(%p)->(%p)\n", iface, p);
686 static HRESULT WINAPI HTMLDocument_put_onkeydown(IHTMLDocument2 *iface, VARIANT v)
688 FIXME("(%p)\n", iface);
692 static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT *p)
694 FIXME("(%p)->(%p)\n", iface, p);
698 static HRESULT WINAPI HTMLDocument_put_onkeypress(IHTMLDocument2 *iface, VARIANT v)
700 FIXME("(%p)\n", iface);
704 static HRESULT WINAPI HTMLDocument_get_onkeypress(IHTMLDocument2 *iface, VARIANT *p)
706 FIXME("(%p)->(%p)\n", iface, p);
710 static HRESULT WINAPI HTMLDocument_put_onmouseup(IHTMLDocument2 *iface, VARIANT v)
712 FIXME("(%p)\n", iface);
716 static HRESULT WINAPI HTMLDocument_get_onmouseup(IHTMLDocument2 *iface, VARIANT *p)
718 FIXME("(%p)->(%p)\n", iface, p);
722 static HRESULT WINAPI HTMLDocument_put_onmousedown(IHTMLDocument2 *iface, VARIANT v)
724 FIXME("(%p)\n", iface);
728 static HRESULT WINAPI HTMLDocument_get_onmousedown(IHTMLDocument2 *iface, VARIANT *p)
730 FIXME("(%p)->(%p)\n", iface, p);
734 static HRESULT WINAPI HTMLDocument_put_onmousemove(IHTMLDocument2 *iface, VARIANT v)
736 FIXME("(%p)\n", iface);
740 static HRESULT WINAPI HTMLDocument_get_onmousemove(IHTMLDocument2 *iface, VARIANT *p)
742 FIXME("(%p)->(%p)\n", iface, p);
746 static HRESULT WINAPI HTMLDocument_put_onmouseout(IHTMLDocument2 *iface, VARIANT v)
748 FIXME("(%p)\n", iface);
752 static HRESULT WINAPI HTMLDocument_get_onmouseout(IHTMLDocument2 *iface, VARIANT *p)
754 FIXME("(%p)->(%p)\n", iface, p);
758 static HRESULT WINAPI HTMLDocument_put_onmouseover(IHTMLDocument2 *iface, VARIANT v)
760 FIXME("(%p)\n", iface);
764 static HRESULT WINAPI HTMLDocument_get_onmouseover(IHTMLDocument2 *iface, VARIANT *p)
766 FIXME("(%p)->(%p)\n", iface, p);
770 static HRESULT WINAPI HTMLDocument_put_onreadystatechange(IHTMLDocument2 *iface, VARIANT v)
772 FIXME("(%p)\n", iface);
776 static HRESULT WINAPI HTMLDocument_get_onreadystatechange(IHTMLDocument2 *iface, VARIANT *p)
778 FIXME("(%p)->(%p)\n", iface, p);
782 static HRESULT WINAPI HTMLDocument_put_onafterupdate(IHTMLDocument2 *iface, VARIANT v)
784 FIXME("(%p)\n", iface);
788 static HRESULT WINAPI HTMLDocument_get_onafterupdate(IHTMLDocument2 *iface, VARIANT *p)
790 FIXME("(%p)->(%p)\n", iface, p);
794 static HRESULT WINAPI HTMLDocument_put_onrowexit(IHTMLDocument2 *iface, VARIANT v)
796 FIXME("(%p)\n", iface);
800 static HRESULT WINAPI HTMLDocument_get_onrowexit(IHTMLDocument2 *iface, VARIANT *p)
802 FIXME("(%p)->(%p)\n", iface, p);
806 static HRESULT WINAPI HTMLDocument_put_onrowenter(IHTMLDocument2 *iface, VARIANT v)
808 FIXME("(%p)\n", iface);
812 static HRESULT WINAPI HTMLDocument_get_onrowenter(IHTMLDocument2 *iface, VARIANT *p)
814 FIXME("(%p)->(%p)\n", iface, p);
818 static HRESULT WINAPI HTMLDocument_put_ondragstart(IHTMLDocument2 *iface, VARIANT v)
820 FIXME("(%p)\n", iface);
824 static HRESULT WINAPI HTMLDocument_get_ondragstart(IHTMLDocument2 *iface, VARIANT *p)
826 FIXME("(%p)->(%p)\n", iface, p);
830 static HRESULT WINAPI HTMLDocument_put_onselectstart(IHTMLDocument2 *iface, VARIANT v)
832 FIXME("(%p)\n", iface);
836 static HRESULT WINAPI HTMLDocument_get_onselectstart(IHTMLDocument2 *iface, VARIANT *p)
838 FIXME("(%p)->(%p)\n", iface, p);
842 static HRESULT WINAPI HTMLDocument_elementFromPoint(IHTMLDocument2 *iface, long x, long y,
843 IHTMLElement **elementHit)
845 FIXME("(%p)->(%ld %ld %p)\n", iface, x, y, elementHit);
849 static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTMLWindow2 **p)
851 FIXME("(%p)->(%p)\n", iface, p);
855 static HRESULT WINAPI HTMLDocument_get_styleSheets(IHTMLDocument2 *iface,
856 IHTMLStyleSheetsCollection **p)
858 FIXME("(%p)->(%p)\n", iface, p);
862 static HRESULT WINAPI HTMLDocument_put_onbeforeupdate(IHTMLDocument2 *iface, VARIANT v)
864 FIXME("(%p)\n", iface);
868 static HRESULT WINAPI HTMLDocument_get_onbeforeupdate(IHTMLDocument2 *iface, VARIANT *p)
870 FIXME("(%p)->(%p)\n", iface, p);
874 static HRESULT WINAPI HTMLDocument_put_onerrorupdate(IHTMLDocument2 *iface, VARIANT v)
876 FIXME("(%p)\n", iface);
880 static HRESULT WINAPI HTMLDocument_get_onerrorupdate(IHTMLDocument2 *iface, VARIANT *p)
882 FIXME("(%p)->(%p)\n", iface, p);
886 static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String)
888 FIXME("(%p)->(%p)\n", iface, String);
892 static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref,
893 long lIndex, IHTMLStyleSheet **ppnewStyleSheet)
895 FIXME("(%p)->(%s %ld %p)\n", iface, debugstr_w(bstrHref), lIndex, ppnewStyleSheet);
899 static const IHTMLDocument2Vtbl HTMLDocumentVtbl = {
900 HTMLDocument_QueryInterface,
902 HTMLDocument_Release,
903 HTMLDocument_GetTypeInfoCount,
904 HTMLDocument_GetTypeInfo,
905 HTMLDocument_GetIDsOfNames,
907 HTMLDocument_get_Script,
908 HTMLDocument_get_all,
909 HTMLDocument_get_body,
910 HTMLDocument_get_activeElement,
911 HTMLDocument_get_images,
912 HTMLDocument_get_applets,
913 HTMLDocument_get_links,
914 HTMLDocument_get_forms,
915 HTMLDocument_get_anchors,
916 HTMLDocument_put_title,
917 HTMLDocument_get_title,
918 HTMLDocument_get_scripts,
919 HTMLDocument_put_designMode,
920 HTMLDocument_get_designMode,
921 HTMLDocument_get_selection,
922 HTMLDocument_get_readyState,
923 HTMLDocument_get_frames,
924 HTMLDocument_get_embeds,
925 HTMLDocument_get_plugins,
926 HTMLDocument_put_alinkColor,
927 HTMLDocument_get_alinkColor,
928 HTMLDocument_put_bgColor,
929 HTMLDocument_get_bgColor,
930 HTMLDocument_put_fgColor,
931 HTMLDocument_get_fgColor,
932 HTMLDocument_put_linkColor,
933 HTMLDocument_get_linkColor,
934 HTMLDocument_put_vlinkColor,
935 HTMLDocument_get_vlinkColor,
936 HTMLDocument_get_referrer,
937 HTMLDocument_get_location,
938 HTMLDocument_get_lastModified,
939 HTMLDocument_put_URL,
940 HTMLDocument_get_URL,
941 HTMLDocument_put_domain,
942 HTMLDocument_get_domain,
943 HTMLDocument_put_cookie,
944 HTMLDocument_get_cookie,
945 HTMLDocument_put_expando,
946 HTMLDocument_get_expando,
947 HTMLDocument_put_charset,
948 HTMLDocument_get_charset,
949 HTMLDocument_put_defaultCharset,
950 HTMLDocument_get_defaultCharset,
951 HTMLDocument_get_mimeType,
952 HTMLDocument_get_fileSize,
953 HTMLDocument_get_fileCreatedDate,
954 HTMLDocument_get_fileModifiedDate,
955 HTMLDocument_get_fileUpdatedDate,
956 HTMLDocument_get_security,
957 HTMLDocument_get_protocol,
958 HTMLDocument_get_nameProp,
960 HTMLDocument_writeln,
964 HTMLDocument_queryCommandSupported,
965 HTMLDocument_queryCommandEnabled,
966 HTMLDocument_queryCommandState,
967 HTMLDocument_queryCommandIndeterm,
968 HTMLDocument_queryCommandText,
969 HTMLDocument_queryCommandValue,
970 HTMLDocument_execCommand,
971 HTMLDocument_execCommandShowHelp,
972 HTMLDocument_createElement,
973 HTMLDocument_put_onhelp,
974 HTMLDocument_get_onhelp,
975 HTMLDocument_put_onclick,
976 HTMLDocument_get_onclick,
977 HTMLDocument_put_ondblclick,
978 HTMLDocument_get_ondblclick,
979 HTMLDocument_put_onkeyup,
980 HTMLDocument_get_onkeyup,
981 HTMLDocument_put_onkeydown,
982 HTMLDocument_get_onkeydown,
983 HTMLDocument_put_onkeypress,
984 HTMLDocument_get_onkeypress,
985 HTMLDocument_put_onmouseup,
986 HTMLDocument_get_onmouseup,
987 HTMLDocument_put_onmousedown,
988 HTMLDocument_get_onmousedown,
989 HTMLDocument_put_onmousemove,
990 HTMLDocument_get_onmousemove,
991 HTMLDocument_put_onmouseout,
992 HTMLDocument_get_onmouseout,
993 HTMLDocument_put_onmouseover,
994 HTMLDocument_get_onmouseover,
995 HTMLDocument_put_onreadystatechange,
996 HTMLDocument_get_onreadystatechange,
997 HTMLDocument_put_onafterupdate,
998 HTMLDocument_get_onafterupdate,
999 HTMLDocument_put_onrowexit,
1000 HTMLDocument_get_onrowexit,
1001 HTMLDocument_put_onrowenter,
1002 HTMLDocument_get_onrowenter,
1003 HTMLDocument_put_ondragstart,
1004 HTMLDocument_get_ondragstart,
1005 HTMLDocument_put_onselectstart,
1006 HTMLDocument_get_onselectstart,
1007 HTMLDocument_elementFromPoint,
1008 HTMLDocument_get_parentWindow,
1009 HTMLDocument_get_styleSheets,
1010 HTMLDocument_put_onbeforeupdate,
1011 HTMLDocument_get_onbeforeupdate,
1012 HTMLDocument_put_onerrorupdate,
1013 HTMLDocument_get_onerrorupdate,
1014 HTMLDocument_toString,
1015 HTMLDocument_createStyleSheet
1018 HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
1023 TRACE("(%p %s %p)\n", pUnkOuter, debugstr_guid(riid), ppvObject);
1025 ret = HeapAlloc(GetProcessHeap(), 0, sizeof(HTMLDocument));
1026 ret->lpHTMLDocument2Vtbl = &HTMLDocumentVtbl;
1028 ret->nscontainer = NULL;
1031 hres = IHTMLDocument_QueryInterface(HTMLDOC(ret), riid, ppvObject);
1033 HeapFree(GetProcessHeap(), 0, ret);
1039 HTMLDocument_HTMLDocument3_Init(ret);
1040 HTMLDocument_Persist_Init(ret);
1041 HTMLDocument_OleObj_Init(ret);
1042 HTMLDocument_View_Init(ret);
1043 HTMLDocument_Window_Init(ret);
1044 HTMLDocument_Service_Init(ret);
1045 HTMLDocument_Hlink_Init(ret);
1047 ret->nscontainer = NSContainer_Create(ret, NULL);