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
28 #include "wine/debug.h"
29 #include "wine/unicode.h"
31 #include "mshtml_private.h"
33 WINE_DEFAULT_DEBUG_CHANNEL(mshtml
);
35 #define HTMLELEM3_THIS(iface) DEFINE_THIS(HTMLElement, HTMLElement3, iface)
37 static HRESULT WINAPI
HTMLElement3_QueryInterface(IHTMLElement3
*iface
,
38 REFIID riid
, void **ppv
)
40 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
41 return IHTMLElement_QueryInterface(HTMLELEM(This
), riid
, ppv
);
44 static ULONG WINAPI
HTMLElement3_AddRef(IHTMLElement3
*iface
)
46 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
47 return IHTMLElement_AddRef(HTMLELEM(This
));
50 static ULONG WINAPI
HTMLElement3_Release(IHTMLElement3
*iface
)
52 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
53 return IHTMLElement_Release(HTMLELEM(This
));
56 static HRESULT WINAPI
HTMLElement3_GetTypeInfoCount(IHTMLElement3
*iface
, UINT
*pctinfo
)
58 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
59 return IDispatchEx_GetTypeInfoCount(DISPATCHEX(&This
->node
.dispex
), pctinfo
);
62 static HRESULT WINAPI
HTMLElement3_GetTypeInfo(IHTMLElement3
*iface
, UINT iTInfo
,
63 LCID lcid
, ITypeInfo
**ppTInfo
)
65 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
66 return IDispatchEx_GetTypeInfo(DISPATCHEX(&This
->node
.dispex
), iTInfo
, lcid
, ppTInfo
);
69 static HRESULT WINAPI
HTMLElement3_GetIDsOfNames(IHTMLElement3
*iface
, REFIID riid
,
70 LPOLESTR
*rgszNames
, UINT cNames
,
71 LCID lcid
, DISPID
*rgDispId
)
73 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
74 return IDispatchEx_GetIDsOfNames(DISPATCHEX(&This
->node
.dispex
), riid
, rgszNames
, cNames
, lcid
, rgDispId
);
77 static HRESULT WINAPI
HTMLElement3_Invoke(IHTMLElement3
*iface
, DISPID dispIdMember
,
78 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
79 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
81 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
82 return IDispatchEx_Invoke(DISPATCHEX(&This
->node
.dispex
), dispIdMember
, riid
, lcid
,
83 wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
86 static HRESULT WINAPI
HTMLElement3_mergeAttributes(IHTMLElement3
*iface
, IHTMLElement
*mergeThis
, VARIANT
*pvarFlags
)
88 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
89 FIXME("(%p)->(%p %p)\n", This
, mergeThis
, pvarFlags
);
93 static HRESULT WINAPI
HTMLElement3_get_isMultiLine(IHTMLElement3
*iface
, VARIANT_BOOL
*p
)
95 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
96 FIXME("(%p)->(%p)\n", This
, p
);
100 static HRESULT WINAPI
HTMLElement3_get_canHaveHTML(IHTMLElement3
*iface
, VARIANT_BOOL
*p
)
102 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
103 FIXME("(%p)->(%p)\n", This
, p
);
107 static HRESULT WINAPI
HTMLElement3_put_onlayoutcomplete(IHTMLElement3
*iface
, VARIANT v
)
109 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
110 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
114 static HRESULT WINAPI
HTMLElement3_get_onlayoutcomplete(IHTMLElement3
*iface
, VARIANT
*p
)
116 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
117 FIXME("(%p)->(%p)\n", This
, p
);
121 static HRESULT WINAPI
HTMLElement3_put_onpage(IHTMLElement3
*iface
, VARIANT v
)
123 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
124 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
128 static HRESULT WINAPI
HTMLElement3_get_onpage(IHTMLElement3
*iface
, VARIANT
*p
)
130 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
131 FIXME("(%p)->(%p)\n", This
, p
);
135 static HRESULT WINAPI
HTMLElement3_put_inflateBlock(IHTMLElement3
*iface
, VARIANT_BOOL v
)
137 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
138 FIXME("(%p)->(%x)\n", This
, v
);
142 static HRESULT WINAPI
HTMLElement3_get_inflateBlock(IHTMLElement3
*iface
, VARIANT_BOOL
*p
)
144 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
145 FIXME("(%p)->(%p)\n", This
, p
);
149 static HRESULT WINAPI
HTMLElement3_put_onbeforedeactivate(IHTMLElement3
*iface
, VARIANT v
)
151 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
152 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
156 static HRESULT WINAPI
HTMLElement3_get_onbeforedeactivate(IHTMLElement3
*iface
, VARIANT
*p
)
158 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
159 FIXME("(%p)->(%p)\n", This
, p
);
163 static HRESULT WINAPI
HTMLElement3_setActive(IHTMLElement3
*iface
)
165 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
166 FIXME("(%p)\n", This
);
170 static HRESULT WINAPI
HTMLElement3_put_contentEditable(IHTMLElement3
*iface
, BSTR v
)
172 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
173 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
177 static HRESULT WINAPI
HTMLElement3_get_contentEditable(IHTMLElement3
*iface
, BSTR
*p
)
179 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
180 FIXME("(%p)->(%p)\n", This
, p
);
184 static HRESULT WINAPI
HTMLElement3_get_isContentEditable(IHTMLElement3
*iface
, VARIANT_BOOL
*p
)
186 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
187 FIXME("(%p)->(%p)\n", This
, p
);
191 static HRESULT WINAPI
HTMLElement3_put_hideFocus(IHTMLElement3
*iface
, VARIANT_BOOL v
)
193 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
194 FIXME("(%p)->(%x)\n", This
, v
);
198 static HRESULT WINAPI
HTMLElement3_get_hideFocus(IHTMLElement3
*iface
, VARIANT_BOOL
*p
)
200 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
201 FIXME("(%p)->(%p)\n", This
, p
);
205 static HRESULT WINAPI
HTMLElement3_put_disabled(IHTMLElement3
*iface
, VARIANT_BOOL v
)
207 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
208 FIXME("(%p)->(%x)\n", This
, v
);
213 static HRESULT WINAPI
HTMLElement3_get_disabled(IHTMLElement3
*iface
, VARIANT_BOOL
*p
)
215 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
216 FIXME("(%p)->(%p)\n", This
, p
);
220 static HRESULT WINAPI
HTMLElement3_get_isDisabled(IHTMLElement3
*iface
, VARIANT_BOOL
*p
)
222 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
223 FIXME("(%p)->(%p)\n", This
, p
);
227 static HRESULT WINAPI
HTMLElement3_put_onmove(IHTMLElement3
*iface
, VARIANT v
)
229 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
230 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
234 static HRESULT WINAPI
HTMLElement3_get_onmove(IHTMLElement3
*iface
, VARIANT
*p
)
236 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
237 FIXME("(%p)->(%p)\n", This
, p
);
241 static HRESULT WINAPI
HTMLElement3_put_oncontrolselect(IHTMLElement3
*iface
, VARIANT v
)
243 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
244 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
248 static HRESULT WINAPI
HTMLElement3_get_oncontrolselect(IHTMLElement3
*iface
, VARIANT
*p
)
250 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
251 FIXME("(%p)->(%p)\n", This
, p
);
255 static HRESULT WINAPI
HTMLElement3_fireEvent(IHTMLElement3
*iface
, BSTR bstrEventName
,
256 VARIANT
*pvarEventObject
, VARIANT_BOOL
*pfCancelled
)
258 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
259 FIXME("(%p)->(%s %p %p)\n", This
, debugstr_w(bstrEventName
), pvarEventObject
, pfCancelled
);
263 static HRESULT WINAPI
HTMLElement3_put_onresizestart(IHTMLElement3
*iface
, VARIANT v
)
265 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
266 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
270 static HRESULT WINAPI
HTMLElement3_get_onresizestart(IHTMLElement3
*iface
, VARIANT
*p
)
272 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
273 FIXME("(%p)->(%p)\n", This
, p
);
277 static HRESULT WINAPI
HTMLElement3_put_onresizeend(IHTMLElement3
*iface
, VARIANT v
)
279 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
280 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
284 static HRESULT WINAPI
HTMLElement3_get_onresizeend(IHTMLElement3
*iface
, VARIANT
*p
)
286 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
287 FIXME("(%p)->(%p)\n", This
, p
);
291 static HRESULT WINAPI
HTMLElement3_put_onmovestart(IHTMLElement3
*iface
, VARIANT v
)
293 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
294 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
298 static HRESULT WINAPI
HTMLElement3_get_onmovestart(IHTMLElement3
*iface
, VARIANT
*p
)
300 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
301 FIXME("(%p)->(%p)\n", This
, p
);
305 static HRESULT WINAPI
HTMLElement3_put_onmoveend(IHTMLElement3
*iface
, VARIANT v
)
307 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
308 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
312 static HRESULT WINAPI
HTMLElement3_get_onmoveend(IHTMLElement3
*iface
, VARIANT
*p
)
314 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
315 FIXME("(%p)->(%p)\n", This
, p
);
319 static HRESULT WINAPI
HTMLElement3_put_onmousecenter(IHTMLElement3
*iface
, VARIANT v
)
321 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
322 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
326 static HRESULT WINAPI
HTMLElement3_get_onmousecenter(IHTMLElement3
*iface
, VARIANT
*p
)
328 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
329 FIXME("(%p)->(%p)\n", This
, p
);
333 static HRESULT WINAPI
HTMLElement3_put_onmouseleave(IHTMLElement3
*iface
, VARIANT v
)
335 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
336 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
340 static HRESULT WINAPI
HTMLElement3_get_onmouseleave(IHTMLElement3
*iface
, VARIANT
*p
)
342 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
343 FIXME("(%p)->(%p)\n", This
, p
);
347 static HRESULT WINAPI
HTMLElement3_put_onactivate(IHTMLElement3
*iface
, VARIANT v
)
349 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
350 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
354 static HRESULT WINAPI
HTMLElement3_get_onactivate(IHTMLElement3
*iface
, VARIANT
*p
)
356 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
357 FIXME("(%p)->(%p)\n", This
, p
);
361 static HRESULT WINAPI
HTMLElement3_put_ondeactivate(IHTMLElement3
*iface
, VARIANT v
)
363 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
364 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&v
));
368 static HRESULT WINAPI
HTMLElement3_get_ondeactivate(IHTMLElement3
*iface
, VARIANT
*p
)
370 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
371 FIXME("(%p)->(%p)\n", This
, p
);
375 static HRESULT WINAPI
HTMLElement3_dragDrop(IHTMLElement3
*iface
, VARIANT_BOOL
*pfRet
)
377 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
378 FIXME("(%p)->(%p)\n", This
, pfRet
);
382 static HRESULT WINAPI
HTMLElement3_get_glyphMode(IHTMLElement3
*iface
, LONG
*p
)
384 HTMLElement
*This
= HTMLELEM3_THIS(iface
);
385 FIXME("(%p)->(%p)\n", This
, p
);
389 #undef HTMLELEM2_THIS
391 static const IHTMLElement3Vtbl HTMLElement3Vtbl
= {
392 HTMLElement3_QueryInterface
,
394 HTMLElement3_Release
,
395 HTMLElement3_GetTypeInfoCount
,
396 HTMLElement3_GetTypeInfo
,
397 HTMLElement3_GetIDsOfNames
,
399 HTMLElement3_mergeAttributes
,
400 HTMLElement3_get_isMultiLine
,
401 HTMLElement3_get_canHaveHTML
,
402 HTMLElement3_put_onlayoutcomplete
,
403 HTMLElement3_get_onlayoutcomplete
,
404 HTMLElement3_put_onpage
,
405 HTMLElement3_get_onpage
,
406 HTMLElement3_put_inflateBlock
,
407 HTMLElement3_get_inflateBlock
,
408 HTMLElement3_put_onbeforedeactivate
,
409 HTMLElement3_get_onbeforedeactivate
,
410 HTMLElement3_setActive
,
411 HTMLElement3_put_contentEditable
,
412 HTMLElement3_get_contentEditable
,
413 HTMLElement3_get_isContentEditable
,
414 HTMLElement3_put_hideFocus
,
415 HTMLElement3_get_hideFocus
,
416 HTMLElement3_put_disabled
,
417 HTMLElement3_get_disabled
,
418 HTMLElement3_get_isDisabled
,
419 HTMLElement3_put_onmove
,
420 HTMLElement3_get_onmove
,
421 HTMLElement3_put_oncontrolselect
,
422 HTMLElement3_get_oncontrolselect
,
423 HTMLElement3_fireEvent
,
424 HTMLElement3_put_onresizestart
,
425 HTMLElement3_get_onresizestart
,
426 HTMLElement3_put_onresizeend
,
427 HTMLElement3_get_onresizeend
,
428 HTMLElement3_put_onmovestart
,
429 HTMLElement3_get_onmovestart
,
430 HTMLElement3_put_onmoveend
,
431 HTMLElement3_get_onmoveend
,
432 HTMLElement3_put_onmousecenter
,
433 HTMLElement3_get_onmousecenter
,
434 HTMLElement3_put_onmouseleave
,
435 HTMLElement3_get_onmouseleave
,
436 HTMLElement3_put_onactivate
,
437 HTMLElement3_get_onactivate
,
438 HTMLElement3_put_ondeactivate
,
439 HTMLElement3_get_ondeactivate
,
440 HTMLElement3_dragDrop
,
441 HTMLElement3_get_glyphMode
444 void HTMLElement3_Init(HTMLElement
*This
)
446 This
->lpHTMLElement3Vtbl
= &HTMLElement3Vtbl
;