Implement NtAccessCheck.
[wine/gsoc-2012-control.git] / dlls / mshtml / htmldoc.c
blob8005e53062ba26d7713f783631c0e4f8aa8c4324
1 /*
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
19 #include "config.h"
21 #include <stdarg.h>
22 #include <stdio.h>
24 #define COBJMACROS
26 #include "windef.h"
27 #include "winbase.h"
28 #include "winuser.h"
29 #include "ole2.h"
30 #include "docobj.h"
32 #include "mshtml.h"
33 #include "mshtmdid.h"
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;
45 *ppvObject = NULL;
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);
84 if(*ppvObject) {
85 IHTMLDocument2_AddRef(iface);
86 return S_OK;
89 FIXME("(%p)->(%s %p) interface not supported\n", This, debugstr_guid(riid), ppvObject);
90 return E_NOINTERFACE;
93 static ULONG WINAPI HTMLDocument_AddRef(IHTMLDocument2 *iface)
95 HTMLDocument *This = (HTMLDocument*)iface;
96 ULONG ref = InterlockedIncrement(&This->ref);
97 TRACE("(%p) ref = %lu\n", This, ref);
98 return ref;
101 static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface)
103 HTMLDocument *This = (HTMLDocument*)iface;
104 ULONG ref = InterlockedDecrement(&This->ref);
106 TRACE("(%p) ref = %lu\n", This, ref);
108 if(!ref) {
109 if(This->client)
110 IOleClientSite_Release(This->client);
111 if(This->ipsite)
112 IOleInPlaceSite_Release(This->ipsite);
113 if(This->frame)
114 IOleInPlaceFrame_Release(This->frame);
115 HeapFree(GetProcessHeap(), 0, This);
118 return ref;
121 static HRESULT WINAPI HTMLDocument_GetTypeInfoCount(IHTMLDocument2 *iface, UINT *pctinfo)
123 FIXME("(%p)->(%p)\n", iface, pctinfo);
124 return E_NOTIMPL;
127 static HRESULT WINAPI HTMLDocument_GetTypeInfo(IHTMLDocument2 *iface, UINT iTInfo,
128 LCID lcid, ITypeInfo **ppTInfo)
130 FIXME("(%p)->(%u %lu %p)\n", iface, iTInfo, lcid, ppTInfo);
131 return E_NOTIMPL;
134 static HRESULT WINAPI HTMLDocument_GetIDsOfNames(IHTMLDocument2 *iface, REFIID riid,
135 LPOLESTR *rgszNames, UINT cNames,
136 LCID lcid, DISPID *rgDispId)
138 FIXME("(%p)->(%s %p %u %lu %p)\n", iface, debugstr_guid(riid), rgszNames, cNames,
139 lcid, rgDispId);
140 return E_NOTIMPL;
143 static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMember,
144 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
145 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
147 FIXME("(%p)->(%ld %s %ld %d %p %p %p %p)\n", iface, dispIdMember, debugstr_guid(riid),
148 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
149 return E_NOTIMPL;
152 static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch **p)
154 FIXME("(%p)->(%p)\n", iface, p);
155 return E_NOTIMPL;
158 static HRESULT WINAPI HTMLDocument_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p)
160 FIXME("(%p)->(%p)\n", iface, p);
161 return E_NOTIMPL;
164 static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement **p)
166 FIXME("(%p)->(%p)\n", iface, p);
167 return E_NOTIMPL;
170 static HRESULT WINAPI HTMLDocument_get_activeElement(IHTMLDocument2 *iface, IHTMLElement **p)
172 FIXME("(%p)->(%p)\n", iface, p);
173 return E_NOTIMPL;
176 static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElementCollection **p)
178 FIXME("(%p)->(%p)\n", iface, p);
179 return E_NOTIMPL;
182 static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLElementCollection **p)
184 FIXME("(%p)->(%p)\n", iface, p);
185 return E_NOTIMPL;
188 static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElementCollection **p)
190 FIXME("(%p)->(%p)\n", iface, p);
191 return E_NOTIMPL;
194 static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElementCollection **p)
196 FIXME("(%p)->(%p)\n", iface, p);
197 return E_NOTIMPL;
200 static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLElementCollection **p)
202 FIXME("(%p)->(%p)\n", iface, p);
203 return E_NOTIMPL;
206 static HRESULT WINAPI HTMLDocument_put_title(IHTMLDocument2 *iface, BSTR v)
208 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
209 return E_NOTIMPL;
212 static HRESULT WINAPI HTMLDocument_get_title(IHTMLDocument2 *iface, BSTR *p)
214 FIXME("(%p)->(%p)\n", iface, p);
215 return E_NOTIMPL;
218 static HRESULT WINAPI HTMLDocument_get_scripts(IHTMLDocument2 *iface, IHTMLElementCollection **p)
220 FIXME("(%p)->(%p)\n", iface, p);
221 return E_NOTIMPL;
224 static HRESULT WINAPI HTMLDocument_put_designMode(IHTMLDocument2 *iface, BSTR v)
226 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
227 return E_NOTIMPL;
230 static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p)
232 FIXME("(%p)->(%p)\n", iface, p);
233 return E_NOTIMPL;
236 static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSelectionObject **p)
238 FIXME("(%p)->(%p)\n", iface, p);
239 return E_NOTIMPL;
242 static HRESULT WINAPI HTMLDocument_get_readyState(IHTMLDocument2 *iface, BSTR *p)
244 FIXME("(%p)->(%p)\n", iface, p);
245 return E_NOTIMPL;
248 static HRESULT WINAPI HTMLDocument_get_frames(IHTMLDocument2 *iface, IHTMLFramesCollection2 **p)
250 FIXME("(%p)->(%p)\n", iface, p);
251 return E_NOTIMPL;
254 static HRESULT WINAPI HTMLDocument_get_embeds(IHTMLDocument2 *iface, IHTMLElementCollection **p)
256 FIXME("(%p)->(%p)\n", iface, p);
257 return E_NOTIMPL;
260 static HRESULT WINAPI HTMLDocument_get_plugins(IHTMLDocument2 *iface, IHTMLElementCollection **p)
262 FIXME("(%p)->(%p)\n", iface, p);
263 return E_NOTIMPL;
266 static HRESULT WINAPI HTMLDocument_put_alinkColor(IHTMLDocument2 *iface, VARIANT v)
268 FIXME("(%p)\n", iface);
269 return E_NOTIMPL;
272 static HRESULT WINAPI HTMLDocument_get_alinkColor(IHTMLDocument2 *iface, VARIANT *p)
274 FIXME("(%p)->(%p)\n", iface, p);
275 return E_NOTIMPL;
278 static HRESULT WINAPI HTMLDocument_put_bgColor(IHTMLDocument2 *iface, VARIANT v)
280 FIXME("(%p)\n", iface);
281 return E_NOTIMPL;
284 static HRESULT WINAPI HTMLDocument_get_bgColor(IHTMLDocument2 *iface, VARIANT *p)
286 FIXME("(%p)->(%p)\n", iface, p);
287 return E_NOTIMPL;
290 static HRESULT WINAPI HTMLDocument_put_fgColor(IHTMLDocument2 *iface, VARIANT v)
292 FIXME("(%p)\n", iface);
293 return E_NOTIMPL;
296 static HRESULT WINAPI HTMLDocument_get_fgColor(IHTMLDocument2 *iface, VARIANT *p)
298 FIXME("(%p)->(%p)\n", iface, p);
299 return E_NOTIMPL;
302 static HRESULT WINAPI HTMLDocument_put_linkColor(IHTMLDocument2 *iface, VARIANT v)
304 FIXME("(%p)->()\n", iface);
305 return E_NOTIMPL;
308 static HRESULT WINAPI HTMLDocument_get_linkColor(IHTMLDocument2 *iface, VARIANT *p)
310 FIXME("(%p)->(%p)\n", iface, p);
311 return E_NOTIMPL;
314 static HRESULT WINAPI HTMLDocument_put_vlinkColor(IHTMLDocument2 *iface, VARIANT v)
316 FIXME("(%p)\n", iface);
317 return E_NOTIMPL;
320 static HRESULT WINAPI HTMLDocument_get_vlinkColor(IHTMLDocument2 *iface, VARIANT *p)
322 FIXME("(%p)->(%p)\n", iface, p);
323 return E_NOTIMPL;
326 static HRESULT WINAPI HTMLDocument_get_referrer(IHTMLDocument2 *iface, BSTR *p)
328 FIXME("(%p)->(%p)\n", iface, p);
329 return E_NOTIMPL;
332 static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLocation **p)
334 FIXME("(%p)->(%p)\n", iface, p);
335 return E_NOTIMPL;
338 static HRESULT WINAPI HTMLDocument_get_lastModified(IHTMLDocument2 *iface, BSTR *p)
340 FIXME("(%p)->(%p)\n", iface, p);
341 return E_NOTIMPL;
344 static HRESULT WINAPI HTMLDocument_put_URL(IHTMLDocument2 *iface, BSTR v)
346 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
347 return E_NOTIMPL;
350 static HRESULT WINAPI HTMLDocument_get_URL(IHTMLDocument2 *iface, BSTR *p)
352 FIXME("(%p)->(%p)\n", iface, p);
353 return E_NOTIMPL;
356 static HRESULT WINAPI HTMLDocument_put_domain(IHTMLDocument2 *iface, BSTR v)
358 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
359 return E_NOTIMPL;
362 static HRESULT WINAPI HTMLDocument_get_domain(IHTMLDocument2 *iface, BSTR *p)
364 FIXME("(%p)->(%p)\n", iface, p);
365 return E_NOTIMPL;
368 static HRESULT WINAPI HTMLDocument_put_cookie(IHTMLDocument2 *iface, BSTR v)
370 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
371 return E_NOTIMPL;
374 static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p)
376 FIXME("(%p)->(%p)\n", iface, p);
377 return E_NOTIMPL;
380 static HRESULT WINAPI HTMLDocument_put_expando(IHTMLDocument2 *iface, VARIANT_BOOL v)
382 FIXME("(%p)->(%x)\n", iface, v);
383 return E_NOTIMPL;
386 static HRESULT WINAPI HTMLDocument_get_expando(IHTMLDocument2 *iface, VARIANT_BOOL *p)
388 FIXME("(%p)->(%p)\n", iface, p);
389 return E_NOTIMPL;
392 static HRESULT WINAPI HTMLDocument_put_charset(IHTMLDocument2 *iface, BSTR v)
394 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
395 return E_NOTIMPL;
398 static HRESULT WINAPI HTMLDocument_get_charset(IHTMLDocument2 *iface, BSTR *p)
400 FIXME("(%p)->(%p)\n", iface, p);
401 return E_NOTIMPL;
404 static HRESULT WINAPI HTMLDocument_put_defaultCharset(IHTMLDocument2 *iface, BSTR v)
406 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
407 return E_NOTIMPL;
410 static HRESULT WINAPI HTMLDocument_get_defaultCharset(IHTMLDocument2 *iface, BSTR *p)
412 FIXME("(%p)->(%p)\n", iface, p);
413 return E_NOTIMPL;
416 static HRESULT WINAPI HTMLDocument_get_mimeType(IHTMLDocument2 *iface, BSTR *p)
418 FIXME("(%p)->(%p)\n", iface, p);
419 return E_NOTIMPL;
422 static HRESULT WINAPI HTMLDocument_get_fileSize(IHTMLDocument2 *iface, BSTR *p)
424 FIXME("(%p)->(%p)\n", iface, p);
425 return E_NOTIMPL;
428 static HRESULT WINAPI HTMLDocument_get_fileCreatedDate(IHTMLDocument2 *iface, BSTR *p)
430 FIXME("(%p)->(%p)\n", iface, p);
431 return E_NOTIMPL;
434 static HRESULT WINAPI HTMLDocument_get_fileModifiedDate(IHTMLDocument2 *iface, BSTR *p)
436 FIXME("(%p)->(%p)\n", iface, p);
437 return E_NOTIMPL;
440 static HRESULT WINAPI HTMLDocument_get_fileUpdatedDate(IHTMLDocument2 *iface, BSTR *p)
442 FIXME("(%p)->(%p)\n", iface, p);
443 return E_NOTIMPL;
446 static HRESULT WINAPI HTMLDocument_get_security(IHTMLDocument2 *iface, BSTR *p)
448 FIXME("(%p)->(%p)\n", iface, p);
449 return E_NOTIMPL;
452 static HRESULT WINAPI HTMLDocument_get_protocol(IHTMLDocument2 *iface, BSTR *p)
454 FIXME("(%p)->(%p)\n", iface, p);
455 return E_NOTIMPL;
458 static HRESULT WINAPI HTMLDocument_get_nameProp(IHTMLDocument2 *iface, BSTR *p)
460 FIXME("(%p)->(%p)\n", iface, p);
461 return E_NOTIMPL;
464 static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarray)
466 FIXME("(%p)->(%p)\n", iface, psarray);
467 return E_NOTIMPL;
470 static HRESULT WINAPI HTMLDocument_writeln(IHTMLDocument2 *iface, SAFEARRAY *psarray)
472 FIXME("(%p)->(%p)\n", iface, psarray);
473 return E_NOTIMPL;
476 static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT name,
477 VARIANT features, VARIANT replace, IDispatch **pomWindowResult)
479 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(url), pomWindowResult);
480 return E_NOTIMPL;
483 static HRESULT WINAPI HTMLDocument_close(IHTMLDocument2 *iface)
485 FIXME("(%p)\n", iface);
486 return E_NOTIMPL;
489 static HRESULT WINAPI HTMLDocument_clear(IHTMLDocument2 *iface)
491 FIXME("(%p)\n", iface);
492 return E_NOTIMPL;
495 static HRESULT WINAPI HTMLDocument_queryCommandSupported(IHTMLDocument2 *iface, BSTR cmdID,
496 VARIANT_BOOL *pfRet)
498 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
499 return E_NOTIMPL;
502 static HRESULT WINAPI HTMLDocument_queryCommandEnabled(IHTMLDocument2 *iface, BSTR cmdID,
503 VARIANT_BOOL *pfRet)
505 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
506 return E_NOTIMPL;
509 static HRESULT WINAPI HTMLDocument_queryCommandState(IHTMLDocument2 *iface, BSTR cmdID,
510 VARIANT_BOOL *pfRet)
512 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
513 return E_NOTIMPL;
516 static HRESULT WINAPI HTMLDocument_queryCommandIndeterm(IHTMLDocument2 *iface, BSTR cmdID,
517 VARIANT_BOOL *pfRet)
519 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
520 return E_NOTIMPL;
523 static HRESULT WINAPI HTMLDocument_queryCommandText(IHTMLDocument2 *iface, BSTR cmdID,
524 BSTR *pfRet)
526 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
527 return E_NOTIMPL;
530 static HRESULT WINAPI HTMLDocument_queryCommandValue(IHTMLDocument2 *iface, BSTR cmdID,
531 VARIANT *pfRet)
533 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
534 return E_NOTIMPL;
537 static HRESULT WINAPI HTMLDocument_execCommand(IHTMLDocument2 *iface, BSTR cmdID,
538 VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet)
540 FIXME("(%p)->(%s %x %p)\n", iface, debugstr_w(cmdID), showUI, pfRet);
541 return E_NOTIMPL;
544 static HRESULT WINAPI HTMLDocument_execCommandShowHelp(IHTMLDocument2 *iface, BSTR cmdID,
545 VARIANT_BOOL *pfRet)
547 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
548 return E_NOTIMPL;
551 static HRESULT WINAPI HTMLDocument_createElement(IHTMLDocument2 *iface, BSTR eTag,
552 IHTMLElement **newElem)
554 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(eTag), newElem);
555 return E_NOTIMPL;
558 static HRESULT WINAPI HTMLDocument_put_onhelp(IHTMLDocument2 *iface, VARIANT v)
560 FIXME("(%p)\n", iface);
561 return E_NOTIMPL;
564 static HRESULT WINAPI HTMLDocument_get_onhelp(IHTMLDocument2 *iface, VARIANT *p)
566 FIXME("(%p)->(%p)\n", iface, p);
567 return E_NOTIMPL;
570 static HRESULT WINAPI HTMLDocument_put_onclick(IHTMLDocument2 *iface, VARIANT v)
572 FIXME("(%p)\n", iface);
573 return E_NOTIMPL;
576 static HRESULT WINAPI HTMLDocument_get_onclick(IHTMLDocument2 *iface, VARIANT *p)
578 FIXME("(%p)->(%p)\n", iface, p);
579 return E_NOTIMPL;
582 static HRESULT WINAPI HTMLDocument_put_ondblclick(IHTMLDocument2 *iface, VARIANT v)
584 FIXME("(%p)\n", iface);
585 return E_NOTIMPL;
588 static HRESULT WINAPI HTMLDocument_get_ondblclick(IHTMLDocument2 *iface, VARIANT *p)
590 FIXME("(%p)->(%p)\n", iface, p);
591 return E_NOTIMPL;
594 static HRESULT WINAPI HTMLDocument_put_onkeyup(IHTMLDocument2 *iface, VARIANT v)
596 FIXME("(%p)\n", iface);
597 return E_NOTIMPL;
600 static HRESULT WINAPI HTMLDocument_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p)
602 FIXME("(%p)->(%p)\n", iface, p);
603 return E_NOTIMPL;
606 static HRESULT WINAPI HTMLDocument_put_onkeydown(IHTMLDocument2 *iface, VARIANT v)
608 FIXME("(%p)\n", iface);
609 return E_NOTIMPL;
612 static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT *p)
614 FIXME("(%p)->(%p)\n", iface, p);
615 return E_NOTIMPL;
618 static HRESULT WINAPI HTMLDocument_put_onkeypress(IHTMLDocument2 *iface, VARIANT v)
620 FIXME("(%p)\n", iface);
621 return E_NOTIMPL;
624 static HRESULT WINAPI HTMLDocument_get_onkeypress(IHTMLDocument2 *iface, VARIANT *p)
626 FIXME("(%p)->(%p)\n", iface, p);
627 return E_NOTIMPL;
630 static HRESULT WINAPI HTMLDocument_put_onmouseup(IHTMLDocument2 *iface, VARIANT v)
632 FIXME("(%p)\n", iface);
633 return E_NOTIMPL;
636 static HRESULT WINAPI HTMLDocument_get_onmouseup(IHTMLDocument2 *iface, VARIANT *p)
638 FIXME("(%p)->(%p)\n", iface, p);
639 return E_NOTIMPL;
642 static HRESULT WINAPI HTMLDocument_put_onmousedown(IHTMLDocument2 *iface, VARIANT v)
644 FIXME("(%p)\n", iface);
645 return E_NOTIMPL;
648 static HRESULT WINAPI HTMLDocument_get_onmousedown(IHTMLDocument2 *iface, VARIANT *p)
650 FIXME("(%p)->(%p)\n", iface, p);
651 return E_NOTIMPL;
654 static HRESULT WINAPI HTMLDocument_put_onmousemove(IHTMLDocument2 *iface, VARIANT v)
656 FIXME("(%p)\n", iface);
657 return E_NOTIMPL;
660 static HRESULT WINAPI HTMLDocument_get_onmousemove(IHTMLDocument2 *iface, VARIANT *p)
662 FIXME("(%p)->(%p)\n", iface, p);
663 return E_NOTIMPL;
666 static HRESULT WINAPI HTMLDocument_put_onmouseout(IHTMLDocument2 *iface, VARIANT v)
668 FIXME("(%p)\n", iface);
669 return E_NOTIMPL;
672 static HRESULT WINAPI HTMLDocument_get_onmouseout(IHTMLDocument2 *iface, VARIANT *p)
674 FIXME("(%p)->(%p)\n", iface, p);
675 return E_NOTIMPL;
678 static HRESULT WINAPI HTMLDocument_put_onmouseover(IHTMLDocument2 *iface, VARIANT v)
680 FIXME("(%p)\n", iface);
681 return E_NOTIMPL;
684 static HRESULT WINAPI HTMLDocument_get_onmouseover(IHTMLDocument2 *iface, VARIANT *p)
686 FIXME("(%p)->(%p)\n", iface, p);
687 return E_NOTIMPL;
690 static HRESULT WINAPI HTMLDocument_put_onreadystatechange(IHTMLDocument2 *iface, VARIANT v)
692 FIXME("(%p)\n", iface);
693 return E_NOTIMPL;
696 static HRESULT WINAPI HTMLDocument_get_onreadystatechange(IHTMLDocument2 *iface, VARIANT *p)
698 FIXME("(%p)->(%p)\n", iface, p);
699 return E_NOTIMPL;
702 static HRESULT WINAPI HTMLDocument_put_onafterupdate(IHTMLDocument2 *iface, VARIANT v)
704 FIXME("(%p)\n", iface);
705 return E_NOTIMPL;
708 static HRESULT WINAPI HTMLDocument_get_onafterupdate(IHTMLDocument2 *iface, VARIANT *p)
710 FIXME("(%p)->(%p)\n", iface, p);
711 return E_NOTIMPL;
714 static HRESULT WINAPI HTMLDocument_put_onrowexit(IHTMLDocument2 *iface, VARIANT v)
716 FIXME("(%p)\n", iface);
717 return E_NOTIMPL;
720 static HRESULT WINAPI HTMLDocument_get_onrowexit(IHTMLDocument2 *iface, VARIANT *p)
722 FIXME("(%p)->(%p)\n", iface, p);
723 return E_NOTIMPL;
726 static HRESULT WINAPI HTMLDocument_put_onrowenter(IHTMLDocument2 *iface, VARIANT v)
728 FIXME("(%p)\n", iface);
729 return E_NOTIMPL;
732 static HRESULT WINAPI HTMLDocument_get_onrowenter(IHTMLDocument2 *iface, VARIANT *p)
734 FIXME("(%p)->(%p)\n", iface, p);
735 return E_NOTIMPL;
738 static HRESULT WINAPI HTMLDocument_put_ondragstart(IHTMLDocument2 *iface, VARIANT v)
740 FIXME("(%p)\n", iface);
741 return E_NOTIMPL;
744 static HRESULT WINAPI HTMLDocument_get_ondragstart(IHTMLDocument2 *iface, VARIANT *p)
746 FIXME("(%p)->(%p)\n", iface, p);
747 return E_NOTIMPL;
750 static HRESULT WINAPI HTMLDocument_put_onselectstart(IHTMLDocument2 *iface, VARIANT v)
752 FIXME("(%p)\n", iface);
753 return E_NOTIMPL;
756 static HRESULT WINAPI HTMLDocument_get_onselectstart(IHTMLDocument2 *iface, VARIANT *p)
758 FIXME("(%p)->(%p)\n", iface, p);
759 return E_NOTIMPL;
762 static HRESULT WINAPI HTMLDocument_elementFromPoint(IHTMLDocument2 *iface, long x, long y,
763 IHTMLElement **elementHit)
765 FIXME("(%p)->(%ld %ld %p)\n", iface, x, y, elementHit);
766 return E_NOTIMPL;
769 static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTMLWindow2 **p)
771 FIXME("(%p)->(%p)\n", iface, p);
772 return E_NOTIMPL;
775 static HRESULT WINAPI HTMLDocument_get_styleSheets(IHTMLDocument2 *iface,
776 IHTMLStyleSheetsCollection **p)
778 FIXME("(%p)->(%p)\n", iface, p);
779 return E_NOTIMPL;
782 static HRESULT WINAPI HTMLDocument_put_onbeforeupdate(IHTMLDocument2 *iface, VARIANT v)
784 FIXME("(%p)\n", iface);
785 return E_NOTIMPL;
788 static HRESULT WINAPI HTMLDocument_get_onbeforeupdate(IHTMLDocument2 *iface, VARIANT *p)
790 FIXME("(%p)->(%p)\n", iface, p);
791 return E_NOTIMPL;
794 static HRESULT WINAPI HTMLDocument_put_onerrorupdate(IHTMLDocument2 *iface, VARIANT v)
796 FIXME("(%p)\n", iface);
797 return E_NOTIMPL;
800 static HRESULT WINAPI HTMLDocument_get_onerrorupdate(IHTMLDocument2 *iface, VARIANT *p)
802 FIXME("(%p)->(%p)\n", iface, p);
803 return E_NOTIMPL;
806 static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String)
808 FIXME("(%p)->(%p)\n", iface, String);
809 return E_NOTIMPL;
812 static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref,
813 long lIndex, IHTMLStyleSheet **ppnewStyleSheet)
815 FIXME("(%p)->(%s %ld %p)\n", iface, debugstr_w(bstrHref), lIndex, ppnewStyleSheet);
816 return E_NOTIMPL;
819 static IHTMLDocument2Vtbl HTMLDocumentVtbl = {
820 HTMLDocument_QueryInterface,
821 HTMLDocument_AddRef,
822 HTMLDocument_Release,
823 HTMLDocument_GetTypeInfoCount,
824 HTMLDocument_GetTypeInfo,
825 HTMLDocument_GetIDsOfNames,
826 HTMLDocument_Invoke,
827 HTMLDocument_get_Script,
828 HTMLDocument_get_all,
829 HTMLDocument_get_body,
830 HTMLDocument_get_activeElement,
831 HTMLDocument_get_images,
832 HTMLDocument_get_applets,
833 HTMLDocument_get_links,
834 HTMLDocument_get_forms,
835 HTMLDocument_get_anchors,
836 HTMLDocument_put_title,
837 HTMLDocument_get_title,
838 HTMLDocument_get_scripts,
839 HTMLDocument_put_designMode,
840 HTMLDocument_get_designMode,
841 HTMLDocument_get_selection,
842 HTMLDocument_get_readyState,
843 HTMLDocument_get_frames,
844 HTMLDocument_get_embeds,
845 HTMLDocument_get_plugins,
846 HTMLDocument_put_alinkColor,
847 HTMLDocument_get_alinkColor,
848 HTMLDocument_put_bgColor,
849 HTMLDocument_get_bgColor,
850 HTMLDocument_put_fgColor,
851 HTMLDocument_get_fgColor,
852 HTMLDocument_put_linkColor,
853 HTMLDocument_get_linkColor,
854 HTMLDocument_put_vlinkColor,
855 HTMLDocument_get_vlinkColor,
856 HTMLDocument_get_referrer,
857 HTMLDocument_get_location,
858 HTMLDocument_get_lastModified,
859 HTMLDocument_put_URL,
860 HTMLDocument_get_URL,
861 HTMLDocument_put_domain,
862 HTMLDocument_get_domain,
863 HTMLDocument_put_cookie,
864 HTMLDocument_get_cookie,
865 HTMLDocument_put_expando,
866 HTMLDocument_get_expando,
867 HTMLDocument_put_charset,
868 HTMLDocument_get_charset,
869 HTMLDocument_put_defaultCharset,
870 HTMLDocument_get_defaultCharset,
871 HTMLDocument_get_mimeType,
872 HTMLDocument_get_fileSize,
873 HTMLDocument_get_fileCreatedDate,
874 HTMLDocument_get_fileModifiedDate,
875 HTMLDocument_get_fileUpdatedDate,
876 HTMLDocument_get_security,
877 HTMLDocument_get_protocol,
878 HTMLDocument_get_nameProp,
879 HTMLDocument_write,
880 HTMLDocument_writeln,
881 HTMLDocument_open,
882 HTMLDocument_close,
883 HTMLDocument_clear,
884 HTMLDocument_queryCommandSupported,
885 HTMLDocument_queryCommandEnabled,
886 HTMLDocument_queryCommandState,
887 HTMLDocument_queryCommandIndeterm,
888 HTMLDocument_queryCommandText,
889 HTMLDocument_queryCommandValue,
890 HTMLDocument_execCommand,
891 HTMLDocument_execCommandShowHelp,
892 HTMLDocument_createElement,
893 HTMLDocument_put_onhelp,
894 HTMLDocument_get_onhelp,
895 HTMLDocument_put_onclick,
896 HTMLDocument_get_onclick,
897 HTMLDocument_put_ondblclick,
898 HTMLDocument_get_ondblclick,
899 HTMLDocument_put_onkeyup,
900 HTMLDocument_get_onkeyup,
901 HTMLDocument_put_onkeydown,
902 HTMLDocument_get_onkeydown,
903 HTMLDocument_put_onkeypress,
904 HTMLDocument_get_onkeypress,
905 HTMLDocument_put_onmouseup,
906 HTMLDocument_get_onmouseup,
907 HTMLDocument_put_onmousedown,
908 HTMLDocument_get_onmousedown,
909 HTMLDocument_put_onmousemove,
910 HTMLDocument_get_onmousemove,
911 HTMLDocument_put_onmouseout,
912 HTMLDocument_get_onmouseout,
913 HTMLDocument_put_onmouseover,
914 HTMLDocument_get_onmouseover,
915 HTMLDocument_put_onreadystatechange,
916 HTMLDocument_get_onreadystatechange,
917 HTMLDocument_put_onafterupdate,
918 HTMLDocument_get_onafterupdate,
919 HTMLDocument_put_onrowexit,
920 HTMLDocument_get_onrowexit,
921 HTMLDocument_put_onrowenter,
922 HTMLDocument_get_onrowenter,
923 HTMLDocument_put_ondragstart,
924 HTMLDocument_get_ondragstart,
925 HTMLDocument_put_onselectstart,
926 HTMLDocument_get_onselectstart,
927 HTMLDocument_elementFromPoint,
928 HTMLDocument_get_parentWindow,
929 HTMLDocument_get_styleSheets,
930 HTMLDocument_put_onbeforeupdate,
931 HTMLDocument_get_onbeforeupdate,
932 HTMLDocument_put_onerrorupdate,
933 HTMLDocument_get_onerrorupdate,
934 HTMLDocument_toString,
935 HTMLDocument_createStyleSheet
938 HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
940 HTMLDocument *ret;
941 HRESULT hres;
943 TRACE("(%p %s %p)\n", pUnkOuter, debugstr_guid(riid), ppvObject);
945 ret = HeapAlloc(GetProcessHeap(), 0, sizeof(HTMLDocument));
946 ret->lpHTMLDocument2Vtbl = &HTMLDocumentVtbl;
947 ret->ref = 0;
949 hres = IHTMLDocument_QueryInterface(HTMLDOC(ret), riid, ppvObject);
950 if(FAILED(hres))
951 HeapFree(GetProcessHeap(), 0, ret);
953 HTMLDocument_Persist_Init(ret);
954 HTMLDocument_OleObj_Init(ret);
955 HTMLDocument_View_Init(ret);
957 return hres;