mshtml: Wine Gecko 1.5 release.
[wine/multimedia.git] / dlls / mshtml / htmlelem2.c
blob7deda19b478499d4202d244a2588589b313c111e
1 /*
2 * Copyright 2006-2010 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 <stdarg.h>
20 #include <math.h>
22 #define COBJMACROS
24 #include "windef.h"
25 #include "winbase.h"
26 #include "winuser.h"
27 #include "ole2.h"
29 #include "wine/debug.h"
31 #include "mshtml_private.h"
32 #include "htmlevent.h"
34 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
36 typedef struct {
37 DispatchEx dispex;
38 IHTMLRect IHTMLRect_iface;
40 LONG ref;
42 nsIDOMClientRect *nsrect;
43 } HTMLRect;
45 static inline HTMLRect *impl_from_IHTMLRect(IHTMLRect *iface)
47 return CONTAINING_RECORD(iface, HTMLRect, IHTMLRect_iface);
50 static HRESULT WINAPI HTMLRect_QueryInterface(IHTMLRect *iface, REFIID riid, void **ppv)
52 HTMLRect *This = impl_from_IHTMLRect(iface);
54 if(IsEqualGUID(&IID_IUnknown, riid)) {
55 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
56 *ppv = &This->IHTMLRect_iface;
57 }else if(IsEqualGUID(&IID_IHTMLRect, riid)) {
58 TRACE("(%p)->(IID_IHTMLRect %p)\n", This, ppv);
59 *ppv = &This->IHTMLRect_iface;
60 }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
61 return *ppv ? S_OK : E_NOINTERFACE;
62 }else {
63 FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
64 *ppv = NULL;
65 return E_NOINTERFACE;
68 IUnknown_AddRef((IUnknown*)*ppv);
69 return S_OK;
72 static ULONG WINAPI HTMLRect_AddRef(IHTMLRect *iface)
74 HTMLRect *This = impl_from_IHTMLRect(iface);
75 LONG ref = InterlockedIncrement(&This->ref);
77 TRACE("(%p) ref=%d\n", This, ref);
79 return ref;
82 static ULONG WINAPI HTMLRect_Release(IHTMLRect *iface)
84 HTMLRect *This = impl_from_IHTMLRect(iface);
85 LONG ref = InterlockedDecrement(&This->ref);
87 TRACE("(%p) ref=%d\n", This, ref);
89 if(!ref) {
90 if(This->nsrect)
91 nsIDOMClientRect_Release(This->nsrect);
92 heap_free(This);
95 return ref;
98 static HRESULT WINAPI HTMLRect_GetTypeInfoCount(IHTMLRect *iface, UINT *pctinfo)
100 HTMLRect *This = impl_from_IHTMLRect(iface);
101 FIXME("(%p)->(%p)\n", This, pctinfo);
102 return E_NOTIMPL;
105 static HRESULT WINAPI HTMLRect_GetTypeInfo(IHTMLRect *iface, UINT iTInfo,
106 LCID lcid, ITypeInfo **ppTInfo)
108 HTMLRect *This = impl_from_IHTMLRect(iface);
110 return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
113 static HRESULT WINAPI HTMLRect_GetIDsOfNames(IHTMLRect *iface, REFIID riid,
114 LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
116 HTMLRect *This = impl_from_IHTMLRect(iface);
118 return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
119 lcid, rgDispId);
122 static HRESULT WINAPI HTMLRect_Invoke(IHTMLRect *iface, DISPID dispIdMember,
123 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
124 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
126 HTMLRect *This = impl_from_IHTMLRect(iface);
128 return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid, wFlags,
129 pDispParams, pVarResult, pExcepInfo, puArgErr);
132 static HRESULT WINAPI HTMLRect_put_left(IHTMLRect *iface, LONG v)
134 HTMLRect *This = impl_from_IHTMLRect(iface);
135 FIXME("(%p)->(%d)\n", This, v);
136 return E_NOTIMPL;
139 static HRESULT WINAPI HTMLRect_get_left(IHTMLRect *iface, LONG *p)
141 HTMLRect *This = impl_from_IHTMLRect(iface);
142 float left;
143 nsresult nsres;
145 TRACE("(%p)->(%p)\n", This, p);
147 nsres = nsIDOMClientRect_GetLeft(This->nsrect, &left);
148 if(NS_FAILED(nsres)) {
149 ERR("GetLeft failed: %08x\n", nsres);
150 return E_FAIL;
153 *p = floor(left+0.5);
154 return S_OK;
157 static HRESULT WINAPI HTMLRect_put_top(IHTMLRect *iface, LONG v)
159 HTMLRect *This = impl_from_IHTMLRect(iface);
160 FIXME("(%p)->(%d)\n", This, v);
161 return E_NOTIMPL;
164 static HRESULT WINAPI HTMLRect_get_top(IHTMLRect *iface, LONG *p)
166 HTMLRect *This = impl_from_IHTMLRect(iface);
167 float top;
168 nsresult nsres;
170 TRACE("(%p)->(%p)\n", This, p);
172 nsres = nsIDOMClientRect_GetTop(This->nsrect, &top);
173 if(NS_FAILED(nsres)) {
174 ERR("GetTop failed: %08x\n", nsres);
175 return E_FAIL;
178 *p = floor(top+0.5);
179 return S_OK;
182 static HRESULT WINAPI HTMLRect_put_right(IHTMLRect *iface, LONG v)
184 HTMLRect *This = impl_from_IHTMLRect(iface);
185 FIXME("(%p)->(%d)\n", This, v);
186 return E_NOTIMPL;
189 static HRESULT WINAPI HTMLRect_get_right(IHTMLRect *iface, LONG *p)
191 HTMLRect *This = impl_from_IHTMLRect(iface);
192 float right;
193 nsresult nsres;
195 TRACE("(%p)->(%p)\n", This, p);
197 nsres = nsIDOMClientRect_GetRight(This->nsrect, &right);
198 if(NS_FAILED(nsres)) {
199 ERR("GetRight failed: %08x\n", nsres);
200 return E_FAIL;
203 *p = floor(right+0.5);
204 return S_OK;
207 static HRESULT WINAPI HTMLRect_put_bottom(IHTMLRect *iface, LONG v)
209 HTMLRect *This = impl_from_IHTMLRect(iface);
210 FIXME("(%p)->(%d)\n", This, v);
211 return E_NOTIMPL;
214 static HRESULT WINAPI HTMLRect_get_bottom(IHTMLRect *iface, LONG *p)
216 HTMLRect *This = impl_from_IHTMLRect(iface);
217 float bottom;
218 nsresult nsres;
220 TRACE("(%p)->(%p)\n", This, p);
222 nsres = nsIDOMClientRect_GetBottom(This->nsrect, &bottom);
223 if(NS_FAILED(nsres)) {
224 ERR("GetBottom failed: %08x\n", nsres);
225 return E_FAIL;
228 *p = floor(bottom+0.5);
229 return S_OK;
232 static const IHTMLRectVtbl HTMLRectVtbl = {
233 HTMLRect_QueryInterface,
234 HTMLRect_AddRef,
235 HTMLRect_Release,
236 HTMLRect_GetTypeInfoCount,
237 HTMLRect_GetTypeInfo,
238 HTMLRect_GetIDsOfNames,
239 HTMLRect_Invoke,
240 HTMLRect_put_left,
241 HTMLRect_get_left,
242 HTMLRect_put_top,
243 HTMLRect_get_top,
244 HTMLRect_put_right,
245 HTMLRect_get_right,
246 HTMLRect_put_bottom,
247 HTMLRect_get_bottom
250 static const tid_t HTMLRect_iface_tids[] = {
251 IHTMLRect_tid,
254 static dispex_static_data_t HTMLRect_dispex = {
255 NULL,
256 IHTMLRect_tid,
257 NULL,
258 HTMLRect_iface_tids
261 static HRESULT create_html_rect(nsIDOMClientRect *nsrect, IHTMLRect **ret)
263 HTMLRect *rect;
265 rect = heap_alloc_zero(sizeof(HTMLRect));
266 if(!rect)
267 return E_OUTOFMEMORY;
269 rect->IHTMLRect_iface.lpVtbl = &HTMLRectVtbl;
270 rect->ref = 1;
272 init_dispex(&rect->dispex, (IUnknown*)&rect->IHTMLRect_iface, &HTMLRect_dispex);
274 nsIDOMClientRect_AddRef(nsrect);
275 rect->nsrect = nsrect;
277 *ret = &rect->IHTMLRect_iface;
278 return S_OK;
281 static inline HTMLElement *impl_from_IHTMLElement2(IHTMLElement2 *iface)
283 return CONTAINING_RECORD(iface, HTMLElement, IHTMLElement2_iface);
286 static HRESULT WINAPI HTMLElement2_QueryInterface(IHTMLElement2 *iface,
287 REFIID riid, void **ppv)
289 HTMLElement *This = impl_from_IHTMLElement2(iface);
290 return IHTMLElement_QueryInterface(&This->IHTMLElement_iface, riid, ppv);
293 static ULONG WINAPI HTMLElement2_AddRef(IHTMLElement2 *iface)
295 HTMLElement *This = impl_from_IHTMLElement2(iface);
296 return IHTMLElement_AddRef(&This->IHTMLElement_iface);
299 static ULONG WINAPI HTMLElement2_Release(IHTMLElement2 *iface)
301 HTMLElement *This = impl_from_IHTMLElement2(iface);
302 return IHTMLElement_Release(&This->IHTMLElement_iface);
305 static HRESULT WINAPI HTMLElement2_GetTypeInfoCount(IHTMLElement2 *iface, UINT *pctinfo)
307 HTMLElement *This = impl_from_IHTMLElement2(iface);
308 return IDispatchEx_GetTypeInfoCount(&This->node.dispex.IDispatchEx_iface, pctinfo);
311 static HRESULT WINAPI HTMLElement2_GetTypeInfo(IHTMLElement2 *iface, UINT iTInfo,
312 LCID lcid, ITypeInfo **ppTInfo)
314 HTMLElement *This = impl_from_IHTMLElement2(iface);
315 return IDispatchEx_GetTypeInfo(&This->node.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
318 static HRESULT WINAPI HTMLElement2_GetIDsOfNames(IHTMLElement2 *iface, REFIID riid,
319 LPOLESTR *rgszNames, UINT cNames,
320 LCID lcid, DISPID *rgDispId)
322 HTMLElement *This = impl_from_IHTMLElement2(iface);
323 return IDispatchEx_GetIDsOfNames(&This->node.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
324 lcid, rgDispId);
327 static HRESULT WINAPI HTMLElement2_Invoke(IHTMLElement2 *iface, DISPID dispIdMember,
328 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
329 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
331 HTMLElement *This = impl_from_IHTMLElement2(iface);
332 return IDispatchEx_Invoke(&This->node.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
333 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
336 static HRESULT WINAPI HTMLElement2_get_scopeName(IHTMLElement2 *iface, BSTR *p)
338 HTMLElement *This = impl_from_IHTMLElement2(iface);
339 FIXME("(%p)->(%p)\n", This, p);
340 return E_NOTIMPL;
343 static HRESULT WINAPI HTMLElement2_setCapture(IHTMLElement2 *iface, VARIANT_BOOL containerCapture)
345 HTMLElement *This = impl_from_IHTMLElement2(iface);
346 FIXME("(%p)->(%x)\n", This, containerCapture);
347 return E_NOTIMPL;
350 static HRESULT WINAPI HTMLElement2_releaseCapture(IHTMLElement2 *iface)
352 HTMLElement *This = impl_from_IHTMLElement2(iface);
353 FIXME("(%p)\n", This);
354 return E_NOTIMPL;
357 static HRESULT WINAPI HTMLElement2_put_onlosecapture(IHTMLElement2 *iface, VARIANT v)
359 HTMLElement *This = impl_from_IHTMLElement2(iface);
360 FIXME("(%p)->()\n", This);
361 return E_NOTIMPL;
364 static HRESULT WINAPI HTMLElement2_get_onlosecapture(IHTMLElement2 *iface, VARIANT *p)
366 HTMLElement *This = impl_from_IHTMLElement2(iface);
367 FIXME("(%p)->(%p)\n", This, p);
368 return E_NOTIMPL;
371 static HRESULT WINAPI HTMLElement2_componentFromPoint(IHTMLElement2 *iface,
372 LONG x, LONG y, BSTR *component)
374 HTMLElement *This = impl_from_IHTMLElement2(iface);
375 FIXME("(%p)->(%d %d %p)\n", This, x, y, component);
376 return E_NOTIMPL;
379 static HRESULT WINAPI HTMLElement2_doScroll(IHTMLElement2 *iface, VARIANT component)
381 HTMLElement *This = impl_from_IHTMLElement2(iface);
383 TRACE("(%p)->(%s)\n", This, debugstr_variant(&component));
385 if(!This->node.doc->content_ready
386 || !This->node.doc->basedoc.doc_obj->in_place_active)
387 return E_PENDING;
389 WARN("stub\n");
390 return S_OK;
393 static HRESULT WINAPI HTMLElement2_put_onscroll(IHTMLElement2 *iface, VARIANT v)
395 HTMLElement *This = impl_from_IHTMLElement2(iface);
396 FIXME("(%p)->()\n", This);
397 return E_NOTIMPL;
400 static HRESULT WINAPI HTMLElement2_get_onscroll(IHTMLElement2 *iface, VARIANT *p)
402 HTMLElement *This = impl_from_IHTMLElement2(iface);
403 FIXME("(%p)->(%p)\n", This, p);
404 return E_NOTIMPL;
407 static HRESULT WINAPI HTMLElement2_put_ondrag(IHTMLElement2 *iface, VARIANT v)
409 HTMLElement *This = impl_from_IHTMLElement2(iface);
411 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
413 return set_node_event(&This->node, EVENTID_DRAG, &v);
416 static HRESULT WINAPI HTMLElement2_get_ondrag(IHTMLElement2 *iface, VARIANT *p)
418 HTMLElement *This = impl_from_IHTMLElement2(iface);
420 TRACE("(%p)->(%p)\n", This, p);
422 return get_node_event(&This->node, EVENTID_DRAG, p);
425 static HRESULT WINAPI HTMLElement2_put_ondragend(IHTMLElement2 *iface, VARIANT v)
427 HTMLElement *This = impl_from_IHTMLElement2(iface);
428 FIXME("(%p)->()\n", This);
429 return E_NOTIMPL;
432 static HRESULT WINAPI HTMLElement2_get_ondragend(IHTMLElement2 *iface, VARIANT *p)
434 HTMLElement *This = impl_from_IHTMLElement2(iface);
435 FIXME("(%p)->(%p)\n", This, p);
436 return E_NOTIMPL;
439 static HRESULT WINAPI HTMLElement2_put_ondragenter(IHTMLElement2 *iface, VARIANT v)
441 HTMLElement *This = impl_from_IHTMLElement2(iface);
442 FIXME("(%p)->()\n", This);
443 return E_NOTIMPL;
446 static HRESULT WINAPI HTMLElement2_get_ondragenter(IHTMLElement2 *iface, VARIANT *p)
448 HTMLElement *This = impl_from_IHTMLElement2(iface);
449 FIXME("(%p)->(%p)\n", This, p);
450 return E_NOTIMPL;
453 static HRESULT WINAPI HTMLElement2_put_ondragover(IHTMLElement2 *iface, VARIANT v)
455 HTMLElement *This = impl_from_IHTMLElement2(iface);
456 FIXME("(%p)->()\n", This);
457 return E_NOTIMPL;
460 static HRESULT WINAPI HTMLElement2_get_ondragover(IHTMLElement2 *iface, VARIANT *p)
462 HTMLElement *This = impl_from_IHTMLElement2(iface);
463 FIXME("(%p)->(%p)\n", This, p);
464 return E_NOTIMPL;
467 static HRESULT WINAPI HTMLElement2_put_ondragleave(IHTMLElement2 *iface, VARIANT v)
469 HTMLElement *This = impl_from_IHTMLElement2(iface);
470 FIXME("(%p)->()\n", This);
471 return E_NOTIMPL;
474 static HRESULT WINAPI HTMLElement2_get_ondragleave(IHTMLElement2 *iface, VARIANT *p)
476 HTMLElement *This = impl_from_IHTMLElement2(iface);
477 FIXME("(%p)->(%p)\n", This, p);
478 return E_NOTIMPL;
481 static HRESULT WINAPI HTMLElement2_put_ondrop(IHTMLElement2 *iface, VARIANT v)
483 HTMLElement *This = impl_from_IHTMLElement2(iface);
484 FIXME("(%p)->()\n", This);
485 return E_NOTIMPL;
488 static HRESULT WINAPI HTMLElement2_get_ondrop(IHTMLElement2 *iface, VARIANT *p)
490 HTMLElement *This = impl_from_IHTMLElement2(iface);
491 FIXME("(%p)->(%p)\n", This, p);
492 return E_NOTIMPL;
495 static HRESULT WINAPI HTMLElement2_put_onbeforecut(IHTMLElement2 *iface, VARIANT v)
497 HTMLElement *This = impl_from_IHTMLElement2(iface);
498 FIXME("(%p)->()\n", This);
499 return E_NOTIMPL;
502 static HRESULT WINAPI HTMLElement2_get_onbeforecut(IHTMLElement2 *iface, VARIANT *p)
504 HTMLElement *This = impl_from_IHTMLElement2(iface);
505 FIXME("(%p)->(%p)\n", This, p);
506 return E_NOTIMPL;
509 static HRESULT WINAPI HTMLElement2_put_oncut(IHTMLElement2 *iface, VARIANT v)
511 HTMLElement *This = impl_from_IHTMLElement2(iface);
512 FIXME("(%p)->()\n", This);
513 return E_NOTIMPL;
516 static HRESULT WINAPI HTMLElement2_get_oncut(IHTMLElement2 *iface, VARIANT *p)
518 HTMLElement *This = impl_from_IHTMLElement2(iface);
519 FIXME("(%p)->(%p)\n", This, p);
520 return E_NOTIMPL;
523 static HRESULT WINAPI HTMLElement2_put_onbeforecopy(IHTMLElement2 *iface, VARIANT v)
525 HTMLElement *This = impl_from_IHTMLElement2(iface);
526 FIXME("(%p)->()\n", This);
527 return E_NOTIMPL;
530 static HRESULT WINAPI HTMLElement2_get_onbeforecopy(IHTMLElement2 *iface, VARIANT *p)
532 HTMLElement *This = impl_from_IHTMLElement2(iface);
533 FIXME("(%p)->(%p)\n", This, p);
534 return E_NOTIMPL;
537 static HRESULT WINAPI HTMLElement2_put_oncopy(IHTMLElement2 *iface, VARIANT v)
539 HTMLElement *This = impl_from_IHTMLElement2(iface);
540 FIXME("(%p)->()\n", This);
541 return E_NOTIMPL;
544 static HRESULT WINAPI HTMLElement2_get_oncopy(IHTMLElement2 *iface, VARIANT *p)
546 HTMLElement *This = impl_from_IHTMLElement2(iface);
547 FIXME("(%p)->(%p)\n", This, p);
548 return E_NOTIMPL;
551 static HRESULT WINAPI HTMLElement2_put_onbeforepaste(IHTMLElement2 *iface, VARIANT v)
553 HTMLElement *This = impl_from_IHTMLElement2(iface);
554 FIXME("(%p)->()\n", This);
555 return E_NOTIMPL;
558 static HRESULT WINAPI HTMLElement2_get_onbeforepaste(IHTMLElement2 *iface, VARIANT *p)
560 HTMLElement *This = impl_from_IHTMLElement2(iface);
561 FIXME("(%p)->(%p)\n", This, p);
562 return E_NOTIMPL;
565 static HRESULT WINAPI HTMLElement2_put_onpaste(IHTMLElement2 *iface, VARIANT v)
567 HTMLElement *This = impl_from_IHTMLElement2(iface);
569 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
571 return set_node_event(&This->node, EVENTID_PASTE, &v);
574 static HRESULT WINAPI HTMLElement2_get_onpaste(IHTMLElement2 *iface, VARIANT *p)
576 HTMLElement *This = impl_from_IHTMLElement2(iface);
578 TRACE("(%p)->(%p)\n", This, p);
580 return get_node_event(&This->node, EVENTID_PASTE, p);
583 static HRESULT WINAPI HTMLElement2_get_currentStyle(IHTMLElement2 *iface, IHTMLCurrentStyle **p)
585 HTMLElement *This = impl_from_IHTMLElement2(iface);
587 TRACE("(%p)->(%p)\n", This, p);
589 return HTMLCurrentStyle_Create(This, p);
592 static HRESULT WINAPI HTMLElement2_put_onpropertychange(IHTMLElement2 *iface, VARIANT v)
594 HTMLElement *This = impl_from_IHTMLElement2(iface);
595 FIXME("(%p)->()\n", This);
596 return E_NOTIMPL;
599 static HRESULT WINAPI HTMLElement2_get_onpropertychange(IHTMLElement2 *iface, VARIANT *p)
601 HTMLElement *This = impl_from_IHTMLElement2(iface);
602 FIXME("(%p)->(%p)\n", This, p);
603 return E_NOTIMPL;
606 static HRESULT WINAPI HTMLElement2_getClientRects(IHTMLElement2 *iface, IHTMLRectCollection **pRectCol)
608 HTMLElement *This = impl_from_IHTMLElement2(iface);
609 FIXME("(%p)->(%p)\n", This, pRectCol);
610 return E_NOTIMPL;
613 static HRESULT WINAPI HTMLElement2_getBoundingClientRect(IHTMLElement2 *iface, IHTMLRect **pRect)
615 HTMLElement *This = impl_from_IHTMLElement2(iface);
616 nsIDOMClientRect *nsrect;
617 nsresult nsres;
618 HRESULT hres;
620 TRACE("(%p)->(%p)\n", This, pRect);
622 nsres = nsIDOMElement_GetBoundingClientRect(This->nselem, &nsrect);
623 if(NS_FAILED(nsres) || !nsrect) {
624 ERR("GetBoindingClientRect failed: %08x\n", nsres);
625 return E_FAIL;
628 hres = create_html_rect(nsrect, pRect);
630 nsIDOMClientRect_Release(nsrect);
631 return hres;
634 static HRESULT WINAPI HTMLElement2_setExpression(IHTMLElement2 *iface, BSTR propname,
635 BSTR expression, BSTR language)
637 HTMLElement *This = impl_from_IHTMLElement2(iface);
638 FIXME("(%p)->(%s %s %s)\n", This, debugstr_w(propname), debugstr_w(expression),
639 debugstr_w(language));
640 return E_NOTIMPL;
643 static HRESULT WINAPI HTMLElement2_getExpression(IHTMLElement2 *iface, BSTR propname,
644 VARIANT *expression)
646 HTMLElement *This = impl_from_IHTMLElement2(iface);
647 FIXME("(%p)->(%s %p)\n", This, debugstr_w(propname), expression);
648 return E_NOTIMPL;
651 static HRESULT WINAPI HTMLElement2_removeExpression(IHTMLElement2 *iface, BSTR propname,
652 VARIANT_BOOL *pfSuccess)
654 HTMLElement *This = impl_from_IHTMLElement2(iface);
655 FIXME("(%p)->(%s %p)\n", This, debugstr_w(propname), pfSuccess);
656 return E_NOTIMPL;
659 static HRESULT WINAPI HTMLElement2_put_tabIndex(IHTMLElement2 *iface, short v)
661 HTMLElement *This = impl_from_IHTMLElement2(iface);
662 nsresult nsres;
664 TRACE("(%p)->(%d)\n", This, v);
666 nsres = nsIDOMHTMLElement_SetTabIndex(This->nselem, v);
667 if(NS_FAILED(nsres))
668 ERR("GetTabIndex failed: %08x\n", nsres);
670 return S_OK;
673 static HRESULT WINAPI HTMLElement2_get_tabIndex(IHTMLElement2 *iface, short *p)
675 HTMLElement *This = impl_from_IHTMLElement2(iface);
676 PRInt32 index = 0;
677 nsresult nsres;
679 TRACE("(%p)->(%p)\n", This, p);
681 nsres = nsIDOMHTMLElement_GetTabIndex(This->nselem, &index);
682 if(NS_FAILED(nsres)) {
683 ERR("GetTabIndex failed: %08x\n", nsres);
684 return E_FAIL;
687 *p = index;
688 return S_OK;
691 static HRESULT WINAPI HTMLElement2_focus(IHTMLElement2 *iface)
693 HTMLElement *This = impl_from_IHTMLElement2(iface);
694 nsresult nsres;
696 TRACE("(%p)\n", This);
698 nsres = nsIDOMHTMLElement_Focus(This->nselem);
699 if(NS_FAILED(nsres))
700 ERR("Focus failed: %08x\n", nsres);
702 return S_OK;
705 static HRESULT WINAPI HTMLElement2_put_accessKey(IHTMLElement2 *iface, BSTR v)
707 HTMLElement *This = impl_from_IHTMLElement2(iface);
708 VARIANT var;
710 static WCHAR accessKeyW[] = {'a','c','c','e','s','s','K','e','y',0};
712 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
714 V_VT(&var) = VT_BSTR;
715 V_BSTR(&var) = v;
716 return IHTMLElement_setAttribute(&This->IHTMLElement_iface, accessKeyW, var, 0);
719 static HRESULT WINAPI HTMLElement2_get_accessKey(IHTMLElement2 *iface, BSTR *p)
721 HTMLElement *This = impl_from_IHTMLElement2(iface);
722 FIXME("(%p)->(%p)\n", This, p);
723 return E_NOTIMPL;
726 static HRESULT WINAPI HTMLElement2_put_onblur(IHTMLElement2 *iface, VARIANT v)
728 HTMLElement *This = impl_from_IHTMLElement2(iface);
730 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
732 return set_node_event(&This->node, EVENTID_BLUR, &v);
735 static HRESULT WINAPI HTMLElement2_get_onblur(IHTMLElement2 *iface, VARIANT *p)
737 HTMLElement *This = impl_from_IHTMLElement2(iface);
739 TRACE("(%p)->(%p)\n", This, p);
741 return get_node_event(&This->node, EVENTID_BLUR, p);
744 static HRESULT WINAPI HTMLElement2_put_onfocus(IHTMLElement2 *iface, VARIANT v)
746 HTMLElement *This = impl_from_IHTMLElement2(iface);
748 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
750 return set_node_event(&This->node, EVENTID_FOCUS, &v);
753 static HRESULT WINAPI HTMLElement2_get_onfocus(IHTMLElement2 *iface, VARIANT *p)
755 HTMLElement *This = impl_from_IHTMLElement2(iface);
757 TRACE("(%p)->(%p)\n", This, p);
759 return get_node_event(&This->node, EVENTID_FOCUS, p);
762 static HRESULT WINAPI HTMLElement2_put_onresize(IHTMLElement2 *iface, VARIANT v)
764 HTMLElement *This = impl_from_IHTMLElement2(iface);
765 FIXME("(%p)->()\n", This);
766 return E_NOTIMPL;
769 static HRESULT WINAPI HTMLElement2_get_onresize(IHTMLElement2 *iface, VARIANT *p)
771 HTMLElement *This = impl_from_IHTMLElement2(iface);
772 FIXME("(%p)->(%p)\n", This, p);
773 return E_NOTIMPL;
776 static HRESULT WINAPI HTMLElement2_blur(IHTMLElement2 *iface)
778 HTMLElement *This = impl_from_IHTMLElement2(iface);
779 FIXME("(%p)\n", This);
780 return E_NOTIMPL;
783 static HRESULT WINAPI HTMLElement2_addFilter(IHTMLElement2 *iface, IUnknown *pUnk)
785 HTMLElement *This = impl_from_IHTMLElement2(iface);
786 FIXME("(%p)->(%p)\n", This, pUnk);
787 return E_NOTIMPL;
790 static HRESULT WINAPI HTMLElement2_removeFilter(IHTMLElement2 *iface, IUnknown *pUnk)
792 HTMLElement *This = impl_from_IHTMLElement2(iface);
793 FIXME("(%p)->(%p)\n", This, pUnk);
794 return E_NOTIMPL;
797 static HRESULT WINAPI HTMLElement2_get_clientHeight(IHTMLElement2 *iface, LONG *p)
799 HTMLElement *This = impl_from_IHTMLElement2(iface);
800 PRInt32 height=0;
802 TRACE("(%p)->(%p)\n", This, p);
804 nsIDOMElement_GetClientHeight(This->nselem, &height);
806 *p = height;
807 return S_OK;
810 static HRESULT WINAPI HTMLElement2_get_clientWidth(IHTMLElement2 *iface, LONG *p)
812 HTMLElement *This = impl_from_IHTMLElement2(iface);
813 PRInt32 width=0;
815 TRACE("(%p)->(%p)\n", This, p);
817 nsIDOMElement_GetClientWidth(This->nselem, &width);
819 *p = width;
820 return S_OK;
823 static HRESULT WINAPI HTMLElement2_get_clientTop(IHTMLElement2 *iface, LONG *p)
825 HTMLElement *This = impl_from_IHTMLElement2(iface);
826 PRInt32 client_top = 0;
827 nsresult nsres;
829 TRACE("(%p)->(%p)\n", This, p);
831 nsres = nsIDOMElement_GetClientTop(This->nselem, &client_top);
832 if(NS_FAILED(nsres))
833 ERR("GetScrollHeight failed: %08x\n", nsres);
835 *p = client_top;
836 TRACE("*p = %d\n", *p);
837 return S_OK;
840 static HRESULT WINAPI HTMLElement2_get_clientLeft(IHTMLElement2 *iface, LONG *p)
842 HTMLElement *This = impl_from_IHTMLElement2(iface);
843 PRInt32 client_left = 0;
844 nsresult nsres;
846 TRACE("(%p)->(%p)\n", This, p);
848 nsres = nsIDOMElement_GetClientLeft(This->nselem, &client_left);
849 if(NS_FAILED(nsres))
850 ERR("GetScrollHeight failed: %08x\n", nsres);
852 *p = client_left;
853 TRACE("*p = %d\n", *p);
854 return S_OK;
857 static HRESULT WINAPI HTMLElement2_attachEvent(IHTMLElement2 *iface, BSTR event,
858 IDispatch *pDisp, VARIANT_BOOL *pfResult)
860 HTMLElement *This = impl_from_IHTMLElement2(iface);
862 TRACE("(%p)->(%s %p %p)\n", This, debugstr_w(event), pDisp, pfResult);
864 return attach_event(get_node_event_target(&This->node), This->node.nsnode, &This->node.doc->basedoc, event, pDisp, pfResult);
867 static HRESULT WINAPI HTMLElement2_detachEvent(IHTMLElement2 *iface, BSTR event, IDispatch *pDisp)
869 HTMLElement *This = impl_from_IHTMLElement2(iface);
871 TRACE("(%p)->(%s %p)\n", This, debugstr_w(event), pDisp);
873 return detach_event(*get_node_event_target(&This->node), &This->node.doc->basedoc, event, pDisp);
876 static HRESULT WINAPI HTMLElement2_get_readyState(IHTMLElement2 *iface, VARIANT *p)
878 HTMLElement *This = impl_from_IHTMLElement2(iface);
879 BSTR str;
881 TRACE("(%p)->(%p)\n", This, p);
883 if(This->node.vtbl->get_readystate) {
884 HRESULT hres;
886 hres = This->node.vtbl->get_readystate(&This->node, &str);
887 if(FAILED(hres))
888 return hres;
889 }else {
890 static const WCHAR completeW[] = {'c','o','m','p','l','e','t','e',0};
892 str = SysAllocString(completeW);
893 if(!str)
894 return E_OUTOFMEMORY;
897 V_VT(p) = VT_BSTR;
898 V_BSTR(p) = str;
899 return S_OK;
902 static HRESULT WINAPI HTMLElement2_put_onreadystatechange(IHTMLElement2 *iface, VARIANT v)
904 HTMLElement *This = impl_from_IHTMLElement2(iface);
906 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
908 return set_node_event(&This->node, EVENTID_READYSTATECHANGE, &v);
911 static HRESULT WINAPI HTMLElement2_get_onreadystatechange(IHTMLElement2 *iface, VARIANT *p)
913 HTMLElement *This = impl_from_IHTMLElement2(iface);
915 TRACE("(%p)->(%p)\n", This, p);
917 return get_node_event(&This->node, EVENTID_READYSTATECHANGE, p);
920 static HRESULT WINAPI HTMLElement2_put_onrowsdelete(IHTMLElement2 *iface, VARIANT v)
922 HTMLElement *This = impl_from_IHTMLElement2(iface);
923 FIXME("(%p)->()\n", This);
924 return E_NOTIMPL;
927 static HRESULT WINAPI HTMLElement2_get_onrowsdelete(IHTMLElement2 *iface, VARIANT *p)
929 HTMLElement *This = impl_from_IHTMLElement2(iface);
930 FIXME("(%p)->(%p)\n", This, p);
931 return E_NOTIMPL;
934 static HRESULT WINAPI HTMLElement2_put_onrowsinserted(IHTMLElement2 *iface, VARIANT v)
936 HTMLElement *This = impl_from_IHTMLElement2(iface);
937 FIXME("(%p)->()\n", This);
938 return E_NOTIMPL;
941 static HRESULT WINAPI HTMLElement2_get_onrowsinserted(IHTMLElement2 *iface, VARIANT *p)
943 HTMLElement *This = impl_from_IHTMLElement2(iface);
944 FIXME("(%p)->(%p)\n", This, p);
945 return E_NOTIMPL;
948 static HRESULT WINAPI HTMLElement2_put_oncellchange(IHTMLElement2 *iface, VARIANT v)
950 HTMLElement *This = impl_from_IHTMLElement2(iface);
951 FIXME("(%p)->()\n", This);
952 return E_NOTIMPL;
955 static HRESULT WINAPI HTMLElement2_get_oncellchange(IHTMLElement2 *iface, VARIANT *p)
957 HTMLElement *This = impl_from_IHTMLElement2(iface);
958 FIXME("(%p)->(%p)\n", This, p);
959 return E_NOTIMPL;
962 static HRESULT WINAPI HTMLElement2_put_dir(IHTMLElement2 *iface, BSTR v)
964 HTMLElement *This = impl_from_IHTMLElement2(iface);
965 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
966 return E_NOTIMPL;
969 static HRESULT WINAPI HTMLElement2_get_dir(IHTMLElement2 *iface, BSTR *p)
971 HTMLElement *This = impl_from_IHTMLElement2(iface);
973 TRACE("(%p)->(%p)\n", This, p);
975 *p = NULL;
977 if(This->nselem) {
978 nsAString dir_str;
979 nsresult nsres;
981 nsAString_Init(&dir_str, NULL);
983 nsres = nsIDOMHTMLElement_GetDir(This->nselem, &dir_str);
984 if(NS_SUCCEEDED(nsres)) {
985 const PRUnichar *dir;
986 nsAString_GetData(&dir_str, &dir);
987 if(*dir)
988 *p = SysAllocString(dir);
989 }else {
990 ERR("GetDir failed: %08x\n", nsres);
993 nsAString_Finish(&dir_str);
996 TRACE("ret %s\n", debugstr_w(*p));
997 return S_OK;
1000 static HRESULT WINAPI HTMLElement2_createControlRange(IHTMLElement2 *iface, IDispatch **range)
1002 HTMLElement *This = impl_from_IHTMLElement2(iface);
1003 FIXME("(%p)->(%p)\n", This, range);
1004 return E_NOTIMPL;
1007 static HRESULT WINAPI HTMLElement2_get_scrollHeight(IHTMLElement2 *iface, LONG *p)
1009 HTMLElement *This = impl_from_IHTMLElement2(iface);
1010 PRInt32 height = 0;
1011 nsresult nsres;
1013 TRACE("(%p)->(%p)\n", This, p);
1015 nsres = nsIDOMElement_GetScrollHeight(This->nselem, &height);
1016 if(NS_FAILED(nsres))
1017 ERR("GetScrollHeight failed: %08x\n", nsres);
1019 *p = height;
1020 TRACE("*p = %d\n", *p);
1021 return S_OK;
1024 static HRESULT WINAPI HTMLElement2_get_scrollWidth(IHTMLElement2 *iface, LONG *p)
1026 HTMLElement *This = impl_from_IHTMLElement2(iface);
1027 PRInt32 width = 0;
1028 nsresult nsres;
1030 TRACE("(%p)->(%p)\n", This, p);
1032 nsres = nsIDOMElement_GetScrollWidth(This->nselem, &width);
1033 if(NS_FAILED(nsres))
1034 ERR("GetScrollWidth failed: %08x\n", nsres);
1036 *p = width;
1037 TRACE("*p = %d\n", *p);
1038 return S_OK;
1041 static HRESULT WINAPI HTMLElement2_put_scrollTop(IHTMLElement2 *iface, LONG v)
1043 HTMLElement *This = impl_from_IHTMLElement2(iface);
1045 TRACE("(%p)->(%d)\n", This, v);
1047 if(!This->nselem) {
1048 FIXME("NULL nselem\n");
1049 return E_NOTIMPL;
1052 nsIDOMElement_SetScrollTop(This->nselem, v);
1053 return S_OK;
1056 static HRESULT WINAPI HTMLElement2_get_scrollTop(IHTMLElement2 *iface, LONG *p)
1058 HTMLElement *This = impl_from_IHTMLElement2(iface);
1059 PRInt32 top = 0;
1060 nsresult nsres;
1062 TRACE("(%p)->(%p)\n", This, p);
1064 nsres = nsIDOMElement_GetScrollTop(This->nselem, &top);
1065 if(NS_FAILED(nsres))
1066 ERR("GetScrollTop failed: %08x\n", nsres);
1068 *p = top;
1069 TRACE("*p = %d\n", *p);
1070 return S_OK;
1073 static HRESULT WINAPI HTMLElement2_put_scrollLeft(IHTMLElement2 *iface, LONG v)
1075 HTMLElement *This = impl_from_IHTMLElement2(iface);
1077 TRACE("(%p)->(%d)\n", This, v);
1079 if(!This->nselem) {
1080 FIXME("NULL nselem\n");
1081 return E_NOTIMPL;
1084 nsIDOMElement_SetScrollLeft(This->nselem, v);
1085 return S_OK;
1088 static HRESULT WINAPI HTMLElement2_get_scrollLeft(IHTMLElement2 *iface, LONG *p)
1090 HTMLElement *This = impl_from_IHTMLElement2(iface);
1091 PRInt32 left = 0;
1093 TRACE("(%p)->(%p)\n", This, p);
1095 if(!p)
1096 return E_INVALIDARG;
1098 if(!This->nselem)
1100 FIXME("NULL nselem\n");
1101 return E_NOTIMPL;
1104 nsIDOMElement_GetScrollLeft(This->nselem, &left);
1106 *p = left;
1107 TRACE("*p = %d\n", *p);
1108 return S_OK;
1111 static HRESULT WINAPI HTMLElement2_clearAttributes(IHTMLElement2 *iface)
1113 HTMLElement *This = impl_from_IHTMLElement2(iface);
1114 FIXME("(%p)\n", This);
1115 return E_NOTIMPL;
1118 static HRESULT WINAPI HTMLElement2_mergeAttributes(IHTMLElement2 *iface, IHTMLElement *mergeThis)
1120 HTMLElement *This = impl_from_IHTMLElement2(iface);
1121 FIXME("(%p)->(%p)\n", This, mergeThis);
1122 return E_NOTIMPL;
1125 static HRESULT WINAPI HTMLElement2_put_oncontextmenu(IHTMLElement2 *iface, VARIANT v)
1127 HTMLElement *This = impl_from_IHTMLElement2(iface);
1128 FIXME("(%p)->()\n", This);
1129 return E_NOTIMPL;
1132 static HRESULT WINAPI HTMLElement2_get_oncontextmenu(IHTMLElement2 *iface, VARIANT *p)
1134 HTMLElement *This = impl_from_IHTMLElement2(iface);
1135 FIXME("(%p)->(%p)\n", This, p);
1136 return E_NOTIMPL;
1139 static HRESULT WINAPI HTMLElement2_insertAdjecentElement(IHTMLElement2 *iface, BSTR where,
1140 IHTMLElement *insertedElement, IHTMLElement **inserted)
1142 HTMLElement *This = impl_from_IHTMLElement2(iface);
1143 FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(where), insertedElement, inserted);
1144 return E_NOTIMPL;
1147 static HRESULT WINAPI HTMLElement2_applyElement(IHTMLElement2 *iface, IHTMLElement *apply,
1148 BSTR where, IHTMLElement **applied)
1150 HTMLElement *This = impl_from_IHTMLElement2(iface);
1151 FIXME("(%p)->(%p %s %p)\n", This, apply, debugstr_w(where), applied);
1152 return E_NOTIMPL;
1155 static HRESULT WINAPI HTMLElement2_getAdjecentText(IHTMLElement2 *iface, BSTR where, BSTR *text)
1157 HTMLElement *This = impl_from_IHTMLElement2(iface);
1158 FIXME("(%p)->(%s %p)\n", This, debugstr_w(where), text);
1159 return E_NOTIMPL;
1162 static HRESULT WINAPI HTMLElement2_replaceAdjecentText(IHTMLElement2 *iface, BSTR where,
1163 BSTR newText, BSTR *oldText)
1165 HTMLElement *This = impl_from_IHTMLElement2(iface);
1166 FIXME("(%p)->(%s %s %p)\n", This, debugstr_w(where), debugstr_w(newText), oldText);
1167 return E_NOTIMPL;
1170 static HRESULT WINAPI HTMLElement2_get_canHandleChildren(IHTMLElement2 *iface, VARIANT_BOOL *p)
1172 HTMLElement *This = impl_from_IHTMLElement2(iface);
1173 FIXME("(%p)->(%p)\n", This, p);
1174 return E_NOTIMPL;
1177 static HRESULT WINAPI HTMLElement2_addBehavior(IHTMLElement2 *iface, BSTR bstrUrl,
1178 VARIANT *pvarFactory, LONG *pCookie)
1180 HTMLElement *This = impl_from_IHTMLElement2(iface);
1181 FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(bstrUrl), pvarFactory, pCookie);
1182 return E_NOTIMPL;
1185 static HRESULT WINAPI HTMLElement2_removeBehavior(IHTMLElement2 *iface, LONG cookie,
1186 VARIANT_BOOL *pfResult)
1188 HTMLElement *This = impl_from_IHTMLElement2(iface);
1189 FIXME("(%p)->(%d %p)\n", This, cookie, pfResult);
1190 return E_NOTIMPL;
1193 static HRESULT WINAPI HTMLElement2_get_runtimeStyle(IHTMLElement2 *iface, IHTMLStyle **p)
1195 HTMLElement *This = impl_from_IHTMLElement2(iface);
1196 FIXME("(%p)->(%p)\n", This, p);
1197 return E_NOTIMPL;
1200 static HRESULT WINAPI HTMLElement2_get_behaviorUrns(IHTMLElement2 *iface, IDispatch **p)
1202 HTMLElement *This = impl_from_IHTMLElement2(iface);
1203 FIXME("(%p)->(%p)\n", This, p);
1204 return E_NOTIMPL;
1207 static HRESULT WINAPI HTMLElement2_put_tagUrn(IHTMLElement2 *iface, BSTR v)
1209 HTMLElement *This = impl_from_IHTMLElement2(iface);
1210 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1211 return E_NOTIMPL;
1214 static HRESULT WINAPI HTMLElement2_get_tagUrn(IHTMLElement2 *iface, BSTR *p)
1216 HTMLElement *This = impl_from_IHTMLElement2(iface);
1217 FIXME("(%p)->(%p)\n", This, p);
1218 return E_NOTIMPL;
1221 static HRESULT WINAPI HTMLElement2_put_onbeforeeditfocus(IHTMLElement2 *iface, VARIANT vv)
1223 HTMLElement *This = impl_from_IHTMLElement2(iface);
1224 FIXME("(%p)->()\n", This);
1225 return E_NOTIMPL;
1228 static HRESULT WINAPI HTMLElement2_get_onbeforeeditfocus(IHTMLElement2 *iface, VARIANT *p)
1230 HTMLElement *This = impl_from_IHTMLElement2(iface);
1231 FIXME("(%p)->(%p)\n", This, p);
1232 return E_NOTIMPL;
1235 static HRESULT WINAPI HTMLElement2_get_readyStateValue(IHTMLElement2 *iface, LONG *p)
1237 HTMLElement *This = impl_from_IHTMLElement2(iface);
1238 FIXME("(%p)->(%p)\n", This, p);
1239 return E_NOTIMPL;
1242 static HRESULT WINAPI HTMLElement2_getElementsByTagName(IHTMLElement2 *iface, BSTR v,
1243 IHTMLElementCollection **pelColl)
1245 HTMLElement *This = impl_from_IHTMLElement2(iface);
1246 nsIDOMNodeList *nslist;
1247 nsAString tag_str;
1248 nsresult nsres;
1250 TRACE("(%p)->(%s %p)\n", This, debugstr_w(v), pelColl);
1252 nsAString_InitDepend(&tag_str, v);
1253 nsres = nsIDOMHTMLElement_GetElementsByTagName(This->nselem, &tag_str, &nslist);
1254 nsAString_Finish(&tag_str);
1255 if(NS_FAILED(nsres)) {
1256 ERR("GetElementByTagName failed: %08x\n", nsres);
1257 return E_FAIL;
1260 *pelColl = create_collection_from_nodelist(This->node.doc,
1261 (IUnknown*)&This->IHTMLElement_iface, nslist);
1262 nsIDOMNodeList_Release(nslist);
1263 return S_OK;
1266 static const IHTMLElement2Vtbl HTMLElement2Vtbl = {
1267 HTMLElement2_QueryInterface,
1268 HTMLElement2_AddRef,
1269 HTMLElement2_Release,
1270 HTMLElement2_GetTypeInfoCount,
1271 HTMLElement2_GetTypeInfo,
1272 HTMLElement2_GetIDsOfNames,
1273 HTMLElement2_Invoke,
1274 HTMLElement2_get_scopeName,
1275 HTMLElement2_setCapture,
1276 HTMLElement2_releaseCapture,
1277 HTMLElement2_put_onlosecapture,
1278 HTMLElement2_get_onlosecapture,
1279 HTMLElement2_componentFromPoint,
1280 HTMLElement2_doScroll,
1281 HTMLElement2_put_onscroll,
1282 HTMLElement2_get_onscroll,
1283 HTMLElement2_put_ondrag,
1284 HTMLElement2_get_ondrag,
1285 HTMLElement2_put_ondragend,
1286 HTMLElement2_get_ondragend,
1287 HTMLElement2_put_ondragenter,
1288 HTMLElement2_get_ondragenter,
1289 HTMLElement2_put_ondragover,
1290 HTMLElement2_get_ondragover,
1291 HTMLElement2_put_ondragleave,
1292 HTMLElement2_get_ondragleave,
1293 HTMLElement2_put_ondrop,
1294 HTMLElement2_get_ondrop,
1295 HTMLElement2_put_onbeforecut,
1296 HTMLElement2_get_onbeforecut,
1297 HTMLElement2_put_oncut,
1298 HTMLElement2_get_oncut,
1299 HTMLElement2_put_onbeforecopy,
1300 HTMLElement2_get_onbeforecopy,
1301 HTMLElement2_put_oncopy,
1302 HTMLElement2_get_oncopy,
1303 HTMLElement2_put_onbeforepaste,
1304 HTMLElement2_get_onbeforepaste,
1305 HTMLElement2_put_onpaste,
1306 HTMLElement2_get_onpaste,
1307 HTMLElement2_get_currentStyle,
1308 HTMLElement2_put_onpropertychange,
1309 HTMLElement2_get_onpropertychange,
1310 HTMLElement2_getClientRects,
1311 HTMLElement2_getBoundingClientRect,
1312 HTMLElement2_setExpression,
1313 HTMLElement2_getExpression,
1314 HTMLElement2_removeExpression,
1315 HTMLElement2_put_tabIndex,
1316 HTMLElement2_get_tabIndex,
1317 HTMLElement2_focus,
1318 HTMLElement2_put_accessKey,
1319 HTMLElement2_get_accessKey,
1320 HTMLElement2_put_onblur,
1321 HTMLElement2_get_onblur,
1322 HTMLElement2_put_onfocus,
1323 HTMLElement2_get_onfocus,
1324 HTMLElement2_put_onresize,
1325 HTMLElement2_get_onresize,
1326 HTMLElement2_blur,
1327 HTMLElement2_addFilter,
1328 HTMLElement2_removeFilter,
1329 HTMLElement2_get_clientHeight,
1330 HTMLElement2_get_clientWidth,
1331 HTMLElement2_get_clientTop,
1332 HTMLElement2_get_clientLeft,
1333 HTMLElement2_attachEvent,
1334 HTMLElement2_detachEvent,
1335 HTMLElement2_get_readyState,
1336 HTMLElement2_put_onreadystatechange,
1337 HTMLElement2_get_onreadystatechange,
1338 HTMLElement2_put_onrowsdelete,
1339 HTMLElement2_get_onrowsdelete,
1340 HTMLElement2_put_onrowsinserted,
1341 HTMLElement2_get_onrowsinserted,
1342 HTMLElement2_put_oncellchange,
1343 HTMLElement2_get_oncellchange,
1344 HTMLElement2_put_dir,
1345 HTMLElement2_get_dir,
1346 HTMLElement2_createControlRange,
1347 HTMLElement2_get_scrollHeight,
1348 HTMLElement2_get_scrollWidth,
1349 HTMLElement2_put_scrollTop,
1350 HTMLElement2_get_scrollTop,
1351 HTMLElement2_put_scrollLeft,
1352 HTMLElement2_get_scrollLeft,
1353 HTMLElement2_clearAttributes,
1354 HTMLElement2_mergeAttributes,
1355 HTMLElement2_put_oncontextmenu,
1356 HTMLElement2_get_oncontextmenu,
1357 HTMLElement2_insertAdjecentElement,
1358 HTMLElement2_applyElement,
1359 HTMLElement2_getAdjecentText,
1360 HTMLElement2_replaceAdjecentText,
1361 HTMLElement2_get_canHandleChildren,
1362 HTMLElement2_addBehavior,
1363 HTMLElement2_removeBehavior,
1364 HTMLElement2_get_runtimeStyle,
1365 HTMLElement2_get_behaviorUrns,
1366 HTMLElement2_put_tagUrn,
1367 HTMLElement2_get_tagUrn,
1368 HTMLElement2_put_onbeforeeditfocus,
1369 HTMLElement2_get_onbeforeeditfocus,
1370 HTMLElement2_get_readyStateValue,
1371 HTMLElement2_getElementsByTagName,
1374 void HTMLElement2_Init(HTMLElement *This)
1376 This->IHTMLElement2_iface.lpVtbl = &HTMLElement2Vtbl;