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);
97 }else if(IsEqualGUID(&IID_IServiceProvider, riid)) {
98 TRACE("(%p)->(IID_IServiceProvider, %p)\n", This, ppvObject);
99 *ppvObject = SERVPROV(This);
103 IHTMLDocument2_AddRef(iface);
107 FIXME("(%p)->(%s %p) interface not supported\n", This, debugstr_guid(riid), ppvObject);
108 return E_NOINTERFACE;
111 static ULONG WINAPI HTMLDocument_AddRef(IHTMLDocument2 *iface)
113 HTMLDocument *This = (HTMLDocument*)iface;
114 ULONG ref = InterlockedIncrement(&This->ref);
115 TRACE("(%p) ref = %lu\n", This, ref);
119 static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface)
121 HTMLDocument *This = (HTMLDocument*)iface;
122 ULONG ref = InterlockedDecrement(&This->ref);
124 TRACE("(%p) ref = %lu\n", This, ref);
128 IOleClientSite_Release(This->client);
130 IOleInPlaceSite_Release(This->ipsite);
132 IOleInPlaceFrame_Release(This->frame);
133 HeapFree(GetProcessHeap(), 0, This);
139 static HRESULT WINAPI HTMLDocument_GetTypeInfoCount(IHTMLDocument2 *iface, UINT *pctinfo)
141 FIXME("(%p)->(%p)\n", iface, pctinfo);
145 static HRESULT WINAPI HTMLDocument_GetTypeInfo(IHTMLDocument2 *iface, UINT iTInfo,
146 LCID lcid, ITypeInfo **ppTInfo)
148 FIXME("(%p)->(%u %lu %p)\n", iface, iTInfo, lcid, ppTInfo);
152 static HRESULT WINAPI HTMLDocument_GetIDsOfNames(IHTMLDocument2 *iface, REFIID riid,
153 LPOLESTR *rgszNames, UINT cNames,
154 LCID lcid, DISPID *rgDispId)
156 FIXME("(%p)->(%s %p %u %lu %p)\n", iface, debugstr_guid(riid), rgszNames, cNames,
161 static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMember,
162 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
163 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
165 FIXME("(%p)->(%ld %s %ld %d %p %p %p %p)\n", iface, dispIdMember, debugstr_guid(riid),
166 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
170 static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch **p)
172 FIXME("(%p)->(%p)\n", iface, p);
176 static HRESULT WINAPI HTMLDocument_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p)
178 FIXME("(%p)->(%p)\n", iface, p);
182 static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement **p)
184 FIXME("(%p)->(%p)\n", iface, p);
188 static HRESULT WINAPI HTMLDocument_get_activeElement(IHTMLDocument2 *iface, IHTMLElement **p)
190 FIXME("(%p)->(%p)\n", iface, p);
194 static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElementCollection **p)
196 FIXME("(%p)->(%p)\n", iface, p);
200 static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLElementCollection **p)
202 FIXME("(%p)->(%p)\n", iface, p);
206 static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElementCollection **p)
208 FIXME("(%p)->(%p)\n", iface, p);
212 static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElementCollection **p)
214 FIXME("(%p)->(%p)\n", iface, p);
218 static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLElementCollection **p)
220 FIXME("(%p)->(%p)\n", iface, p);
224 static HRESULT WINAPI HTMLDocument_put_title(IHTMLDocument2 *iface, BSTR v)
226 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
230 static HRESULT WINAPI HTMLDocument_get_title(IHTMLDocument2 *iface, BSTR *p)
232 FIXME("(%p)->(%p)\n", iface, p);
236 static HRESULT WINAPI HTMLDocument_get_scripts(IHTMLDocument2 *iface, IHTMLElementCollection **p)
238 FIXME("(%p)->(%p)\n", iface, p);
242 static HRESULT WINAPI HTMLDocument_put_designMode(IHTMLDocument2 *iface, BSTR v)
244 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
248 static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p)
250 FIXME("(%p)->(%p)\n", iface, p);
254 static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSelectionObject **p)
256 FIXME("(%p)->(%p)\n", iface, p);
260 static HRESULT WINAPI HTMLDocument_get_readyState(IHTMLDocument2 *iface, BSTR *p)
262 FIXME("(%p)->(%p)\n", iface, p);
266 static HRESULT WINAPI HTMLDocument_get_frames(IHTMLDocument2 *iface, IHTMLFramesCollection2 **p)
268 FIXME("(%p)->(%p)\n", iface, p);
272 static HRESULT WINAPI HTMLDocument_get_embeds(IHTMLDocument2 *iface, IHTMLElementCollection **p)
274 FIXME("(%p)->(%p)\n", iface, p);
278 static HRESULT WINAPI HTMLDocument_get_plugins(IHTMLDocument2 *iface, IHTMLElementCollection **p)
280 FIXME("(%p)->(%p)\n", iface, p);
284 static HRESULT WINAPI HTMLDocument_put_alinkColor(IHTMLDocument2 *iface, VARIANT v)
286 FIXME("(%p)\n", iface);
290 static HRESULT WINAPI HTMLDocument_get_alinkColor(IHTMLDocument2 *iface, VARIANT *p)
292 FIXME("(%p)->(%p)\n", iface, p);
296 static HRESULT WINAPI HTMLDocument_put_bgColor(IHTMLDocument2 *iface, VARIANT v)
298 FIXME("(%p)\n", iface);
302 static HRESULT WINAPI HTMLDocument_get_bgColor(IHTMLDocument2 *iface, VARIANT *p)
304 FIXME("(%p)->(%p)\n", iface, p);
308 static HRESULT WINAPI HTMLDocument_put_fgColor(IHTMLDocument2 *iface, VARIANT v)
310 FIXME("(%p)\n", iface);
314 static HRESULT WINAPI HTMLDocument_get_fgColor(IHTMLDocument2 *iface, VARIANT *p)
316 FIXME("(%p)->(%p)\n", iface, p);
320 static HRESULT WINAPI HTMLDocument_put_linkColor(IHTMLDocument2 *iface, VARIANT v)
322 FIXME("(%p)->()\n", iface);
326 static HRESULT WINAPI HTMLDocument_get_linkColor(IHTMLDocument2 *iface, VARIANT *p)
328 FIXME("(%p)->(%p)\n", iface, p);
332 static HRESULT WINAPI HTMLDocument_put_vlinkColor(IHTMLDocument2 *iface, VARIANT v)
334 FIXME("(%p)\n", iface);
338 static HRESULT WINAPI HTMLDocument_get_vlinkColor(IHTMLDocument2 *iface, VARIANT *p)
340 FIXME("(%p)->(%p)\n", iface, p);
344 static HRESULT WINAPI HTMLDocument_get_referrer(IHTMLDocument2 *iface, BSTR *p)
346 FIXME("(%p)->(%p)\n", iface, p);
350 static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLocation **p)
352 FIXME("(%p)->(%p)\n", iface, p);
356 static HRESULT WINAPI HTMLDocument_get_lastModified(IHTMLDocument2 *iface, BSTR *p)
358 FIXME("(%p)->(%p)\n", iface, p);
362 static HRESULT WINAPI HTMLDocument_put_URL(IHTMLDocument2 *iface, BSTR v)
364 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
368 static HRESULT WINAPI HTMLDocument_get_URL(IHTMLDocument2 *iface, BSTR *p)
370 FIXME("(%p)->(%p)\n", iface, p);
374 static HRESULT WINAPI HTMLDocument_put_domain(IHTMLDocument2 *iface, BSTR v)
376 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
380 static HRESULT WINAPI HTMLDocument_get_domain(IHTMLDocument2 *iface, BSTR *p)
382 FIXME("(%p)->(%p)\n", iface, p);
386 static HRESULT WINAPI HTMLDocument_put_cookie(IHTMLDocument2 *iface, BSTR v)
388 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
392 static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p)
394 FIXME("(%p)->(%p)\n", iface, p);
398 static HRESULT WINAPI HTMLDocument_put_expando(IHTMLDocument2 *iface, VARIANT_BOOL v)
400 FIXME("(%p)->(%x)\n", iface, v);
404 static HRESULT WINAPI HTMLDocument_get_expando(IHTMLDocument2 *iface, VARIANT_BOOL *p)
406 FIXME("(%p)->(%p)\n", iface, p);
410 static HRESULT WINAPI HTMLDocument_put_charset(IHTMLDocument2 *iface, BSTR v)
412 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
416 static HRESULT WINAPI HTMLDocument_get_charset(IHTMLDocument2 *iface, BSTR *p)
418 FIXME("(%p)->(%p)\n", iface, p);
422 static HRESULT WINAPI HTMLDocument_put_defaultCharset(IHTMLDocument2 *iface, BSTR v)
424 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
428 static HRESULT WINAPI HTMLDocument_get_defaultCharset(IHTMLDocument2 *iface, BSTR *p)
430 FIXME("(%p)->(%p)\n", iface, p);
434 static HRESULT WINAPI HTMLDocument_get_mimeType(IHTMLDocument2 *iface, BSTR *p)
436 FIXME("(%p)->(%p)\n", iface, p);
440 static HRESULT WINAPI HTMLDocument_get_fileSize(IHTMLDocument2 *iface, BSTR *p)
442 FIXME("(%p)->(%p)\n", iface, p);
446 static HRESULT WINAPI HTMLDocument_get_fileCreatedDate(IHTMLDocument2 *iface, BSTR *p)
448 FIXME("(%p)->(%p)\n", iface, p);
452 static HRESULT WINAPI HTMLDocument_get_fileModifiedDate(IHTMLDocument2 *iface, BSTR *p)
454 FIXME("(%p)->(%p)\n", iface, p);
458 static HRESULT WINAPI HTMLDocument_get_fileUpdatedDate(IHTMLDocument2 *iface, BSTR *p)
460 FIXME("(%p)->(%p)\n", iface, p);
464 static HRESULT WINAPI HTMLDocument_get_security(IHTMLDocument2 *iface, BSTR *p)
466 FIXME("(%p)->(%p)\n", iface, p);
470 static HRESULT WINAPI HTMLDocument_get_protocol(IHTMLDocument2 *iface, BSTR *p)
472 FIXME("(%p)->(%p)\n", iface, p);
476 static HRESULT WINAPI HTMLDocument_get_nameProp(IHTMLDocument2 *iface, BSTR *p)
478 FIXME("(%p)->(%p)\n", iface, p);
482 static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarray)
484 FIXME("(%p)->(%p)\n", iface, psarray);
488 static HRESULT WINAPI HTMLDocument_writeln(IHTMLDocument2 *iface, SAFEARRAY *psarray)
490 FIXME("(%p)->(%p)\n", iface, psarray);
494 static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT name,
495 VARIANT features, VARIANT replace, IDispatch **pomWindowResult)
497 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(url), pomWindowResult);
501 static HRESULT WINAPI HTMLDocument_close(IHTMLDocument2 *iface)
503 FIXME("(%p)\n", iface);
507 static HRESULT WINAPI HTMLDocument_clear(IHTMLDocument2 *iface)
509 FIXME("(%p)\n", iface);
513 static HRESULT WINAPI HTMLDocument_queryCommandSupported(IHTMLDocument2 *iface, BSTR cmdID,
516 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
520 static HRESULT WINAPI HTMLDocument_queryCommandEnabled(IHTMLDocument2 *iface, BSTR cmdID,
523 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
527 static HRESULT WINAPI HTMLDocument_queryCommandState(IHTMLDocument2 *iface, BSTR cmdID,
530 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
534 static HRESULT WINAPI HTMLDocument_queryCommandIndeterm(IHTMLDocument2 *iface, BSTR cmdID,
537 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
541 static HRESULT WINAPI HTMLDocument_queryCommandText(IHTMLDocument2 *iface, BSTR cmdID,
544 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
548 static HRESULT WINAPI HTMLDocument_queryCommandValue(IHTMLDocument2 *iface, BSTR cmdID,
551 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
555 static HRESULT WINAPI HTMLDocument_execCommand(IHTMLDocument2 *iface, BSTR cmdID,
556 VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet)
558 FIXME("(%p)->(%s %x %p)\n", iface, debugstr_w(cmdID), showUI, pfRet);
562 static HRESULT WINAPI HTMLDocument_execCommandShowHelp(IHTMLDocument2 *iface, BSTR cmdID,
565 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
569 static HRESULT WINAPI HTMLDocument_createElement(IHTMLDocument2 *iface, BSTR eTag,
570 IHTMLElement **newElem)
572 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(eTag), newElem);
576 static HRESULT WINAPI HTMLDocument_put_onhelp(IHTMLDocument2 *iface, VARIANT v)
578 FIXME("(%p)\n", iface);
582 static HRESULT WINAPI HTMLDocument_get_onhelp(IHTMLDocument2 *iface, VARIANT *p)
584 FIXME("(%p)->(%p)\n", iface, p);
588 static HRESULT WINAPI HTMLDocument_put_onclick(IHTMLDocument2 *iface, VARIANT v)
590 FIXME("(%p)\n", iface);
594 static HRESULT WINAPI HTMLDocument_get_onclick(IHTMLDocument2 *iface, VARIANT *p)
596 FIXME("(%p)->(%p)\n", iface, p);
600 static HRESULT WINAPI HTMLDocument_put_ondblclick(IHTMLDocument2 *iface, VARIANT v)
602 FIXME("(%p)\n", iface);
606 static HRESULT WINAPI HTMLDocument_get_ondblclick(IHTMLDocument2 *iface, VARIANT *p)
608 FIXME("(%p)->(%p)\n", iface, p);
612 static HRESULT WINAPI HTMLDocument_put_onkeyup(IHTMLDocument2 *iface, VARIANT v)
614 FIXME("(%p)\n", iface);
618 static HRESULT WINAPI HTMLDocument_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p)
620 FIXME("(%p)->(%p)\n", iface, p);
624 static HRESULT WINAPI HTMLDocument_put_onkeydown(IHTMLDocument2 *iface, VARIANT v)
626 FIXME("(%p)\n", iface);
630 static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT *p)
632 FIXME("(%p)->(%p)\n", iface, p);
636 static HRESULT WINAPI HTMLDocument_put_onkeypress(IHTMLDocument2 *iface, VARIANT v)
638 FIXME("(%p)\n", iface);
642 static HRESULT WINAPI HTMLDocument_get_onkeypress(IHTMLDocument2 *iface, VARIANT *p)
644 FIXME("(%p)->(%p)\n", iface, p);
648 static HRESULT WINAPI HTMLDocument_put_onmouseup(IHTMLDocument2 *iface, VARIANT v)
650 FIXME("(%p)\n", iface);
654 static HRESULT WINAPI HTMLDocument_get_onmouseup(IHTMLDocument2 *iface, VARIANT *p)
656 FIXME("(%p)->(%p)\n", iface, p);
660 static HRESULT WINAPI HTMLDocument_put_onmousedown(IHTMLDocument2 *iface, VARIANT v)
662 FIXME("(%p)\n", iface);
666 static HRESULT WINAPI HTMLDocument_get_onmousedown(IHTMLDocument2 *iface, VARIANT *p)
668 FIXME("(%p)->(%p)\n", iface, p);
672 static HRESULT WINAPI HTMLDocument_put_onmousemove(IHTMLDocument2 *iface, VARIANT v)
674 FIXME("(%p)\n", iface);
678 static HRESULT WINAPI HTMLDocument_get_onmousemove(IHTMLDocument2 *iface, VARIANT *p)
680 FIXME("(%p)->(%p)\n", iface, p);
684 static HRESULT WINAPI HTMLDocument_put_onmouseout(IHTMLDocument2 *iface, VARIANT v)
686 FIXME("(%p)\n", iface);
690 static HRESULT WINAPI HTMLDocument_get_onmouseout(IHTMLDocument2 *iface, VARIANT *p)
692 FIXME("(%p)->(%p)\n", iface, p);
696 static HRESULT WINAPI HTMLDocument_put_onmouseover(IHTMLDocument2 *iface, VARIANT v)
698 FIXME("(%p)\n", iface);
702 static HRESULT WINAPI HTMLDocument_get_onmouseover(IHTMLDocument2 *iface, VARIANT *p)
704 FIXME("(%p)->(%p)\n", iface, p);
708 static HRESULT WINAPI HTMLDocument_put_onreadystatechange(IHTMLDocument2 *iface, VARIANT v)
710 FIXME("(%p)\n", iface);
714 static HRESULT WINAPI HTMLDocument_get_onreadystatechange(IHTMLDocument2 *iface, VARIANT *p)
716 FIXME("(%p)->(%p)\n", iface, p);
720 static HRESULT WINAPI HTMLDocument_put_onafterupdate(IHTMLDocument2 *iface, VARIANT v)
722 FIXME("(%p)\n", iface);
726 static HRESULT WINAPI HTMLDocument_get_onafterupdate(IHTMLDocument2 *iface, VARIANT *p)
728 FIXME("(%p)->(%p)\n", iface, p);
732 static HRESULT WINAPI HTMLDocument_put_onrowexit(IHTMLDocument2 *iface, VARIANT v)
734 FIXME("(%p)\n", iface);
738 static HRESULT WINAPI HTMLDocument_get_onrowexit(IHTMLDocument2 *iface, VARIANT *p)
740 FIXME("(%p)->(%p)\n", iface, p);
744 static HRESULT WINAPI HTMLDocument_put_onrowenter(IHTMLDocument2 *iface, VARIANT v)
746 FIXME("(%p)\n", iface);
750 static HRESULT WINAPI HTMLDocument_get_onrowenter(IHTMLDocument2 *iface, VARIANT *p)
752 FIXME("(%p)->(%p)\n", iface, p);
756 static HRESULT WINAPI HTMLDocument_put_ondragstart(IHTMLDocument2 *iface, VARIANT v)
758 FIXME("(%p)\n", iface);
762 static HRESULT WINAPI HTMLDocument_get_ondragstart(IHTMLDocument2 *iface, VARIANT *p)
764 FIXME("(%p)->(%p)\n", iface, p);
768 static HRESULT WINAPI HTMLDocument_put_onselectstart(IHTMLDocument2 *iface, VARIANT v)
770 FIXME("(%p)\n", iface);
774 static HRESULT WINAPI HTMLDocument_get_onselectstart(IHTMLDocument2 *iface, VARIANT *p)
776 FIXME("(%p)->(%p)\n", iface, p);
780 static HRESULT WINAPI HTMLDocument_elementFromPoint(IHTMLDocument2 *iface, long x, long y,
781 IHTMLElement **elementHit)
783 FIXME("(%p)->(%ld %ld %p)\n", iface, x, y, elementHit);
787 static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTMLWindow2 **p)
789 FIXME("(%p)->(%p)\n", iface, p);
793 static HRESULT WINAPI HTMLDocument_get_styleSheets(IHTMLDocument2 *iface,
794 IHTMLStyleSheetsCollection **p)
796 FIXME("(%p)->(%p)\n", iface, p);
800 static HRESULT WINAPI HTMLDocument_put_onbeforeupdate(IHTMLDocument2 *iface, VARIANT v)
802 FIXME("(%p)\n", iface);
806 static HRESULT WINAPI HTMLDocument_get_onbeforeupdate(IHTMLDocument2 *iface, VARIANT *p)
808 FIXME("(%p)->(%p)\n", iface, p);
812 static HRESULT WINAPI HTMLDocument_put_onerrorupdate(IHTMLDocument2 *iface, VARIANT v)
814 FIXME("(%p)\n", iface);
818 static HRESULT WINAPI HTMLDocument_get_onerrorupdate(IHTMLDocument2 *iface, VARIANT *p)
820 FIXME("(%p)->(%p)\n", iface, p);
824 static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String)
826 FIXME("(%p)->(%p)\n", iface, String);
830 static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref,
831 long lIndex, IHTMLStyleSheet **ppnewStyleSheet)
833 FIXME("(%p)->(%s %ld %p)\n", iface, debugstr_w(bstrHref), lIndex, ppnewStyleSheet);
837 static const IHTMLDocument2Vtbl HTMLDocumentVtbl = {
838 HTMLDocument_QueryInterface,
840 HTMLDocument_Release,
841 HTMLDocument_GetTypeInfoCount,
842 HTMLDocument_GetTypeInfo,
843 HTMLDocument_GetIDsOfNames,
845 HTMLDocument_get_Script,
846 HTMLDocument_get_all,
847 HTMLDocument_get_body,
848 HTMLDocument_get_activeElement,
849 HTMLDocument_get_images,
850 HTMLDocument_get_applets,
851 HTMLDocument_get_links,
852 HTMLDocument_get_forms,
853 HTMLDocument_get_anchors,
854 HTMLDocument_put_title,
855 HTMLDocument_get_title,
856 HTMLDocument_get_scripts,
857 HTMLDocument_put_designMode,
858 HTMLDocument_get_designMode,
859 HTMLDocument_get_selection,
860 HTMLDocument_get_readyState,
861 HTMLDocument_get_frames,
862 HTMLDocument_get_embeds,
863 HTMLDocument_get_plugins,
864 HTMLDocument_put_alinkColor,
865 HTMLDocument_get_alinkColor,
866 HTMLDocument_put_bgColor,
867 HTMLDocument_get_bgColor,
868 HTMLDocument_put_fgColor,
869 HTMLDocument_get_fgColor,
870 HTMLDocument_put_linkColor,
871 HTMLDocument_get_linkColor,
872 HTMLDocument_put_vlinkColor,
873 HTMLDocument_get_vlinkColor,
874 HTMLDocument_get_referrer,
875 HTMLDocument_get_location,
876 HTMLDocument_get_lastModified,
877 HTMLDocument_put_URL,
878 HTMLDocument_get_URL,
879 HTMLDocument_put_domain,
880 HTMLDocument_get_domain,
881 HTMLDocument_put_cookie,
882 HTMLDocument_get_cookie,
883 HTMLDocument_put_expando,
884 HTMLDocument_get_expando,
885 HTMLDocument_put_charset,
886 HTMLDocument_get_charset,
887 HTMLDocument_put_defaultCharset,
888 HTMLDocument_get_defaultCharset,
889 HTMLDocument_get_mimeType,
890 HTMLDocument_get_fileSize,
891 HTMLDocument_get_fileCreatedDate,
892 HTMLDocument_get_fileModifiedDate,
893 HTMLDocument_get_fileUpdatedDate,
894 HTMLDocument_get_security,
895 HTMLDocument_get_protocol,
896 HTMLDocument_get_nameProp,
898 HTMLDocument_writeln,
902 HTMLDocument_queryCommandSupported,
903 HTMLDocument_queryCommandEnabled,
904 HTMLDocument_queryCommandState,
905 HTMLDocument_queryCommandIndeterm,
906 HTMLDocument_queryCommandText,
907 HTMLDocument_queryCommandValue,
908 HTMLDocument_execCommand,
909 HTMLDocument_execCommandShowHelp,
910 HTMLDocument_createElement,
911 HTMLDocument_put_onhelp,
912 HTMLDocument_get_onhelp,
913 HTMLDocument_put_onclick,
914 HTMLDocument_get_onclick,
915 HTMLDocument_put_ondblclick,
916 HTMLDocument_get_ondblclick,
917 HTMLDocument_put_onkeyup,
918 HTMLDocument_get_onkeyup,
919 HTMLDocument_put_onkeydown,
920 HTMLDocument_get_onkeydown,
921 HTMLDocument_put_onkeypress,
922 HTMLDocument_get_onkeypress,
923 HTMLDocument_put_onmouseup,
924 HTMLDocument_get_onmouseup,
925 HTMLDocument_put_onmousedown,
926 HTMLDocument_get_onmousedown,
927 HTMLDocument_put_onmousemove,
928 HTMLDocument_get_onmousemove,
929 HTMLDocument_put_onmouseout,
930 HTMLDocument_get_onmouseout,
931 HTMLDocument_put_onmouseover,
932 HTMLDocument_get_onmouseover,
933 HTMLDocument_put_onreadystatechange,
934 HTMLDocument_get_onreadystatechange,
935 HTMLDocument_put_onafterupdate,
936 HTMLDocument_get_onafterupdate,
937 HTMLDocument_put_onrowexit,
938 HTMLDocument_get_onrowexit,
939 HTMLDocument_put_onrowenter,
940 HTMLDocument_get_onrowenter,
941 HTMLDocument_put_ondragstart,
942 HTMLDocument_get_ondragstart,
943 HTMLDocument_put_onselectstart,
944 HTMLDocument_get_onselectstart,
945 HTMLDocument_elementFromPoint,
946 HTMLDocument_get_parentWindow,
947 HTMLDocument_get_styleSheets,
948 HTMLDocument_put_onbeforeupdate,
949 HTMLDocument_get_onbeforeupdate,
950 HTMLDocument_put_onerrorupdate,
951 HTMLDocument_get_onerrorupdate,
952 HTMLDocument_toString,
953 HTMLDocument_createStyleSheet
956 HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
961 TRACE("(%p %s %p)\n", pUnkOuter, debugstr_guid(riid), ppvObject);
963 ret = HeapAlloc(GetProcessHeap(), 0, sizeof(HTMLDocument));
964 ret->lpHTMLDocument2Vtbl = &HTMLDocumentVtbl;
967 hres = IHTMLDocument_QueryInterface(HTMLDOC(ret), riid, ppvObject);
969 HeapFree(GetProcessHeap(), 0, ret);
971 HTMLDocument_Persist_Init(ret);
972 HTMLDocument_OleObj_Init(ret);
973 HTMLDocument_View_Init(ret);
974 HTMLDocument_Window_Init(ret);
975 HTMLDocument_Service_Init(ret);