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);
108 IHTMLDocument2_AddRef(iface);
112 FIXME("(%p)->(%s %p) interface not supported\n", This, debugstr_guid(riid), ppvObject);
113 return E_NOINTERFACE;
116 static ULONG WINAPI HTMLDocument_AddRef(IHTMLDocument2 *iface)
118 HTMLDocument *This = HTMLDOC_THIS(iface);
119 ULONG ref = InterlockedIncrement(&This->ref);
120 TRACE("(%p) ref = %lu\n", This, ref);
124 static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface)
126 HTMLDocument *This = HTMLDOC_THIS(iface);
127 ULONG ref = InterlockedDecrement(&This->ref);
129 TRACE("(%p) ref = %lu\n", This, ref);
133 IOleObject_SetClientSite(OLEOBJ(This), NULL);
134 if(This->in_place_active)
135 IOleInPlaceObjectWindowless_InPlaceDeactivate(INPLACEWIN(This));
137 IOleDocumentView_SetInPlaceSite(DOCVIEW(This), NULL);
139 DestroyWindow(This->hwnd);
140 if(This->nscontainer)
141 HTMLDocument_NSContainer_Destroy(This);
142 HeapFree(GetProcessHeap(), 0, This);
148 static HRESULT WINAPI HTMLDocument_GetTypeInfoCount(IHTMLDocument2 *iface, UINT *pctinfo)
150 FIXME("(%p)->(%p)\n", iface, pctinfo);
154 static HRESULT WINAPI HTMLDocument_GetTypeInfo(IHTMLDocument2 *iface, UINT iTInfo,
155 LCID lcid, ITypeInfo **ppTInfo)
157 FIXME("(%p)->(%u %lu %p)\n", iface, iTInfo, lcid, ppTInfo);
161 static HRESULT WINAPI HTMLDocument_GetIDsOfNames(IHTMLDocument2 *iface, REFIID riid,
162 LPOLESTR *rgszNames, UINT cNames,
163 LCID lcid, DISPID *rgDispId)
165 FIXME("(%p)->(%s %p %u %lu %p)\n", iface, debugstr_guid(riid), rgszNames, cNames,
170 static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMember,
171 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
172 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
174 FIXME("(%p)->(%ld %s %ld %d %p %p %p %p)\n", iface, dispIdMember, debugstr_guid(riid),
175 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
179 static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch **p)
181 FIXME("(%p)->(%p)\n", iface, p);
185 static HRESULT WINAPI HTMLDocument_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p)
187 FIXME("(%p)->(%p)\n", iface, p);
191 static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement **p)
193 FIXME("(%p)->(%p)\n", iface, p);
197 static HRESULT WINAPI HTMLDocument_get_activeElement(IHTMLDocument2 *iface, IHTMLElement **p)
199 FIXME("(%p)->(%p)\n", iface, p);
203 static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElementCollection **p)
205 FIXME("(%p)->(%p)\n", iface, p);
209 static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLElementCollection **p)
211 FIXME("(%p)->(%p)\n", iface, p);
215 static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElementCollection **p)
217 FIXME("(%p)->(%p)\n", iface, p);
221 static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElementCollection **p)
223 FIXME("(%p)->(%p)\n", iface, p);
227 static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLElementCollection **p)
229 FIXME("(%p)->(%p)\n", iface, p);
233 static HRESULT WINAPI HTMLDocument_put_title(IHTMLDocument2 *iface, BSTR v)
235 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
239 static HRESULT WINAPI HTMLDocument_get_title(IHTMLDocument2 *iface, BSTR *p)
241 FIXME("(%p)->(%p)\n", iface, p);
245 static HRESULT WINAPI HTMLDocument_get_scripts(IHTMLDocument2 *iface, IHTMLElementCollection **p)
247 FIXME("(%p)->(%p)\n", iface, p);
251 static HRESULT WINAPI HTMLDocument_put_designMode(IHTMLDocument2 *iface, BSTR v)
253 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
257 static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p)
259 FIXME("(%p)->(%p)\n", iface, p);
263 static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSelectionObject **p)
265 FIXME("(%p)->(%p)\n", iface, p);
269 static HRESULT WINAPI HTMLDocument_get_readyState(IHTMLDocument2 *iface, BSTR *p)
271 FIXME("(%p)->(%p)\n", iface, p);
275 static HRESULT WINAPI HTMLDocument_get_frames(IHTMLDocument2 *iface, IHTMLFramesCollection2 **p)
277 FIXME("(%p)->(%p)\n", iface, p);
281 static HRESULT WINAPI HTMLDocument_get_embeds(IHTMLDocument2 *iface, IHTMLElementCollection **p)
283 FIXME("(%p)->(%p)\n", iface, p);
287 static HRESULT WINAPI HTMLDocument_get_plugins(IHTMLDocument2 *iface, IHTMLElementCollection **p)
289 FIXME("(%p)->(%p)\n", iface, p);
293 static HRESULT WINAPI HTMLDocument_put_alinkColor(IHTMLDocument2 *iface, VARIANT v)
295 FIXME("(%p)\n", iface);
299 static HRESULT WINAPI HTMLDocument_get_alinkColor(IHTMLDocument2 *iface, VARIANT *p)
301 FIXME("(%p)->(%p)\n", iface, p);
305 static HRESULT WINAPI HTMLDocument_put_bgColor(IHTMLDocument2 *iface, VARIANT v)
307 FIXME("(%p)\n", iface);
311 static HRESULT WINAPI HTMLDocument_get_bgColor(IHTMLDocument2 *iface, VARIANT *p)
313 FIXME("(%p)->(%p)\n", iface, p);
317 static HRESULT WINAPI HTMLDocument_put_fgColor(IHTMLDocument2 *iface, VARIANT v)
319 FIXME("(%p)\n", iface);
323 static HRESULT WINAPI HTMLDocument_get_fgColor(IHTMLDocument2 *iface, VARIANT *p)
325 FIXME("(%p)->(%p)\n", iface, p);
329 static HRESULT WINAPI HTMLDocument_put_linkColor(IHTMLDocument2 *iface, VARIANT v)
331 FIXME("(%p)->()\n", iface);
335 static HRESULT WINAPI HTMLDocument_get_linkColor(IHTMLDocument2 *iface, VARIANT *p)
337 FIXME("(%p)->(%p)\n", iface, p);
341 static HRESULT WINAPI HTMLDocument_put_vlinkColor(IHTMLDocument2 *iface, VARIANT v)
343 FIXME("(%p)\n", iface);
347 static HRESULT WINAPI HTMLDocument_get_vlinkColor(IHTMLDocument2 *iface, VARIANT *p)
349 FIXME("(%p)->(%p)\n", iface, p);
353 static HRESULT WINAPI HTMLDocument_get_referrer(IHTMLDocument2 *iface, BSTR *p)
355 FIXME("(%p)->(%p)\n", iface, p);
359 static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLocation **p)
361 FIXME("(%p)->(%p)\n", iface, p);
365 static HRESULT WINAPI HTMLDocument_get_lastModified(IHTMLDocument2 *iface, BSTR *p)
367 FIXME("(%p)->(%p)\n", iface, p);
371 static HRESULT WINAPI HTMLDocument_put_URL(IHTMLDocument2 *iface, BSTR v)
373 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
377 static HRESULT WINAPI HTMLDocument_get_URL(IHTMLDocument2 *iface, BSTR *p)
379 FIXME("(%p)->(%p)\n", iface, p);
383 static HRESULT WINAPI HTMLDocument_put_domain(IHTMLDocument2 *iface, BSTR v)
385 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
389 static HRESULT WINAPI HTMLDocument_get_domain(IHTMLDocument2 *iface, BSTR *p)
391 FIXME("(%p)->(%p)\n", iface, p);
395 static HRESULT WINAPI HTMLDocument_put_cookie(IHTMLDocument2 *iface, BSTR v)
397 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
401 static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p)
403 FIXME("(%p)->(%p)\n", iface, p);
407 static HRESULT WINAPI HTMLDocument_put_expando(IHTMLDocument2 *iface, VARIANT_BOOL v)
409 FIXME("(%p)->(%x)\n", iface, v);
413 static HRESULT WINAPI HTMLDocument_get_expando(IHTMLDocument2 *iface, VARIANT_BOOL *p)
415 FIXME("(%p)->(%p)\n", iface, p);
419 static HRESULT WINAPI HTMLDocument_put_charset(IHTMLDocument2 *iface, BSTR v)
421 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
425 static HRESULT WINAPI HTMLDocument_get_charset(IHTMLDocument2 *iface, BSTR *p)
427 FIXME("(%p)->(%p)\n", iface, p);
431 static HRESULT WINAPI HTMLDocument_put_defaultCharset(IHTMLDocument2 *iface, BSTR v)
433 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
437 static HRESULT WINAPI HTMLDocument_get_defaultCharset(IHTMLDocument2 *iface, BSTR *p)
439 FIXME("(%p)->(%p)\n", iface, p);
443 static HRESULT WINAPI HTMLDocument_get_mimeType(IHTMLDocument2 *iface, BSTR *p)
445 FIXME("(%p)->(%p)\n", iface, p);
449 static HRESULT WINAPI HTMLDocument_get_fileSize(IHTMLDocument2 *iface, BSTR *p)
451 FIXME("(%p)->(%p)\n", iface, p);
455 static HRESULT WINAPI HTMLDocument_get_fileCreatedDate(IHTMLDocument2 *iface, BSTR *p)
457 FIXME("(%p)->(%p)\n", iface, p);
461 static HRESULT WINAPI HTMLDocument_get_fileModifiedDate(IHTMLDocument2 *iface, BSTR *p)
463 FIXME("(%p)->(%p)\n", iface, p);
467 static HRESULT WINAPI HTMLDocument_get_fileUpdatedDate(IHTMLDocument2 *iface, BSTR *p)
469 FIXME("(%p)->(%p)\n", iface, p);
473 static HRESULT WINAPI HTMLDocument_get_security(IHTMLDocument2 *iface, BSTR *p)
475 FIXME("(%p)->(%p)\n", iface, p);
479 static HRESULT WINAPI HTMLDocument_get_protocol(IHTMLDocument2 *iface, BSTR *p)
481 FIXME("(%p)->(%p)\n", iface, p);
485 static HRESULT WINAPI HTMLDocument_get_nameProp(IHTMLDocument2 *iface, BSTR *p)
487 FIXME("(%p)->(%p)\n", iface, p);
491 static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarray)
493 FIXME("(%p)->(%p)\n", iface, psarray);
497 static HRESULT WINAPI HTMLDocument_writeln(IHTMLDocument2 *iface, SAFEARRAY *psarray)
499 FIXME("(%p)->(%p)\n", iface, psarray);
503 static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT name,
504 VARIANT features, VARIANT replace, IDispatch **pomWindowResult)
506 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(url), pomWindowResult);
510 static HRESULT WINAPI HTMLDocument_close(IHTMLDocument2 *iface)
512 FIXME("(%p)\n", iface);
516 static HRESULT WINAPI HTMLDocument_clear(IHTMLDocument2 *iface)
518 FIXME("(%p)\n", iface);
522 static HRESULT WINAPI HTMLDocument_queryCommandSupported(IHTMLDocument2 *iface, BSTR cmdID,
525 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
529 static HRESULT WINAPI HTMLDocument_queryCommandEnabled(IHTMLDocument2 *iface, BSTR cmdID,
532 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
536 static HRESULT WINAPI HTMLDocument_queryCommandState(IHTMLDocument2 *iface, BSTR cmdID,
539 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
543 static HRESULT WINAPI HTMLDocument_queryCommandIndeterm(IHTMLDocument2 *iface, BSTR cmdID,
546 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
550 static HRESULT WINAPI HTMLDocument_queryCommandText(IHTMLDocument2 *iface, BSTR cmdID,
553 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
557 static HRESULT WINAPI HTMLDocument_queryCommandValue(IHTMLDocument2 *iface, BSTR cmdID,
560 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
564 static HRESULT WINAPI HTMLDocument_execCommand(IHTMLDocument2 *iface, BSTR cmdID,
565 VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet)
567 FIXME("(%p)->(%s %x %p)\n", iface, debugstr_w(cmdID), showUI, pfRet);
571 static HRESULT WINAPI HTMLDocument_execCommandShowHelp(IHTMLDocument2 *iface, BSTR cmdID,
574 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
578 static HRESULT WINAPI HTMLDocument_createElement(IHTMLDocument2 *iface, BSTR eTag,
579 IHTMLElement **newElem)
581 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(eTag), newElem);
585 static HRESULT WINAPI HTMLDocument_put_onhelp(IHTMLDocument2 *iface, VARIANT v)
587 FIXME("(%p)\n", iface);
591 static HRESULT WINAPI HTMLDocument_get_onhelp(IHTMLDocument2 *iface, VARIANT *p)
593 FIXME("(%p)->(%p)\n", iface, p);
597 static HRESULT WINAPI HTMLDocument_put_onclick(IHTMLDocument2 *iface, VARIANT v)
599 FIXME("(%p)\n", iface);
603 static HRESULT WINAPI HTMLDocument_get_onclick(IHTMLDocument2 *iface, VARIANT *p)
605 FIXME("(%p)->(%p)\n", iface, p);
609 static HRESULT WINAPI HTMLDocument_put_ondblclick(IHTMLDocument2 *iface, VARIANT v)
611 FIXME("(%p)\n", iface);
615 static HRESULT WINAPI HTMLDocument_get_ondblclick(IHTMLDocument2 *iface, VARIANT *p)
617 FIXME("(%p)->(%p)\n", iface, p);
621 static HRESULT WINAPI HTMLDocument_put_onkeyup(IHTMLDocument2 *iface, VARIANT v)
623 FIXME("(%p)\n", iface);
627 static HRESULT WINAPI HTMLDocument_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p)
629 FIXME("(%p)->(%p)\n", iface, p);
633 static HRESULT WINAPI HTMLDocument_put_onkeydown(IHTMLDocument2 *iface, VARIANT v)
635 FIXME("(%p)\n", iface);
639 static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT *p)
641 FIXME("(%p)->(%p)\n", iface, p);
645 static HRESULT WINAPI HTMLDocument_put_onkeypress(IHTMLDocument2 *iface, VARIANT v)
647 FIXME("(%p)\n", iface);
651 static HRESULT WINAPI HTMLDocument_get_onkeypress(IHTMLDocument2 *iface, VARIANT *p)
653 FIXME("(%p)->(%p)\n", iface, p);
657 static HRESULT WINAPI HTMLDocument_put_onmouseup(IHTMLDocument2 *iface, VARIANT v)
659 FIXME("(%p)\n", iface);
663 static HRESULT WINAPI HTMLDocument_get_onmouseup(IHTMLDocument2 *iface, VARIANT *p)
665 FIXME("(%p)->(%p)\n", iface, p);
669 static HRESULT WINAPI HTMLDocument_put_onmousedown(IHTMLDocument2 *iface, VARIANT v)
671 FIXME("(%p)\n", iface);
675 static HRESULT WINAPI HTMLDocument_get_onmousedown(IHTMLDocument2 *iface, VARIANT *p)
677 FIXME("(%p)->(%p)\n", iface, p);
681 static HRESULT WINAPI HTMLDocument_put_onmousemove(IHTMLDocument2 *iface, VARIANT v)
683 FIXME("(%p)\n", iface);
687 static HRESULT WINAPI HTMLDocument_get_onmousemove(IHTMLDocument2 *iface, VARIANT *p)
689 FIXME("(%p)->(%p)\n", iface, p);
693 static HRESULT WINAPI HTMLDocument_put_onmouseout(IHTMLDocument2 *iface, VARIANT v)
695 FIXME("(%p)\n", iface);
699 static HRESULT WINAPI HTMLDocument_get_onmouseout(IHTMLDocument2 *iface, VARIANT *p)
701 FIXME("(%p)->(%p)\n", iface, p);
705 static HRESULT WINAPI HTMLDocument_put_onmouseover(IHTMLDocument2 *iface, VARIANT v)
707 FIXME("(%p)\n", iface);
711 static HRESULT WINAPI HTMLDocument_get_onmouseover(IHTMLDocument2 *iface, VARIANT *p)
713 FIXME("(%p)->(%p)\n", iface, p);
717 static HRESULT WINAPI HTMLDocument_put_onreadystatechange(IHTMLDocument2 *iface, VARIANT v)
719 FIXME("(%p)\n", iface);
723 static HRESULT WINAPI HTMLDocument_get_onreadystatechange(IHTMLDocument2 *iface, VARIANT *p)
725 FIXME("(%p)->(%p)\n", iface, p);
729 static HRESULT WINAPI HTMLDocument_put_onafterupdate(IHTMLDocument2 *iface, VARIANT v)
731 FIXME("(%p)\n", iface);
735 static HRESULT WINAPI HTMLDocument_get_onafterupdate(IHTMLDocument2 *iface, VARIANT *p)
737 FIXME("(%p)->(%p)\n", iface, p);
741 static HRESULT WINAPI HTMLDocument_put_onrowexit(IHTMLDocument2 *iface, VARIANT v)
743 FIXME("(%p)\n", iface);
747 static HRESULT WINAPI HTMLDocument_get_onrowexit(IHTMLDocument2 *iface, VARIANT *p)
749 FIXME("(%p)->(%p)\n", iface, p);
753 static HRESULT WINAPI HTMLDocument_put_onrowenter(IHTMLDocument2 *iface, VARIANT v)
755 FIXME("(%p)\n", iface);
759 static HRESULT WINAPI HTMLDocument_get_onrowenter(IHTMLDocument2 *iface, VARIANT *p)
761 FIXME("(%p)->(%p)\n", iface, p);
765 static HRESULT WINAPI HTMLDocument_put_ondragstart(IHTMLDocument2 *iface, VARIANT v)
767 FIXME("(%p)\n", iface);
771 static HRESULT WINAPI HTMLDocument_get_ondragstart(IHTMLDocument2 *iface, VARIANT *p)
773 FIXME("(%p)->(%p)\n", iface, p);
777 static HRESULT WINAPI HTMLDocument_put_onselectstart(IHTMLDocument2 *iface, VARIANT v)
779 FIXME("(%p)\n", iface);
783 static HRESULT WINAPI HTMLDocument_get_onselectstart(IHTMLDocument2 *iface, VARIANT *p)
785 FIXME("(%p)->(%p)\n", iface, p);
789 static HRESULT WINAPI HTMLDocument_elementFromPoint(IHTMLDocument2 *iface, long x, long y,
790 IHTMLElement **elementHit)
792 FIXME("(%p)->(%ld %ld %p)\n", iface, x, y, elementHit);
796 static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTMLWindow2 **p)
798 FIXME("(%p)->(%p)\n", iface, p);
802 static HRESULT WINAPI HTMLDocument_get_styleSheets(IHTMLDocument2 *iface,
803 IHTMLStyleSheetsCollection **p)
805 FIXME("(%p)->(%p)\n", iface, p);
809 static HRESULT WINAPI HTMLDocument_put_onbeforeupdate(IHTMLDocument2 *iface, VARIANT v)
811 FIXME("(%p)\n", iface);
815 static HRESULT WINAPI HTMLDocument_get_onbeforeupdate(IHTMLDocument2 *iface, VARIANT *p)
817 FIXME("(%p)->(%p)\n", iface, p);
821 static HRESULT WINAPI HTMLDocument_put_onerrorupdate(IHTMLDocument2 *iface, VARIANT v)
823 FIXME("(%p)\n", iface);
827 static HRESULT WINAPI HTMLDocument_get_onerrorupdate(IHTMLDocument2 *iface, VARIANT *p)
829 FIXME("(%p)->(%p)\n", iface, p);
833 static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String)
835 FIXME("(%p)->(%p)\n", iface, String);
839 static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref,
840 long lIndex, IHTMLStyleSheet **ppnewStyleSheet)
842 FIXME("(%p)->(%s %ld %p)\n", iface, debugstr_w(bstrHref), lIndex, ppnewStyleSheet);
846 static const IHTMLDocument2Vtbl HTMLDocumentVtbl = {
847 HTMLDocument_QueryInterface,
849 HTMLDocument_Release,
850 HTMLDocument_GetTypeInfoCount,
851 HTMLDocument_GetTypeInfo,
852 HTMLDocument_GetIDsOfNames,
854 HTMLDocument_get_Script,
855 HTMLDocument_get_all,
856 HTMLDocument_get_body,
857 HTMLDocument_get_activeElement,
858 HTMLDocument_get_images,
859 HTMLDocument_get_applets,
860 HTMLDocument_get_links,
861 HTMLDocument_get_forms,
862 HTMLDocument_get_anchors,
863 HTMLDocument_put_title,
864 HTMLDocument_get_title,
865 HTMLDocument_get_scripts,
866 HTMLDocument_put_designMode,
867 HTMLDocument_get_designMode,
868 HTMLDocument_get_selection,
869 HTMLDocument_get_readyState,
870 HTMLDocument_get_frames,
871 HTMLDocument_get_embeds,
872 HTMLDocument_get_plugins,
873 HTMLDocument_put_alinkColor,
874 HTMLDocument_get_alinkColor,
875 HTMLDocument_put_bgColor,
876 HTMLDocument_get_bgColor,
877 HTMLDocument_put_fgColor,
878 HTMLDocument_get_fgColor,
879 HTMLDocument_put_linkColor,
880 HTMLDocument_get_linkColor,
881 HTMLDocument_put_vlinkColor,
882 HTMLDocument_get_vlinkColor,
883 HTMLDocument_get_referrer,
884 HTMLDocument_get_location,
885 HTMLDocument_get_lastModified,
886 HTMLDocument_put_URL,
887 HTMLDocument_get_URL,
888 HTMLDocument_put_domain,
889 HTMLDocument_get_domain,
890 HTMLDocument_put_cookie,
891 HTMLDocument_get_cookie,
892 HTMLDocument_put_expando,
893 HTMLDocument_get_expando,
894 HTMLDocument_put_charset,
895 HTMLDocument_get_charset,
896 HTMLDocument_put_defaultCharset,
897 HTMLDocument_get_defaultCharset,
898 HTMLDocument_get_mimeType,
899 HTMLDocument_get_fileSize,
900 HTMLDocument_get_fileCreatedDate,
901 HTMLDocument_get_fileModifiedDate,
902 HTMLDocument_get_fileUpdatedDate,
903 HTMLDocument_get_security,
904 HTMLDocument_get_protocol,
905 HTMLDocument_get_nameProp,
907 HTMLDocument_writeln,
911 HTMLDocument_queryCommandSupported,
912 HTMLDocument_queryCommandEnabled,
913 HTMLDocument_queryCommandState,
914 HTMLDocument_queryCommandIndeterm,
915 HTMLDocument_queryCommandText,
916 HTMLDocument_queryCommandValue,
917 HTMLDocument_execCommand,
918 HTMLDocument_execCommandShowHelp,
919 HTMLDocument_createElement,
920 HTMLDocument_put_onhelp,
921 HTMLDocument_get_onhelp,
922 HTMLDocument_put_onclick,
923 HTMLDocument_get_onclick,
924 HTMLDocument_put_ondblclick,
925 HTMLDocument_get_ondblclick,
926 HTMLDocument_put_onkeyup,
927 HTMLDocument_get_onkeyup,
928 HTMLDocument_put_onkeydown,
929 HTMLDocument_get_onkeydown,
930 HTMLDocument_put_onkeypress,
931 HTMLDocument_get_onkeypress,
932 HTMLDocument_put_onmouseup,
933 HTMLDocument_get_onmouseup,
934 HTMLDocument_put_onmousedown,
935 HTMLDocument_get_onmousedown,
936 HTMLDocument_put_onmousemove,
937 HTMLDocument_get_onmousemove,
938 HTMLDocument_put_onmouseout,
939 HTMLDocument_get_onmouseout,
940 HTMLDocument_put_onmouseover,
941 HTMLDocument_get_onmouseover,
942 HTMLDocument_put_onreadystatechange,
943 HTMLDocument_get_onreadystatechange,
944 HTMLDocument_put_onafterupdate,
945 HTMLDocument_get_onafterupdate,
946 HTMLDocument_put_onrowexit,
947 HTMLDocument_get_onrowexit,
948 HTMLDocument_put_onrowenter,
949 HTMLDocument_get_onrowenter,
950 HTMLDocument_put_ondragstart,
951 HTMLDocument_get_ondragstart,
952 HTMLDocument_put_onselectstart,
953 HTMLDocument_get_onselectstart,
954 HTMLDocument_elementFromPoint,
955 HTMLDocument_get_parentWindow,
956 HTMLDocument_get_styleSheets,
957 HTMLDocument_put_onbeforeupdate,
958 HTMLDocument_get_onbeforeupdate,
959 HTMLDocument_put_onerrorupdate,
960 HTMLDocument_get_onerrorupdate,
961 HTMLDocument_toString,
962 HTMLDocument_createStyleSheet
965 HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
970 TRACE("(%p %s %p)\n", pUnkOuter, debugstr_guid(riid), ppvObject);
972 ret = HeapAlloc(GetProcessHeap(), 0, sizeof(HTMLDocument));
973 ret->lpHTMLDocument2Vtbl = &HTMLDocumentVtbl;
976 hres = IHTMLDocument_QueryInterface(HTMLDOC(ret), riid, ppvObject);
978 HeapFree(GetProcessHeap(), 0, ret);
980 HTMLDocument_Persist_Init(ret);
981 HTMLDocument_OleObj_Init(ret);
982 HTMLDocument_View_Init(ret);
983 HTMLDocument_Window_Init(ret);
984 HTMLDocument_Service_Init(ret);
985 HTMLDocument_NSContainer_Init(ret);