2 * Copyright 2005 Jacek Caban for CodeWeavers
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
31 #include "wine/debug.h"
33 #include "mshtml_private.h"
35 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
37 #define HTMLDOC3_THIS(iface) DEFINE_THIS(HTMLDocument, HTMLDocument3, iface)
39 static HRESULT WINAPI HTMLDocument3_QueryInterface(IHTMLDocument3 *iface,
40 REFIID riid, void **ppv)
42 HTMLDocument *This = HTMLDOC3_THIS(iface);
43 return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv);
46 static ULONG WINAPI HTMLDocument3_AddRef(IHTMLDocument3 *iface)
48 HTMLDocument *This = HTMLDOC3_THIS(iface);
49 return IHTMLDocument2_AddRef(HTMLDOC(This));
52 static ULONG WINAPI HTMLDocument3_Release(IHTMLDocument3 *iface)
54 HTMLDocument *This = HTMLDOC3_THIS(iface);
55 return IHTMLDocument2_Release(HTMLDOC(This));
58 static HRESULT WINAPI HTMLDocument3_GetTypeInfoCount(IHTMLDocument3 *iface, UINT *pctinfo)
60 HTMLDocument *This = HTMLDOC3_THIS(iface);
61 FIXME("(%p)->(%p)\n", This, pctinfo);
65 static HRESULT WINAPI HTMLDocument3_GetTypeInfo(IHTMLDocument3 *iface, UINT iTInfo,
66 LCID lcid, ITypeInfo **ppTInfo)
68 HTMLDocument *This = HTMLDOC3_THIS(iface);
69 FIXME("(%p)->(%u %lu %p)\n", This, iTInfo, lcid, ppTInfo);
73 static HRESULT WINAPI HTMLDocument3_GetIDsOfNames(IHTMLDocument3 *iface, REFIID riid,
74 LPOLESTR *rgszNames, UINT cNames,
75 LCID lcid, DISPID *rgDispId)
77 HTMLDocument *This = HTMLDOC3_THIS(iface);
78 FIXME("(%p)->(%s %p %u %lu %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
83 static HRESULT WINAPI HTMLDocument3_Invoke(IHTMLDocument3 *iface, DISPID dispIdMember,
84 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
85 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
87 HTMLDocument *This = HTMLDOC3_THIS(iface);
88 FIXME("(%p)->(%ld %s %ld %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
89 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
93 static HRESULT WINAPI HTMLDocument3_releaseCapture(IHTMLDocument3 *iface)
95 HTMLDocument *This = HTMLDOC3_THIS(iface);
96 FIXME("(%p)\n", This);
100 static HRESULT WINAPI HTMLDocument3_recalc(IHTMLDocument3 *iface, VARIANT_BOOL fForce)
102 HTMLDocument *This = HTMLDOC3_THIS(iface);
103 FIXME("(%p)->(%x)\n", This, fForce);
107 static HRESULT WINAPI HTMLDocument3_createTextNode(IHTMLDocument3 *iface, BSTR text,
108 IHTMLDOMNode **newTextNode)
110 HTMLDocument *This = HTMLDOC3_THIS(iface);
111 FIXME("(%p)->(%s %p)\n", This, debugstr_w(text), newTextNode);
115 static HRESULT WINAPI HTMLDocument3_get_documentElement(IHTMLDocument3 *iface, IHTMLElement **p)
117 HTMLDocument *This = HTMLDOC3_THIS(iface);
118 nsIDOMDocument *nsdoc;
122 TRACE("(%p)->(%p)\n", This, p);
124 if(!This->nscontainer) {
129 nsres = nsIWebNavigation_GetDocument(This->nscontainer->navigation, &nsdoc);
131 ERR("GetDocument failed: %08lx\n", nsres);
134 node = get_node(This, (nsIDOMNode*)nsdoc);
135 nsIDOMDocument_Release(nsdoc);
137 IHTMLDOMNode_QueryInterface(HTMLDOMNODE(node), &IID_IHTMLElement, (void**)p);
145 static HRESULT WINAPI HTMLDocument3_uniqueID(IHTMLDocument3 *iface, BSTR *p)
147 HTMLDocument *This = HTMLDOC3_THIS(iface);
148 FIXME("(%p)->(%p)\n", This, p);
152 static HRESULT WINAPI HTMLDocument3_attachEvent(IHTMLDocument3 *iface, BSTR event,
153 IDispatch* pDisp, VARIANT_BOOL *pfResult)
155 HTMLDocument *This = HTMLDOC3_THIS(iface);
156 FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(event), pDisp, pfResult);
160 static HRESULT WINAPI HTMLDocument3_detachEvent(IHTMLDocument3 *iface, BSTR event,
163 HTMLDocument *This = HTMLDOC3_THIS(iface);
164 FIXME("(%p)->(%s %p)\n", This, debugstr_w(event), pDisp);
168 static HRESULT WINAPI HTMLDocument3_put_onrowsdelete(IHTMLDocument3 *iface, VARIANT v)
170 HTMLDocument *This = HTMLDOC3_THIS(iface);
171 FIXME("(%p)->()\n", This);
175 static HRESULT WINAPI HTMLDocument3_get_onrowsdelete(IHTMLDocument3 *iface, VARIANT *p)
177 HTMLDocument *This = HTMLDOC3_THIS(iface);
178 FIXME("(%p)->(%p)\n", This, p);
182 static HRESULT WINAPI HTMLDocument3_put_onrowsinserted(IHTMLDocument3 *iface, VARIANT v)
184 HTMLDocument *This = HTMLDOC3_THIS(iface);
185 FIXME("(%p)->()\n", This);
189 static HRESULT WINAPI HTMLDocument3_get_onrowsinserted(IHTMLDocument3 *iface, VARIANT *p)
191 HTMLDocument *This = HTMLDOC3_THIS(iface);
192 FIXME("(%p)->(%p)\n", This, p);
196 static HRESULT WINAPI HTMLDocument3_put_oncellchange(IHTMLDocument3 *iface, VARIANT v)
198 HTMLDocument *This = HTMLDOC3_THIS(iface);
199 FIXME("(%p)->()\n", This);
203 static HRESULT WINAPI HTMLDocument3_get_oncellchange(IHTMLDocument3 *iface, VARIANT *p)
205 HTMLDocument *This = HTMLDOC3_THIS(iface);
206 FIXME("(%p)->(%p)\n", This, p);
210 static HRESULT WINAPI HTMLDocument3_put_ondatasetchanged(IHTMLDocument3 *iface, VARIANT v)
212 HTMLDocument *This = HTMLDOC3_THIS(iface);
213 FIXME("(%p)->()\n", This);
217 static HRESULT WINAPI HTMLDocument3_get_ondatasetchanged(IHTMLDocument3 *iface, VARIANT *p)
219 HTMLDocument *This = HTMLDOC3_THIS(iface);
220 FIXME("(%p)->(%p)\n", This, p);
224 static HRESULT WINAPI HTMLDocument3_put_ondataavailable(IHTMLDocument3 *iface, VARIANT v)
226 HTMLDocument *This = HTMLDOC3_THIS(iface);
227 FIXME("(%p)->()\n", This);
231 static HRESULT WINAPI HTMLDocument3_get_ondataavailable(IHTMLDocument3 *iface, VARIANT *p)
233 HTMLDocument *This = HTMLDOC3_THIS(iface);
234 FIXME("(%p)->(%p)\n", This, p);
238 static HRESULT WINAPI HTMLDocument3_put_ondatasetcomplete(IHTMLDocument3 *iface, VARIANT v)
240 HTMLDocument *This = HTMLDOC3_THIS(iface);
241 FIXME("(%p)->()\n", This);
245 static HRESULT WINAPI HTMLDocument3_get_ondatasetcomplete(IHTMLDocument3 *iface, VARIANT *p)
247 HTMLDocument *This = HTMLDOC3_THIS(iface);
248 FIXME("(%p)->(%p)\n", This, p);
252 static HRESULT WINAPI HTMLDocument3_put_onpropertychange(IHTMLDocument3 *iface, VARIANT v)
254 HTMLDocument *This = HTMLDOC3_THIS(iface);
255 FIXME("(%p)->()\n", This);
259 static HRESULT WINAPI HTMLDocument3_get_onpropertychange(IHTMLDocument3 *iface, VARIANT *p)
261 HTMLDocument *This = HTMLDOC3_THIS(iface);
262 FIXME("(%p)->(%p)\n", This, p);
266 static HRESULT WINAPI HTMLDocument3_put_dir(IHTMLDocument3 *iface, BSTR v)
268 HTMLDocument *This = HTMLDOC3_THIS(iface);
269 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
273 static HRESULT WINAPI HTMLDocument3_get_dir(IHTMLDocument3 *iface, BSTR *p)
275 HTMLDocument *This = HTMLDOC3_THIS(iface);
276 FIXME("(%p)->(%p)\n", This, p);
280 static HRESULT WINAPI HTMLDocument3_put_oncontextmenu(IHTMLDocument3 *iface, VARIANT v)
282 HTMLDocument *This = HTMLDOC3_THIS(iface);
283 FIXME("(%p)->()\n", This);
287 static HRESULT WINAPI HTMLDocument3_get_oncontextmenu(IHTMLDocument3 *iface, VARIANT *p)
289 HTMLDocument *This = HTMLDOC3_THIS(iface);
290 FIXME("(%p)->(%p)\n", This, p);
294 static HRESULT WINAPI HTMLDocument3_put_onstop(IHTMLDocument3 *iface, VARIANT v)
296 HTMLDocument *This = HTMLDOC3_THIS(iface);
297 FIXME("(%p)->()\n", This);
301 static HRESULT WINAPI HTMLDocument3_get_onstop(IHTMLDocument3 *iface, VARIANT *p)
303 HTMLDocument *This = HTMLDOC3_THIS(iface);
304 FIXME("(%p)->(%p)\n", This, p);
308 static HRESULT WINAPI HTMLDocument3_createDocumentFragment(IHTMLDocument3 *iface,
309 IHTMLDocument2 **ppNewDoc)
311 HTMLDocument *This = HTMLDOC3_THIS(iface);
312 FIXME("(%p)->(%p)\n", This, ppNewDoc);
316 static HRESULT WINAPI HTMLDocument3_get_parentDocument(IHTMLDocument3 *iface,
319 HTMLDocument *This = HTMLDOC3_THIS(iface);
320 FIXME("(%p)->(%p)\n", This, p);
324 static HRESULT WINAPI HTMLDocument3_put_enableDownload(IHTMLDocument3 *iface,
327 HTMLDocument *This = HTMLDOC3_THIS(iface);
328 FIXME("(%p)->(%x)\n", This, v);
332 static HRESULT WINAPI HTMLDocument3_get_enableDownload(IHTMLDocument3 *iface,
335 HTMLDocument *This = HTMLDOC3_THIS(iface);
336 FIXME("(%p)->(%p)\n", This, p);
340 static HRESULT WINAPI HTMLDocument3_put_baseUrl(IHTMLDocument3 *iface, BSTR v)
342 HTMLDocument *This = HTMLDOC3_THIS(iface);
343 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
347 static HRESULT WINAPI HTMLDocument3_get_baseUrl(IHTMLDocument3 *iface, BSTR *p)
349 HTMLDocument *This = HTMLDOC3_THIS(iface);
350 FIXME("(%p)->(%p)\n", This, p);
354 static HRESULT WINAPI HTMLDocument3_get_childNodes(IHTMLDocument3 *iface, IDispatch **p)
356 HTMLDocument *This = HTMLDOC3_THIS(iface);
357 FIXME("(%p)->(%p)\n", This, p);
361 static HRESULT WINAPI HTMLDocument3_put_inheritStyleSheets(IHTMLDocument3 *iface,
364 HTMLDocument *This = HTMLDOC3_THIS(iface);
365 FIXME("(%p)->()\n", This);
369 static HRESULT WINAPI HTMLDocument3_get_inheritStyleSheets(IHTMLDocument3 *iface,
372 HTMLDocument *This = HTMLDOC3_THIS(iface);
373 FIXME("(%p)->(%p)\n", This, p);
377 static HRESULT WINAPI HTMLDocument3_put_onbeforeeditfocus(IHTMLDocument3 *iface, VARIANT v)
379 HTMLDocument *This = HTMLDOC3_THIS(iface);
380 FIXME("(%p)->()\n", This);
384 static HRESULT WINAPI HTMLDocument3_get_onbeforeeditfocus(IHTMLDocument3 *iface, VARIANT *p)
386 HTMLDocument *This = HTMLDOC3_THIS(iface);
387 FIXME("(%p)->(%p)\n", This, p);
391 static HRESULT WINAPI HTMLDocument3_getElementsByName(IHTMLDocument3 *iface, BSTR v,
392 IHTMLElementCollection **ppelColl)
394 HTMLDocument *This = HTMLDOC3_THIS(iface);
395 FIXME("(%p)->(%s %p)\n", This, debugstr_w(v), ppelColl);
400 static HRESULT WINAPI HTMLDocument3_getElementById(IHTMLDocument3 *iface, BSTR v,
403 HTMLDocument *This = HTMLDOC3_THIS(iface);
404 FIXME("(%p)->(%s %p)\n", This, debugstr_w(v), pel);
409 static HRESULT WINAPI HTMLDocument3_getElementsByTagName(IHTMLDocument3 *iface, BSTR v,
410 IHTMLElementCollection **pelColl)
412 HTMLDocument *This = HTMLDOC3_THIS(iface);
413 FIXME("(%p)->(%s %p)\n", This, debugstr_w(v), pelColl);
417 static const IHTMLDocument3Vtbl HTMLDocument3Vtbl = {
418 HTMLDocument3_QueryInterface,
419 HTMLDocument3_AddRef,
420 HTMLDocument3_Release,
421 HTMLDocument3_GetTypeInfoCount,
422 HTMLDocument3_GetTypeInfo,
423 HTMLDocument3_GetIDsOfNames,
424 HTMLDocument3_Invoke,
425 HTMLDocument3_releaseCapture,
426 HTMLDocument3_recalc,
427 HTMLDocument3_createTextNode,
428 HTMLDocument3_get_documentElement,
429 HTMLDocument3_uniqueID,
430 HTMLDocument3_attachEvent,
431 HTMLDocument3_detachEvent,
432 HTMLDocument3_put_onrowsdelete,
433 HTMLDocument3_get_onrowsdelete,
434 HTMLDocument3_put_onrowsinserted,
435 HTMLDocument3_get_onrowsinserted,
436 HTMLDocument3_put_oncellchange,
437 HTMLDocument3_get_oncellchange,
438 HTMLDocument3_put_ondatasetchanged,
439 HTMLDocument3_get_ondatasetchanged,
440 HTMLDocument3_put_ondataavailable,
441 HTMLDocument3_get_ondataavailable,
442 HTMLDocument3_put_ondatasetcomplete,
443 HTMLDocument3_get_ondatasetcomplete,
444 HTMLDocument3_put_onpropertychange,
445 HTMLDocument3_get_onpropertychange,
446 HTMLDocument3_put_dir,
447 HTMLDocument3_get_dir,
448 HTMLDocument3_put_oncontextmenu,
449 HTMLDocument3_get_oncontextmenu,
450 HTMLDocument3_put_onstop,
451 HTMLDocument3_get_onstop,
452 HTMLDocument3_createDocumentFragment,
453 HTMLDocument3_get_parentDocument,
454 HTMLDocument3_put_enableDownload,
455 HTMLDocument3_get_enableDownload,
456 HTMLDocument3_put_baseUrl,
457 HTMLDocument3_get_baseUrl,
458 HTMLDocument3_get_childNodes,
459 HTMLDocument3_put_inheritStyleSheets,
460 HTMLDocument3_get_inheritStyleSheets,
461 HTMLDocument3_put_onbeforeeditfocus,
462 HTMLDocument3_get_onbeforeeditfocus,
463 HTMLDocument3_getElementsByName,
464 HTMLDocument3_getElementById,
465 HTMLDocument3_getElementsByTagName
468 void HTMLDocument_HTMLDocument3_Init(HTMLDocument *This)
470 This->lpHTMLDocument3Vtbl = &HTMLDocument3Vtbl;