2 * Copyright 2008 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
19 #include "mshtml_private.h"
21 static inline HTMLElement
*impl_from_IHTMLElement3(IHTMLElement3
*iface
)
23 return CONTAINING_RECORD(iface
, HTMLElement
, IHTMLElement3_iface
);
26 static HRESULT WINAPI
HTMLElement3_QueryInterface(IHTMLElement3
*iface
,
27 REFIID riid
, void **ppv
)
29 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
30 return IHTMLElement_QueryInterface(&This
->IHTMLElement_iface
, riid
, ppv
);
33 static ULONG WINAPI
HTMLElement3_AddRef(IHTMLElement3
*iface
)
35 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
36 return IHTMLElement_AddRef(&This
->IHTMLElement_iface
);
39 static ULONG WINAPI
HTMLElement3_Release(IHTMLElement3
*iface
)
41 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
42 return IHTMLElement_Release(&This
->IHTMLElement_iface
);
45 static HRESULT WINAPI
HTMLElement3_GetTypeInfoCount(IHTMLElement3
*iface
, UINT
*pctinfo
)
47 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
48 return IDispatchEx_GetTypeInfoCount(&This
->node
.dispex
.IDispatchEx_iface
, pctinfo
);
51 static HRESULT WINAPI
HTMLElement3_GetTypeInfo(IHTMLElement3
*iface
, UINT iTInfo
,
52 LCID lcid
, ITypeInfo
**ppTInfo
)
54 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
55 return IDispatchEx_GetTypeInfo(&This
->node
.dispex
.IDispatchEx_iface
, iTInfo
, lcid
, ppTInfo
);
58 static HRESULT WINAPI
HTMLElement3_GetIDsOfNames(IHTMLElement3
*iface
, REFIID riid
,
59 LPOLESTR
*rgszNames
, UINT cNames
,
60 LCID lcid
, DISPID
*rgDispId
)
62 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
63 return IDispatchEx_GetIDsOfNames(&This
->node
.dispex
.IDispatchEx_iface
, riid
, rgszNames
, cNames
,
67 static HRESULT WINAPI
HTMLElement3_Invoke(IHTMLElement3
*iface
, DISPID dispIdMember
,
68 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
69 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
71 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
72 return IDispatchEx_Invoke(&This
->node
.dispex
.IDispatchEx_iface
, dispIdMember
, riid
, lcid
,
73 wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
76 static HRESULT WINAPI
HTMLElement3_mergeAttributes(IHTMLElement3
*iface
, IHTMLElement
*mergeThis
, VARIANT
*pvarFlags
)
78 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
79 FIXME("(%p)->(%p %p)\n", This
, mergeThis
, pvarFlags
);
83 static HRESULT WINAPI
HTMLElement3_get_isMultiLine(IHTMLElement3
*iface
, VARIANT_BOOL
*p
)
85 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
86 FIXME("(%p)->(%p)\n", This
, p
);
90 static HRESULT WINAPI
HTMLElement3_get_canHaveHTML(IHTMLElement3
*iface
, VARIANT_BOOL
*p
)
92 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
93 FIXME("(%p)->(%p)\n", This
, p
);
97 static HRESULT WINAPI
HTMLElement3_put_onlayoutcomplete(IHTMLElement3
*iface
, VARIANT v
)
99 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
100 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
104 static HRESULT WINAPI
HTMLElement3_get_onlayoutcomplete(IHTMLElement3
*iface
, VARIANT
*p
)
106 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
107 FIXME("(%p)->(%p)\n", This
, p
);
111 static HRESULT WINAPI
HTMLElement3_put_onpage(IHTMLElement3
*iface
, VARIANT v
)
113 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
114 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
118 static HRESULT WINAPI
HTMLElement3_get_onpage(IHTMLElement3
*iface
, VARIANT
*p
)
120 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
121 FIXME("(%p)->(%p)\n", This
, p
);
125 static HRESULT WINAPI
HTMLElement3_put_inflateBlock(IHTMLElement3
*iface
, VARIANT_BOOL v
)
127 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
128 FIXME("(%p)->(%x)\n", This
, v
);
132 static HRESULT WINAPI
HTMLElement3_get_inflateBlock(IHTMLElement3
*iface
, VARIANT_BOOL
*p
)
134 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
135 FIXME("(%p)->(%p)\n", This
, p
);
139 static HRESULT WINAPI
HTMLElement3_put_onbeforedeactivate(IHTMLElement3
*iface
, VARIANT v
)
141 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
142 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
146 static HRESULT WINAPI
HTMLElement3_get_onbeforedeactivate(IHTMLElement3
*iface
, VARIANT
*p
)
148 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
149 FIXME("(%p)->(%p)\n", This
, p
);
153 static HRESULT WINAPI
HTMLElement3_setActive(IHTMLElement3
*iface
)
155 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
156 FIXME("(%p)\n", This
);
160 static HRESULT WINAPI
HTMLElement3_put_contentEditable(IHTMLElement3
*iface
, BSTR v
)
162 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
166 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
168 nsAString_InitDepend(&str
, v
);
169 nsres
= nsIDOMHTMLElement_SetContentEditable(This
->nselem
, &str
);
170 nsAString_Finish(&str
);
172 if (NS_FAILED(nsres
)){
173 ERR("SetContentEditable(%s) failed!\n", debugstr_w(v
));
180 static HRESULT WINAPI
HTMLElement3_get_contentEditable(IHTMLElement3
*iface
, BSTR
*p
)
182 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
186 TRACE("(%p)->(%p)\n", This
, p
);
188 nsAString_Init(&str
, NULL
);
189 nsres
= nsIDOMHTMLElement_GetContentEditable(This
->nselem
, &str
);
190 return return_nsstr(nsres
, &str
, p
);
193 static HRESULT WINAPI
HTMLElement3_get_isContentEditable(IHTMLElement3
*iface
, VARIANT_BOOL
*p
)
195 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
196 FIXME("(%p)->(%p)\n", This
, p
);
200 static HRESULT WINAPI
HTMLElement3_put_hideFocus(IHTMLElement3
*iface
, VARIANT_BOOL v
)
202 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
203 FIXME("(%p)->(%x)\n", This
, v
);
207 static HRESULT WINAPI
HTMLElement3_get_hideFocus(IHTMLElement3
*iface
, VARIANT_BOOL
*p
)
209 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
210 FIXME("(%p)->(%p)\n", This
, p
);
214 static const WCHAR disabledW
[] = {'d','i','s','a','b','l','e','d',0};
216 static HRESULT WINAPI
HTMLElement3_put_disabled(IHTMLElement3
*iface
, VARIANT_BOOL v
)
218 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
222 TRACE("(%p)->(%x)\n", This
, v
);
224 if(This
->node
.vtbl
->put_disabled
)
225 return This
->node
.vtbl
->put_disabled(&This
->node
, v
);
227 hres
= dispex_get_dprop_ref(&This
->node
.dispex
, disabledW
, TRUE
, &var
);
237 static HRESULT WINAPI
HTMLElement3_get_disabled(IHTMLElement3
*iface
, VARIANT_BOOL
*p
)
239 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
243 TRACE("(%p)->(%p)\n", This
, p
);
245 if(This
->node
.vtbl
->get_disabled
)
246 return This
->node
.vtbl
->get_disabled(&This
->node
, p
);
248 hres
= dispex_get_dprop_ref(&This
->node
.dispex
, disabledW
, FALSE
, &var
);
249 if(hres
== DISP_E_UNKNOWNNAME
) {
256 if(V_VT(var
) != VT_BOOL
) {
257 FIXME("value is %s\n", debugstr_variant(var
));
265 static HRESULT WINAPI
HTMLElement3_get_isDisabled(IHTMLElement3
*iface
, VARIANT_BOOL
*p
)
267 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
268 FIXME("(%p)->(%p)\n", This
, p
);
272 static HRESULT WINAPI
HTMLElement3_put_onmove(IHTMLElement3
*iface
, VARIANT v
)
274 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
275 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
279 static HRESULT WINAPI
HTMLElement3_get_onmove(IHTMLElement3
*iface
, VARIANT
*p
)
281 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
282 FIXME("(%p)->(%p)\n", This
, p
);
286 static HRESULT WINAPI
HTMLElement3_put_oncontrolselect(IHTMLElement3
*iface
, VARIANT v
)
288 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
289 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
293 static HRESULT WINAPI
HTMLElement3_get_oncontrolselect(IHTMLElement3
*iface
, VARIANT
*p
)
295 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
296 FIXME("(%p)->(%p)\n", This
, p
);
300 static HRESULT WINAPI
HTMLElement3_fireEvent(IHTMLElement3
*iface
, BSTR bstrEventName
,
301 VARIANT
*pvarEventObject
, VARIANT_BOOL
*pfCancelled
)
303 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
305 TRACE("(%p)->(%s %s %p)\n", This
, debugstr_w(bstrEventName
), debugstr_variant(pvarEventObject
),
308 return dispatch_event(&This
->node
, bstrEventName
, pvarEventObject
, pfCancelled
);
311 static HRESULT WINAPI
HTMLElement3_put_onresizestart(IHTMLElement3
*iface
, VARIANT v
)
313 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
314 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
318 static HRESULT WINAPI
HTMLElement3_get_onresizestart(IHTMLElement3
*iface
, VARIANT
*p
)
320 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
321 FIXME("(%p)->(%p)\n", This
, p
);
325 static HRESULT WINAPI
HTMLElement3_put_onresizeend(IHTMLElement3
*iface
, VARIANT v
)
327 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
328 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
332 static HRESULT WINAPI
HTMLElement3_get_onresizeend(IHTMLElement3
*iface
, VARIANT
*p
)
334 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
335 FIXME("(%p)->(%p)\n", This
, p
);
339 static HRESULT WINAPI
HTMLElement3_put_onmovestart(IHTMLElement3
*iface
, VARIANT v
)
341 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
342 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
346 static HRESULT WINAPI
HTMLElement3_get_onmovestart(IHTMLElement3
*iface
, VARIANT
*p
)
348 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
349 FIXME("(%p)->(%p)\n", This
, p
);
353 static HRESULT WINAPI
HTMLElement3_put_onmoveend(IHTMLElement3
*iface
, VARIANT v
)
355 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
356 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
360 static HRESULT WINAPI
HTMLElement3_get_onmoveend(IHTMLElement3
*iface
, VARIANT
*p
)
362 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
363 FIXME("(%p)->(%p)\n", This
, p
);
367 static HRESULT WINAPI
HTMLElement3_put_onmousecenter(IHTMLElement3
*iface
, VARIANT v
)
369 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
370 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
374 static HRESULT WINAPI
HTMLElement3_get_onmousecenter(IHTMLElement3
*iface
, VARIANT
*p
)
376 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
377 FIXME("(%p)->(%p)\n", This
, p
);
381 static HRESULT WINAPI
HTMLElement3_put_onmouseleave(IHTMLElement3
*iface
, VARIANT v
)
383 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
384 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
388 static HRESULT WINAPI
HTMLElement3_get_onmouseleave(IHTMLElement3
*iface
, VARIANT
*p
)
390 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
391 FIXME("(%p)->(%p)\n", This
, p
);
395 static HRESULT WINAPI
HTMLElement3_put_onactivate(IHTMLElement3
*iface
, VARIANT v
)
397 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
398 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
402 static HRESULT WINAPI
HTMLElement3_get_onactivate(IHTMLElement3
*iface
, VARIANT
*p
)
404 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
405 FIXME("(%p)->(%p)\n", This
, p
);
409 static HRESULT WINAPI
HTMLElement3_put_ondeactivate(IHTMLElement3
*iface
, VARIANT v
)
411 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
412 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
416 static HRESULT WINAPI
HTMLElement3_get_ondeactivate(IHTMLElement3
*iface
, VARIANT
*p
)
418 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
419 FIXME("(%p)->(%p)\n", This
, p
);
423 static HRESULT WINAPI
HTMLElement3_dragDrop(IHTMLElement3
*iface
, VARIANT_BOOL
*pfRet
)
425 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
426 FIXME("(%p)->(%p)\n", This
, pfRet
);
430 static HRESULT WINAPI
HTMLElement3_get_glyphMode(IHTMLElement3
*iface
, LONG
*p
)
432 HTMLElement
*This
= impl_from_IHTMLElement3(iface
);
433 FIXME("(%p)->(%p)\n", This
, p
);
437 static const IHTMLElement3Vtbl HTMLElement3Vtbl
= {
438 HTMLElement3_QueryInterface
,
440 HTMLElement3_Release
,
441 HTMLElement3_GetTypeInfoCount
,
442 HTMLElement3_GetTypeInfo
,
443 HTMLElement3_GetIDsOfNames
,
445 HTMLElement3_mergeAttributes
,
446 HTMLElement3_get_isMultiLine
,
447 HTMLElement3_get_canHaveHTML
,
448 HTMLElement3_put_onlayoutcomplete
,
449 HTMLElement3_get_onlayoutcomplete
,
450 HTMLElement3_put_onpage
,
451 HTMLElement3_get_onpage
,
452 HTMLElement3_put_inflateBlock
,
453 HTMLElement3_get_inflateBlock
,
454 HTMLElement3_put_onbeforedeactivate
,
455 HTMLElement3_get_onbeforedeactivate
,
456 HTMLElement3_setActive
,
457 HTMLElement3_put_contentEditable
,
458 HTMLElement3_get_contentEditable
,
459 HTMLElement3_get_isContentEditable
,
460 HTMLElement3_put_hideFocus
,
461 HTMLElement3_get_hideFocus
,
462 HTMLElement3_put_disabled
,
463 HTMLElement3_get_disabled
,
464 HTMLElement3_get_isDisabled
,
465 HTMLElement3_put_onmove
,
466 HTMLElement3_get_onmove
,
467 HTMLElement3_put_oncontrolselect
,
468 HTMLElement3_get_oncontrolselect
,
469 HTMLElement3_fireEvent
,
470 HTMLElement3_put_onresizestart
,
471 HTMLElement3_get_onresizestart
,
472 HTMLElement3_put_onresizeend
,
473 HTMLElement3_get_onresizeend
,
474 HTMLElement3_put_onmovestart
,
475 HTMLElement3_get_onmovestart
,
476 HTMLElement3_put_onmoveend
,
477 HTMLElement3_get_onmoveend
,
478 HTMLElement3_put_onmousecenter
,
479 HTMLElement3_get_onmousecenter
,
480 HTMLElement3_put_onmouseleave
,
481 HTMLElement3_get_onmouseleave
,
482 HTMLElement3_put_onactivate
,
483 HTMLElement3_get_onactivate
,
484 HTMLElement3_put_ondeactivate
,
485 HTMLElement3_get_ondeactivate
,
486 HTMLElement3_dragDrop
,
487 HTMLElement3_get_glyphMode
490 static inline HTMLElement
*impl_from_IHTMLElement4(IHTMLElement4
*iface
)
492 return CONTAINING_RECORD(iface
, HTMLElement
, IHTMLElement4_iface
);
495 static HRESULT WINAPI
HTMLElement4_QueryInterface(IHTMLElement4
*iface
,
496 REFIID riid
, void **ppv
)
498 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
499 return IHTMLElement_QueryInterface(&This
->IHTMLElement_iface
, riid
, ppv
);
502 static ULONG WINAPI
HTMLElement4_AddRef(IHTMLElement4
*iface
)
504 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
505 return IHTMLElement_AddRef(&This
->IHTMLElement_iface
);
508 static ULONG WINAPI
HTMLElement4_Release(IHTMLElement4
*iface
)
510 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
511 return IHTMLElement_Release(&This
->IHTMLElement_iface
);
514 static HRESULT WINAPI
HTMLElement4_GetTypeInfoCount(IHTMLElement4
*iface
, UINT
*pctinfo
)
516 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
517 return IDispatchEx_GetTypeInfoCount(&This
->node
.dispex
.IDispatchEx_iface
, pctinfo
);
520 static HRESULT WINAPI
HTMLElement4_GetTypeInfo(IHTMLElement4
*iface
, UINT iTInfo
,
521 LCID lcid
, ITypeInfo
**ppTInfo
)
523 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
524 return IDispatchEx_GetTypeInfo(&This
->node
.dispex
.IDispatchEx_iface
, iTInfo
, lcid
, ppTInfo
);
527 static HRESULT WINAPI
HTMLElement4_GetIDsOfNames(IHTMLElement4
*iface
, REFIID riid
,
528 LPOLESTR
*rgszNames
, UINT cNames
, LCID lcid
, DISPID
*rgDispId
)
530 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
531 return IDispatchEx_GetIDsOfNames(&This
->node
.dispex
.IDispatchEx_iface
, riid
, rgszNames
, cNames
,
535 static HRESULT WINAPI
HTMLElement4_Invoke(IHTMLElement4
*iface
, DISPID dispIdMember
, REFIID riid
,
536 LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
, VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
538 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
539 return IDispatchEx_Invoke(&This
->node
.dispex
.IDispatchEx_iface
, dispIdMember
, riid
, lcid
,
540 wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
543 static HRESULT WINAPI
HTMLElement4_put_onmousewheel(IHTMLElement4
*iface
, VARIANT v
)
545 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
547 FIXME("(%p)->(%s) semi-stub\n", This
, debugstr_variant(&v
));
549 return set_node_event(&This
->node
, EVENTID_MOUSEWHEEL
, &v
);
552 static HRESULT WINAPI
HTMLElement4_get_onmousewheel(IHTMLElement4
*iface
, VARIANT
*p
)
554 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
556 TRACE("(%p)->(%p)\n", This
, p
);
558 return get_node_event(&This
->node
, EVENTID_MOUSEWHEEL
, p
);
561 static HRESULT WINAPI
HTMLElement4_normalize(IHTMLElement4
*iface
)
563 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
564 FIXME("(%p)\n", This
);
568 static HRESULT WINAPI
HTMLElement4_getAttributeNode(IHTMLElement4
*iface
, BSTR bstrname
, IHTMLDOMAttribute
**ppAttribute
)
570 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
571 HTMLAttributeCollection
*attrs
;
574 TRACE("(%p)->(%s %p)\n", This
, debugstr_w(bstrname
), ppAttribute
);
576 hres
= HTMLElement_get_attr_col(&This
->node
, &attrs
);
580 hres
= IHTMLAttributeCollection2_getNamedItem(&attrs
->IHTMLAttributeCollection2_iface
, bstrname
, ppAttribute
);
581 IHTMLAttributeCollection_Release(&attrs
->IHTMLAttributeCollection_iface
);
585 static HRESULT WINAPI
HTMLElement4_setAttributeNode(IHTMLElement4
*iface
, IHTMLDOMAttribute
*pattr
,
586 IHTMLDOMAttribute
**ppretAttribute
)
588 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
589 FIXME("(%p)->(%p %p)\n", This
, pattr
, ppretAttribute
);
593 static HRESULT WINAPI
HTMLElement4_removeAttributeNode(IHTMLElement4
*iface
, IHTMLDOMAttribute
*pattr
,
594 IHTMLDOMAttribute
**ppretAttribute
)
596 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
597 FIXME("(%p)->(%p %p)\n", This
, pattr
, ppretAttribute
);
601 static HRESULT WINAPI
HTMLElement4_put_onbeforeactivate(IHTMLElement4
*iface
, VARIANT v
)
603 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
604 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
608 static HRESULT WINAPI
HTMLElement4_get_onbeforeactivate(IHTMLElement4
*iface
, VARIANT
*p
)
610 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
611 FIXME("(%p)->(%p)\n", This
, p
);
615 static HRESULT WINAPI
HTMLElement4_put_onfocusin(IHTMLElement4
*iface
, VARIANT v
)
617 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
618 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
622 static HRESULT WINAPI
HTMLElement4_get_onfocusin(IHTMLElement4
*iface
, VARIANT
*p
)
624 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
625 FIXME("(%p)->(%p)\n", This
, p
);
629 static HRESULT WINAPI
HTMLElement4_put_onfocusout(IHTMLElement4
*iface
, VARIANT v
)
631 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
632 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
636 static HRESULT WINAPI
HTMLElement4_get_onfocusout(IHTMLElement4
*iface
, VARIANT
*p
)
638 HTMLElement
*This
= impl_from_IHTMLElement4(iface
);
639 FIXME("(%p)->(%p)\n", This
, p
);
643 static const IHTMLElement4Vtbl HTMLElement4Vtbl
= {
644 HTMLElement4_QueryInterface
,
646 HTMLElement4_Release
,
647 HTMLElement4_GetTypeInfoCount
,
648 HTMLElement4_GetTypeInfo
,
649 HTMLElement4_GetIDsOfNames
,
651 HTMLElement4_put_onmousewheel
,
652 HTMLElement4_get_onmousewheel
,
653 HTMLElement4_normalize
,
654 HTMLElement4_getAttributeNode
,
655 HTMLElement4_setAttributeNode
,
656 HTMLElement4_removeAttributeNode
,
657 HTMLElement4_put_onbeforeactivate
,
658 HTMLElement4_get_onbeforeactivate
,
659 HTMLElement4_put_onfocusin
,
660 HTMLElement4_get_onfocusin
,
661 HTMLElement4_put_onfocusout
,
662 HTMLElement4_get_onfocusout
665 void HTMLElement3_Init(HTMLElement
*This
)
667 This
->IHTMLElement3_iface
.lpVtbl
= &HTMLElement3Vtbl
;
668 This
->IHTMLElement4_iface
.lpVtbl
= &HTMLElement4Vtbl
;