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_IDocument2, %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);
79 IHTMLDocument2_AddRef(iface);
83 FIXME("(%p)->(%s %p) interface not supported\n", This, debugstr_guid(riid), ppvObject);
87 static ULONG WINAPI HTMLDocument_AddRef(IHTMLDocument2 *iface)
89 HTMLDocument *This = (HTMLDocument*)iface;
90 ULONG ref = InterlockedIncrement(&This->ref);
91 TRACE("(%p) ref = %lu\n", This, ref);
95 static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface)
97 HTMLDocument *This = (HTMLDocument*)iface;
98 ULONG ref = InterlockedDecrement(&This->ref);
100 TRACE("(%p) ref = %lu\n", This, ref);
103 HeapFree(GetProcessHeap(), 0, This);
108 static HRESULT WINAPI HTMLDocument_GetTypeInfoCount(IHTMLDocument2 *iface, UINT *pctinfo)
110 FIXME("(%p)->(%p)\n", iface, pctinfo);
114 static HRESULT WINAPI HTMLDocument_GetTypeInfo(IHTMLDocument2 *iface, UINT iTInfo,
115 LCID lcid, ITypeInfo **ppTInfo)
117 FIXME("(%p)->(%u %lu %p)\n", iface, iTInfo, lcid, ppTInfo);
121 static HRESULT WINAPI HTMLDocument_GetIDsOfNames(IHTMLDocument2 *iface, REFIID riid,
122 LPOLESTR *rgszNames, UINT cNames,
123 LCID lcid, DISPID *rgDispId)
125 FIXME("(%p)->(%s %p %u %lu %p)\n", iface, debugstr_guid(riid), rgszNames, cNames,
130 static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMember,
131 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
132 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
134 FIXME("(%p)->(%ld %s %ld %d %p %p %p %p)\n", iface, dispIdMember, debugstr_guid(riid),
135 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
139 static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch **p)
141 FIXME("(%p)->(%p)\n", iface, p);
145 static HRESULT WINAPI HTMLDocument_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p)
147 FIXME("(%p)->(%p)\n", iface, p);
151 static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement **p)
153 FIXME("(%p)->(%p)\n", iface, p);
157 static HRESULT WINAPI HTMLDocument_get_activeElement(IHTMLDocument2 *iface, IHTMLElement **p)
159 FIXME("(%p)->(%p)\n", iface, p);
163 static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElementCollection **p)
165 FIXME("(%p)->(%p)\n", iface, p);
169 static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLElementCollection **p)
171 FIXME("(%p)->(%p)\n", iface, p);
175 static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElementCollection **p)
177 FIXME("(%p)->(%p)\n", iface, p);
181 static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElementCollection **p)
183 FIXME("(%p)->(%p)\n", iface, p);
187 static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLElementCollection **p)
189 FIXME("(%p)->(%p)\n", iface, p);
193 static HRESULT WINAPI HTMLDocument_put_title(IHTMLDocument2 *iface, BSTR v)
195 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
199 static HRESULT WINAPI HTMLDocument_get_title(IHTMLDocument2 *iface, BSTR *p)
201 FIXME("(%p)->(%p)\n", iface, p);
205 static HRESULT WINAPI HTMLDocument_get_scripts(IHTMLDocument2 *iface, IHTMLElementCollection **p)
207 FIXME("(%p)->(%p)\n", iface, p);
211 static HRESULT WINAPI HTMLDocument_put_designMode(IHTMLDocument2 *iface, BSTR v)
213 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
217 static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p)
219 FIXME("(%p)->(%p)\n", iface, p);
223 static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSelectionObject **p)
225 FIXME("(%p)->(%p)\n", iface, p);
229 static HRESULT WINAPI HTMLDocument_get_readyState(IHTMLDocument2 *iface, BSTR *p)
231 FIXME("(%p)->(%p)\n", iface, p);
235 static HRESULT WINAPI HTMLDocument_get_frames(IHTMLDocument2 *iface, IHTMLFramesCollection2 **p)
237 FIXME("(%p)->(%p)\n", iface, p);
241 static HRESULT WINAPI HTMLDocument_get_embeds(IHTMLDocument2 *iface, IHTMLElementCollection **p)
243 FIXME("(%p)->(%p)\n", iface, p);
247 static HRESULT WINAPI HTMLDocument_get_plugins(IHTMLDocument2 *iface, IHTMLElementCollection **p)
249 FIXME("(%p)->(%p)\n", iface, p);
253 static HRESULT WINAPI HTMLDocument_put_alinkColor(IHTMLDocument2 *iface, VARIANT v)
255 FIXME("(%p)\n", iface);
259 static HRESULT WINAPI HTMLDocument_get_alinkColor(IHTMLDocument2 *iface, VARIANT *p)
261 FIXME("(%p)->(%p)\n", iface, p);
265 static HRESULT WINAPI HTMLDocument_put_bgColor(IHTMLDocument2 *iface, VARIANT v)
267 FIXME("(%p)\n", iface);
271 static HRESULT WINAPI HTMLDocument_get_bgColor(IHTMLDocument2 *iface, VARIANT *p)
273 FIXME("(%p)->(%p)\n", iface, p);
277 static HRESULT WINAPI HTMLDocument_put_fgColor(IHTMLDocument2 *iface, VARIANT v)
279 FIXME("(%p)\n", iface);
283 static HRESULT WINAPI HTMLDocument_get_fgColor(IHTMLDocument2 *iface, VARIANT *p)
285 FIXME("(%p)->(%p)\n", iface, p);
289 static HRESULT WINAPI HTMLDocument_put_linkColor(IHTMLDocument2 *iface, VARIANT v)
291 FIXME("(%p)->()\n", iface);
295 static HRESULT WINAPI HTMLDocument_get_linkColor(IHTMLDocument2 *iface, VARIANT *p)
297 FIXME("(%p)->(%p)\n", iface, p);
301 static HRESULT WINAPI HTMLDocument_put_vlinkColor(IHTMLDocument2 *iface, VARIANT v)
303 FIXME("(%p)\n", iface);
307 static HRESULT WINAPI HTMLDocument_get_vlinkColor(IHTMLDocument2 *iface, VARIANT *p)
309 FIXME("(%p)->(%p)\n", iface, p);
313 static HRESULT WINAPI HTMLDocument_get_referrer(IHTMLDocument2 *iface, BSTR *p)
315 FIXME("(%p)->(%p)\n", iface, p);
319 static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLocation **p)
321 FIXME("(%p)->(%p)\n", iface, p);
325 static HRESULT WINAPI HTMLDocument_get_lastModified(IHTMLDocument2 *iface, BSTR *p)
327 FIXME("(%p)->(%p)\n", iface, p);
331 static HRESULT WINAPI HTMLDocument_put_URL(IHTMLDocument2 *iface, BSTR v)
333 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
337 static HRESULT WINAPI HTMLDocument_get_URL(IHTMLDocument2 *iface, BSTR *p)
339 FIXME("(%p)->(%p)\n", iface, p);
343 static HRESULT WINAPI HTMLDocument_put_domain(IHTMLDocument2 *iface, BSTR v)
345 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
349 static HRESULT WINAPI HTMLDocument_get_domain(IHTMLDocument2 *iface, BSTR *p)
351 FIXME("(%p)->(%p)\n", iface, p);
355 static HRESULT WINAPI HTMLDocument_put_cookie(IHTMLDocument2 *iface, BSTR v)
357 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
361 static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p)
363 FIXME("(%p)->(%p)\n", iface, p);
367 static HRESULT WINAPI HTMLDocument_put_expando(IHTMLDocument2 *iface, VARIANT_BOOL v)
369 FIXME("(%p)->(%x)\n", iface, v);
373 static HRESULT WINAPI HTMLDocument_get_expando(IHTMLDocument2 *iface, VARIANT_BOOL *p)
375 FIXME("(%p)->(%p)\n", iface, p);
379 static HRESULT WINAPI HTMLDocument_put_charset(IHTMLDocument2 *iface, BSTR v)
381 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
385 static HRESULT WINAPI HTMLDocument_get_charset(IHTMLDocument2 *iface, BSTR *p)
387 FIXME("(%p)->(%p)\n", iface, p);
391 static HRESULT WINAPI HTMLDocument_put_defaultCharset(IHTMLDocument2 *iface, BSTR v)
393 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
397 static HRESULT WINAPI HTMLDocument_get_defaultCharset(IHTMLDocument2 *iface, BSTR *p)
399 FIXME("(%p)->(%p)\n", iface, p);
403 static HRESULT WINAPI HTMLDocument_get_mimeType(IHTMLDocument2 *iface, BSTR *p)
405 FIXME("(%p)->(%p)\n", iface, p);
409 static HRESULT WINAPI HTMLDocument_get_fileSize(IHTMLDocument2 *iface, BSTR *p)
411 FIXME("(%p)->(%p)\n", iface, p);
415 static HRESULT WINAPI HTMLDocument_get_fileCreatedDate(IHTMLDocument2 *iface, BSTR *p)
417 FIXME("(%p)->(%p)\n", iface, p);
421 static HRESULT WINAPI HTMLDocument_get_fileModifiedDate(IHTMLDocument2 *iface, BSTR *p)
423 FIXME("(%p)->(%p)\n", iface, p);
427 static HRESULT WINAPI HTMLDocument_get_fileUpdatedDate(IHTMLDocument2 *iface, BSTR *p)
429 FIXME("(%p)->(%p)\n", iface, p);
433 static HRESULT WINAPI HTMLDocument_get_security(IHTMLDocument2 *iface, BSTR *p)
435 FIXME("(%p)->(%p)\n", iface, p);
439 static HRESULT WINAPI HTMLDocument_get_protocol(IHTMLDocument2 *iface, BSTR *p)
441 FIXME("(%p)->(%p)\n", iface, p);
445 static HRESULT WINAPI HTMLDocument_get_nameProp(IHTMLDocument2 *iface, BSTR *p)
447 FIXME("(%p)->(%p)\n", iface, p);
451 static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarray)
453 FIXME("(%p)->(%p)\n", iface, psarray);
457 static HRESULT WINAPI HTMLDocument_writeln(IHTMLDocument2 *iface, SAFEARRAY *psarray)
459 FIXME("(%p)->(%p)\n", iface, psarray);
463 static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT name,
464 VARIANT features, VARIANT replace, IDispatch **pomWindowResult)
466 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(url), pomWindowResult);
470 static HRESULT WINAPI HTMLDocument_close(IHTMLDocument2 *iface)
472 FIXME("(%p)\n", iface);
476 static HRESULT WINAPI HTMLDocument_clear(IHTMLDocument2 *iface)
478 FIXME("(%p)\n", iface);
482 static HRESULT WINAPI HTMLDocument_queryCommandSupported(IHTMLDocument2 *iface, BSTR cmdID,
485 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
489 static HRESULT WINAPI HTMLDocument_queryCommandEnabled(IHTMLDocument2 *iface, BSTR cmdID,
492 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
496 static HRESULT WINAPI HTMLDocument_queryCommandState(IHTMLDocument2 *iface, BSTR cmdID,
499 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
503 static HRESULT WINAPI HTMLDocument_queryCommandIndeterm(IHTMLDocument2 *iface, BSTR cmdID,
506 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
510 static HRESULT WINAPI HTMLDocument_queryCommandText(IHTMLDocument2 *iface, BSTR cmdID,
513 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
517 static HRESULT WINAPI HTMLDocument_queryCommandValue(IHTMLDocument2 *iface, BSTR cmdID,
520 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
524 static HRESULT WINAPI HTMLDocument_execCommand(IHTMLDocument2 *iface, BSTR cmdID,
525 VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet)
527 FIXME("(%p)->(%s %x %p)\n", iface, debugstr_w(cmdID), showUI, pfRet);
531 static HRESULT WINAPI HTMLDocument_execCommandShowHelp(IHTMLDocument2 *iface, BSTR cmdID,
534 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
538 static HRESULT WINAPI HTMLDocument_createElement(IHTMLDocument2 *iface, BSTR eTag,
539 IHTMLElement **newElem)
541 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(eTag), newElem);
545 static HRESULT WINAPI HTMLDocument_put_onhelp(IHTMLDocument2 *iface, VARIANT v)
547 FIXME("(%p)\n", iface);
551 static HRESULT WINAPI HTMLDocument_get_onhelp(IHTMLDocument2 *iface, VARIANT *p)
553 FIXME("(%p)->(%p)\n", iface, p);
557 static HRESULT WINAPI HTMLDocument_put_onclick(IHTMLDocument2 *iface, VARIANT v)
559 FIXME("(%p)\n", iface);
563 static HRESULT WINAPI HTMLDocument_get_onclick(IHTMLDocument2 *iface, VARIANT *p)
565 FIXME("(%p)->(%p)\n", iface, p);
569 static HRESULT WINAPI HTMLDocument_put_ondblclick(IHTMLDocument2 *iface, VARIANT v)
571 FIXME("(%p)\n", iface);
575 static HRESULT WINAPI HTMLDocument_get_ondblclick(IHTMLDocument2 *iface, VARIANT *p)
577 FIXME("(%p)->(%p)\n", iface, p);
581 static HRESULT WINAPI HTMLDocument_put_onkeyup(IHTMLDocument2 *iface, VARIANT v)
583 FIXME("(%p)\n", iface);
587 static HRESULT WINAPI HTMLDocument_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p)
589 FIXME("(%p)->(%p)\n", iface, p);
593 static HRESULT WINAPI HTMLDocument_put_onkeydown(IHTMLDocument2 *iface, VARIANT v)
595 FIXME("(%p)\n", iface);
599 static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT *p)
601 FIXME("(%p)->(%p)\n", iface, p);
605 static HRESULT WINAPI HTMLDocument_put_onkeypress(IHTMLDocument2 *iface, VARIANT v)
607 FIXME("(%p)\n", iface);
611 static HRESULT WINAPI HTMLDocument_get_onkeypress(IHTMLDocument2 *iface, VARIANT *p)
613 FIXME("(%p)->(%p)\n", iface, p);
617 static HRESULT WINAPI HTMLDocument_put_onmouseup(IHTMLDocument2 *iface, VARIANT v)
619 FIXME("(%p)\n", iface);
623 static HRESULT WINAPI HTMLDocument_get_onmouseup(IHTMLDocument2 *iface, VARIANT *p)
625 FIXME("(%p)->(%p)\n", iface, p);
629 static HRESULT WINAPI HTMLDocument_put_onmousedown(IHTMLDocument2 *iface, VARIANT v)
631 FIXME("(%p)\n", iface);
635 static HRESULT WINAPI HTMLDocument_get_onmousedown(IHTMLDocument2 *iface, VARIANT *p)
637 FIXME("(%p)->(%p)\n", iface, p);
641 static HRESULT WINAPI HTMLDocument_put_onmousemove(IHTMLDocument2 *iface, VARIANT v)
643 FIXME("(%p)\n", iface);
647 static HRESULT WINAPI HTMLDocument_get_onmousemove(IHTMLDocument2 *iface, VARIANT *p)
649 FIXME("(%p)->(%p)\n", iface, p);
653 static HRESULT WINAPI HTMLDocument_put_onmouseout(IHTMLDocument2 *iface, VARIANT v)
655 FIXME("(%p)\n", iface);
659 static HRESULT WINAPI HTMLDocument_get_onmouseout(IHTMLDocument2 *iface, VARIANT *p)
661 FIXME("(%p)->(%p)\n", iface, p);
665 static HRESULT WINAPI HTMLDocument_put_onmouseover(IHTMLDocument2 *iface, VARIANT v)
667 FIXME("(%p)\n", iface);
671 static HRESULT WINAPI HTMLDocument_get_onmouseover(IHTMLDocument2 *iface, VARIANT *p)
673 FIXME("(%p)->(%p)\n", iface, p);
677 static HRESULT WINAPI HTMLDocument_put_onreadystatechange(IHTMLDocument2 *iface, VARIANT v)
679 FIXME("(%p)\n", iface);
683 static HRESULT WINAPI HTMLDocument_get_onreadystatechange(IHTMLDocument2 *iface, VARIANT *p)
685 FIXME("(%p)->(%p)\n", iface, p);
689 static HRESULT WINAPI HTMLDocument_put_onafterupdate(IHTMLDocument2 *iface, VARIANT v)
691 FIXME("(%p)\n", iface);
695 static HRESULT WINAPI HTMLDocument_get_onafterupdate(IHTMLDocument2 *iface, VARIANT *p)
697 FIXME("(%p)->(%p)\n", iface, p);
701 static HRESULT WINAPI HTMLDocument_put_onrowexit(IHTMLDocument2 *iface, VARIANT v)
703 FIXME("(%p)\n", iface);
707 static HRESULT WINAPI HTMLDocument_get_onrowexit(IHTMLDocument2 *iface, VARIANT *p)
709 FIXME("(%p)->(%p)\n", iface, p);
713 static HRESULT WINAPI HTMLDocument_put_onrowenter(IHTMLDocument2 *iface, VARIANT v)
715 FIXME("(%p)\n", iface);
719 static HRESULT WINAPI HTMLDocument_get_onrowenter(IHTMLDocument2 *iface, VARIANT *p)
721 FIXME("(%p)->(%p)\n", iface, p);
725 static HRESULT WINAPI HTMLDocument_put_ondragstart(IHTMLDocument2 *iface, VARIANT v)
727 FIXME("(%p)\n", iface);
731 static HRESULT WINAPI HTMLDocument_get_ondragstart(IHTMLDocument2 *iface, VARIANT *p)
733 FIXME("(%p)->(%p)\n", iface, p);
737 static HRESULT WINAPI HTMLDocument_put_onselectstart(IHTMLDocument2 *iface, VARIANT v)
739 FIXME("(%p)\n", iface);
743 static HRESULT WINAPI HTMLDocument_get_onselectstart(IHTMLDocument2 *iface, VARIANT *p)
745 FIXME("(%p)->(%p)\n", iface, p);
749 static HRESULT WINAPI HTMLDocument_elementFromPoint(IHTMLDocument2 *iface, long x, long y,
750 IHTMLElement **elementHit)
752 FIXME("(%p)->(%ld %ld %p)\n", iface, x, y, elementHit);
756 static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTMLWindow2 **p)
758 FIXME("(%p)->(%p)\n", iface, p);
762 static HRESULT WINAPI HTMLDocument_get_styleSheets(IHTMLDocument2 *iface,
763 IHTMLStyleSheetsCollection **p)
765 FIXME("(%p)->(%p)\n", iface, p);
769 static HRESULT WINAPI HTMLDocument_put_onbeforeupdate(IHTMLDocument2 *iface, VARIANT v)
771 FIXME("(%p)\n", iface);
775 static HRESULT WINAPI HTMLDocument_get_onbeforeupdate(IHTMLDocument2 *iface, VARIANT *p)
777 FIXME("(%p)->(%p)\n", iface, p);
781 static HRESULT WINAPI HTMLDocument_put_onerrorupdate(IHTMLDocument2 *iface, VARIANT v)
783 FIXME("(%p)\n", iface);
787 static HRESULT WINAPI HTMLDocument_get_onerrorupdate(IHTMLDocument2 *iface, VARIANT *p)
789 FIXME("(%p)->(%p)\n", iface, p);
793 static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String)
795 FIXME("(%p)->(%p)\n", iface, String);
799 static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref,
800 long lIndex, IHTMLStyleSheet **ppnewStyleSheet)
802 FIXME("(%p)->(%s %ld %p)\n", iface, debugstr_w(bstrHref), lIndex, ppnewStyleSheet);
806 static IHTMLDocument2Vtbl HTMLDocumentVtbl = {
807 HTMLDocument_QueryInterface,
809 HTMLDocument_Release,
810 HTMLDocument_GetTypeInfoCount,
811 HTMLDocument_GetTypeInfo,
812 HTMLDocument_GetIDsOfNames,
814 HTMLDocument_get_Script,
815 HTMLDocument_get_all,
816 HTMLDocument_get_body,
817 HTMLDocument_get_activeElement,
818 HTMLDocument_get_images,
819 HTMLDocument_get_applets,
820 HTMLDocument_get_links,
821 HTMLDocument_get_forms,
822 HTMLDocument_get_anchors,
823 HTMLDocument_put_title,
824 HTMLDocument_get_title,
825 HTMLDocument_get_scripts,
826 HTMLDocument_put_designMode,
827 HTMLDocument_get_designMode,
828 HTMLDocument_get_selection,
829 HTMLDocument_get_readyState,
830 HTMLDocument_get_frames,
831 HTMLDocument_get_embeds,
832 HTMLDocument_get_plugins,
833 HTMLDocument_put_alinkColor,
834 HTMLDocument_get_alinkColor,
835 HTMLDocument_put_bgColor,
836 HTMLDocument_get_bgColor,
837 HTMLDocument_put_fgColor,
838 HTMLDocument_get_fgColor,
839 HTMLDocument_put_linkColor,
840 HTMLDocument_get_linkColor,
841 HTMLDocument_put_vlinkColor,
842 HTMLDocument_get_vlinkColor,
843 HTMLDocument_get_referrer,
844 HTMLDocument_get_location,
845 HTMLDocument_get_lastModified,
846 HTMLDocument_put_URL,
847 HTMLDocument_get_URL,
848 HTMLDocument_put_domain,
849 HTMLDocument_get_domain,
850 HTMLDocument_put_cookie,
851 HTMLDocument_get_cookie,
852 HTMLDocument_put_expando,
853 HTMLDocument_get_expando,
854 HTMLDocument_put_charset,
855 HTMLDocument_get_charset,
856 HTMLDocument_put_defaultCharset,
857 HTMLDocument_get_defaultCharset,
858 HTMLDocument_get_mimeType,
859 HTMLDocument_get_fileSize,
860 HTMLDocument_get_fileCreatedDate,
861 HTMLDocument_get_fileModifiedDate,
862 HTMLDocument_get_fileUpdatedDate,
863 HTMLDocument_get_security,
864 HTMLDocument_get_protocol,
865 HTMLDocument_get_nameProp,
867 HTMLDocument_writeln,
871 HTMLDocument_queryCommandSupported,
872 HTMLDocument_queryCommandEnabled,
873 HTMLDocument_queryCommandState,
874 HTMLDocument_queryCommandIndeterm,
875 HTMLDocument_queryCommandText,
876 HTMLDocument_queryCommandValue,
877 HTMLDocument_execCommand,
878 HTMLDocument_execCommandShowHelp,
879 HTMLDocument_createElement,
880 HTMLDocument_put_onhelp,
881 HTMLDocument_get_onhelp,
882 HTMLDocument_put_onclick,
883 HTMLDocument_get_onclick,
884 HTMLDocument_put_ondblclick,
885 HTMLDocument_get_ondblclick,
886 HTMLDocument_put_onkeyup,
887 HTMLDocument_get_onkeyup,
888 HTMLDocument_put_onkeydown,
889 HTMLDocument_get_onkeydown,
890 HTMLDocument_put_onkeypress,
891 HTMLDocument_get_onkeypress,
892 HTMLDocument_put_onmouseup,
893 HTMLDocument_get_onmouseup,
894 HTMLDocument_put_onmousedown,
895 HTMLDocument_get_onmousedown,
896 HTMLDocument_put_onmousemove,
897 HTMLDocument_get_onmousemove,
898 HTMLDocument_put_onmouseout,
899 HTMLDocument_get_onmouseout,
900 HTMLDocument_put_onmouseover,
901 HTMLDocument_get_onmouseover,
902 HTMLDocument_put_onreadystatechange,
903 HTMLDocument_get_onreadystatechange,
904 HTMLDocument_put_onafterupdate,
905 HTMLDocument_get_onafterupdate,
906 HTMLDocument_put_onrowexit,
907 HTMLDocument_get_onrowexit,
908 HTMLDocument_put_onrowenter,
909 HTMLDocument_get_onrowenter,
910 HTMLDocument_put_ondragstart,
911 HTMLDocument_get_ondragstart,
912 HTMLDocument_put_onselectstart,
913 HTMLDocument_get_onselectstart,
914 HTMLDocument_elementFromPoint,
915 HTMLDocument_get_parentWindow,
916 HTMLDocument_get_styleSheets,
917 HTMLDocument_put_onbeforeupdate,
918 HTMLDocument_get_onbeforeupdate,
919 HTMLDocument_put_onerrorupdate,
920 HTMLDocument_get_onerrorupdate,
921 HTMLDocument_toString,
922 HTMLDocument_createStyleSheet
925 HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
930 TRACE("(%p %s %p)\n", pUnkOuter, debugstr_guid(riid), ppvObject);
932 ret = HeapAlloc(GetProcessHeap(), 0, sizeof(HTMLDocument));
933 ret->lpHTMLDocument2Vtbl = &HTMLDocumentVtbl;
936 hres = IHTMLDocument_QueryInterface(HTMLDOC(ret), riid, ppvObject);
938 HeapFree(GetProcessHeap(), 0, ret);
940 HTMLDocument_Persist_Init(ret);
941 HTMLDocument_OleObj_Init(ret);