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 static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID riid, void **ppvObject)
43 HTMLDocument *This = (HTMLDocument*)iface;
46 if(IsEqualGUID(&IID_IUnknown, riid)) {
47 TRACE("(%p)->(IID_IUnknown, %p)\n", This, ppvObject);
48 *ppvObject = HTMLDOC(This);
49 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
50 TRACE("(%p)->(IID_IDispatch, %p)\n", This, ppvObject);
51 *ppvObject = HTMLDOC(This);
52 }else if(IsEqualGUID(&IID_IHTMLDocument, riid)) {
53 TRACE("(%p)->(IID_IHTMLDocument, %p)\n", This, ppvObject);
54 *ppvObject = HTMLDOC(This);
55 }else if(IsEqualGUID(&IID_IHTMLDocument2, riid)) {
56 TRACE("(%p)->(IID_IHTMLDocument2, %p)\n", This, ppvObject);
57 *ppvObject = HTMLDOC(This);
58 }else if(IsEqualGUID(&IID_IPersist, riid)) {
59 TRACE("(%p)->(IID_IPersist, %p)\n", This, ppvObject);
60 *ppvObject = PERSIST(This);
61 }else if(IsEqualGUID(&IID_IPersistMoniker, riid)) {
62 TRACE("(%p)->(IID_IPersistMoniker, %p)\n", This, ppvObject);
63 *ppvObject = PERSISTMON(This);
64 }else if(IsEqualGUID(&IID_IPersistFile, riid)) {
65 TRACE("(%p)->(IID_IPersistFile, %p)\n", This, ppvObject);
66 *ppvObject = PERSISTFILE(This);
67 }else if(IsEqualGUID(&IID_IMonikerProp, riid)) {
68 TRACE("(%p)->(IID_IMonikerProp, %p)\n", This, ppvObject);
69 *ppvObject = MONPROP(This);
70 }else if(IsEqualGUID(&IID_IOleObject, riid)) {
71 TRACE("(%p)->(IID_IOleObject, %p)\n", This, ppvObject);
72 *ppvObject = OLEOBJ(This);
73 }else if(IsEqualGUID(&IID_IOleDocument, riid)) {
74 TRACE("(%p)->(IID_IOleDocument, %p)\n", This, ppvObject);
75 *ppvObject = OLEDOC(This);
76 }else if(IsEqualGUID(&IID_IOleDocumentView, riid)) {
77 TRACE("(%p)->(IID_IOleDocumentView, %p)\n", This, ppvObject);
78 *ppvObject = DOCVIEW(This);
79 }else if(IsEqualGUID(&IID_IOleInPlaceActiveObject, riid)) {
80 TRACE("(%p)->(IID_IOleInPlaceActiveObject, %p)\n", This, ppvObject);
81 *ppvObject = ACTOBJ(This);
82 }else if(IsEqualGUID(&IID_IViewObject, riid)) {
83 TRACE("(%p)->(IID_IViewObject, %p)\n", This, ppvObject);
84 *ppvObject = VIEWOBJ(This);
85 }else if(IsEqualGUID(&IID_IViewObject2, riid)) {
86 TRACE("(%p)->(IID_IViewObject2, %p)\n", This, ppvObject);
87 *ppvObject = VIEWOBJ2(This);
88 }else if(IsEqualGUID(&IID_IOleWindow, riid)) {
89 TRACE("(%p)->(IID_IOleWindow, %p)\n", This, ppvObject);
90 *ppvObject = OLEWIN(This);
91 }else if(IsEqualGUID(&IID_IOleInPlaceObject, riid)) {
92 TRACE("(%p)->(IID_IOleInPlaceObject, %p)\n", This, ppvObject);
93 *ppvObject = INPLACEOBJ(This);
94 }else if(IsEqualGUID(&IID_IOleInPlaceObjectWindowless, riid)) {
95 TRACE("(%p)->(IID_IOleInPlaceObjectWindowless, %p)\n", This, ppvObject);
96 *ppvObject = INPLACEWIN(This);
100 IHTMLDocument2_AddRef(iface);
104 FIXME("(%p)->(%s %p) interface not supported\n", This, debugstr_guid(riid), ppvObject);
105 return E_NOINTERFACE;
108 static ULONG WINAPI HTMLDocument_AddRef(IHTMLDocument2 *iface)
110 HTMLDocument *This = (HTMLDocument*)iface;
111 ULONG ref = InterlockedIncrement(&This->ref);
112 TRACE("(%p) ref = %lu\n", This, ref);
116 static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface)
118 HTMLDocument *This = (HTMLDocument*)iface;
119 ULONG ref = InterlockedDecrement(&This->ref);
121 TRACE("(%p) ref = %lu\n", This, ref);
125 IOleClientSite_Release(This->client);
127 IOleInPlaceSite_Release(This->ipsite);
129 IOleInPlaceFrame_Release(This->frame);
130 HeapFree(GetProcessHeap(), 0, This);
136 static HRESULT WINAPI HTMLDocument_GetTypeInfoCount(IHTMLDocument2 *iface, UINT *pctinfo)
138 FIXME("(%p)->(%p)\n", iface, pctinfo);
142 static HRESULT WINAPI HTMLDocument_GetTypeInfo(IHTMLDocument2 *iface, UINT iTInfo,
143 LCID lcid, ITypeInfo **ppTInfo)
145 FIXME("(%p)->(%u %lu %p)\n", iface, iTInfo, lcid, ppTInfo);
149 static HRESULT WINAPI HTMLDocument_GetIDsOfNames(IHTMLDocument2 *iface, REFIID riid,
150 LPOLESTR *rgszNames, UINT cNames,
151 LCID lcid, DISPID *rgDispId)
153 FIXME("(%p)->(%s %p %u %lu %p)\n", iface, debugstr_guid(riid), rgszNames, cNames,
158 static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMember,
159 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
160 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
162 FIXME("(%p)->(%ld %s %ld %d %p %p %p %p)\n", iface, dispIdMember, debugstr_guid(riid),
163 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
167 static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch **p)
169 FIXME("(%p)->(%p)\n", iface, p);
173 static HRESULT WINAPI HTMLDocument_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p)
175 FIXME("(%p)->(%p)\n", iface, p);
179 static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement **p)
181 FIXME("(%p)->(%p)\n", iface, p);
185 static HRESULT WINAPI HTMLDocument_get_activeElement(IHTMLDocument2 *iface, IHTMLElement **p)
187 FIXME("(%p)->(%p)\n", iface, p);
191 static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElementCollection **p)
193 FIXME("(%p)->(%p)\n", iface, p);
197 static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLElementCollection **p)
199 FIXME("(%p)->(%p)\n", iface, p);
203 static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElementCollection **p)
205 FIXME("(%p)->(%p)\n", iface, p);
209 static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElementCollection **p)
211 FIXME("(%p)->(%p)\n", iface, p);
215 static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLElementCollection **p)
217 FIXME("(%p)->(%p)\n", iface, p);
221 static HRESULT WINAPI HTMLDocument_put_title(IHTMLDocument2 *iface, BSTR v)
223 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
227 static HRESULT WINAPI HTMLDocument_get_title(IHTMLDocument2 *iface, BSTR *p)
229 FIXME("(%p)->(%p)\n", iface, p);
233 static HRESULT WINAPI HTMLDocument_get_scripts(IHTMLDocument2 *iface, IHTMLElementCollection **p)
235 FIXME("(%p)->(%p)\n", iface, p);
239 static HRESULT WINAPI HTMLDocument_put_designMode(IHTMLDocument2 *iface, BSTR v)
241 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
245 static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p)
247 FIXME("(%p)->(%p)\n", iface, p);
251 static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSelectionObject **p)
253 FIXME("(%p)->(%p)\n", iface, p);
257 static HRESULT WINAPI HTMLDocument_get_readyState(IHTMLDocument2 *iface, BSTR *p)
259 FIXME("(%p)->(%p)\n", iface, p);
263 static HRESULT WINAPI HTMLDocument_get_frames(IHTMLDocument2 *iface, IHTMLFramesCollection2 **p)
265 FIXME("(%p)->(%p)\n", iface, p);
269 static HRESULT WINAPI HTMLDocument_get_embeds(IHTMLDocument2 *iface, IHTMLElementCollection **p)
271 FIXME("(%p)->(%p)\n", iface, p);
275 static HRESULT WINAPI HTMLDocument_get_plugins(IHTMLDocument2 *iface, IHTMLElementCollection **p)
277 FIXME("(%p)->(%p)\n", iface, p);
281 static HRESULT WINAPI HTMLDocument_put_alinkColor(IHTMLDocument2 *iface, VARIANT v)
283 FIXME("(%p)\n", iface);
287 static HRESULT WINAPI HTMLDocument_get_alinkColor(IHTMLDocument2 *iface, VARIANT *p)
289 FIXME("(%p)->(%p)\n", iface, p);
293 static HRESULT WINAPI HTMLDocument_put_bgColor(IHTMLDocument2 *iface, VARIANT v)
295 FIXME("(%p)\n", iface);
299 static HRESULT WINAPI HTMLDocument_get_bgColor(IHTMLDocument2 *iface, VARIANT *p)
301 FIXME("(%p)->(%p)\n", iface, p);
305 static HRESULT WINAPI HTMLDocument_put_fgColor(IHTMLDocument2 *iface, VARIANT v)
307 FIXME("(%p)\n", iface);
311 static HRESULT WINAPI HTMLDocument_get_fgColor(IHTMLDocument2 *iface, VARIANT *p)
313 FIXME("(%p)->(%p)\n", iface, p);
317 static HRESULT WINAPI HTMLDocument_put_linkColor(IHTMLDocument2 *iface, VARIANT v)
319 FIXME("(%p)->()\n", iface);
323 static HRESULT WINAPI HTMLDocument_get_linkColor(IHTMLDocument2 *iface, VARIANT *p)
325 FIXME("(%p)->(%p)\n", iface, p);
329 static HRESULT WINAPI HTMLDocument_put_vlinkColor(IHTMLDocument2 *iface, VARIANT v)
331 FIXME("(%p)\n", iface);
335 static HRESULT WINAPI HTMLDocument_get_vlinkColor(IHTMLDocument2 *iface, VARIANT *p)
337 FIXME("(%p)->(%p)\n", iface, p);
341 static HRESULT WINAPI HTMLDocument_get_referrer(IHTMLDocument2 *iface, BSTR *p)
343 FIXME("(%p)->(%p)\n", iface, p);
347 static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLocation **p)
349 FIXME("(%p)->(%p)\n", iface, p);
353 static HRESULT WINAPI HTMLDocument_get_lastModified(IHTMLDocument2 *iface, BSTR *p)
355 FIXME("(%p)->(%p)\n", iface, p);
359 static HRESULT WINAPI HTMLDocument_put_URL(IHTMLDocument2 *iface, BSTR v)
361 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
365 static HRESULT WINAPI HTMLDocument_get_URL(IHTMLDocument2 *iface, BSTR *p)
367 FIXME("(%p)->(%p)\n", iface, p);
371 static HRESULT WINAPI HTMLDocument_put_domain(IHTMLDocument2 *iface, BSTR v)
373 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
377 static HRESULT WINAPI HTMLDocument_get_domain(IHTMLDocument2 *iface, BSTR *p)
379 FIXME("(%p)->(%p)\n", iface, p);
383 static HRESULT WINAPI HTMLDocument_put_cookie(IHTMLDocument2 *iface, BSTR v)
385 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
389 static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p)
391 FIXME("(%p)->(%p)\n", iface, p);
395 static HRESULT WINAPI HTMLDocument_put_expando(IHTMLDocument2 *iface, VARIANT_BOOL v)
397 FIXME("(%p)->(%x)\n", iface, v);
401 static HRESULT WINAPI HTMLDocument_get_expando(IHTMLDocument2 *iface, VARIANT_BOOL *p)
403 FIXME("(%p)->(%p)\n", iface, p);
407 static HRESULT WINAPI HTMLDocument_put_charset(IHTMLDocument2 *iface, BSTR v)
409 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
413 static HRESULT WINAPI HTMLDocument_get_charset(IHTMLDocument2 *iface, BSTR *p)
415 FIXME("(%p)->(%p)\n", iface, p);
419 static HRESULT WINAPI HTMLDocument_put_defaultCharset(IHTMLDocument2 *iface, BSTR v)
421 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
425 static HRESULT WINAPI HTMLDocument_get_defaultCharset(IHTMLDocument2 *iface, BSTR *p)
427 FIXME("(%p)->(%p)\n", iface, p);
431 static HRESULT WINAPI HTMLDocument_get_mimeType(IHTMLDocument2 *iface, BSTR *p)
433 FIXME("(%p)->(%p)\n", iface, p);
437 static HRESULT WINAPI HTMLDocument_get_fileSize(IHTMLDocument2 *iface, BSTR *p)
439 FIXME("(%p)->(%p)\n", iface, p);
443 static HRESULT WINAPI HTMLDocument_get_fileCreatedDate(IHTMLDocument2 *iface, BSTR *p)
445 FIXME("(%p)->(%p)\n", iface, p);
449 static HRESULT WINAPI HTMLDocument_get_fileModifiedDate(IHTMLDocument2 *iface, BSTR *p)
451 FIXME("(%p)->(%p)\n", iface, p);
455 static HRESULT WINAPI HTMLDocument_get_fileUpdatedDate(IHTMLDocument2 *iface, BSTR *p)
457 FIXME("(%p)->(%p)\n", iface, p);
461 static HRESULT WINAPI HTMLDocument_get_security(IHTMLDocument2 *iface, BSTR *p)
463 FIXME("(%p)->(%p)\n", iface, p);
467 static HRESULT WINAPI HTMLDocument_get_protocol(IHTMLDocument2 *iface, BSTR *p)
469 FIXME("(%p)->(%p)\n", iface, p);
473 static HRESULT WINAPI HTMLDocument_get_nameProp(IHTMLDocument2 *iface, BSTR *p)
475 FIXME("(%p)->(%p)\n", iface, p);
479 static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarray)
481 FIXME("(%p)->(%p)\n", iface, psarray);
485 static HRESULT WINAPI HTMLDocument_writeln(IHTMLDocument2 *iface, SAFEARRAY *psarray)
487 FIXME("(%p)->(%p)\n", iface, psarray);
491 static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT name,
492 VARIANT features, VARIANT replace, IDispatch **pomWindowResult)
494 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(url), pomWindowResult);
498 static HRESULT WINAPI HTMLDocument_close(IHTMLDocument2 *iface)
500 FIXME("(%p)\n", iface);
504 static HRESULT WINAPI HTMLDocument_clear(IHTMLDocument2 *iface)
506 FIXME("(%p)\n", iface);
510 static HRESULT WINAPI HTMLDocument_queryCommandSupported(IHTMLDocument2 *iface, BSTR cmdID,
513 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
517 static HRESULT WINAPI HTMLDocument_queryCommandEnabled(IHTMLDocument2 *iface, BSTR cmdID,
520 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
524 static HRESULT WINAPI HTMLDocument_queryCommandState(IHTMLDocument2 *iface, BSTR cmdID,
527 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
531 static HRESULT WINAPI HTMLDocument_queryCommandIndeterm(IHTMLDocument2 *iface, BSTR cmdID,
534 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
538 static HRESULT WINAPI HTMLDocument_queryCommandText(IHTMLDocument2 *iface, BSTR cmdID,
541 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
545 static HRESULT WINAPI HTMLDocument_queryCommandValue(IHTMLDocument2 *iface, BSTR cmdID,
548 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
552 static HRESULT WINAPI HTMLDocument_execCommand(IHTMLDocument2 *iface, BSTR cmdID,
553 VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet)
555 FIXME("(%p)->(%s %x %p)\n", iface, debugstr_w(cmdID), showUI, pfRet);
559 static HRESULT WINAPI HTMLDocument_execCommandShowHelp(IHTMLDocument2 *iface, BSTR cmdID,
562 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
566 static HRESULT WINAPI HTMLDocument_createElement(IHTMLDocument2 *iface, BSTR eTag,
567 IHTMLElement **newElem)
569 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(eTag), newElem);
573 static HRESULT WINAPI HTMLDocument_put_onhelp(IHTMLDocument2 *iface, VARIANT v)
575 FIXME("(%p)\n", iface);
579 static HRESULT WINAPI HTMLDocument_get_onhelp(IHTMLDocument2 *iface, VARIANT *p)
581 FIXME("(%p)->(%p)\n", iface, p);
585 static HRESULT WINAPI HTMLDocument_put_onclick(IHTMLDocument2 *iface, VARIANT v)
587 FIXME("(%p)\n", iface);
591 static HRESULT WINAPI HTMLDocument_get_onclick(IHTMLDocument2 *iface, VARIANT *p)
593 FIXME("(%p)->(%p)\n", iface, p);
597 static HRESULT WINAPI HTMLDocument_put_ondblclick(IHTMLDocument2 *iface, VARIANT v)
599 FIXME("(%p)\n", iface);
603 static HRESULT WINAPI HTMLDocument_get_ondblclick(IHTMLDocument2 *iface, VARIANT *p)
605 FIXME("(%p)->(%p)\n", iface, p);
609 static HRESULT WINAPI HTMLDocument_put_onkeyup(IHTMLDocument2 *iface, VARIANT v)
611 FIXME("(%p)\n", iface);
615 static HRESULT WINAPI HTMLDocument_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p)
617 FIXME("(%p)->(%p)\n", iface, p);
621 static HRESULT WINAPI HTMLDocument_put_onkeydown(IHTMLDocument2 *iface, VARIANT v)
623 FIXME("(%p)\n", iface);
627 static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT *p)
629 FIXME("(%p)->(%p)\n", iface, p);
633 static HRESULT WINAPI HTMLDocument_put_onkeypress(IHTMLDocument2 *iface, VARIANT v)
635 FIXME("(%p)\n", iface);
639 static HRESULT WINAPI HTMLDocument_get_onkeypress(IHTMLDocument2 *iface, VARIANT *p)
641 FIXME("(%p)->(%p)\n", iface, p);
645 static HRESULT WINAPI HTMLDocument_put_onmouseup(IHTMLDocument2 *iface, VARIANT v)
647 FIXME("(%p)\n", iface);
651 static HRESULT WINAPI HTMLDocument_get_onmouseup(IHTMLDocument2 *iface, VARIANT *p)
653 FIXME("(%p)->(%p)\n", iface, p);
657 static HRESULT WINAPI HTMLDocument_put_onmousedown(IHTMLDocument2 *iface, VARIANT v)
659 FIXME("(%p)\n", iface);
663 static HRESULT WINAPI HTMLDocument_get_onmousedown(IHTMLDocument2 *iface, VARIANT *p)
665 FIXME("(%p)->(%p)\n", iface, p);
669 static HRESULT WINAPI HTMLDocument_put_onmousemove(IHTMLDocument2 *iface, VARIANT v)
671 FIXME("(%p)\n", iface);
675 static HRESULT WINAPI HTMLDocument_get_onmousemove(IHTMLDocument2 *iface, VARIANT *p)
677 FIXME("(%p)->(%p)\n", iface, p);
681 static HRESULT WINAPI HTMLDocument_put_onmouseout(IHTMLDocument2 *iface, VARIANT v)
683 FIXME("(%p)\n", iface);
687 static HRESULT WINAPI HTMLDocument_get_onmouseout(IHTMLDocument2 *iface, VARIANT *p)
689 FIXME("(%p)->(%p)\n", iface, p);
693 static HRESULT WINAPI HTMLDocument_put_onmouseover(IHTMLDocument2 *iface, VARIANT v)
695 FIXME("(%p)\n", iface);
699 static HRESULT WINAPI HTMLDocument_get_onmouseover(IHTMLDocument2 *iface, VARIANT *p)
701 FIXME("(%p)->(%p)\n", iface, p);
705 static HRESULT WINAPI HTMLDocument_put_onreadystatechange(IHTMLDocument2 *iface, VARIANT v)
707 FIXME("(%p)\n", iface);
711 static HRESULT WINAPI HTMLDocument_get_onreadystatechange(IHTMLDocument2 *iface, VARIANT *p)
713 FIXME("(%p)->(%p)\n", iface, p);
717 static HRESULT WINAPI HTMLDocument_put_onafterupdate(IHTMLDocument2 *iface, VARIANT v)
719 FIXME("(%p)\n", iface);
723 static HRESULT WINAPI HTMLDocument_get_onafterupdate(IHTMLDocument2 *iface, VARIANT *p)
725 FIXME("(%p)->(%p)\n", iface, p);
729 static HRESULT WINAPI HTMLDocument_put_onrowexit(IHTMLDocument2 *iface, VARIANT v)
731 FIXME("(%p)\n", iface);
735 static HRESULT WINAPI HTMLDocument_get_onrowexit(IHTMLDocument2 *iface, VARIANT *p)
737 FIXME("(%p)->(%p)\n", iface, p);
741 static HRESULT WINAPI HTMLDocument_put_onrowenter(IHTMLDocument2 *iface, VARIANT v)
743 FIXME("(%p)\n", iface);
747 static HRESULT WINAPI HTMLDocument_get_onrowenter(IHTMLDocument2 *iface, VARIANT *p)
749 FIXME("(%p)->(%p)\n", iface, p);
753 static HRESULT WINAPI HTMLDocument_put_ondragstart(IHTMLDocument2 *iface, VARIANT v)
755 FIXME("(%p)\n", iface);
759 static HRESULT WINAPI HTMLDocument_get_ondragstart(IHTMLDocument2 *iface, VARIANT *p)
761 FIXME("(%p)->(%p)\n", iface, p);
765 static HRESULT WINAPI HTMLDocument_put_onselectstart(IHTMLDocument2 *iface, VARIANT v)
767 FIXME("(%p)\n", iface);
771 static HRESULT WINAPI HTMLDocument_get_onselectstart(IHTMLDocument2 *iface, VARIANT *p)
773 FIXME("(%p)->(%p)\n", iface, p);
777 static HRESULT WINAPI HTMLDocument_elementFromPoint(IHTMLDocument2 *iface, long x, long y,
778 IHTMLElement **elementHit)
780 FIXME("(%p)->(%ld %ld %p)\n", iface, x, y, elementHit);
784 static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTMLWindow2 **p)
786 FIXME("(%p)->(%p)\n", iface, p);
790 static HRESULT WINAPI HTMLDocument_get_styleSheets(IHTMLDocument2 *iface,
791 IHTMLStyleSheetsCollection **p)
793 FIXME("(%p)->(%p)\n", iface, p);
797 static HRESULT WINAPI HTMLDocument_put_onbeforeupdate(IHTMLDocument2 *iface, VARIANT v)
799 FIXME("(%p)\n", iface);
803 static HRESULT WINAPI HTMLDocument_get_onbeforeupdate(IHTMLDocument2 *iface, VARIANT *p)
805 FIXME("(%p)->(%p)\n", iface, p);
809 static HRESULT WINAPI HTMLDocument_put_onerrorupdate(IHTMLDocument2 *iface, VARIANT v)
811 FIXME("(%p)\n", iface);
815 static HRESULT WINAPI HTMLDocument_get_onerrorupdate(IHTMLDocument2 *iface, VARIANT *p)
817 FIXME("(%p)->(%p)\n", iface, p);
821 static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String)
823 FIXME("(%p)->(%p)\n", iface, String);
827 static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref,
828 long lIndex, IHTMLStyleSheet **ppnewStyleSheet)
830 FIXME("(%p)->(%s %ld %p)\n", iface, debugstr_w(bstrHref), lIndex, ppnewStyleSheet);
834 static const IHTMLDocument2Vtbl HTMLDocumentVtbl = {
835 HTMLDocument_QueryInterface,
837 HTMLDocument_Release,
838 HTMLDocument_GetTypeInfoCount,
839 HTMLDocument_GetTypeInfo,
840 HTMLDocument_GetIDsOfNames,
842 HTMLDocument_get_Script,
843 HTMLDocument_get_all,
844 HTMLDocument_get_body,
845 HTMLDocument_get_activeElement,
846 HTMLDocument_get_images,
847 HTMLDocument_get_applets,
848 HTMLDocument_get_links,
849 HTMLDocument_get_forms,
850 HTMLDocument_get_anchors,
851 HTMLDocument_put_title,
852 HTMLDocument_get_title,
853 HTMLDocument_get_scripts,
854 HTMLDocument_put_designMode,
855 HTMLDocument_get_designMode,
856 HTMLDocument_get_selection,
857 HTMLDocument_get_readyState,
858 HTMLDocument_get_frames,
859 HTMLDocument_get_embeds,
860 HTMLDocument_get_plugins,
861 HTMLDocument_put_alinkColor,
862 HTMLDocument_get_alinkColor,
863 HTMLDocument_put_bgColor,
864 HTMLDocument_get_bgColor,
865 HTMLDocument_put_fgColor,
866 HTMLDocument_get_fgColor,
867 HTMLDocument_put_linkColor,
868 HTMLDocument_get_linkColor,
869 HTMLDocument_put_vlinkColor,
870 HTMLDocument_get_vlinkColor,
871 HTMLDocument_get_referrer,
872 HTMLDocument_get_location,
873 HTMLDocument_get_lastModified,
874 HTMLDocument_put_URL,
875 HTMLDocument_get_URL,
876 HTMLDocument_put_domain,
877 HTMLDocument_get_domain,
878 HTMLDocument_put_cookie,
879 HTMLDocument_get_cookie,
880 HTMLDocument_put_expando,
881 HTMLDocument_get_expando,
882 HTMLDocument_put_charset,
883 HTMLDocument_get_charset,
884 HTMLDocument_put_defaultCharset,
885 HTMLDocument_get_defaultCharset,
886 HTMLDocument_get_mimeType,
887 HTMLDocument_get_fileSize,
888 HTMLDocument_get_fileCreatedDate,
889 HTMLDocument_get_fileModifiedDate,
890 HTMLDocument_get_fileUpdatedDate,
891 HTMLDocument_get_security,
892 HTMLDocument_get_protocol,
893 HTMLDocument_get_nameProp,
895 HTMLDocument_writeln,
899 HTMLDocument_queryCommandSupported,
900 HTMLDocument_queryCommandEnabled,
901 HTMLDocument_queryCommandState,
902 HTMLDocument_queryCommandIndeterm,
903 HTMLDocument_queryCommandText,
904 HTMLDocument_queryCommandValue,
905 HTMLDocument_execCommand,
906 HTMLDocument_execCommandShowHelp,
907 HTMLDocument_createElement,
908 HTMLDocument_put_onhelp,
909 HTMLDocument_get_onhelp,
910 HTMLDocument_put_onclick,
911 HTMLDocument_get_onclick,
912 HTMLDocument_put_ondblclick,
913 HTMLDocument_get_ondblclick,
914 HTMLDocument_put_onkeyup,
915 HTMLDocument_get_onkeyup,
916 HTMLDocument_put_onkeydown,
917 HTMLDocument_get_onkeydown,
918 HTMLDocument_put_onkeypress,
919 HTMLDocument_get_onkeypress,
920 HTMLDocument_put_onmouseup,
921 HTMLDocument_get_onmouseup,
922 HTMLDocument_put_onmousedown,
923 HTMLDocument_get_onmousedown,
924 HTMLDocument_put_onmousemove,
925 HTMLDocument_get_onmousemove,
926 HTMLDocument_put_onmouseout,
927 HTMLDocument_get_onmouseout,
928 HTMLDocument_put_onmouseover,
929 HTMLDocument_get_onmouseover,
930 HTMLDocument_put_onreadystatechange,
931 HTMLDocument_get_onreadystatechange,
932 HTMLDocument_put_onafterupdate,
933 HTMLDocument_get_onafterupdate,
934 HTMLDocument_put_onrowexit,
935 HTMLDocument_get_onrowexit,
936 HTMLDocument_put_onrowenter,
937 HTMLDocument_get_onrowenter,
938 HTMLDocument_put_ondragstart,
939 HTMLDocument_get_ondragstart,
940 HTMLDocument_put_onselectstart,
941 HTMLDocument_get_onselectstart,
942 HTMLDocument_elementFromPoint,
943 HTMLDocument_get_parentWindow,
944 HTMLDocument_get_styleSheets,
945 HTMLDocument_put_onbeforeupdate,
946 HTMLDocument_get_onbeforeupdate,
947 HTMLDocument_put_onerrorupdate,
948 HTMLDocument_get_onerrorupdate,
949 HTMLDocument_toString,
950 HTMLDocument_createStyleSheet
953 HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
958 TRACE("(%p %s %p)\n", pUnkOuter, debugstr_guid(riid), ppvObject);
960 ret = HeapAlloc(GetProcessHeap(), 0, sizeof(HTMLDocument));
961 ret->lpHTMLDocument2Vtbl = &HTMLDocumentVtbl;
964 hres = IHTMLDocument_QueryInterface(HTMLDOC(ret), riid, ppvObject);
966 HeapFree(GetProcessHeap(), 0, ret);
968 HTMLDocument_Persist_Init(ret);
969 HTMLDocument_OleObj_Init(ret);
970 HTMLDocument_View_Init(ret);
971 HTMLDocument_Window_Init(ret);