Store the SysIP property using a string to avoid trouble with 16-bit
[wine/wine64.git] / dlls / mshtml / htmldoc.c
blob632829d7e398cd167085be34a043ce43a2f091fe
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 "mshtmhst.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);
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);
100 }else if(IsEqualGUID(&IID_IOleCommandTarget, riid)) {
101 TRACE("(%p)->(IID_IOleCommandTarget, %p)\n", This, ppvObject);
102 *ppvObject = CMDTARGET(This);
105 if(*ppvObject) {
106 IHTMLDocument2_AddRef(iface);
107 return S_OK;
110 FIXME("(%p)->(%s %p) interface not supported\n", This, debugstr_guid(riid), ppvObject);
111 return E_NOINTERFACE;
114 static ULONG WINAPI HTMLDocument_AddRef(IHTMLDocument2 *iface)
116 HTMLDocument *This = (HTMLDocument*)iface;
117 ULONG ref = InterlockedIncrement(&This->ref);
118 TRACE("(%p) ref = %lu\n", This, ref);
119 return ref;
122 static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface)
124 HTMLDocument *This = (HTMLDocument*)iface;
125 ULONG ref = InterlockedDecrement(&This->ref);
127 TRACE("(%p) ref = %lu\n", This, ref);
129 if(!ref) {
130 if(This->client)
131 IOleObject_SetClientSite(OLEOBJ(This), NULL);
132 if(This->in_place_active)
133 IOleInPlaceObjectWindowless_InPlaceDeactivate(INPLACEWIN(This));
134 if(This->ipsite)
135 IOleDocumentView_SetInPlaceSite(DOCVIEW(This), NULL);
136 if(This->hwnd)
137 DestroyWindow(This->hwnd);
138 HeapFree(GetProcessHeap(), 0, This);
141 return ref;
144 static HRESULT WINAPI HTMLDocument_GetTypeInfoCount(IHTMLDocument2 *iface, UINT *pctinfo)
146 FIXME("(%p)->(%p)\n", iface, pctinfo);
147 return E_NOTIMPL;
150 static HRESULT WINAPI HTMLDocument_GetTypeInfo(IHTMLDocument2 *iface, UINT iTInfo,
151 LCID lcid, ITypeInfo **ppTInfo)
153 FIXME("(%p)->(%u %lu %p)\n", iface, iTInfo, lcid, ppTInfo);
154 return E_NOTIMPL;
157 static HRESULT WINAPI HTMLDocument_GetIDsOfNames(IHTMLDocument2 *iface, REFIID riid,
158 LPOLESTR *rgszNames, UINT cNames,
159 LCID lcid, DISPID *rgDispId)
161 FIXME("(%p)->(%s %p %u %lu %p)\n", iface, debugstr_guid(riid), rgszNames, cNames,
162 lcid, rgDispId);
163 return E_NOTIMPL;
166 static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMember,
167 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
168 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
170 FIXME("(%p)->(%ld %s %ld %d %p %p %p %p)\n", iface, dispIdMember, debugstr_guid(riid),
171 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
172 return E_NOTIMPL;
175 static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch **p)
177 FIXME("(%p)->(%p)\n", iface, p);
178 return E_NOTIMPL;
181 static HRESULT WINAPI HTMLDocument_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p)
183 FIXME("(%p)->(%p)\n", iface, p);
184 return E_NOTIMPL;
187 static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement **p)
189 FIXME("(%p)->(%p)\n", iface, p);
190 return E_NOTIMPL;
193 static HRESULT WINAPI HTMLDocument_get_activeElement(IHTMLDocument2 *iface, IHTMLElement **p)
195 FIXME("(%p)->(%p)\n", iface, p);
196 return E_NOTIMPL;
199 static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElementCollection **p)
201 FIXME("(%p)->(%p)\n", iface, p);
202 return E_NOTIMPL;
205 static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLElementCollection **p)
207 FIXME("(%p)->(%p)\n", iface, p);
208 return E_NOTIMPL;
211 static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElementCollection **p)
213 FIXME("(%p)->(%p)\n", iface, p);
214 return E_NOTIMPL;
217 static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElementCollection **p)
219 FIXME("(%p)->(%p)\n", iface, p);
220 return E_NOTIMPL;
223 static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLElementCollection **p)
225 FIXME("(%p)->(%p)\n", iface, p);
226 return E_NOTIMPL;
229 static HRESULT WINAPI HTMLDocument_put_title(IHTMLDocument2 *iface, BSTR v)
231 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
232 return E_NOTIMPL;
235 static HRESULT WINAPI HTMLDocument_get_title(IHTMLDocument2 *iface, BSTR *p)
237 FIXME("(%p)->(%p)\n", iface, p);
238 return E_NOTIMPL;
241 static HRESULT WINAPI HTMLDocument_get_scripts(IHTMLDocument2 *iface, IHTMLElementCollection **p)
243 FIXME("(%p)->(%p)\n", iface, p);
244 return E_NOTIMPL;
247 static HRESULT WINAPI HTMLDocument_put_designMode(IHTMLDocument2 *iface, BSTR v)
249 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
250 return E_NOTIMPL;
253 static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p)
255 FIXME("(%p)->(%p)\n", iface, p);
256 return E_NOTIMPL;
259 static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSelectionObject **p)
261 FIXME("(%p)->(%p)\n", iface, p);
262 return E_NOTIMPL;
265 static HRESULT WINAPI HTMLDocument_get_readyState(IHTMLDocument2 *iface, BSTR *p)
267 FIXME("(%p)->(%p)\n", iface, p);
268 return E_NOTIMPL;
271 static HRESULT WINAPI HTMLDocument_get_frames(IHTMLDocument2 *iface, IHTMLFramesCollection2 **p)
273 FIXME("(%p)->(%p)\n", iface, p);
274 return E_NOTIMPL;
277 static HRESULT WINAPI HTMLDocument_get_embeds(IHTMLDocument2 *iface, IHTMLElementCollection **p)
279 FIXME("(%p)->(%p)\n", iface, p);
280 return E_NOTIMPL;
283 static HRESULT WINAPI HTMLDocument_get_plugins(IHTMLDocument2 *iface, IHTMLElementCollection **p)
285 FIXME("(%p)->(%p)\n", iface, p);
286 return E_NOTIMPL;
289 static HRESULT WINAPI HTMLDocument_put_alinkColor(IHTMLDocument2 *iface, VARIANT v)
291 FIXME("(%p)\n", iface);
292 return E_NOTIMPL;
295 static HRESULT WINAPI HTMLDocument_get_alinkColor(IHTMLDocument2 *iface, VARIANT *p)
297 FIXME("(%p)->(%p)\n", iface, p);
298 return E_NOTIMPL;
301 static HRESULT WINAPI HTMLDocument_put_bgColor(IHTMLDocument2 *iface, VARIANT v)
303 FIXME("(%p)\n", iface);
304 return E_NOTIMPL;
307 static HRESULT WINAPI HTMLDocument_get_bgColor(IHTMLDocument2 *iface, VARIANT *p)
309 FIXME("(%p)->(%p)\n", iface, p);
310 return E_NOTIMPL;
313 static HRESULT WINAPI HTMLDocument_put_fgColor(IHTMLDocument2 *iface, VARIANT v)
315 FIXME("(%p)\n", iface);
316 return E_NOTIMPL;
319 static HRESULT WINAPI HTMLDocument_get_fgColor(IHTMLDocument2 *iface, VARIANT *p)
321 FIXME("(%p)->(%p)\n", iface, p);
322 return E_NOTIMPL;
325 static HRESULT WINAPI HTMLDocument_put_linkColor(IHTMLDocument2 *iface, VARIANT v)
327 FIXME("(%p)->()\n", iface);
328 return E_NOTIMPL;
331 static HRESULT WINAPI HTMLDocument_get_linkColor(IHTMLDocument2 *iface, VARIANT *p)
333 FIXME("(%p)->(%p)\n", iface, p);
334 return E_NOTIMPL;
337 static HRESULT WINAPI HTMLDocument_put_vlinkColor(IHTMLDocument2 *iface, VARIANT v)
339 FIXME("(%p)\n", iface);
340 return E_NOTIMPL;
343 static HRESULT WINAPI HTMLDocument_get_vlinkColor(IHTMLDocument2 *iface, VARIANT *p)
345 FIXME("(%p)->(%p)\n", iface, p);
346 return E_NOTIMPL;
349 static HRESULT WINAPI HTMLDocument_get_referrer(IHTMLDocument2 *iface, BSTR *p)
351 FIXME("(%p)->(%p)\n", iface, p);
352 return E_NOTIMPL;
355 static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLocation **p)
357 FIXME("(%p)->(%p)\n", iface, p);
358 return E_NOTIMPL;
361 static HRESULT WINAPI HTMLDocument_get_lastModified(IHTMLDocument2 *iface, BSTR *p)
363 FIXME("(%p)->(%p)\n", iface, p);
364 return E_NOTIMPL;
367 static HRESULT WINAPI HTMLDocument_put_URL(IHTMLDocument2 *iface, BSTR v)
369 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
370 return E_NOTIMPL;
373 static HRESULT WINAPI HTMLDocument_get_URL(IHTMLDocument2 *iface, BSTR *p)
375 FIXME("(%p)->(%p)\n", iface, p);
376 return E_NOTIMPL;
379 static HRESULT WINAPI HTMLDocument_put_domain(IHTMLDocument2 *iface, BSTR v)
381 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
382 return E_NOTIMPL;
385 static HRESULT WINAPI HTMLDocument_get_domain(IHTMLDocument2 *iface, BSTR *p)
387 FIXME("(%p)->(%p)\n", iface, p);
388 return E_NOTIMPL;
391 static HRESULT WINAPI HTMLDocument_put_cookie(IHTMLDocument2 *iface, BSTR v)
393 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
394 return E_NOTIMPL;
397 static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p)
399 FIXME("(%p)->(%p)\n", iface, p);
400 return E_NOTIMPL;
403 static HRESULT WINAPI HTMLDocument_put_expando(IHTMLDocument2 *iface, VARIANT_BOOL v)
405 FIXME("(%p)->(%x)\n", iface, v);
406 return E_NOTIMPL;
409 static HRESULT WINAPI HTMLDocument_get_expando(IHTMLDocument2 *iface, VARIANT_BOOL *p)
411 FIXME("(%p)->(%p)\n", iface, p);
412 return E_NOTIMPL;
415 static HRESULT WINAPI HTMLDocument_put_charset(IHTMLDocument2 *iface, BSTR v)
417 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
418 return E_NOTIMPL;
421 static HRESULT WINAPI HTMLDocument_get_charset(IHTMLDocument2 *iface, BSTR *p)
423 FIXME("(%p)->(%p)\n", iface, p);
424 return E_NOTIMPL;
427 static HRESULT WINAPI HTMLDocument_put_defaultCharset(IHTMLDocument2 *iface, BSTR v)
429 FIXME("(%p)->(%s)\n", iface, debugstr_w(v));
430 return E_NOTIMPL;
433 static HRESULT WINAPI HTMLDocument_get_defaultCharset(IHTMLDocument2 *iface, BSTR *p)
435 FIXME("(%p)->(%p)\n", iface, p);
436 return E_NOTIMPL;
439 static HRESULT WINAPI HTMLDocument_get_mimeType(IHTMLDocument2 *iface, BSTR *p)
441 FIXME("(%p)->(%p)\n", iface, p);
442 return E_NOTIMPL;
445 static HRESULT WINAPI HTMLDocument_get_fileSize(IHTMLDocument2 *iface, BSTR *p)
447 FIXME("(%p)->(%p)\n", iface, p);
448 return E_NOTIMPL;
451 static HRESULT WINAPI HTMLDocument_get_fileCreatedDate(IHTMLDocument2 *iface, BSTR *p)
453 FIXME("(%p)->(%p)\n", iface, p);
454 return E_NOTIMPL;
457 static HRESULT WINAPI HTMLDocument_get_fileModifiedDate(IHTMLDocument2 *iface, BSTR *p)
459 FIXME("(%p)->(%p)\n", iface, p);
460 return E_NOTIMPL;
463 static HRESULT WINAPI HTMLDocument_get_fileUpdatedDate(IHTMLDocument2 *iface, BSTR *p)
465 FIXME("(%p)->(%p)\n", iface, p);
466 return E_NOTIMPL;
469 static HRESULT WINAPI HTMLDocument_get_security(IHTMLDocument2 *iface, BSTR *p)
471 FIXME("(%p)->(%p)\n", iface, p);
472 return E_NOTIMPL;
475 static HRESULT WINAPI HTMLDocument_get_protocol(IHTMLDocument2 *iface, BSTR *p)
477 FIXME("(%p)->(%p)\n", iface, p);
478 return E_NOTIMPL;
481 static HRESULT WINAPI HTMLDocument_get_nameProp(IHTMLDocument2 *iface, BSTR *p)
483 FIXME("(%p)->(%p)\n", iface, p);
484 return E_NOTIMPL;
487 static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarray)
489 FIXME("(%p)->(%p)\n", iface, psarray);
490 return E_NOTIMPL;
493 static HRESULT WINAPI HTMLDocument_writeln(IHTMLDocument2 *iface, SAFEARRAY *psarray)
495 FIXME("(%p)->(%p)\n", iface, psarray);
496 return E_NOTIMPL;
499 static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT name,
500 VARIANT features, VARIANT replace, IDispatch **pomWindowResult)
502 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(url), pomWindowResult);
503 return E_NOTIMPL;
506 static HRESULT WINAPI HTMLDocument_close(IHTMLDocument2 *iface)
508 FIXME("(%p)\n", iface);
509 return E_NOTIMPL;
512 static HRESULT WINAPI HTMLDocument_clear(IHTMLDocument2 *iface)
514 FIXME("(%p)\n", iface);
515 return E_NOTIMPL;
518 static HRESULT WINAPI HTMLDocument_queryCommandSupported(IHTMLDocument2 *iface, BSTR cmdID,
519 VARIANT_BOOL *pfRet)
521 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
522 return E_NOTIMPL;
525 static HRESULT WINAPI HTMLDocument_queryCommandEnabled(IHTMLDocument2 *iface, BSTR cmdID,
526 VARIANT_BOOL *pfRet)
528 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
529 return E_NOTIMPL;
532 static HRESULT WINAPI HTMLDocument_queryCommandState(IHTMLDocument2 *iface, BSTR cmdID,
533 VARIANT_BOOL *pfRet)
535 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
536 return E_NOTIMPL;
539 static HRESULT WINAPI HTMLDocument_queryCommandIndeterm(IHTMLDocument2 *iface, BSTR cmdID,
540 VARIANT_BOOL *pfRet)
542 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
543 return E_NOTIMPL;
546 static HRESULT WINAPI HTMLDocument_queryCommandText(IHTMLDocument2 *iface, BSTR cmdID,
547 BSTR *pfRet)
549 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
550 return E_NOTIMPL;
553 static HRESULT WINAPI HTMLDocument_queryCommandValue(IHTMLDocument2 *iface, BSTR cmdID,
554 VARIANT *pfRet)
556 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
557 return E_NOTIMPL;
560 static HRESULT WINAPI HTMLDocument_execCommand(IHTMLDocument2 *iface, BSTR cmdID,
561 VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet)
563 FIXME("(%p)->(%s %x %p)\n", iface, debugstr_w(cmdID), showUI, pfRet);
564 return E_NOTIMPL;
567 static HRESULT WINAPI HTMLDocument_execCommandShowHelp(IHTMLDocument2 *iface, BSTR cmdID,
568 VARIANT_BOOL *pfRet)
570 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(cmdID), pfRet);
571 return E_NOTIMPL;
574 static HRESULT WINAPI HTMLDocument_createElement(IHTMLDocument2 *iface, BSTR eTag,
575 IHTMLElement **newElem)
577 FIXME("(%p)->(%s %p)\n", iface, debugstr_w(eTag), newElem);
578 return E_NOTIMPL;
581 static HRESULT WINAPI HTMLDocument_put_onhelp(IHTMLDocument2 *iface, VARIANT v)
583 FIXME("(%p)\n", iface);
584 return E_NOTIMPL;
587 static HRESULT WINAPI HTMLDocument_get_onhelp(IHTMLDocument2 *iface, VARIANT *p)
589 FIXME("(%p)->(%p)\n", iface, p);
590 return E_NOTIMPL;
593 static HRESULT WINAPI HTMLDocument_put_onclick(IHTMLDocument2 *iface, VARIANT v)
595 FIXME("(%p)\n", iface);
596 return E_NOTIMPL;
599 static HRESULT WINAPI HTMLDocument_get_onclick(IHTMLDocument2 *iface, VARIANT *p)
601 FIXME("(%p)->(%p)\n", iface, p);
602 return E_NOTIMPL;
605 static HRESULT WINAPI HTMLDocument_put_ondblclick(IHTMLDocument2 *iface, VARIANT v)
607 FIXME("(%p)\n", iface);
608 return E_NOTIMPL;
611 static HRESULT WINAPI HTMLDocument_get_ondblclick(IHTMLDocument2 *iface, VARIANT *p)
613 FIXME("(%p)->(%p)\n", iface, p);
614 return E_NOTIMPL;
617 static HRESULT WINAPI HTMLDocument_put_onkeyup(IHTMLDocument2 *iface, VARIANT v)
619 FIXME("(%p)\n", iface);
620 return E_NOTIMPL;
623 static HRESULT WINAPI HTMLDocument_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p)
625 FIXME("(%p)->(%p)\n", iface, p);
626 return E_NOTIMPL;
629 static HRESULT WINAPI HTMLDocument_put_onkeydown(IHTMLDocument2 *iface, VARIANT v)
631 FIXME("(%p)\n", iface);
632 return E_NOTIMPL;
635 static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT *p)
637 FIXME("(%p)->(%p)\n", iface, p);
638 return E_NOTIMPL;
641 static HRESULT WINAPI HTMLDocument_put_onkeypress(IHTMLDocument2 *iface, VARIANT v)
643 FIXME("(%p)\n", iface);
644 return E_NOTIMPL;
647 static HRESULT WINAPI HTMLDocument_get_onkeypress(IHTMLDocument2 *iface, VARIANT *p)
649 FIXME("(%p)->(%p)\n", iface, p);
650 return E_NOTIMPL;
653 static HRESULT WINAPI HTMLDocument_put_onmouseup(IHTMLDocument2 *iface, VARIANT v)
655 FIXME("(%p)\n", iface);
656 return E_NOTIMPL;
659 static HRESULT WINAPI HTMLDocument_get_onmouseup(IHTMLDocument2 *iface, VARIANT *p)
661 FIXME("(%p)->(%p)\n", iface, p);
662 return E_NOTIMPL;
665 static HRESULT WINAPI HTMLDocument_put_onmousedown(IHTMLDocument2 *iface, VARIANT v)
667 FIXME("(%p)\n", iface);
668 return E_NOTIMPL;
671 static HRESULT WINAPI HTMLDocument_get_onmousedown(IHTMLDocument2 *iface, VARIANT *p)
673 FIXME("(%p)->(%p)\n", iface, p);
674 return E_NOTIMPL;
677 static HRESULT WINAPI HTMLDocument_put_onmousemove(IHTMLDocument2 *iface, VARIANT v)
679 FIXME("(%p)\n", iface);
680 return E_NOTIMPL;
683 static HRESULT WINAPI HTMLDocument_get_onmousemove(IHTMLDocument2 *iface, VARIANT *p)
685 FIXME("(%p)->(%p)\n", iface, p);
686 return E_NOTIMPL;
689 static HRESULT WINAPI HTMLDocument_put_onmouseout(IHTMLDocument2 *iface, VARIANT v)
691 FIXME("(%p)\n", iface);
692 return E_NOTIMPL;
695 static HRESULT WINAPI HTMLDocument_get_onmouseout(IHTMLDocument2 *iface, VARIANT *p)
697 FIXME("(%p)->(%p)\n", iface, p);
698 return E_NOTIMPL;
701 static HRESULT WINAPI HTMLDocument_put_onmouseover(IHTMLDocument2 *iface, VARIANT v)
703 FIXME("(%p)\n", iface);
704 return E_NOTIMPL;
707 static HRESULT WINAPI HTMLDocument_get_onmouseover(IHTMLDocument2 *iface, VARIANT *p)
709 FIXME("(%p)->(%p)\n", iface, p);
710 return E_NOTIMPL;
713 static HRESULT WINAPI HTMLDocument_put_onreadystatechange(IHTMLDocument2 *iface, VARIANT v)
715 FIXME("(%p)\n", iface);
716 return E_NOTIMPL;
719 static HRESULT WINAPI HTMLDocument_get_onreadystatechange(IHTMLDocument2 *iface, VARIANT *p)
721 FIXME("(%p)->(%p)\n", iface, p);
722 return E_NOTIMPL;
725 static HRESULT WINAPI HTMLDocument_put_onafterupdate(IHTMLDocument2 *iface, VARIANT v)
727 FIXME("(%p)\n", iface);
728 return E_NOTIMPL;
731 static HRESULT WINAPI HTMLDocument_get_onafterupdate(IHTMLDocument2 *iface, VARIANT *p)
733 FIXME("(%p)->(%p)\n", iface, p);
734 return E_NOTIMPL;
737 static HRESULT WINAPI HTMLDocument_put_onrowexit(IHTMLDocument2 *iface, VARIANT v)
739 FIXME("(%p)\n", iface);
740 return E_NOTIMPL;
743 static HRESULT WINAPI HTMLDocument_get_onrowexit(IHTMLDocument2 *iface, VARIANT *p)
745 FIXME("(%p)->(%p)\n", iface, p);
746 return E_NOTIMPL;
749 static HRESULT WINAPI HTMLDocument_put_onrowenter(IHTMLDocument2 *iface, VARIANT v)
751 FIXME("(%p)\n", iface);
752 return E_NOTIMPL;
755 static HRESULT WINAPI HTMLDocument_get_onrowenter(IHTMLDocument2 *iface, VARIANT *p)
757 FIXME("(%p)->(%p)\n", iface, p);
758 return E_NOTIMPL;
761 static HRESULT WINAPI HTMLDocument_put_ondragstart(IHTMLDocument2 *iface, VARIANT v)
763 FIXME("(%p)\n", iface);
764 return E_NOTIMPL;
767 static HRESULT WINAPI HTMLDocument_get_ondragstart(IHTMLDocument2 *iface, VARIANT *p)
769 FIXME("(%p)->(%p)\n", iface, p);
770 return E_NOTIMPL;
773 static HRESULT WINAPI HTMLDocument_put_onselectstart(IHTMLDocument2 *iface, VARIANT v)
775 FIXME("(%p)\n", iface);
776 return E_NOTIMPL;
779 static HRESULT WINAPI HTMLDocument_get_onselectstart(IHTMLDocument2 *iface, VARIANT *p)
781 FIXME("(%p)->(%p)\n", iface, p);
782 return E_NOTIMPL;
785 static HRESULT WINAPI HTMLDocument_elementFromPoint(IHTMLDocument2 *iface, long x, long y,
786 IHTMLElement **elementHit)
788 FIXME("(%p)->(%ld %ld %p)\n", iface, x, y, elementHit);
789 return E_NOTIMPL;
792 static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTMLWindow2 **p)
794 FIXME("(%p)->(%p)\n", iface, p);
795 return E_NOTIMPL;
798 static HRESULT WINAPI HTMLDocument_get_styleSheets(IHTMLDocument2 *iface,
799 IHTMLStyleSheetsCollection **p)
801 FIXME("(%p)->(%p)\n", iface, p);
802 return E_NOTIMPL;
805 static HRESULT WINAPI HTMLDocument_put_onbeforeupdate(IHTMLDocument2 *iface, VARIANT v)
807 FIXME("(%p)\n", iface);
808 return E_NOTIMPL;
811 static HRESULT WINAPI HTMLDocument_get_onbeforeupdate(IHTMLDocument2 *iface, VARIANT *p)
813 FIXME("(%p)->(%p)\n", iface, p);
814 return E_NOTIMPL;
817 static HRESULT WINAPI HTMLDocument_put_onerrorupdate(IHTMLDocument2 *iface, VARIANT v)
819 FIXME("(%p)\n", iface);
820 return E_NOTIMPL;
823 static HRESULT WINAPI HTMLDocument_get_onerrorupdate(IHTMLDocument2 *iface, VARIANT *p)
825 FIXME("(%p)->(%p)\n", iface, p);
826 return E_NOTIMPL;
829 static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String)
831 FIXME("(%p)->(%p)\n", iface, String);
832 return E_NOTIMPL;
835 static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref,
836 long lIndex, IHTMLStyleSheet **ppnewStyleSheet)
838 FIXME("(%p)->(%s %ld %p)\n", iface, debugstr_w(bstrHref), lIndex, ppnewStyleSheet);
839 return E_NOTIMPL;
842 static const IHTMLDocument2Vtbl HTMLDocumentVtbl = {
843 HTMLDocument_QueryInterface,
844 HTMLDocument_AddRef,
845 HTMLDocument_Release,
846 HTMLDocument_GetTypeInfoCount,
847 HTMLDocument_GetTypeInfo,
848 HTMLDocument_GetIDsOfNames,
849 HTMLDocument_Invoke,
850 HTMLDocument_get_Script,
851 HTMLDocument_get_all,
852 HTMLDocument_get_body,
853 HTMLDocument_get_activeElement,
854 HTMLDocument_get_images,
855 HTMLDocument_get_applets,
856 HTMLDocument_get_links,
857 HTMLDocument_get_forms,
858 HTMLDocument_get_anchors,
859 HTMLDocument_put_title,
860 HTMLDocument_get_title,
861 HTMLDocument_get_scripts,
862 HTMLDocument_put_designMode,
863 HTMLDocument_get_designMode,
864 HTMLDocument_get_selection,
865 HTMLDocument_get_readyState,
866 HTMLDocument_get_frames,
867 HTMLDocument_get_embeds,
868 HTMLDocument_get_plugins,
869 HTMLDocument_put_alinkColor,
870 HTMLDocument_get_alinkColor,
871 HTMLDocument_put_bgColor,
872 HTMLDocument_get_bgColor,
873 HTMLDocument_put_fgColor,
874 HTMLDocument_get_fgColor,
875 HTMLDocument_put_linkColor,
876 HTMLDocument_get_linkColor,
877 HTMLDocument_put_vlinkColor,
878 HTMLDocument_get_vlinkColor,
879 HTMLDocument_get_referrer,
880 HTMLDocument_get_location,
881 HTMLDocument_get_lastModified,
882 HTMLDocument_put_URL,
883 HTMLDocument_get_URL,
884 HTMLDocument_put_domain,
885 HTMLDocument_get_domain,
886 HTMLDocument_put_cookie,
887 HTMLDocument_get_cookie,
888 HTMLDocument_put_expando,
889 HTMLDocument_get_expando,
890 HTMLDocument_put_charset,
891 HTMLDocument_get_charset,
892 HTMLDocument_put_defaultCharset,
893 HTMLDocument_get_defaultCharset,
894 HTMLDocument_get_mimeType,
895 HTMLDocument_get_fileSize,
896 HTMLDocument_get_fileCreatedDate,
897 HTMLDocument_get_fileModifiedDate,
898 HTMLDocument_get_fileUpdatedDate,
899 HTMLDocument_get_security,
900 HTMLDocument_get_protocol,
901 HTMLDocument_get_nameProp,
902 HTMLDocument_write,
903 HTMLDocument_writeln,
904 HTMLDocument_open,
905 HTMLDocument_close,
906 HTMLDocument_clear,
907 HTMLDocument_queryCommandSupported,
908 HTMLDocument_queryCommandEnabled,
909 HTMLDocument_queryCommandState,
910 HTMLDocument_queryCommandIndeterm,
911 HTMLDocument_queryCommandText,
912 HTMLDocument_queryCommandValue,
913 HTMLDocument_execCommand,
914 HTMLDocument_execCommandShowHelp,
915 HTMLDocument_createElement,
916 HTMLDocument_put_onhelp,
917 HTMLDocument_get_onhelp,
918 HTMLDocument_put_onclick,
919 HTMLDocument_get_onclick,
920 HTMLDocument_put_ondblclick,
921 HTMLDocument_get_ondblclick,
922 HTMLDocument_put_onkeyup,
923 HTMLDocument_get_onkeyup,
924 HTMLDocument_put_onkeydown,
925 HTMLDocument_get_onkeydown,
926 HTMLDocument_put_onkeypress,
927 HTMLDocument_get_onkeypress,
928 HTMLDocument_put_onmouseup,
929 HTMLDocument_get_onmouseup,
930 HTMLDocument_put_onmousedown,
931 HTMLDocument_get_onmousedown,
932 HTMLDocument_put_onmousemove,
933 HTMLDocument_get_onmousemove,
934 HTMLDocument_put_onmouseout,
935 HTMLDocument_get_onmouseout,
936 HTMLDocument_put_onmouseover,
937 HTMLDocument_get_onmouseover,
938 HTMLDocument_put_onreadystatechange,
939 HTMLDocument_get_onreadystatechange,
940 HTMLDocument_put_onafterupdate,
941 HTMLDocument_get_onafterupdate,
942 HTMLDocument_put_onrowexit,
943 HTMLDocument_get_onrowexit,
944 HTMLDocument_put_onrowenter,
945 HTMLDocument_get_onrowenter,
946 HTMLDocument_put_ondragstart,
947 HTMLDocument_get_ondragstart,
948 HTMLDocument_put_onselectstart,
949 HTMLDocument_get_onselectstart,
950 HTMLDocument_elementFromPoint,
951 HTMLDocument_get_parentWindow,
952 HTMLDocument_get_styleSheets,
953 HTMLDocument_put_onbeforeupdate,
954 HTMLDocument_get_onbeforeupdate,
955 HTMLDocument_put_onerrorupdate,
956 HTMLDocument_get_onerrorupdate,
957 HTMLDocument_toString,
958 HTMLDocument_createStyleSheet
961 HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
963 HTMLDocument *ret;
964 HRESULT hres;
966 TRACE("(%p %s %p)\n", pUnkOuter, debugstr_guid(riid), ppvObject);
968 ret = HeapAlloc(GetProcessHeap(), 0, sizeof(HTMLDocument));
969 ret->lpHTMLDocument2Vtbl = &HTMLDocumentVtbl;
970 ret->ref = 0;
972 hres = IHTMLDocument_QueryInterface(HTMLDOC(ret), riid, ppvObject);
973 if(FAILED(hres))
974 HeapFree(GetProcessHeap(), 0, ret);
976 HTMLDocument_Persist_Init(ret);
977 HTMLDocument_OleObj_Init(ret);
978 HTMLDocument_View_Init(ret);
979 HTMLDocument_Window_Init(ret);
980 HTMLDocument_Service_Init(ret);
982 return hres;