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
34 #include "wine/debug.h"
36 #include "mshtml_private.h"
38 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
40 static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID riid, void **ppvObject)
42 HTMLDocument *This = (HTMLDocument*)iface;
45 if(IsEqualGUID(&IID_IUnknown, riid)) {
46 TRACE("(%p)->(IID_IUnknown, %p)\n", This, ppvObject);
47 *ppvObject = HTMLDOC(This);
48 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
49 TRACE("(%p)->(IID_IDispatch, %p)\n", This, ppvObject);
50 *ppvObject = HTMLDOC(This);
51 }else if(IsEqualGUID(&IID_IHTMLDocument, riid)) {
52 TRACE("(%p)->(IID_IHTMLDocument, %p)\n", This, ppvObject);
53 *ppvObject = HTMLDOC(This);
54 }else if(IsEqualGUID(&IID_IHTMLDocument2, riid)) {
55 TRACE("(%p)->(IID_IDocument2, %p)\n", This, ppvObject);
56 *ppvObject = HTMLDOC(This);
57 }else if(IsEqualGUID(&IID_IPersist, riid)) {
58 TRACE("(%p)->(IID_IPersist, %p)\n", This, ppvObject);
59 *ppvObject = PERSIST(This);
60 }else if(IsEqualGUID(&IID_IPersistMoniker, riid)) {
61 TRACE("(%p)->(IID_IPersistMoniker, %p)\n", This, ppvObject);
62 *ppvObject = PERSISTMON(This);
63 }else if(IsEqualGUID(&IID_IPersistFile, riid)) {
64 TRACE("(%p)->(IID_IPersistFile, %p)\n", This, ppvObject);
65 *ppvObject = PERSISTFILE(This);
66 }else if(IsEqualGUID(&IID_IMonikerProp, riid)) {
67 TRACE("(%p)->(IID_IMonikerProp, %p)\n", This, ppvObject);
68 *ppvObject = MONPROP(This);
72 IHTMLDocument2_AddRef(iface);
76 FIXME("(%p)->(%s %p) interface not supported\n", This, debugstr_guid(riid), ppvObject);
80 static ULONG WINAPI HTMLDocument_AddRef(IHTMLDocument2 *iface)
82 HTMLDocument *This = (HTMLDocument*)iface;
83 ULONG ref = InterlockedIncrement(&This->ref);
84 TRACE("(%p) ref = %lu\n", This, ref);
88 static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface)
90 HTMLDocument *This = (HTMLDocument*)iface;
91 ULONG ref = InterlockedDecrement(&This->ref);
93 TRACE("(%p) ref = %lu\n", This, ref);
96 HeapFree(GetProcessHeap(), 0, This);
101 static HRESULT WINAPI HTMLDocument_GetTypeInfoCount(IHTMLDocument2 *iface, UINT *pctinfo)
103 FIXME("(%p)->(%p)\n", iface, pctinfo);
107 static HRESULT WINAPI HTMLDocument_GetTypeInfo(IHTMLDocument2 *iface, UINT iTInfo,
108 LCID lcid, ITypeInfo **ppTInfo)
110 FIXME("(%p)->(%u %lu %p)\n", iface, iTInfo, lcid, ppTInfo);
114 static HRESULT WINAPI HTMLDocument_GetIDsOfNames(IHTMLDocument2 *iface, REFIID riid,
115 LPOLESTR *rgszNames, UINT cNames,
116 LCID lcid, DISPID *rgDispId)
118 FIXME("(%p)->(%s %p %u %lu %p)\n", iface, debugstr_guid(riid), rgszNames, cNames,
123 static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMember,
124 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
125 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
127 FIXME("(%p)->(%ld %s %ld %d %p %p %p %p)\n", iface, dispIdMember, debugstr_guid(riid),
128 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
132 static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch **p)
134 FIXME("(%p)->(%p)\n", iface, p);
138 static HRESULT WINAPI HTMLDocument_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p)
140 FIXME("(%p)->(%p)\n", iface, p);
144 static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement **p)
146 FIXME("(%p)->(%p)\n", iface, p);
150 static HRESULT WINAPI HTMLDocument_get_activeElement(IHTMLDocument2 *iface, IHTMLElement **p)
152 FIXME("(%p)->(%p)\n", iface, p);
156 static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElementCollection **p)
158 FIXME("(%p)->(%p)\n", iface, p);
162 static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLElementCollection **p)
164 FIXME("(%p)->(%p)\n", iface, p);
168 static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElementCollection **p)
170 FIXME("(%p)->(%p)\n", iface, p);
174 static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElementCollection **p)
176 FIXME("(%p)->(%p)\n", iface, p);
180 static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLElementCollection **p)
182 FIXME("(%p)->(%p)\n", iface, p);
186 static HRESULT WINAPI HTMLDocument_put_title(IHTMLDocument2 *iface, BSTR v)
188 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
192 static HRESULT WINAPI HTMLDocument_get_title(IHTMLDocument2 *iface, BSTR *p)
194 FIXME("(%p)->(%p)\n", iface, p);
198 static HRESULT WINAPI HTMLDocument_get_scripts(IHTMLDocument2 *iface, IHTMLElementCollection **p)
200 FIXME("(%p)->(%p)\n", iface, p);
204 static HRESULT WINAPI HTMLDocument_put_designMode(IHTMLDocument2 *iface, BSTR v)
206 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
210 static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p)
212 FIXME("(%p)->(%p)\n", iface, p);
216 static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSelectionObject **p)
218 FIXME("(%p)->(%p)\n", iface, p);
222 static HRESULT WINAPI HTMLDocument_get_readyState(IHTMLDocument2 *iface, BSTR *p)
224 FIXME("(%p)->(%p)\n", iface, p);
228 static HRESULT WINAPI HTMLDocument_get_frames(IHTMLDocument2 *iface, IHTMLFramesCollection2 **p)
230 FIXME("(%p)->(%p)\n", iface, p);
234 static HRESULT WINAPI HTMLDocument_get_embeds(IHTMLDocument2 *iface, IHTMLElementCollection **p)
236 FIXME("(%p)->(%p)\n", iface, p);
240 static HRESULT WINAPI HTMLDocument_get_plugins(IHTMLDocument2 *iface, IHTMLElementCollection **p)
242 FIXME("(%p)->(%p)\n", iface, p);
246 static HRESULT WINAPI HTMLDocument_put_alinkColor(IHTMLDocument2 *iface, VARIANT v)
248 FIXME("(%p)\n", iface);
252 static HRESULT WINAPI HTMLDocument_get_alinkColor(IHTMLDocument2 *iface, VARIANT *p)
254 FIXME("(%p)->(%p)\n", iface, p);
258 static HRESULT WINAPI HTMLDocument_put_bgColor(IHTMLDocument2 *iface, VARIANT v)
260 FIXME("(%p)\n", iface);
264 static HRESULT WINAPI HTMLDocument_get_bgColor(IHTMLDocument2 *iface, VARIANT *p)
266 FIXME("(%p)->(%p)\n", iface, p);
270 static HRESULT WINAPI HTMLDocument_put_fgColor(IHTMLDocument2 *iface, VARIANT v)
272 FIXME("(%p)\n", iface);
276 static HRESULT WINAPI HTMLDocument_get_fgColor(IHTMLDocument2 *iface, VARIANT *p)
278 FIXME("(%p)->(%p)\n", iface, p);
282 static HRESULT WINAPI HTMLDocument_put_linkColor(IHTMLDocument2 *iface, VARIANT v)
284 FIXME("(%p)->()\n", iface);
288 static HRESULT WINAPI HTMLDocument_get_linkColor(IHTMLDocument2 *iface, VARIANT *p)
290 FIXME("(%p)->(%p)\n", iface, p);
294 static HRESULT WINAPI HTMLDocument_put_vlinkColor(IHTMLDocument2 *iface, VARIANT v)
296 FIXME("(%p)\n", iface);
300 static HRESULT WINAPI HTMLDocument_get_vlinkColor(IHTMLDocument2 *iface, VARIANT *p)
302 FIXME("(%p)->(%p)\n", iface, p);
306 static HRESULT WINAPI HTMLDocument_get_referrer(IHTMLDocument2 *iface, BSTR *p)
308 FIXME("(%p)->(%p)\n", iface, p);
312 static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLocation **p)
314 FIXME("(%p)->(%p)\n", iface, p);
318 static HRESULT WINAPI HTMLDocument_get_lastModified(IHTMLDocument2 *iface, BSTR *p)
320 FIXME("(%p)->(%p)\n", iface, p);
324 static HRESULT WINAPI HTMLDocument_put_URL(IHTMLDocument2 *iface, BSTR v)
326 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
330 static HRESULT WINAPI HTMLDocument_get_URL(IHTMLDocument2 *iface, BSTR *p)
332 FIXME("(%p)->(%p)\n", iface, p);
336 static HRESULT WINAPI HTMLDocument_put_domain(IHTMLDocument2 *iface, BSTR v)
338 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
342 static HRESULT WINAPI HTMLDocument_get_domain(IHTMLDocument2 *iface, BSTR *p)
344 FIXME("(%p)->(%p)\n", iface, p);
348 static HRESULT WINAPI HTMLDocument_put_cookie(IHTMLDocument2 *iface, BSTR v)
350 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
354 static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p)
356 FIXME("(%p)->(%p)\n", iface, p);
360 static HRESULT WINAPI HTMLDocument_put_expando(IHTMLDocument2 *iface, VARIANT_BOOL v)
362 FIXME("(%p)->(%x)\n", iface, v);
366 static HRESULT WINAPI HTMLDocument_get_expando(IHTMLDocument2 *iface, VARIANT_BOOL *p)
368 FIXME("(%p)->(%p)\n", iface, p);
372 static HRESULT WINAPI HTMLDocument_put_charset(IHTMLDocument2 *iface, BSTR v)
374 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
378 static HRESULT WINAPI HTMLDocument_get_charset(IHTMLDocument2 *iface, BSTR *p)
380 FIXME("(%p)->(%p)\n", iface, p);
384 static HRESULT WINAPI HTMLDocument_put_defaultCharset(IHTMLDocument2 *iface, BSTR v)
386 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
390 static HRESULT WINAPI HTMLDocument_get_defaultCharset(IHTMLDocument2 *iface, BSTR *p)
392 FIXME("(%p)->(%p)\n", iface, p);
396 static HRESULT WINAPI HTMLDocument_get_mimeType(IHTMLDocument2 *iface, BSTR *p)
398 FIXME("(%p)->(%p)\n", iface, p);
402 static HRESULT WINAPI HTMLDocument_get_fileSize(IHTMLDocument2 *iface, BSTR *p)
404 FIXME("(%p)->(%p)\n", iface, p);
408 static HRESULT WINAPI HTMLDocument_get_fileCreatedDate(IHTMLDocument2 *iface, BSTR *p)
410 FIXME("(%p)->(%p)\n", iface, p);
414 static HRESULT WINAPI HTMLDocument_get_fileModifiedDate(IHTMLDocument2 *iface, BSTR *p)
416 FIXME("(%p)->(%p)\n", iface, p);
420 static HRESULT WINAPI HTMLDocument_get_fileUpdatedDate(IHTMLDocument2 *iface, BSTR *p)
422 FIXME("(%p)->(%p)\n", iface, p);
426 static HRESULT WINAPI HTMLDocument_get_security(IHTMLDocument2 *iface, BSTR *p)
428 FIXME("(%p)->(%p)\n", iface, p);
432 static HRESULT WINAPI HTMLDocument_get_protocol(IHTMLDocument2 *iface, BSTR *p)
434 FIXME("(%p)->(%p)\n", iface, p);
438 static HRESULT WINAPI HTMLDocument_get_nameProp(IHTMLDocument2 *iface, BSTR *p)
440 FIXME("(%p)->(%p)\n", iface, p);
444 static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarray)
446 FIXME("(%p)->(%p)\n", iface, psarray);
450 static HRESULT WINAPI HTMLDocument_writeln(IHTMLDocument2 *iface, SAFEARRAY *psarray)
452 FIXME("(%p)->(%p)\n", iface, psarray);
456 static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT name,
457 VARIANT features, VARIANT replace, IDispatch **pomWindowResult)
459 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(url), pomWindowResult);
463 static HRESULT WINAPI HTMLDocument_close(IHTMLDocument2 *iface)
465 FIXME("(%p)\n", iface);
469 static HRESULT WINAPI HTMLDocument_clear(IHTMLDocument2 *iface)
471 FIXME("(%p)\n", iface);
475 static HRESULT WINAPI HTMLDocument_queryCommandSupported(IHTMLDocument2 *iface, BSTR cmdID,
478 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
482 static HRESULT WINAPI HTMLDocument_queryCommandEnabled(IHTMLDocument2 *iface, BSTR cmdID,
485 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
489 static HRESULT WINAPI HTMLDocument_queryCommandState(IHTMLDocument2 *iface, BSTR cmdID,
492 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
496 static HRESULT WINAPI HTMLDocument_queryCommandIndeterm(IHTMLDocument2 *iface, BSTR cmdID,
499 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
503 static HRESULT WINAPI HTMLDocument_queryCommandText(IHTMLDocument2 *iface, BSTR cmdID,
506 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
510 static HRESULT WINAPI HTMLDocument_queryCommandValue(IHTMLDocument2 *iface, BSTR cmdID,
513 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
517 static HRESULT WINAPI HTMLDocument_execCommand(IHTMLDocument2 *iface, BSTR cmdID,
518 VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet)
520 FIXME("(%p)->(%s %x %p)\n", iface, debugstr_w(cmdID), showUI, pfRet);
524 static HRESULT WINAPI HTMLDocument_execCommandShowHelp(IHTMLDocument2 *iface, BSTR cmdID,
527 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
531 static HRESULT WINAPI HTMLDocument_createElement(IHTMLDocument2 *iface, BSTR eTag,
532 IHTMLElement **newElem)
534 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(eTag), newElem);
538 static HRESULT WINAPI HTMLDocument_put_onhelp(IHTMLDocument2 *iface, VARIANT v)
540 FIXME("(%p)\n", iface);
544 static HRESULT WINAPI HTMLDocument_get_onhelp(IHTMLDocument2 *iface, VARIANT *p)
546 FIXME("(%p)->(%p)\n", iface, p);
550 static HRESULT WINAPI HTMLDocument_put_onclick(IHTMLDocument2 *iface, VARIANT v)
552 FIXME("(%p)\n", iface);
556 static HRESULT WINAPI HTMLDocument_get_onclick(IHTMLDocument2 *iface, VARIANT *p)
558 FIXME("(%p)->(%p)\n", iface, p);
562 static HRESULT WINAPI HTMLDocument_put_ondblclick(IHTMLDocument2 *iface, VARIANT v)
564 FIXME("(%p)\n", iface);
568 static HRESULT WINAPI HTMLDocument_get_ondblclick(IHTMLDocument2 *iface, VARIANT *p)
570 FIXME("(%p)->(%p)\n", iface, p);
574 static HRESULT WINAPI HTMLDocument_put_onkeyup(IHTMLDocument2 *iface, VARIANT v)
576 FIXME("(%p)\n", iface);
580 static HRESULT WINAPI HTMLDocument_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p)
582 FIXME("(%p)->(%p)\n", iface, p);
586 static HRESULT WINAPI HTMLDocument_put_onkeydown(IHTMLDocument2 *iface, VARIANT v)
588 FIXME("(%p)\n", iface);
592 static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT *p)
594 FIXME("(%p)->(%p)\n", iface, p);
598 static HRESULT WINAPI HTMLDocument_put_onkeypress(IHTMLDocument2 *iface, VARIANT v)
600 FIXME("(%p)\n", iface);
604 static HRESULT WINAPI HTMLDocument_get_onkeypress(IHTMLDocument2 *iface, VARIANT *p)
606 FIXME("(%p)->(%p)\n", iface, p);
610 static HRESULT WINAPI HTMLDocument_put_onmouseup(IHTMLDocument2 *iface, VARIANT v)
612 FIXME("(%p)\n", iface);
616 static HRESULT WINAPI HTMLDocument_get_onmouseup(IHTMLDocument2 *iface, VARIANT *p)
618 FIXME("(%p)->(%p)\n", iface, p);
622 static HRESULT WINAPI HTMLDocument_put_onmousedown(IHTMLDocument2 *iface, VARIANT v)
624 FIXME("(%p)\n", iface);
628 static HRESULT WINAPI HTMLDocument_get_onmousedown(IHTMLDocument2 *iface, VARIANT *p)
630 FIXME("(%p)->(%p)\n", iface, p);
634 static HRESULT WINAPI HTMLDocument_put_onmousemove(IHTMLDocument2 *iface, VARIANT v)
636 FIXME("(%p)\n", iface);
640 static HRESULT WINAPI HTMLDocument_get_onmousemove(IHTMLDocument2 *iface, VARIANT *p)
642 FIXME("(%p)->(%p)\n", iface, p);
646 static HRESULT WINAPI HTMLDocument_put_onmouseout(IHTMLDocument2 *iface, VARIANT v)
648 FIXME("(%p)\n", iface);
652 static HRESULT WINAPI HTMLDocument_get_onmouseout(IHTMLDocument2 *iface, VARIANT *p)
654 FIXME("(%p)->(%p)\n", iface, p);
658 static HRESULT WINAPI HTMLDocument_put_onmouseover(IHTMLDocument2 *iface, VARIANT v)
660 FIXME("(%p)\n", iface);
664 static HRESULT WINAPI HTMLDocument_get_onmouseover(IHTMLDocument2 *iface, VARIANT *p)
666 FIXME("(%p)->(%p)\n", iface, p);
670 static HRESULT WINAPI HTMLDocument_put_onreadystatechange(IHTMLDocument2 *iface, VARIANT v)
672 FIXME("(%p)\n", iface);
676 static HRESULT WINAPI HTMLDocument_get_onreadystatechange(IHTMLDocument2 *iface, VARIANT *p)
678 FIXME("(%p)->(%p)\n", iface, p);
682 static HRESULT WINAPI HTMLDocument_put_onafterupdate(IHTMLDocument2 *iface, VARIANT v)
684 FIXME("(%p)\n", iface);
688 static HRESULT WINAPI HTMLDocument_get_onafterupdate(IHTMLDocument2 *iface, VARIANT *p)
690 FIXME("(%p)->(%p)\n", iface, p);
694 static HRESULT WINAPI HTMLDocument_put_onrowexit(IHTMLDocument2 *iface, VARIANT v)
696 FIXME("(%p)\n", iface);
700 static HRESULT WINAPI HTMLDocument_get_onrowexit(IHTMLDocument2 *iface, VARIANT *p)
702 FIXME("(%p)->(%p)\n", iface, p);
706 static HRESULT WINAPI HTMLDocument_put_onrowenter(IHTMLDocument2 *iface, VARIANT v)
708 FIXME("(%p)\n", iface);
712 static HRESULT WINAPI HTMLDocument_get_onrowenter(IHTMLDocument2 *iface, VARIANT *p)
714 FIXME("(%p)->(%p)\n", iface, p);
718 static HRESULT WINAPI HTMLDocument_put_ondragstart(IHTMLDocument2 *iface, VARIANT v)
720 FIXME("(%p)\n", iface);
724 static HRESULT WINAPI HTMLDocument_get_ondragstart(IHTMLDocument2 *iface, VARIANT *p)
726 FIXME("(%p)->(%p)\n", iface, p);
730 static HRESULT WINAPI HTMLDocument_put_onselectstart(IHTMLDocument2 *iface, VARIANT v)
732 FIXME("(%p)\n", iface);
736 static HRESULT WINAPI HTMLDocument_get_onselectstart(IHTMLDocument2 *iface, VARIANT *p)
738 FIXME("(%p)->(%p)\n", iface, p);
742 static HRESULT WINAPI HTMLDocument_elementFromPoint(IHTMLDocument2 *iface, long x, long y,
743 IHTMLElement **elementHit)
745 FIXME("(%p)->(%ld %ld %p)\n", iface, x, y, elementHit);
749 static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTMLWindow2 **p)
751 FIXME("(%p)->(%p)\n", iface, p);
755 static HRESULT WINAPI HTMLDocument_get_styleSheets(IHTMLDocument2 *iface,
756 IHTMLStyleSheetsCollection **p)
758 FIXME("(%p)->(%p)\n", iface, p);
762 static HRESULT WINAPI HTMLDocument_put_onbeforeupdate(IHTMLDocument2 *iface, VARIANT v)
764 FIXME("(%p)\n", iface);
768 static HRESULT WINAPI HTMLDocument_get_onbeforeupdate(IHTMLDocument2 *iface, VARIANT *p)
770 FIXME("(%p)->(%p)\n", iface, p);
774 static HRESULT WINAPI HTMLDocument_put_onerrorupdate(IHTMLDocument2 *iface, VARIANT v)
776 FIXME("(%p)\n", iface);
780 static HRESULT WINAPI HTMLDocument_get_onerrorupdate(IHTMLDocument2 *iface, VARIANT *p)
782 FIXME("(%p)->(%p)\n", iface, p);
786 static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String)
788 FIXME("(%p)->(%p)\n", iface, String);
792 static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref,
793 long lIndex, IHTMLStyleSheet **ppnewStyleSheet)
795 FIXME("(%p)->(%s %ld %p)\n", iface, debugstr_w(bstrHref), lIndex, ppnewStyleSheet);
799 static IHTMLDocument2Vtbl HTMLDocumentVtbl = {
800 HTMLDocument_QueryInterface,
802 HTMLDocument_Release,
803 HTMLDocument_GetTypeInfoCount,
804 HTMLDocument_GetTypeInfo,
805 HTMLDocument_GetIDsOfNames,
807 HTMLDocument_get_Script,
808 HTMLDocument_get_all,
809 HTMLDocument_get_body,
810 HTMLDocument_get_activeElement,
811 HTMLDocument_get_images,
812 HTMLDocument_get_applets,
813 HTMLDocument_get_links,
814 HTMLDocument_get_forms,
815 HTMLDocument_get_anchors,
816 HTMLDocument_put_title,
817 HTMLDocument_get_title,
818 HTMLDocument_get_scripts,
819 HTMLDocument_put_designMode,
820 HTMLDocument_get_designMode,
821 HTMLDocument_get_selection,
822 HTMLDocument_get_readyState,
823 HTMLDocument_get_frames,
824 HTMLDocument_get_embeds,
825 HTMLDocument_get_plugins,
826 HTMLDocument_put_alinkColor,
827 HTMLDocument_get_alinkColor,
828 HTMLDocument_put_bgColor,
829 HTMLDocument_get_bgColor,
830 HTMLDocument_put_fgColor,
831 HTMLDocument_get_fgColor,
832 HTMLDocument_put_linkColor,
833 HTMLDocument_get_linkColor,
834 HTMLDocument_put_vlinkColor,
835 HTMLDocument_get_vlinkColor,
836 HTMLDocument_get_referrer,
837 HTMLDocument_get_location,
838 HTMLDocument_get_lastModified,
839 HTMLDocument_put_URL,
840 HTMLDocument_get_URL,
841 HTMLDocument_put_domain,
842 HTMLDocument_get_domain,
843 HTMLDocument_put_cookie,
844 HTMLDocument_get_cookie,
845 HTMLDocument_put_expando,
846 HTMLDocument_get_expando,
847 HTMLDocument_put_charset,
848 HTMLDocument_get_charset,
849 HTMLDocument_put_defaultCharset,
850 HTMLDocument_get_defaultCharset,
851 HTMLDocument_get_mimeType,
852 HTMLDocument_get_fileSize,
853 HTMLDocument_get_fileCreatedDate,
854 HTMLDocument_get_fileModifiedDate,
855 HTMLDocument_get_fileUpdatedDate,
856 HTMLDocument_get_security,
857 HTMLDocument_get_protocol,
858 HTMLDocument_get_nameProp,
860 HTMLDocument_writeln,
864 HTMLDocument_queryCommandSupported,
865 HTMLDocument_queryCommandEnabled,
866 HTMLDocument_queryCommandState,
867 HTMLDocument_queryCommandIndeterm,
868 HTMLDocument_queryCommandText,
869 HTMLDocument_queryCommandValue,
870 HTMLDocument_execCommand,
871 HTMLDocument_execCommandShowHelp,
872 HTMLDocument_createElement,
873 HTMLDocument_put_onhelp,
874 HTMLDocument_get_onhelp,
875 HTMLDocument_put_onclick,
876 HTMLDocument_get_onclick,
877 HTMLDocument_put_ondblclick,
878 HTMLDocument_get_ondblclick,
879 HTMLDocument_put_onkeyup,
880 HTMLDocument_get_onkeyup,
881 HTMLDocument_put_onkeydown,
882 HTMLDocument_get_onkeydown,
883 HTMLDocument_put_onkeypress,
884 HTMLDocument_get_onkeypress,
885 HTMLDocument_put_onmouseup,
886 HTMLDocument_get_onmouseup,
887 HTMLDocument_put_onmousedown,
888 HTMLDocument_get_onmousedown,
889 HTMLDocument_put_onmousemove,
890 HTMLDocument_get_onmousemove,
891 HTMLDocument_put_onmouseout,
892 HTMLDocument_get_onmouseout,
893 HTMLDocument_put_onmouseover,
894 HTMLDocument_get_onmouseover,
895 HTMLDocument_put_onreadystatechange,
896 HTMLDocument_get_onreadystatechange,
897 HTMLDocument_put_onafterupdate,
898 HTMLDocument_get_onafterupdate,
899 HTMLDocument_put_onrowexit,
900 HTMLDocument_get_onrowexit,
901 HTMLDocument_put_onrowenter,
902 HTMLDocument_get_onrowenter,
903 HTMLDocument_put_ondragstart,
904 HTMLDocument_get_ondragstart,
905 HTMLDocument_put_onselectstart,
906 HTMLDocument_get_onselectstart,
907 HTMLDocument_elementFromPoint,
908 HTMLDocument_get_parentWindow,
909 HTMLDocument_get_styleSheets,
910 HTMLDocument_put_onbeforeupdate,
911 HTMLDocument_get_onbeforeupdate,
912 HTMLDocument_put_onerrorupdate,
913 HTMLDocument_get_onerrorupdate,
914 HTMLDocument_toString,
915 HTMLDocument_createStyleSheet
918 HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
923 TRACE("(%p %s %p)\n", pUnkOuter, debugstr_guid(riid), ppvObject);
925 ret = HeapAlloc(GetProcessHeap(), 0, sizeof(HTMLDocument));
926 ret->lpHTMLDocument2Vtbl = &HTMLDocumentVtbl;
929 hres = IHTMLDocument_QueryInterface(HTMLDOC(ret), riid, ppvObject);
931 HeapFree(GetProcessHeap(), 0, ret);
933 HTMLDocument_Persist_Init(ret);