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
31 #include "wine/debug.h"
33 #include "mshtml_private.h"
35 WINE_DEFAULT_DEBUG_CHANNEL(mshtml
);
37 #define HTMLDOC_THIS(iface) DEFINE_THIS(HTMLDocument, HTMLDocument2, iface)
39 static HRESULT WINAPI
HTMLDocument_QueryInterface(IHTMLDocument2
*iface
, REFIID riid
, void **ppvObject
)
41 HTMLDocument
*This
= HTMLDOC_THIS(iface
);
44 if(IsEqualGUID(&IID_IUnknown
, riid
)) {
45 TRACE("(%p)->(IID_IUnknown, %p)\n", This
, ppvObject
);
46 *ppvObject
= HTMLDOC(This
);
47 }else if(IsEqualGUID(&IID_IDispatch
, riid
)) {
48 TRACE("(%p)->(IID_IDispatch, %p)\n", This
, ppvObject
);
49 *ppvObject
= HTMLDOC(This
);
50 }else if(IsEqualGUID(&IID_IHTMLDocument
, riid
)) {
51 TRACE("(%p)->(IID_IHTMLDocument, %p)\n", This
, ppvObject
);
52 *ppvObject
= HTMLDOC(This
);
53 }else if(IsEqualGUID(&IID_IHTMLDocument2
, riid
)) {
54 TRACE("(%p)->(IID_IHTMLDocument2, %p)\n", This
, ppvObject
);
55 *ppvObject
= HTMLDOC(This
);
56 }else if(IsEqualGUID(&IID_IHTMLDocument3
, riid
)) {
57 TRACE("(%p)->(IID_IHTMLDocument3, %p)\n", This
, ppvObject
);
58 *ppvObject
= HTMLDOC3(This
);
59 }else if(IsEqualGUID(&IID_IPersist
, riid
)) {
60 TRACE("(%p)->(IID_IPersist, %p)\n", This
, ppvObject
);
61 *ppvObject
= PERSIST(This
);
62 }else if(IsEqualGUID(&IID_IPersistMoniker
, riid
)) {
63 TRACE("(%p)->(IID_IPersistMoniker, %p)\n", This
, ppvObject
);
64 *ppvObject
= PERSISTMON(This
);
65 }else if(IsEqualGUID(&IID_IPersistFile
, riid
)) {
66 TRACE("(%p)->(IID_IPersistFile, %p)\n", This
, ppvObject
);
67 *ppvObject
= PERSISTFILE(This
);
68 }else if(IsEqualGUID(&IID_IMonikerProp
, riid
)) {
69 TRACE("(%p)->(IID_IMonikerProp, %p)\n", This
, ppvObject
);
70 *ppvObject
= MONPROP(This
);
71 }else if(IsEqualGUID(&IID_IOleObject
, riid
)) {
72 TRACE("(%p)->(IID_IOleObject, %p)\n", This
, ppvObject
);
73 *ppvObject
= OLEOBJ(This
);
74 }else if(IsEqualGUID(&IID_IOleDocument
, riid
)) {
75 TRACE("(%p)->(IID_IOleDocument, %p)\n", This
, ppvObject
);
76 *ppvObject
= OLEDOC(This
);
77 }else if(IsEqualGUID(&IID_IOleDocumentView
, riid
)) {
78 TRACE("(%p)->(IID_IOleDocumentView, %p)\n", This
, ppvObject
);
79 *ppvObject
= DOCVIEW(This
);
80 }else if(IsEqualGUID(&IID_IOleInPlaceActiveObject
, riid
)) {
81 TRACE("(%p)->(IID_IOleInPlaceActiveObject, %p)\n", This
, ppvObject
);
82 *ppvObject
= ACTOBJ(This
);
83 }else if(IsEqualGUID(&IID_IViewObject
, riid
)) {
84 TRACE("(%p)->(IID_IViewObject, %p)\n", This
, ppvObject
);
85 *ppvObject
= VIEWOBJ(This
);
86 }else if(IsEqualGUID(&IID_IViewObject2
, riid
)) {
87 TRACE("(%p)->(IID_IViewObject2, %p)\n", This
, ppvObject
);
88 *ppvObject
= VIEWOBJ2(This
);
89 }else if(IsEqualGUID(&IID_IOleWindow
, riid
)) {
90 TRACE("(%p)->(IID_IOleWindow, %p)\n", This
, ppvObject
);
91 *ppvObject
= OLEWIN(This
);
92 }else if(IsEqualGUID(&IID_IOleInPlaceObject
, riid
)) {
93 TRACE("(%p)->(IID_IOleInPlaceObject, %p)\n", This
, ppvObject
);
94 *ppvObject
= INPLACEOBJ(This
);
95 }else if(IsEqualGUID(&IID_IOleInPlaceObjectWindowless
, riid
)) {
96 TRACE("(%p)->(IID_IOleInPlaceObjectWindowless, %p)\n", This
, ppvObject
);
97 *ppvObject
= INPLACEWIN(This
);
98 }else if(IsEqualGUID(&IID_IServiceProvider
, riid
)) {
99 TRACE("(%p)->(IID_IServiceProvider, %p)\n", This
, ppvObject
);
100 *ppvObject
= SERVPROV(This
);
101 }else if(IsEqualGUID(&IID_IOleCommandTarget
, riid
)) {
102 TRACE("(%p)->(IID_IOleCommandTarget, %p)\n", This
, ppvObject
);
103 *ppvObject
= CMDTARGET(This
);
104 }else if(IsEqualGUID(&IID_IOleControl
, riid
)) {
105 TRACE("(%p)->(IID_IOleControl, %p)\n", This
, ppvObject
);
106 *ppvObject
= CONTROL(This
);
107 }else if(IsEqualGUID(&IID_IHlinkTarget
, riid
)) {
108 TRACE("(%p)->(IID_IHlinkTarget, %p)\n", This
, ppvObject
);
109 *ppvObject
= HLNKTARGET(This
);
113 IHTMLDocument2_AddRef(iface
);
117 FIXME("(%p)->(%s %p) interface not supported\n", This
, debugstr_guid(riid
), ppvObject
);
118 return E_NOINTERFACE
;
121 static ULONG WINAPI
HTMLDocument_AddRef(IHTMLDocument2
*iface
)
123 HTMLDocument
*This
= HTMLDOC_THIS(iface
);
124 ULONG ref
= InterlockedIncrement(&This
->ref
);
125 TRACE("(%p) ref = %lu\n", This
, ref
);
129 static ULONG WINAPI
HTMLDocument_Release(IHTMLDocument2
*iface
)
131 HTMLDocument
*This
= HTMLDOC_THIS(iface
);
132 ULONG ref
= InterlockedDecrement(&This
->ref
);
134 TRACE("(%p) ref = %lu\n", This
, ref
);
138 IOleObject_SetClientSite(OLEOBJ(This
), NULL
);
139 if(This
->in_place_active
)
140 IOleInPlaceObjectWindowless_InPlaceDeactivate(INPLACEWIN(This
));
142 IOleDocumentView_SetInPlaceSite(DOCVIEW(This
), NULL
);
144 if(This
->tooltips_hwnd
)
145 DestroyWindow(This
->tooltips_hwnd
);
147 DestroyWindow(This
->hwnd
);
151 if(This
->nscontainer
)
152 NSContainer_Release(This
->nscontainer
);
154 HeapFree(GetProcessHeap(), 0, This
);
162 static HRESULT WINAPI
HTMLDocument_GetTypeInfoCount(IHTMLDocument2
*iface
, UINT
*pctinfo
)
164 FIXME("(%p)->(%p)\n", iface
, pctinfo
);
168 static HRESULT WINAPI
HTMLDocument_GetTypeInfo(IHTMLDocument2
*iface
, UINT iTInfo
,
169 LCID lcid
, ITypeInfo
**ppTInfo
)
171 FIXME("(%p)->(%u %lu %p)\n", iface
, iTInfo
, lcid
, ppTInfo
);
175 static HRESULT WINAPI
HTMLDocument_GetIDsOfNames(IHTMLDocument2
*iface
, REFIID riid
,
176 LPOLESTR
*rgszNames
, UINT cNames
,
177 LCID lcid
, DISPID
*rgDispId
)
179 FIXME("(%p)->(%s %p %u %lu %p)\n", iface
, debugstr_guid(riid
), rgszNames
, cNames
,
184 static HRESULT WINAPI
HTMLDocument_Invoke(IHTMLDocument2
*iface
, DISPID dispIdMember
,
185 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
186 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
188 FIXME("(%p)->(%ld %s %ld %d %p %p %p %p)\n", iface
, dispIdMember
, debugstr_guid(riid
),
189 lcid
, wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
193 static HRESULT WINAPI
HTMLDocument_get_Script(IHTMLDocument2
*iface
, IDispatch
**p
)
195 FIXME("(%p)->(%p)\n", iface
, p
);
199 static HRESULT WINAPI
HTMLDocument_get_all(IHTMLDocument2
*iface
, IHTMLElementCollection
**p
)
201 FIXME("(%p)->(%p)\n", iface
, p
);
205 static HRESULT WINAPI
HTMLDocument_get_body(IHTMLDocument2
*iface
, IHTMLElement
**p
)
207 FIXME("(%p)->(%p)\n", iface
, p
);
211 static HRESULT WINAPI
HTMLDocument_get_activeElement(IHTMLDocument2
*iface
, IHTMLElement
**p
)
213 FIXME("(%p)->(%p)\n", iface
, p
);
217 static HRESULT WINAPI
HTMLDocument_get_images(IHTMLDocument2
*iface
, IHTMLElementCollection
**p
)
219 FIXME("(%p)->(%p)\n", iface
, p
);
223 static HRESULT WINAPI
HTMLDocument_get_applets(IHTMLDocument2
*iface
, IHTMLElementCollection
**p
)
225 FIXME("(%p)->(%p)\n", iface
, p
);
229 static HRESULT WINAPI
HTMLDocument_get_links(IHTMLDocument2
*iface
, IHTMLElementCollection
**p
)
231 FIXME("(%p)->(%p)\n", iface
, p
);
235 static HRESULT WINAPI
HTMLDocument_get_forms(IHTMLDocument2
*iface
, IHTMLElementCollection
**p
)
237 FIXME("(%p)->(%p)\n", iface
, p
);
241 static HRESULT WINAPI
HTMLDocument_get_anchors(IHTMLDocument2
*iface
, IHTMLElementCollection
**p
)
243 FIXME("(%p)->(%p)\n", iface
, p
);
247 static HRESULT WINAPI
HTMLDocument_put_title(IHTMLDocument2
*iface
, BSTR v
)
249 FIXME("(%p)->(%s)\n", iface
, debugstr_w(v
));
253 static HRESULT WINAPI
HTMLDocument_get_title(IHTMLDocument2
*iface
, BSTR
*p
)
255 FIXME("(%p)->(%p)\n", iface
, p
);
259 static HRESULT WINAPI
HTMLDocument_get_scripts(IHTMLDocument2
*iface
, IHTMLElementCollection
**p
)
261 FIXME("(%p)->(%p)\n", iface
, p
);
265 static HRESULT WINAPI
HTMLDocument_put_designMode(IHTMLDocument2
*iface
, BSTR v
)
267 FIXME("(%p)->(%s)\n", iface
, debugstr_w(v
));
271 static HRESULT WINAPI
HTMLDocument_get_designMode(IHTMLDocument2
*iface
, BSTR
*p
)
273 FIXME("(%p)->(%p)\n", iface
, p
);
277 static HRESULT WINAPI
HTMLDocument_get_selection(IHTMLDocument2
*iface
, IHTMLSelectionObject
**p
)
279 FIXME("(%p)->(%p)\n", iface
, p
);
283 static HRESULT WINAPI
HTMLDocument_get_readyState(IHTMLDocument2
*iface
, BSTR
*p
)
285 FIXME("(%p)->(%p)\n", iface
, p
);
289 static HRESULT WINAPI
HTMLDocument_get_frames(IHTMLDocument2
*iface
, IHTMLFramesCollection2
**p
)
291 FIXME("(%p)->(%p)\n", iface
, p
);
295 static HRESULT WINAPI
HTMLDocument_get_embeds(IHTMLDocument2
*iface
, IHTMLElementCollection
**p
)
297 FIXME("(%p)->(%p)\n", iface
, p
);
301 static HRESULT WINAPI
HTMLDocument_get_plugins(IHTMLDocument2
*iface
, IHTMLElementCollection
**p
)
303 FIXME("(%p)->(%p)\n", iface
, p
);
307 static HRESULT WINAPI
HTMLDocument_put_alinkColor(IHTMLDocument2
*iface
, VARIANT v
)
309 FIXME("(%p)\n", iface
);
313 static HRESULT WINAPI
HTMLDocument_get_alinkColor(IHTMLDocument2
*iface
, VARIANT
*p
)
315 FIXME("(%p)->(%p)\n", iface
, p
);
319 static HRESULT WINAPI
HTMLDocument_put_bgColor(IHTMLDocument2
*iface
, VARIANT v
)
321 FIXME("(%p)\n", iface
);
325 static HRESULT WINAPI
HTMLDocument_get_bgColor(IHTMLDocument2
*iface
, VARIANT
*p
)
327 FIXME("(%p)->(%p)\n", iface
, p
);
331 static HRESULT WINAPI
HTMLDocument_put_fgColor(IHTMLDocument2
*iface
, VARIANT v
)
333 FIXME("(%p)\n", iface
);
337 static HRESULT WINAPI
HTMLDocument_get_fgColor(IHTMLDocument2
*iface
, VARIANT
*p
)
339 FIXME("(%p)->(%p)\n", iface
, p
);
343 static HRESULT WINAPI
HTMLDocument_put_linkColor(IHTMLDocument2
*iface
, VARIANT v
)
345 FIXME("(%p)->()\n", iface
);
349 static HRESULT WINAPI
HTMLDocument_get_linkColor(IHTMLDocument2
*iface
, VARIANT
*p
)
351 FIXME("(%p)->(%p)\n", iface
, p
);
355 static HRESULT WINAPI
HTMLDocument_put_vlinkColor(IHTMLDocument2
*iface
, VARIANT v
)
357 FIXME("(%p)\n", iface
);
361 static HRESULT WINAPI
HTMLDocument_get_vlinkColor(IHTMLDocument2
*iface
, VARIANT
*p
)
363 FIXME("(%p)->(%p)\n", iface
, p
);
367 static HRESULT WINAPI
HTMLDocument_get_referrer(IHTMLDocument2
*iface
, BSTR
*p
)
369 FIXME("(%p)->(%p)\n", iface
, p
);
373 static HRESULT WINAPI
HTMLDocument_get_location(IHTMLDocument2
*iface
, IHTMLLocation
**p
)
375 FIXME("(%p)->(%p)\n", iface
, p
);
379 static HRESULT WINAPI
HTMLDocument_get_lastModified(IHTMLDocument2
*iface
, BSTR
*p
)
381 FIXME("(%p)->(%p)\n", iface
, p
);
385 static HRESULT WINAPI
HTMLDocument_put_URL(IHTMLDocument2
*iface
, BSTR v
)
387 FIXME("(%p)->(%s)\n", iface
, debugstr_w(v
));
391 static HRESULT WINAPI
HTMLDocument_get_URL(IHTMLDocument2
*iface
, BSTR
*p
)
393 FIXME("(%p)->(%p)\n", iface
, p
);
397 static HRESULT WINAPI
HTMLDocument_put_domain(IHTMLDocument2
*iface
, BSTR v
)
399 FIXME("(%p)->(%s)\n", iface
, debugstr_w(v
));
403 static HRESULT WINAPI
HTMLDocument_get_domain(IHTMLDocument2
*iface
, BSTR
*p
)
405 FIXME("(%p)->(%p)\n", iface
, p
);
409 static HRESULT WINAPI
HTMLDocument_put_cookie(IHTMLDocument2
*iface
, BSTR v
)
411 FIXME("(%p)->(%s)\n", iface
, debugstr_w(v
));
415 static HRESULT WINAPI
HTMLDocument_get_cookie(IHTMLDocument2
*iface
, BSTR
*p
)
417 FIXME("(%p)->(%p)\n", iface
, p
);
421 static HRESULT WINAPI
HTMLDocument_put_expando(IHTMLDocument2
*iface
, VARIANT_BOOL v
)
423 FIXME("(%p)->(%x)\n", iface
, v
);
427 static HRESULT WINAPI
HTMLDocument_get_expando(IHTMLDocument2
*iface
, VARIANT_BOOL
*p
)
429 FIXME("(%p)->(%p)\n", iface
, p
);
433 static HRESULT WINAPI
HTMLDocument_put_charset(IHTMLDocument2
*iface
, BSTR v
)
435 FIXME("(%p)->(%s)\n", iface
, debugstr_w(v
));
439 static HRESULT WINAPI
HTMLDocument_get_charset(IHTMLDocument2
*iface
, BSTR
*p
)
441 FIXME("(%p)->(%p)\n", iface
, p
);
445 static HRESULT WINAPI
HTMLDocument_put_defaultCharset(IHTMLDocument2
*iface
, BSTR v
)
447 FIXME("(%p)->(%s)\n", iface
, debugstr_w(v
));
451 static HRESULT WINAPI
HTMLDocument_get_defaultCharset(IHTMLDocument2
*iface
, BSTR
*p
)
453 FIXME("(%p)->(%p)\n", iface
, p
);
457 static HRESULT WINAPI
HTMLDocument_get_mimeType(IHTMLDocument2
*iface
, BSTR
*p
)
459 FIXME("(%p)->(%p)\n", iface
, p
);
463 static HRESULT WINAPI
HTMLDocument_get_fileSize(IHTMLDocument2
*iface
, BSTR
*p
)
465 FIXME("(%p)->(%p)\n", iface
, p
);
469 static HRESULT WINAPI
HTMLDocument_get_fileCreatedDate(IHTMLDocument2
*iface
, BSTR
*p
)
471 FIXME("(%p)->(%p)\n", iface
, p
);
475 static HRESULT WINAPI
HTMLDocument_get_fileModifiedDate(IHTMLDocument2
*iface
, BSTR
*p
)
477 FIXME("(%p)->(%p)\n", iface
, p
);
481 static HRESULT WINAPI
HTMLDocument_get_fileUpdatedDate(IHTMLDocument2
*iface
, BSTR
*p
)
483 FIXME("(%p)->(%p)\n", iface
, p
);
487 static HRESULT WINAPI
HTMLDocument_get_security(IHTMLDocument2
*iface
, BSTR
*p
)
489 FIXME("(%p)->(%p)\n", iface
, p
);
493 static HRESULT WINAPI
HTMLDocument_get_protocol(IHTMLDocument2
*iface
, BSTR
*p
)
495 FIXME("(%p)->(%p)\n", iface
, p
);
499 static HRESULT WINAPI
HTMLDocument_get_nameProp(IHTMLDocument2
*iface
, BSTR
*p
)
501 FIXME("(%p)->(%p)\n", iface
, p
);
505 static HRESULT WINAPI
HTMLDocument_write(IHTMLDocument2
*iface
, SAFEARRAY
*psarray
)
507 FIXME("(%p)->(%p)\n", iface
, psarray
);
511 static HRESULT WINAPI
HTMLDocument_writeln(IHTMLDocument2
*iface
, SAFEARRAY
*psarray
)
513 FIXME("(%p)->(%p)\n", iface
, psarray
);
517 static HRESULT WINAPI
HTMLDocument_open(IHTMLDocument2
*iface
, BSTR url
, VARIANT name
,
518 VARIANT features
, VARIANT replace
, IDispatch
**pomWindowResult
)
520 FIXME("(%p)->(%s %p)\n", iface
, debugstr_w(url
), pomWindowResult
);
524 static HRESULT WINAPI
HTMLDocument_close(IHTMLDocument2
*iface
)
526 FIXME("(%p)\n", iface
);
530 static HRESULT WINAPI
HTMLDocument_clear(IHTMLDocument2
*iface
)
532 FIXME("(%p)\n", iface
);
536 static HRESULT WINAPI
HTMLDocument_queryCommandSupported(IHTMLDocument2
*iface
, BSTR cmdID
,
539 FIXME("(%p)->(%s %p)\n", iface
, debugstr_w(cmdID
), pfRet
);
543 static HRESULT WINAPI
HTMLDocument_queryCommandEnabled(IHTMLDocument2
*iface
, BSTR cmdID
,
546 FIXME("(%p)->(%s %p)\n", iface
, debugstr_w(cmdID
), pfRet
);
550 static HRESULT WINAPI
HTMLDocument_queryCommandState(IHTMLDocument2
*iface
, BSTR cmdID
,
553 FIXME("(%p)->(%s %p)\n", iface
, debugstr_w(cmdID
), pfRet
);
557 static HRESULT WINAPI
HTMLDocument_queryCommandIndeterm(IHTMLDocument2
*iface
, BSTR cmdID
,
560 FIXME("(%p)->(%s %p)\n", iface
, debugstr_w(cmdID
), pfRet
);
564 static HRESULT WINAPI
HTMLDocument_queryCommandText(IHTMLDocument2
*iface
, BSTR cmdID
,
567 FIXME("(%p)->(%s %p)\n", iface
, debugstr_w(cmdID
), pfRet
);
571 static HRESULT WINAPI
HTMLDocument_queryCommandValue(IHTMLDocument2
*iface
, BSTR cmdID
,
574 FIXME("(%p)->(%s %p)\n", iface
, debugstr_w(cmdID
), pfRet
);
578 static HRESULT WINAPI
HTMLDocument_execCommand(IHTMLDocument2
*iface
, BSTR cmdID
,
579 VARIANT_BOOL showUI
, VARIANT value
, VARIANT_BOOL
*pfRet
)
581 FIXME("(%p)->(%s %x %p)\n", iface
, debugstr_w(cmdID
), showUI
, pfRet
);
585 static HRESULT WINAPI
HTMLDocument_execCommandShowHelp(IHTMLDocument2
*iface
, BSTR cmdID
,
588 FIXME("(%p)->(%s %p)\n", iface
, debugstr_w(cmdID
), pfRet
);
592 static HRESULT WINAPI
HTMLDocument_createElement(IHTMLDocument2
*iface
, BSTR eTag
,
593 IHTMLElement
**newElem
)
595 FIXME("(%p)->(%s %p)\n", iface
, debugstr_w(eTag
), newElem
);
599 static HRESULT WINAPI
HTMLDocument_put_onhelp(IHTMLDocument2
*iface
, VARIANT v
)
601 FIXME("(%p)\n", iface
);
605 static HRESULT WINAPI
HTMLDocument_get_onhelp(IHTMLDocument2
*iface
, VARIANT
*p
)
607 FIXME("(%p)->(%p)\n", iface
, p
);
611 static HRESULT WINAPI
HTMLDocument_put_onclick(IHTMLDocument2
*iface
, VARIANT v
)
613 FIXME("(%p)\n", iface
);
617 static HRESULT WINAPI
HTMLDocument_get_onclick(IHTMLDocument2
*iface
, VARIANT
*p
)
619 FIXME("(%p)->(%p)\n", iface
, p
);
623 static HRESULT WINAPI
HTMLDocument_put_ondblclick(IHTMLDocument2
*iface
, VARIANT v
)
625 FIXME("(%p)\n", iface
);
629 static HRESULT WINAPI
HTMLDocument_get_ondblclick(IHTMLDocument2
*iface
, VARIANT
*p
)
631 FIXME("(%p)->(%p)\n", iface
, p
);
635 static HRESULT WINAPI
HTMLDocument_put_onkeyup(IHTMLDocument2
*iface
, VARIANT v
)
637 FIXME("(%p)\n", iface
);
641 static HRESULT WINAPI
HTMLDocument_get_onkeyup(IHTMLDocument2
*iface
, VARIANT
*p
)
643 FIXME("(%p)->(%p)\n", iface
, p
);
647 static HRESULT WINAPI
HTMLDocument_put_onkeydown(IHTMLDocument2
*iface
, VARIANT v
)
649 FIXME("(%p)\n", iface
);
653 static HRESULT WINAPI
HTMLDocument_get_onkeydown(IHTMLDocument2
*iface
, VARIANT
*p
)
655 FIXME("(%p)->(%p)\n", iface
, p
);
659 static HRESULT WINAPI
HTMLDocument_put_onkeypress(IHTMLDocument2
*iface
, VARIANT v
)
661 FIXME("(%p)\n", iface
);
665 static HRESULT WINAPI
HTMLDocument_get_onkeypress(IHTMLDocument2
*iface
, VARIANT
*p
)
667 FIXME("(%p)->(%p)\n", iface
, p
);
671 static HRESULT WINAPI
HTMLDocument_put_onmouseup(IHTMLDocument2
*iface
, VARIANT v
)
673 FIXME("(%p)\n", iface
);
677 static HRESULT WINAPI
HTMLDocument_get_onmouseup(IHTMLDocument2
*iface
, VARIANT
*p
)
679 FIXME("(%p)->(%p)\n", iface
, p
);
683 static HRESULT WINAPI
HTMLDocument_put_onmousedown(IHTMLDocument2
*iface
, VARIANT v
)
685 FIXME("(%p)\n", iface
);
689 static HRESULT WINAPI
HTMLDocument_get_onmousedown(IHTMLDocument2
*iface
, VARIANT
*p
)
691 FIXME("(%p)->(%p)\n", iface
, p
);
695 static HRESULT WINAPI
HTMLDocument_put_onmousemove(IHTMLDocument2
*iface
, VARIANT v
)
697 FIXME("(%p)\n", iface
);
701 static HRESULT WINAPI
HTMLDocument_get_onmousemove(IHTMLDocument2
*iface
, VARIANT
*p
)
703 FIXME("(%p)->(%p)\n", iface
, p
);
707 static HRESULT WINAPI
HTMLDocument_put_onmouseout(IHTMLDocument2
*iface
, VARIANT v
)
709 FIXME("(%p)\n", iface
);
713 static HRESULT WINAPI
HTMLDocument_get_onmouseout(IHTMLDocument2
*iface
, VARIANT
*p
)
715 FIXME("(%p)->(%p)\n", iface
, p
);
719 static HRESULT WINAPI
HTMLDocument_put_onmouseover(IHTMLDocument2
*iface
, VARIANT v
)
721 FIXME("(%p)\n", iface
);
725 static HRESULT WINAPI
HTMLDocument_get_onmouseover(IHTMLDocument2
*iface
, VARIANT
*p
)
727 FIXME("(%p)->(%p)\n", iface
, p
);
731 static HRESULT WINAPI
HTMLDocument_put_onreadystatechange(IHTMLDocument2
*iface
, VARIANT v
)
733 FIXME("(%p)\n", iface
);
737 static HRESULT WINAPI
HTMLDocument_get_onreadystatechange(IHTMLDocument2
*iface
, VARIANT
*p
)
739 FIXME("(%p)->(%p)\n", iface
, p
);
743 static HRESULT WINAPI
HTMLDocument_put_onafterupdate(IHTMLDocument2
*iface
, VARIANT v
)
745 FIXME("(%p)\n", iface
);
749 static HRESULT WINAPI
HTMLDocument_get_onafterupdate(IHTMLDocument2
*iface
, VARIANT
*p
)
751 FIXME("(%p)->(%p)\n", iface
, p
);
755 static HRESULT WINAPI
HTMLDocument_put_onrowexit(IHTMLDocument2
*iface
, VARIANT v
)
757 FIXME("(%p)\n", iface
);
761 static HRESULT WINAPI
HTMLDocument_get_onrowexit(IHTMLDocument2
*iface
, VARIANT
*p
)
763 FIXME("(%p)->(%p)\n", iface
, p
);
767 static HRESULT WINAPI
HTMLDocument_put_onrowenter(IHTMLDocument2
*iface
, VARIANT v
)
769 FIXME("(%p)\n", iface
);
773 static HRESULT WINAPI
HTMLDocument_get_onrowenter(IHTMLDocument2
*iface
, VARIANT
*p
)
775 FIXME("(%p)->(%p)\n", iface
, p
);
779 static HRESULT WINAPI
HTMLDocument_put_ondragstart(IHTMLDocument2
*iface
, VARIANT v
)
781 FIXME("(%p)\n", iface
);
785 static HRESULT WINAPI
HTMLDocument_get_ondragstart(IHTMLDocument2
*iface
, VARIANT
*p
)
787 FIXME("(%p)->(%p)\n", iface
, p
);
791 static HRESULT WINAPI
HTMLDocument_put_onselectstart(IHTMLDocument2
*iface
, VARIANT v
)
793 FIXME("(%p)\n", iface
);
797 static HRESULT WINAPI
HTMLDocument_get_onselectstart(IHTMLDocument2
*iface
, VARIANT
*p
)
799 FIXME("(%p)->(%p)\n", iface
, p
);
803 static HRESULT WINAPI
HTMLDocument_elementFromPoint(IHTMLDocument2
*iface
, long x
, long y
,
804 IHTMLElement
**elementHit
)
806 FIXME("(%p)->(%ld %ld %p)\n", iface
, x
, y
, elementHit
);
810 static HRESULT WINAPI
HTMLDocument_get_parentWindow(IHTMLDocument2
*iface
, IHTMLWindow2
**p
)
812 FIXME("(%p)->(%p)\n", iface
, p
);
816 static HRESULT WINAPI
HTMLDocument_get_styleSheets(IHTMLDocument2
*iface
,
817 IHTMLStyleSheetsCollection
**p
)
819 FIXME("(%p)->(%p)\n", iface
, p
);
823 static HRESULT WINAPI
HTMLDocument_put_onbeforeupdate(IHTMLDocument2
*iface
, VARIANT v
)
825 FIXME("(%p)\n", iface
);
829 static HRESULT WINAPI
HTMLDocument_get_onbeforeupdate(IHTMLDocument2
*iface
, VARIANT
*p
)
831 FIXME("(%p)->(%p)\n", iface
, p
);
835 static HRESULT WINAPI
HTMLDocument_put_onerrorupdate(IHTMLDocument2
*iface
, VARIANT v
)
837 FIXME("(%p)\n", iface
);
841 static HRESULT WINAPI
HTMLDocument_get_onerrorupdate(IHTMLDocument2
*iface
, VARIANT
*p
)
843 FIXME("(%p)->(%p)\n", iface
, p
);
847 static HRESULT WINAPI
HTMLDocument_toString(IHTMLDocument2
*iface
, BSTR
*String
)
849 FIXME("(%p)->(%p)\n", iface
, String
);
853 static HRESULT WINAPI
HTMLDocument_createStyleSheet(IHTMLDocument2
*iface
, BSTR bstrHref
,
854 long lIndex
, IHTMLStyleSheet
**ppnewStyleSheet
)
856 FIXME("(%p)->(%s %ld %p)\n", iface
, debugstr_w(bstrHref
), lIndex
, ppnewStyleSheet
);
860 static const IHTMLDocument2Vtbl HTMLDocumentVtbl
= {
861 HTMLDocument_QueryInterface
,
863 HTMLDocument_Release
,
864 HTMLDocument_GetTypeInfoCount
,
865 HTMLDocument_GetTypeInfo
,
866 HTMLDocument_GetIDsOfNames
,
868 HTMLDocument_get_Script
,
869 HTMLDocument_get_all
,
870 HTMLDocument_get_body
,
871 HTMLDocument_get_activeElement
,
872 HTMLDocument_get_images
,
873 HTMLDocument_get_applets
,
874 HTMLDocument_get_links
,
875 HTMLDocument_get_forms
,
876 HTMLDocument_get_anchors
,
877 HTMLDocument_put_title
,
878 HTMLDocument_get_title
,
879 HTMLDocument_get_scripts
,
880 HTMLDocument_put_designMode
,
881 HTMLDocument_get_designMode
,
882 HTMLDocument_get_selection
,
883 HTMLDocument_get_readyState
,
884 HTMLDocument_get_frames
,
885 HTMLDocument_get_embeds
,
886 HTMLDocument_get_plugins
,
887 HTMLDocument_put_alinkColor
,
888 HTMLDocument_get_alinkColor
,
889 HTMLDocument_put_bgColor
,
890 HTMLDocument_get_bgColor
,
891 HTMLDocument_put_fgColor
,
892 HTMLDocument_get_fgColor
,
893 HTMLDocument_put_linkColor
,
894 HTMLDocument_get_linkColor
,
895 HTMLDocument_put_vlinkColor
,
896 HTMLDocument_get_vlinkColor
,
897 HTMLDocument_get_referrer
,
898 HTMLDocument_get_location
,
899 HTMLDocument_get_lastModified
,
900 HTMLDocument_put_URL
,
901 HTMLDocument_get_URL
,
902 HTMLDocument_put_domain
,
903 HTMLDocument_get_domain
,
904 HTMLDocument_put_cookie
,
905 HTMLDocument_get_cookie
,
906 HTMLDocument_put_expando
,
907 HTMLDocument_get_expando
,
908 HTMLDocument_put_charset
,
909 HTMLDocument_get_charset
,
910 HTMLDocument_put_defaultCharset
,
911 HTMLDocument_get_defaultCharset
,
912 HTMLDocument_get_mimeType
,
913 HTMLDocument_get_fileSize
,
914 HTMLDocument_get_fileCreatedDate
,
915 HTMLDocument_get_fileModifiedDate
,
916 HTMLDocument_get_fileUpdatedDate
,
917 HTMLDocument_get_security
,
918 HTMLDocument_get_protocol
,
919 HTMLDocument_get_nameProp
,
921 HTMLDocument_writeln
,
925 HTMLDocument_queryCommandSupported
,
926 HTMLDocument_queryCommandEnabled
,
927 HTMLDocument_queryCommandState
,
928 HTMLDocument_queryCommandIndeterm
,
929 HTMLDocument_queryCommandText
,
930 HTMLDocument_queryCommandValue
,
931 HTMLDocument_execCommand
,
932 HTMLDocument_execCommandShowHelp
,
933 HTMLDocument_createElement
,
934 HTMLDocument_put_onhelp
,
935 HTMLDocument_get_onhelp
,
936 HTMLDocument_put_onclick
,
937 HTMLDocument_get_onclick
,
938 HTMLDocument_put_ondblclick
,
939 HTMLDocument_get_ondblclick
,
940 HTMLDocument_put_onkeyup
,
941 HTMLDocument_get_onkeyup
,
942 HTMLDocument_put_onkeydown
,
943 HTMLDocument_get_onkeydown
,
944 HTMLDocument_put_onkeypress
,
945 HTMLDocument_get_onkeypress
,
946 HTMLDocument_put_onmouseup
,
947 HTMLDocument_get_onmouseup
,
948 HTMLDocument_put_onmousedown
,
949 HTMLDocument_get_onmousedown
,
950 HTMLDocument_put_onmousemove
,
951 HTMLDocument_get_onmousemove
,
952 HTMLDocument_put_onmouseout
,
953 HTMLDocument_get_onmouseout
,
954 HTMLDocument_put_onmouseover
,
955 HTMLDocument_get_onmouseover
,
956 HTMLDocument_put_onreadystatechange
,
957 HTMLDocument_get_onreadystatechange
,
958 HTMLDocument_put_onafterupdate
,
959 HTMLDocument_get_onafterupdate
,
960 HTMLDocument_put_onrowexit
,
961 HTMLDocument_get_onrowexit
,
962 HTMLDocument_put_onrowenter
,
963 HTMLDocument_get_onrowenter
,
964 HTMLDocument_put_ondragstart
,
965 HTMLDocument_get_ondragstart
,
966 HTMLDocument_put_onselectstart
,
967 HTMLDocument_get_onselectstart
,
968 HTMLDocument_elementFromPoint
,
969 HTMLDocument_get_parentWindow
,
970 HTMLDocument_get_styleSheets
,
971 HTMLDocument_put_onbeforeupdate
,
972 HTMLDocument_get_onbeforeupdate
,
973 HTMLDocument_put_onerrorupdate
,
974 HTMLDocument_get_onerrorupdate
,
975 HTMLDocument_toString
,
976 HTMLDocument_createStyleSheet
979 HRESULT
HTMLDocument_Create(IUnknown
*pUnkOuter
, REFIID riid
, void** ppvObject
)
984 TRACE("(%p %s %p)\n", pUnkOuter
, debugstr_guid(riid
), ppvObject
);
986 ret
= HeapAlloc(GetProcessHeap(), 0, sizeof(HTMLDocument
));
987 ret
->lpHTMLDocument2Vtbl
= &HTMLDocumentVtbl
;
989 ret
->nscontainer
= NULL
;
992 hres
= IHTMLDocument_QueryInterface(HTMLDOC(ret
), riid
, ppvObject
);
994 HeapFree(GetProcessHeap(), 0, ret
);
1000 HTMLDocument_HTMLDocument3_Init(ret
);
1001 HTMLDocument_Persist_Init(ret
);
1002 HTMLDocument_OleObj_Init(ret
);
1003 HTMLDocument_View_Init(ret
);
1004 HTMLDocument_Window_Init(ret
);
1005 HTMLDocument_Service_Init(ret
);
1006 HTMLDocument_Hlink_Init(ret
);
1008 ret
->nscontainer
= NSContainer_Create(ret
, NULL
);