2 * Copyright 2006 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
32 #include "wine/debug.h"
34 #include "mshtml_private.h"
36 WINE_DEFAULT_DEBUG_CHANNEL(mshtml
);
39 const IHTMLInputElementVtbl
*lpHTMLInputElementVtbl
;
42 nsIDOMHTMLInputElement
*nsinput
;
45 #define HTMLINPUT(x) ((IHTMLInputElement*) &(x)->lpHTMLInputElementVtbl)
47 #define HTMLINPUT_THIS(iface) DEFINE_THIS(HTMLInputElement, HTMLInputElement, iface)
49 static HRESULT WINAPI
HTMLInputElement_QueryInterface(IHTMLInputElement
*iface
,
50 REFIID riid
, void **ppv
)
52 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
57 if(IsEqualGUID(&IID_IUnknown
, riid
)) {
58 TRACE("(%p)->(IID_IUnknown %p)\n", This
, ppv
);
59 *ppv
= HTMLINPUT(This
);
60 }else if(IsEqualGUID(&IID_IDispatch
, riid
)) {
61 TRACE("(%p)->(IID_IDispatch %p)\n", This
, ppv
);
62 *ppv
= HTMLINPUT(This
);
63 }else if(IsEqualGUID(&IID_IHTMLInputElement
, riid
)) {
64 TRACE("(%p)->(IID_IHTMLInputElement %p)\n", This
, ppv
);
65 *ppv
= HTMLINPUT(This
);
69 IUnknown_AddRef((IUnknown
*)*ppv
);
73 hres
= HTMLElement_QI(This
->element
, riid
, ppv
);
75 WARN("(%p)->(%s %p)\n", This
, debugstr_guid(riid
), ppv
);
80 static ULONG WINAPI
HTMLInputElement_AddRef(IHTMLInputElement
*iface
)
82 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
84 TRACE("(%p)\n", This
);
86 return IHTMLDocument2_AddRef(HTMLDOC(This
->element
->node
->doc
));
89 static ULONG WINAPI
HTMLInputElement_Release(IHTMLInputElement
*iface
)
91 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
93 TRACE("(%p)\n", This
);
95 return IHTMLDocument2_Release(HTMLDOC(This
->element
->node
->doc
));
98 static HRESULT WINAPI
HTMLInputElement_GetTypeInfoCount(IHTMLInputElement
*iface
, UINT
*pctinfo
)
100 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
101 FIXME("(%p)->(%p)\n", This
, pctinfo
);
105 static HRESULT WINAPI
HTMLInputElement_GetTypeInfo(IHTMLInputElement
*iface
, UINT iTInfo
,
106 LCID lcid
, ITypeInfo
**ppTInfo
)
108 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
109 FIXME("(%p)->(%u %u %p)\n", This
, iTInfo
, lcid
, ppTInfo
);
113 static HRESULT WINAPI
HTMLInputElement_GetIDsOfNames(IHTMLInputElement
*iface
, REFIID riid
,
114 LPOLESTR
*rgszNames
, UINT cNames
,
115 LCID lcid
, DISPID
*rgDispId
)
117 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
118 FIXME("(%p)->(%s %p %u %u %p)\n", This
, debugstr_guid(riid
), rgszNames
, cNames
,
123 static HRESULT WINAPI
HTMLInputElement_Invoke(IHTMLInputElement
*iface
, DISPID dispIdMember
,
124 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
125 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
127 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
128 FIXME("(%p)->(%d %s %d %d %p %p %p %p)\n", This
, dispIdMember
, debugstr_guid(riid
),
129 lcid
, wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
133 static HRESULT WINAPI
HTMLInputElement_put_type(IHTMLInputElement
*iface
, BSTR v
)
135 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
136 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
140 static HRESULT WINAPI
HTMLInputElement_get_type(IHTMLInputElement
*iface
, BSTR
*p
)
142 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
144 const PRUnichar
*type
;
147 TRACE("(%p)->(%p)\n", This
, p
);
149 nsAString_Init(&type_str
, NULL
);
150 nsres
= nsIDOMHTMLInputElement_GetType(This
->nsinput
, &type_str
);
152 if(NS_SUCCEEDED(nsres
)) {
153 nsAString_GetData(&type_str
, &type
, NULL
);
154 *p
= SysAllocString(type
);
156 ERR("GetType failed: %08x\n", nsres
);
159 nsAString_Finish(&type_str
);
161 TRACE("type=%s\n", debugstr_w(*p
));
165 static HRESULT WINAPI
HTMLInputElement_put_value(IHTMLInputElement
*iface
, BSTR v
)
167 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
168 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
172 static HRESULT WINAPI
HTMLInputElement_get_value(IHTMLInputElement
*iface
, BSTR
*p
)
174 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
176 const PRUnichar
*value
= NULL
;
179 TRACE("(%p)->(%p)\n", This
, p
);
181 nsAString_Init(&value_str
, NULL
);
183 nsres
= nsIDOMHTMLInputElement_GetValue(This
->nsinput
, &value_str
);
184 if(NS_SUCCEEDED(nsres
)) {
185 nsAString_GetData(&value_str
, &value
, NULL
);
186 *p
= SysAllocString(value
);
188 ERR("GetValue failed: %08x\n", nsres
);
191 nsAString_Finish(&value_str
);
193 TRACE("value=%s\n", debugstr_w(*p
));
197 static HRESULT WINAPI
HTMLInputElement_put_name(IHTMLInputElement
*iface
, BSTR v
)
199 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
200 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
204 static HRESULT WINAPI
HTMLInputElement_get_name(IHTMLInputElement
*iface
, BSTR
*p
)
206 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
208 const PRUnichar
*name
;
211 TRACE("(%p)->(%p)\n", This
, p
);
213 nsAString_Init(&name_str
, NULL
);
215 nsres
= nsIDOMHTMLInputElement_GetName(This
->nsinput
, &name_str
);
216 if(NS_SUCCEEDED(nsres
)) {
217 nsAString_GetData(&name_str
, &name
, NULL
);
218 *p
= SysAllocString(name
);
220 ERR("GetName failed: %08x\n", nsres
);
224 nsAString_Finish(&name_str
);
226 TRACE("name=%s\n", debugstr_w(*p
));
230 static HRESULT WINAPI
HTMLInputElement_put_status(IHTMLInputElement
*iface
, VARIANT_BOOL v
)
232 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
233 FIXME("(%p)->(%x)\n", This
, v
);
237 static HRESULT WINAPI
HTMLInputElement_get_status(IHTMLInputElement
*iface
, VARIANT_BOOL
*p
)
239 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
240 FIXME("(%p)->(%p)\n", This
, p
);
244 static HRESULT WINAPI
HTMLInputElement_put_disabled(IHTMLInputElement
*iface
, VARIANT_BOOL v
)
246 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
247 FIXME("(%p)->(%x)\n", This
, v
);
251 static HRESULT WINAPI
HTMLInputElement_get_disabled(IHTMLInputElement
*iface
, VARIANT_BOOL
*p
)
253 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
254 FIXME("(%p)->(%p)\n", This
, p
);
258 static HRESULT WINAPI
HTMLInputElement_get_form(IHTMLInputElement
*iface
, IHTMLFormElement
**p
)
260 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
261 FIXME("(%p)->(%p)\n", This
, p
);
265 static HRESULT WINAPI
HTMLInputElement_put_size(IHTMLInputElement
*iface
, long v
)
267 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
268 FIXME("(%p)->(%ld)\n", This
, v
);
272 static HRESULT WINAPI
HTMLInputElement_get_size(IHTMLInputElement
*iface
, long *p
)
274 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
275 FIXME("(%p)->(%p)\n", This
, p
);
279 static HRESULT WINAPI
HTMLInputElement_put_maxLength(IHTMLInputElement
*iface
, long v
)
281 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
282 FIXME("(%p)->(%ld)\n", This
, v
);
286 static HRESULT WINAPI
HTMLInputElement_get_maxLength(IHTMLInputElement
*iface
, long *p
)
288 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
289 FIXME("(%p)->(%p)\n", This
, p
);
293 static HRESULT WINAPI
HTMLInputElement_select(IHTMLInputElement
*iface
)
295 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
296 FIXME("(%p)\n", This
);
300 static HRESULT WINAPI
HTMLInputElement_put_onchange(IHTMLInputElement
*iface
, VARIANT v
)
302 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
303 FIXME("(%p)->()\n", This
);
307 static HRESULT WINAPI
HTMLInputElement_get_onchange(IHTMLInputElement
*iface
, VARIANT
*p
)
309 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
310 FIXME("(%p)->(%p)\n", This
, p
);
314 static HRESULT WINAPI
HTMLInputElement_put_onselect(IHTMLInputElement
*iface
, VARIANT v
)
316 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
317 FIXME("(%p)->()\n", This
);
321 static HRESULT WINAPI
HTMLInputElement_get_onselect(IHTMLInputElement
*iface
, VARIANT
*p
)
323 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
324 FIXME("(%p)->(%p)\n", This
, p
);
328 static HRESULT WINAPI
HTMLInputElement_put_defaultValue(IHTMLInputElement
*iface
, BSTR v
)
330 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
331 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
335 static HRESULT WINAPI
HTMLInputElement_get_defaultValue(IHTMLInputElement
*iface
, BSTR
*p
)
337 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
338 FIXME("(%p)->(%p)\n", This
, p
);
342 static HRESULT WINAPI
HTMLInputElement_put_readOnly(IHTMLInputElement
*iface
, VARIANT_BOOL v
)
344 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
345 FIXME("(%p)->(%x)\n", This
, v
);
349 static HRESULT WINAPI
HTMLInputElement_get_readOnly(IHTMLInputElement
*iface
, VARIANT_BOOL
*p
)
351 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
352 FIXME("(%p)->(%p)\n", This
, p
);
356 static HRESULT WINAPI
HTMLInputElement_createTextRange(IHTMLInputElement
*iface
, IHTMLTxtRange
**range
)
358 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
359 FIXME("(%p)->(%p)\n", This
, range
);
363 static HRESULT WINAPI
HTMLInputElement_put_indeterminate(IHTMLInputElement
*iface
, VARIANT_BOOL v
)
365 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
366 FIXME("(%p)->(%x)\n", This
, v
);
370 static HRESULT WINAPI
HTMLInputElement_get_indeterminate(IHTMLInputElement
*iface
, VARIANT_BOOL
*p
)
372 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
373 FIXME("(%p)->(%p)\n", This
, p
);
377 static HRESULT WINAPI
HTMLInputElement_put_defaultChecked(IHTMLInputElement
*iface
, VARIANT_BOOL v
)
379 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
380 FIXME("(%p)->(%x)\n", This
, v
);
384 static HRESULT WINAPI
HTMLInputElement_get_defaultChecked(IHTMLInputElement
*iface
, VARIANT_BOOL
*p
)
386 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
387 FIXME("(%p)->(%p)\n", This
, p
);
391 static HRESULT WINAPI
HTMLInputElement_put_checked(IHTMLInputElement
*iface
, VARIANT_BOOL v
)
393 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
394 FIXME("(%p)->(%x)\n", This
, v
);
398 static HRESULT WINAPI
HTMLInputElement_get_checked(IHTMLInputElement
*iface
, VARIANT_BOOL
*p
)
400 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
404 TRACE("(%p)->(%p)\n", This
, p
);
406 nsres
= nsIDOMHTMLInputElement_GetChecked(This
->nsinput
, &checked
);
407 if(NS_FAILED(nsres
)) {
408 ERR("GetChecked failed: %08x\n", nsres
);
412 *p
= checked
? VARIANT_TRUE
: VARIANT_FALSE
;
413 TRACE("checked=%x\n", *p
);
417 static HRESULT WINAPI
HTMLInputElement_put_border(IHTMLInputElement
*iface
, VARIANT v
)
419 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
420 FIXME("(%p)->()\n", This
);
424 static HRESULT WINAPI
HTMLInputElement_get_border(IHTMLInputElement
*iface
, VARIANT
*p
)
426 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
427 FIXME("(%p)->(%p)\n", This
, p
);
431 static HRESULT WINAPI
HTMLInputElement_put_vspace(IHTMLInputElement
*iface
, long v
)
433 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
434 FIXME("(%p)->(%ld)\n", This
, v
);
438 static HRESULT WINAPI
HTMLInputElement_get_vspace(IHTMLInputElement
*iface
, long *p
)
440 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
441 FIXME("(%p)->(%p)\n", This
, p
);
445 static HRESULT WINAPI
HTMLInputElement_put_hspace(IHTMLInputElement
*iface
, long v
)
447 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
448 FIXME("(%p)->(%ld)\n", This
, v
);
452 static HRESULT WINAPI
HTMLInputElement_get_hspace(IHTMLInputElement
*iface
, long *p
)
454 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
455 FIXME("(%p)->(%p)\n", This
, p
);
459 static HRESULT WINAPI
HTMLInputElement_put_alt(IHTMLInputElement
*iface
, BSTR v
)
461 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
462 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
466 static HRESULT WINAPI
HTMLInputElement_get_alt(IHTMLInputElement
*iface
, BSTR
*p
)
468 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
469 FIXME("(%p)->(%p)\n", This
, p
);
473 static HRESULT WINAPI
HTMLInputElement_put_src(IHTMLInputElement
*iface
, BSTR v
)
475 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
476 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
480 static HRESULT WINAPI
HTMLInputElement_get_src(IHTMLInputElement
*iface
, BSTR
*p
)
482 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
483 FIXME("(%p)->(%p)\n", This
, p
);
487 static HRESULT WINAPI
HTMLInputElement_put_lowsrc(IHTMLInputElement
*iface
, BSTR v
)
489 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
490 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
494 static HRESULT WINAPI
HTMLInputElement_get_lowsrc(IHTMLInputElement
*iface
, BSTR
*p
)
496 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
497 FIXME("(%p)->(%p)\n", This
, p
);
501 static HRESULT WINAPI
HTMLInputElement_put_vrml(IHTMLInputElement
*iface
, BSTR v
)
503 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
504 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
508 static HRESULT WINAPI
HTMLInputElement_get_vrml(IHTMLInputElement
*iface
, BSTR
*p
)
510 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
511 FIXME("(%p)->(%p)\n", This
, p
);
515 static HRESULT WINAPI
HTMLInputElement_put_dynsrc(IHTMLInputElement
*iface
, BSTR v
)
517 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
518 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
522 static HRESULT WINAPI
HTMLInputElement_get_dynsrc(IHTMLInputElement
*iface
, BSTR
*p
)
524 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
525 FIXME("(%p)->(%p)\n", This
, p
);
529 static HRESULT WINAPI
HTMLInputElement_get_readyState(IHTMLInputElement
*iface
, BSTR
*p
)
531 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
532 FIXME("(%p)->(%p)\n", This
, p
);
536 static HRESULT WINAPI
HTMLInputElement_get_complete(IHTMLInputElement
*iface
, VARIANT_BOOL
*p
)
538 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
539 FIXME("(%p)->(%p)\n", This
, p
);
543 static HRESULT WINAPI
HTMLInputElement_put_loop(IHTMLInputElement
*iface
, VARIANT v
)
545 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
546 FIXME("(%p)->()\n", This
);
550 static HRESULT WINAPI
HTMLInputElement_get_loop(IHTMLInputElement
*iface
, VARIANT
*p
)
552 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
553 FIXME("(%p)->(%p)\n", This
, p
);
557 static HRESULT WINAPI
HTMLInputElement_put_align(IHTMLInputElement
*iface
, BSTR v
)
559 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
560 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
564 static HRESULT WINAPI
HTMLInputElement_get_align(IHTMLInputElement
*iface
, BSTR
*p
)
566 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
567 FIXME("(%p)->(%p)\n", This
, p
);
571 static HRESULT WINAPI
HTMLInputElement_put_onload(IHTMLInputElement
*iface
, VARIANT v
)
573 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
574 FIXME("(%p)->()\n", This
);
578 static HRESULT WINAPI
HTMLInputElement_get_onload(IHTMLInputElement
*iface
, VARIANT
*p
)
580 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
581 FIXME("(%p)->(%p)\n", This
, p
);
585 static HRESULT WINAPI
HTMLInputElement_put_onerror(IHTMLInputElement
*iface
, VARIANT v
)
587 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
588 FIXME("(%p)->()\n", This
);
592 static HRESULT WINAPI
HTMLInputElement_get_onerror(IHTMLInputElement
*iface
, VARIANT
*p
)
594 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
595 FIXME("(%p)->(%p)\n", This
, p
);
599 static HRESULT WINAPI
HTMLInputElement_put_onabort(IHTMLInputElement
*iface
, VARIANT v
)
601 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
602 FIXME("(%p)->()\n", This
);
606 static HRESULT WINAPI
HTMLInputElement_get_onabort(IHTMLInputElement
*iface
, VARIANT
*p
)
608 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
609 FIXME("(%p)->(%p)\n", This
, p
);
613 static HRESULT WINAPI
HTMLInputElement_put_width(IHTMLInputElement
*iface
, long v
)
615 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
616 FIXME("(%p)->(%ld)\n", This
, v
);
620 static HRESULT WINAPI
HTMLInputElement_get_width(IHTMLInputElement
*iface
, long *p
)
622 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
623 FIXME("(%p)->(%p)\n", This
, p
);
627 static HRESULT WINAPI
HTMLInputElement_put_height(IHTMLInputElement
*iface
, long v
)
629 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
630 FIXME("(%p)->(%ld)\n", This
, v
);
634 static HRESULT WINAPI
HTMLInputElement_get_height(IHTMLInputElement
*iface
, long *p
)
636 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
637 FIXME("(%p)->(%p)\n", This
, p
);
641 static HRESULT WINAPI
HTMLInputElement_put_start(IHTMLInputElement
*iface
, BSTR v
)
643 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
644 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
648 static HRESULT WINAPI
HTMLInputElement_get_start(IHTMLInputElement
*iface
, BSTR
*p
)
650 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
651 FIXME("(%p)->(%p)\n", This
, p
);
655 static void HTMLInputElement_destructor(IUnknown
*iface
)
657 HTMLInputElement
*This
= HTMLINPUT_THIS(iface
);
659 nsIDOMHTMLInputElement_Release(This
->nsinput
);
663 #undef HTMLINPUT_THIS
665 static const IHTMLInputElementVtbl HTMLInputElementVtbl
= {
666 HTMLInputElement_QueryInterface
,
667 HTMLInputElement_AddRef
,
668 HTMLInputElement_Release
,
669 HTMLInputElement_GetTypeInfoCount
,
670 HTMLInputElement_GetTypeInfo
,
671 HTMLInputElement_GetIDsOfNames
,
672 HTMLInputElement_Invoke
,
673 HTMLInputElement_put_type
,
674 HTMLInputElement_get_type
,
675 HTMLInputElement_put_value
,
676 HTMLInputElement_get_value
,
677 HTMLInputElement_put_name
,
678 HTMLInputElement_get_name
,
679 HTMLInputElement_put_status
,
680 HTMLInputElement_get_status
,
681 HTMLInputElement_put_disabled
,
682 HTMLInputElement_get_disabled
,
683 HTMLInputElement_get_form
,
684 HTMLInputElement_put_size
,
685 HTMLInputElement_get_size
,
686 HTMLInputElement_put_maxLength
,
687 HTMLInputElement_get_maxLength
,
688 HTMLInputElement_select
,
689 HTMLInputElement_put_onchange
,
690 HTMLInputElement_get_onchange
,
691 HTMLInputElement_put_onselect
,
692 HTMLInputElement_get_onselect
,
693 HTMLInputElement_put_defaultValue
,
694 HTMLInputElement_get_defaultValue
,
695 HTMLInputElement_put_readOnly
,
696 HTMLInputElement_get_readOnly
,
697 HTMLInputElement_createTextRange
,
698 HTMLInputElement_put_indeterminate
,
699 HTMLInputElement_get_indeterminate
,
700 HTMLInputElement_put_defaultChecked
,
701 HTMLInputElement_get_defaultChecked
,
702 HTMLInputElement_put_checked
,
703 HTMLInputElement_get_checked
,
704 HTMLInputElement_put_border
,
705 HTMLInputElement_get_border
,
706 HTMLInputElement_put_vspace
,
707 HTMLInputElement_get_vspace
,
708 HTMLInputElement_put_hspace
,
709 HTMLInputElement_get_hspace
,
710 HTMLInputElement_put_alt
,
711 HTMLInputElement_get_alt
,
712 HTMLInputElement_put_src
,
713 HTMLInputElement_get_src
,
714 HTMLInputElement_put_lowsrc
,
715 HTMLInputElement_get_lowsrc
,
716 HTMLInputElement_put_vrml
,
717 HTMLInputElement_get_vrml
,
718 HTMLInputElement_put_dynsrc
,
719 HTMLInputElement_get_dynsrc
,
720 HTMLInputElement_get_readyState
,
721 HTMLInputElement_get_complete
,
722 HTMLInputElement_put_loop
,
723 HTMLInputElement_get_loop
,
724 HTMLInputElement_put_align
,
725 HTMLInputElement_get_align
,
726 HTMLInputElement_put_onload
,
727 HTMLInputElement_get_onload
,
728 HTMLInputElement_put_onerror
,
729 HTMLInputElement_get_onerror
,
730 HTMLInputElement_put_onabort
,
731 HTMLInputElement_get_onabort
,
732 HTMLInputElement_put_width
,
733 HTMLInputElement_get_width
,
734 HTMLInputElement_put_height
,
735 HTMLInputElement_get_height
,
736 HTMLInputElement_put_start
,
737 HTMLInputElement_get_start
740 void HTMLInputElement_Create(HTMLElement
*element
)
742 HTMLInputElement
*ret
= mshtml_alloc(sizeof(HTMLInputElement
));
745 ret
->lpHTMLInputElementVtbl
= &HTMLInputElementVtbl
;
746 ret
->element
= element
;
748 nsres
= nsIDOMHTMLElement_QueryInterface(element
->nselem
, &IID_nsIDOMHTMLInputElement
,
749 (void**)&ret
->nsinput
);
751 ERR("Could not get nsIDOMHTMLInputElement interface: %08x\n", nsres
);
753 element
->impl
= (IUnknown
*)HTMLINPUT(ret
);
754 element
->destructor
= HTMLInputElement_destructor
;