ReactOS 0.4.15-dev-8116-gf69e256
htmlinput.c File Reference
#include "mshtml_private.h"
#include <limits.h>
Include dependency graph for htmlinput.c:

Go to the source code of this file.

Classes

struct  HTMLInputElement
 
struct  HTMLLabelElement
 
struct  HTMLButtonElement
 

Functions

static HTMLInputElementimpl_from_IHTMLInputElement (IHTMLInputElement *iface)
 
static HTMLInputElementimpl_from_IHTMLInputTextElement (IHTMLInputTextElement *iface)
 
static HRESULT WINAPI HTMLInputElement_QueryInterface (IHTMLInputElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLInputElement_AddRef (IHTMLInputElement *iface)
 
static ULONG WINAPI HTMLInputElement_Release (IHTMLInputElement *iface)
 
static HRESULT WINAPI HTMLInputElement_GetTypeInfoCount (IHTMLInputElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLInputElement_GetTypeInfo (IHTMLInputElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLInputElement_GetIDsOfNames (IHTMLInputElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLInputElement_Invoke (IHTMLInputElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLInputElement_put_type (IHTMLInputElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLInputElement_get_type (IHTMLInputElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputElement_put_value (IHTMLInputElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLInputElement_get_value (IHTMLInputElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputElement_put_name (IHTMLInputElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLInputElement_get_name (IHTMLInputElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputElement_put_status (IHTMLInputElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLInputElement_get_status (IHTMLInputElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLInputElement_put_disabled (IHTMLInputElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLInputElement_get_disabled (IHTMLInputElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLInputElement_get_form (IHTMLInputElement *iface, IHTMLFormElement **p)
 
static HRESULT WINAPI HTMLInputElement_put_size (IHTMLInputElement *iface, LONG v)
 
static HRESULT WINAPI HTMLInputElement_get_size (IHTMLInputElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLInputElement_put_maxLength (IHTMLInputElement *iface, LONG v)
 
static HRESULT WINAPI HTMLInputElement_get_maxLength (IHTMLInputElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLInputElement_select (IHTMLInputElement *iface)
 
static HRESULT WINAPI HTMLInputElement_put_onchange (IHTMLInputElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLInputElement_get_onchange (IHTMLInputElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLInputElement_put_onselect (IHTMLInputElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLInputElement_get_onselect (IHTMLInputElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLInputElement_put_defaultValue (IHTMLInputElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLInputElement_get_defaultValue (IHTMLInputElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputElement_put_readOnly (IHTMLInputElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLInputElement_get_readOnly (IHTMLInputElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLInputElement_createTextRange (IHTMLInputElement *iface, IHTMLTxtRange **range)
 
static HRESULT WINAPI HTMLInputElement_put_indeterminate (IHTMLInputElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLInputElement_get_indeterminate (IHTMLInputElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLInputElement_put_defaultChecked (IHTMLInputElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLInputElement_get_defaultChecked (IHTMLInputElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLInputElement_put_checked (IHTMLInputElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLInputElement_get_checked (IHTMLInputElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLInputElement_put_border (IHTMLInputElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLInputElement_get_border (IHTMLInputElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLInputElement_put_vspace (IHTMLInputElement *iface, LONG v)
 
static HRESULT WINAPI HTMLInputElement_get_vspace (IHTMLInputElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLInputElement_put_hspace (IHTMLInputElement *iface, LONG v)
 
static HRESULT WINAPI HTMLInputElement_get_hspace (IHTMLInputElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLInputElement_put_alt (IHTMLInputElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLInputElement_get_alt (IHTMLInputElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputElement_put_src (IHTMLInputElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLInputElement_get_src (IHTMLInputElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputElement_put_lowsrc (IHTMLInputElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLInputElement_get_lowsrc (IHTMLInputElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputElement_put_vrml (IHTMLInputElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLInputElement_get_vrml (IHTMLInputElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputElement_put_dynsrc (IHTMLInputElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLInputElement_get_dynsrc (IHTMLInputElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputElement_get_readyState (IHTMLInputElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputElement_get_complete (IHTMLInputElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLInputElement_put_loop (IHTMLInputElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLInputElement_get_loop (IHTMLInputElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLInputElement_put_align (IHTMLInputElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLInputElement_get_align (IHTMLInputElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputElement_put_onload (IHTMLInputElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLInputElement_get_onload (IHTMLInputElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLInputElement_put_onerror (IHTMLInputElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLInputElement_get_onerror (IHTMLInputElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLInputElement_put_onabort (IHTMLInputElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLInputElement_get_onabort (IHTMLInputElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLInputElement_put_width (IHTMLInputElement *iface, LONG v)
 
static HRESULT WINAPI HTMLInputElement_get_width (IHTMLInputElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLInputElement_put_height (IHTMLInputElement *iface, LONG v)
 
static HRESULT WINAPI HTMLInputElement_get_height (IHTMLInputElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLInputElement_put_start (IHTMLInputElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLInputElement_get_start (IHTMLInputElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputTextElement_QueryInterface (IHTMLInputTextElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLInputTextElement_AddRef (IHTMLInputTextElement *iface)
 
static ULONG WINAPI HTMLInputTextElement_Release (IHTMLInputTextElement *iface)
 
static HRESULT WINAPI HTMLInputTextElement_GetTypeInfoCount (IHTMLInputTextElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLInputTextElement_GetTypeInfo (IHTMLInputTextElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLInputTextElement_GetIDsOfNames (IHTMLInputTextElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLInputTextElement_Invoke (IHTMLInputTextElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLInputTextElement_get_type (IHTMLInputTextElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputTextElement_put_value (IHTMLInputTextElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLInputTextElement_get_value (IHTMLInputTextElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputTextElement_put_name (IHTMLInputTextElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLInputTextElement_get_name (IHTMLInputTextElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputTextElement_put_status (IHTMLInputTextElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLInputTextElement_get_status (IHTMLInputTextElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLInputTextElement_put_disabled (IHTMLInputTextElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLInputTextElement_get_disabled (IHTMLInputTextElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLInputTextElement_get_form (IHTMLInputTextElement *iface, IHTMLFormElement **p)
 
static HRESULT WINAPI HTMLInputTextElement_put_defaultValue (IHTMLInputTextElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLInputTextElement_get_defaultValue (IHTMLInputTextElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLInputTextElement_put_size (IHTMLInputTextElement *iface, LONG v)
 
static HRESULT WINAPI HTMLInputTextElement_get_size (IHTMLInputTextElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLInputTextElement_put_maxLength (IHTMLInputTextElement *iface, LONG v)
 
static HRESULT WINAPI HTMLInputTextElement_get_maxLength (IHTMLInputTextElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLInputTextElement_select (IHTMLInputTextElement *iface)
 
static HRESULT WINAPI HTMLInputTextElement_put_onchange (IHTMLInputTextElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLInputTextElement_get_onchange (IHTMLInputTextElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLInputTextElement_put_onselect (IHTMLInputTextElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLInputTextElement_get_onselect (IHTMLInputTextElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLInputTextElement_put_readOnly (IHTMLInputTextElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLInputTextElement_get_readOnly (IHTMLInputTextElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLInputTextElement_createTextRange (IHTMLInputTextElement *iface, IHTMLTxtRange **range)
 
static HTMLInputElementimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLInputElement_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static HRESULT HTMLInputElementImpl_fire_event (HTMLDOMNode *iface, eventid_t eid, BOOL *handled)
 
static HRESULT HTMLInputElementImpl_put_disabled (HTMLDOMNode *iface, VARIANT_BOOL v)
 
static HRESULT HTMLInputElementImpl_get_disabled (HTMLDOMNode *iface, VARIANT_BOOL *p)
 
static BOOL HTMLInputElement_is_text_edit (HTMLDOMNode *iface)
 
static void HTMLInputElement_traverse (HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
 
static void HTMLInputElement_unlink (HTMLDOMNode *iface)
 
HRESULT HTMLInputElement_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 
static HTMLLabelElementimpl_from_IHTMLLabelElement (IHTMLLabelElement *iface)
 
static HRESULT WINAPI HTMLLabelElement_QueryInterface (IHTMLLabelElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLLabelElement_AddRef (IHTMLLabelElement *iface)
 
static ULONG WINAPI HTMLLabelElement_Release (IHTMLLabelElement *iface)
 
static HRESULT WINAPI HTMLLabelElement_GetTypeInfoCount (IHTMLLabelElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLLabelElement_GetTypeInfo (IHTMLLabelElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLLabelElement_GetIDsOfNames (IHTMLLabelElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLLabelElement_Invoke (IHTMLLabelElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLLabelElement_put_htmlFor (IHTMLLabelElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLLabelElement_get_htmlFor (IHTMLLabelElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLLabelElement_put_accessKey (IHTMLLabelElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLLabelElement_get_accessKey (IHTMLLabelElement *iface, BSTR *p)
 
static HTMLLabelElementlabel_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLLabelElement_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
HRESULT HTMLLabelElement_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 
static HTMLButtonElementimpl_from_IHTMLButtonElement (IHTMLButtonElement *iface)
 
static HRESULT WINAPI HTMLButtonElement_QueryInterface (IHTMLButtonElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLButtonElement_AddRef (IHTMLButtonElement *iface)
 
static ULONG WINAPI HTMLButtonElement_Release (IHTMLButtonElement *iface)
 
static HRESULT WINAPI HTMLButtonElement_GetTypeInfoCount (IHTMLButtonElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLButtonElement_GetTypeInfo (IHTMLButtonElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLButtonElement_GetIDsOfNames (IHTMLButtonElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLButtonElement_Invoke (IHTMLButtonElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLButtonElement_get_type (IHTMLButtonElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLButtonElement_put_value (IHTMLButtonElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLButtonElement_get_value (IHTMLButtonElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLButtonElement_put_name (IHTMLButtonElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLButtonElement_get_name (IHTMLButtonElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLButtonElement_put_status (IHTMLButtonElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLButtonElement_get_status (IHTMLButtonElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLButtonElement_put_disabled (IHTMLButtonElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLButtonElement_get_disabled (IHTMLButtonElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLButtonElement_get_form (IHTMLButtonElement *iface, IHTMLFormElement **p)
 
static HRESULT WINAPI HTMLButtonElement_createTextRange (IHTMLButtonElement *iface, IHTMLTxtRange **range)
 
static HTMLButtonElementbutton_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLButtonElement_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static HRESULT HTMLButtonElementImpl_put_disabled (HTMLDOMNode *iface, VARIANT_BOOL v)
 
static HRESULT HTMLButtonElementImpl_get_disabled (HTMLDOMNode *iface, VARIANT_BOOL *p)
 
static BOOL HTMLButtonElement_is_text_edit (HTMLDOMNode *iface)
 
static void HTMLButtonElement_traverse (HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
 
static void HTMLButtonElement_unlink (HTMLDOMNode *iface)
 
HRESULT HTMLButtonElement_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 

Variables

static const WCHAR forW [] = {'f','o','r',0}
 
static const IHTMLInputElementVtbl HTMLInputElementVtbl
 
static const IHTMLInputTextElementVtbl HTMLInputTextElementVtbl
 
static const NodeImplVtbl HTMLInputElementImplVtbl
 
static const tid_t HTMLInputElement_iface_tids []
 
static dispex_static_data_t HTMLInputElement_dispex
 
static const IHTMLLabelElementVtbl HTMLLabelElementVtbl
 
static const NodeImplVtbl HTMLLabelElementImplVtbl
 
static const tid_t HTMLLabelElement_iface_tids []
 
static dispex_static_data_t HTMLLabelElement_dispex
 
static const IHTMLButtonElementVtbl HTMLButtonElementVtbl
 
static const NodeImplVtbl HTMLButtonElementImplVtbl
 
static const tid_t HTMLButtonElement_iface_tids []
 
static dispex_static_data_t HTMLButtonElement_dispex
 

Function Documentation

◆ button_from_HTMLDOMNode()

static HTMLButtonElement * button_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

◆ HTMLButtonElement_AddRef()

static ULONG WINAPI HTMLButtonElement_AddRef ( IHTMLButtonElement *  iface)
static

Definition at line 1563 of file htmlinput.c.

1564{
1566
1567 return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
1568}
static HTMLButtonElement * impl_from_IHTMLButtonElement(IHTMLButtonElement *iface)
Definition: htmlinput.c:1550

◆ HTMLButtonElement_Create()

HRESULT HTMLButtonElement_Create ( HTMLDocumentNode doc,
nsIDOMHTMLElement nselem,
HTMLElement **  elem 
)

Definition at line 1843 of file htmlinput.c.

1844{
1846 nsresult nsres;
1847
1848 ret = heap_alloc_zero(sizeof(*ret));
1849 if(!ret)
1850 return E_OUTOFMEMORY;
1851
1852 ret->IHTMLButtonElement_iface.lpVtbl = &HTMLButtonElementVtbl;
1853 ret->element.node.vtbl = &HTMLButtonElementImplVtbl;
1854
1855 HTMLElement_Init(&ret->element, doc, nselem, &HTMLButtonElement_dispex);
1856
1857 nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLButtonElement, (void**)&ret->nsbutton);
1858 assert(nsres == NS_OK);
1859
1860 *elem = &ret->element;
1861 return S_OK;
1862}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define assert(x)
Definition: debug.h:53
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmlelem.c:4008
static const NodeImplVtbl HTMLButtonElementImplVtbl
Definition: htmlinput.c:1809
static dispex_static_data_t HTMLButtonElement_dispex
Definition: htmlinput.c:1836
static const IHTMLButtonElementVtbl HTMLButtonElementVtbl
Definition: htmlinput.c:1726
#define S_OK
Definition: intsafe.h:52
static size_t elem
Definition: string.c:68
#define NS_OK
int ret

◆ HTMLButtonElement_createTextRange()

static HRESULT WINAPI HTMLButtonElement_createTextRange ( IHTMLButtonElement *  iface,
IHTMLTxtRange **  range 
)
static

Definition at line 1719 of file htmlinput.c.

1720{
1722 FIXME("(%p)->(%p)\n", This, range);
1723 return E_NOTIMPL;
1724}
#define FIXME(fmt,...)
Definition: debug.h:114
#define E_NOTIMPL
Definition: ddrawi.h:99
GLenum GLint * range
Definition: glext.h:7539

◆ HTMLButtonElement_get_disabled()

static HRESULT WINAPI HTMLButtonElement_get_disabled ( IHTMLButtonElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 1694 of file htmlinput.c.

1695{
1697 cpp_bool disabled;
1698 nsresult nsres;
1699
1700 TRACE("(%p)->(%p)\n", This, p);
1701
1702 nsres = nsIDOMHTMLButtonElement_GetDisabled(This->nsbutton, &disabled);
1703 if(NS_FAILED(nsres)) {
1704 ERR("GetDisabled failed: %08x\n", nsres);
1705 return E_FAIL;
1706 }
1707
1708 *p = disabled ? VARIANT_TRUE : VARIANT_FALSE;
1709 return S_OK;
1710}
#define ERR(fmt,...)
Definition: debug.h:113
#define E_FAIL
Definition: ddrawi.h:102
unsigned char cpp_bool
Definition: atl.c:38
GLfloat GLfloat p
Definition: glext.h:8902
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4

◆ HTMLButtonElement_get_form()

static HRESULT WINAPI HTMLButtonElement_get_form ( IHTMLButtonElement *  iface,
IHTMLFormElement **  p 
)
static

Definition at line 1712 of file htmlinput.c.

1713{
1715 FIXME("(%p)->(%p)\n", This, p);
1716 return E_NOTIMPL;
1717}

◆ HTMLButtonElement_get_name()

static HRESULT WINAPI HTMLButtonElement_get_name ( IHTMLButtonElement *  iface,
BSTR p 
)
static

Definition at line 1651 of file htmlinput.c.

1652{
1654 nsAString name_str;
1655 nsresult nsres;
1656
1657 TRACE("(%p)->(%p)\n", This, p);
1658
1659 nsAString_Init(&name_str, NULL);
1660 nsres = nsIDOMHTMLButtonElement_GetName(This->nsbutton, &name_str);
1661 return return_nsstr(nsres, &name_str, p);
1662}
#define NULL
Definition: types.h:112
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841

◆ HTMLButtonElement_get_status()

static HRESULT WINAPI HTMLButtonElement_get_status ( IHTMLButtonElement *  iface,
VARIANT p 
)
static

Definition at line 1671 of file htmlinput.c.

1672{
1674 FIXME("(%p)->(%p)\n", This, p);
1675 return E_NOTIMPL;
1676}

◆ HTMLButtonElement_get_type()

static HRESULT WINAPI HTMLButtonElement_get_type ( IHTMLButtonElement *  iface,
BSTR p 
)
static

Definition at line 1611 of file htmlinput.c.

1612{
1614 FIXME("(%p)->(%p)\n", This, p);
1615 return E_NOTIMPL;
1616}

◆ HTMLButtonElement_get_value()

static HRESULT WINAPI HTMLButtonElement_get_value ( IHTMLButtonElement *  iface,
BSTR p 
)
static

Definition at line 1625 of file htmlinput.c.

1626{
1628 FIXME("(%p)->(%p)\n", This, p);
1629 return E_NOTIMPL;
1630}

◆ HTMLButtonElement_GetIDsOfNames()

static HRESULT WINAPI HTMLButtonElement_GetIDsOfNames ( IHTMLButtonElement *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 1592 of file htmlinput.c.

1594{
1596
1597 return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
1598 cNames, lcid, rgDispId);
1599}
REFIID riid
Definition: atlbase.h:39

◆ HTMLButtonElement_GetTypeInfo()

static HRESULT WINAPI HTMLButtonElement_GetTypeInfo ( IHTMLButtonElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 1584 of file htmlinput.c.

1586{
1588
1589 return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
1590}

◆ HTMLButtonElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLButtonElement_GetTypeInfoCount ( IHTMLButtonElement *  iface,
UINT pctinfo 
)
static

Definition at line 1577 of file htmlinput.c.

1578{
1580
1581 return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
1582}

◆ HTMLButtonElement_Invoke()

static HRESULT WINAPI HTMLButtonElement_Invoke ( IHTMLButtonElement *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 1601 of file htmlinput.c.

1604{
1606
1607 return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
1608 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
1609}
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:531

◆ HTMLButtonElement_is_text_edit()

static BOOL HTMLButtonElement_is_text_edit ( HTMLDOMNode iface)
static

Definition at line 1784 of file htmlinput.c.

1785{
1786 return TRUE;
1787}
#define TRUE
Definition: types.h:120

◆ HTMLButtonElement_put_disabled()

static HRESULT WINAPI HTMLButtonElement_put_disabled ( IHTMLButtonElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 1678 of file htmlinput.c.

1679{
1681 nsresult nsres;
1682
1683 TRACE("(%p)->(%x)\n", This, v);
1684
1685 nsres = nsIDOMHTMLButtonElement_SetDisabled(This->nsbutton, !!v);
1686 if(NS_FAILED(nsres)) {
1687 ERR("SetDisabled failed: %08x\n", nsres);
1688 return E_FAIL;
1689 }
1690
1691 return S_OK;
1692}
const GLdouble * v
Definition: gl.h:2040

◆ HTMLButtonElement_put_name()

static HRESULT WINAPI HTMLButtonElement_put_name ( IHTMLButtonElement *  iface,
BSTR  v 
)
static

Definition at line 1632 of file htmlinput.c.

1633{
1635 nsAString name_str;
1636 nsresult nsres;
1637
1638 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1639
1640 nsAString_InitDepend(&name_str, v);
1641 nsres = nsIDOMHTMLButtonElement_SetName(This->nsbutton, &name_str);
1642 nsAString_Finish(&name_str);
1643 if(NS_FAILED(nsres)) {
1644 ERR("SetName failed: %08x\n", nsres);
1645 return E_FAIL;
1646 }
1647
1648 return S_OK;
1649}
#define debugstr_w
Definition: kernel32.h:32
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826

◆ HTMLButtonElement_put_status()

static HRESULT WINAPI HTMLButtonElement_put_status ( IHTMLButtonElement *  iface,
VARIANT  v 
)
static

Definition at line 1664 of file htmlinput.c.

1665{
1667 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
1668 return E_NOTIMPL;
1669}
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46

◆ HTMLButtonElement_put_value()

static HRESULT WINAPI HTMLButtonElement_put_value ( IHTMLButtonElement *  iface,
BSTR  v 
)
static

Definition at line 1618 of file htmlinput.c.

1619{
1621 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1622 return E_NOTIMPL;
1623}

◆ HTMLButtonElement_QI()

static HRESULT HTMLButtonElement_QI ( HTMLDOMNode iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 1752 of file htmlinput.c.

1753{
1755
1756 *ppv = NULL;
1757
1759 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
1760 *ppv = &This->IHTMLButtonElement_iface;
1761 }else if(IsEqualGUID(&IID_IHTMLButtonElement, riid)) {
1762 TRACE("(%p)->(IID_IHTMLButtonElement %p)\n", This, ppv);
1763 *ppv = &This->IHTMLButtonElement_iface;
1764 }else {
1765 return HTMLElement_QI(&This->element.node, riid, ppv);
1766 }
1767
1768 IUnknown_AddRef((IUnknown*)*ppv);
1769 return S_OK;
1770}
const GUID IID_IUnknown
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:3738
static HTMLButtonElement * button_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlinput.c:1747
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147

◆ HTMLButtonElement_QueryInterface()

static HRESULT WINAPI HTMLButtonElement_QueryInterface ( IHTMLButtonElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 1555 of file htmlinput.c.

1557{
1559
1560 return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
1561}

◆ HTMLButtonElement_Release()

static ULONG WINAPI HTMLButtonElement_Release ( IHTMLButtonElement *  iface)
static

Definition at line 1570 of file htmlinput.c.

1571{
1573
1574 return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
1575}

◆ HTMLButtonElement_traverse()

static void HTMLButtonElement_traverse ( HTMLDOMNode iface,
nsCycleCollectionTraversalCallback cb 
)
static

Definition at line 1789 of file htmlinput.c.

1790{
1792
1793 if(This->nsbutton)
1794 note_cc_edge((nsISupports*)This->nsbutton, "This->nsbutton", cb);
1795}
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33

◆ HTMLButtonElement_unlink()

static void HTMLButtonElement_unlink ( HTMLDOMNode iface)
static

Definition at line 1797 of file htmlinput.c.

1798{
1800
1801 if(This->nsbutton) {
1802 nsIDOMHTMLButtonElement *nsbutton = This->nsbutton;
1803
1804 This->nsbutton = NULL;
1805 nsIDOMHTMLButtonElement_Release(nsbutton);
1806 }
1807}

◆ HTMLButtonElementImpl_get_disabled()

static HRESULT HTMLButtonElementImpl_get_disabled ( HTMLDOMNode iface,
VARIANT_BOOL p 
)
static

Definition at line 1778 of file htmlinput.c.

1779{
1781 return IHTMLButtonElement_get_disabled(&This->IHTMLButtonElement_iface, p);
1782}

◆ HTMLButtonElementImpl_put_disabled()

static HRESULT HTMLButtonElementImpl_put_disabled ( HTMLDOMNode iface,
VARIANT_BOOL  v 
)
static

Definition at line 1772 of file htmlinput.c.

1773{
1775 return IHTMLButtonElement_put_disabled(&This->IHTMLButtonElement_iface, v);
1776}

◆ HTMLInputElement_AddRef()

static ULONG WINAPI HTMLInputElement_AddRef ( IHTMLInputElement *  iface)
static

Definition at line 52 of file htmlinput.c.

53{
55
56 return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
57}
static HTMLInputElement * impl_from_IHTMLInputElement(IHTMLInputElement *iface)
Definition: htmlinput.c:34

◆ HTMLInputElement_Create()

HRESULT HTMLInputElement_Create ( HTMLDocumentNode doc,
nsIDOMHTMLElement nselem,
HTMLElement **  elem 
)

Definition at line 1332 of file htmlinput.c.

1333{
1335 nsresult nsres;
1336
1337 ret = heap_alloc_zero(sizeof(HTMLInputElement));
1338 if(!ret)
1339 return E_OUTOFMEMORY;
1340
1341 ret->IHTMLInputElement_iface.lpVtbl = &HTMLInputElementVtbl;
1342 ret->IHTMLInputTextElement_iface.lpVtbl = &HTMLInputTextElementVtbl;
1343 ret->element.node.vtbl = &HTMLInputElementImplVtbl;
1344
1345 HTMLElement_Init(&ret->element, doc, nselem, &HTMLInputElement_dispex);
1346
1347 nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLInputElement, (void**)&ret->nsinput);
1348 assert(nsres == NS_OK);
1349
1350 *elem = &ret->element;
1351 return S_OK;
1352}
static const IHTMLInputTextElementVtbl HTMLInputTextElementVtbl
Definition: htmlinput.c:1151
static const NodeImplVtbl HTMLInputElementImplVtbl
Definition: htmlinput.c:1299
static const IHTMLInputElementVtbl HTMLInputElementVtbl
Definition: htmlinput.c:811
static dispex_static_data_t HTMLInputElement_dispex
Definition: htmlinput.c:1325

◆ HTMLInputElement_createTextRange()

static HRESULT WINAPI HTMLInputElement_createTextRange ( IHTMLInputElement *  iface,
IHTMLTxtRange **  range 
)
static

Definition at line 456 of file htmlinput.c.

457{
459 FIXME("(%p)->(%p)\n", This, range);
460 return E_NOTIMPL;
461}

◆ HTMLInputElement_get_align()

static HRESULT WINAPI HTMLInputElement_get_align ( IHTMLInputElement *  iface,
BSTR p 
)
static

Definition at line 720 of file htmlinput.c.

721{
723 FIXME("(%p)->(%p)\n", This, p);
724 return E_NOTIMPL;
725}

◆ HTMLInputElement_get_alt()

static HRESULT WINAPI HTMLInputElement_get_alt ( IHTMLInputElement *  iface,
BSTR p 
)
static

Definition at line 595 of file htmlinput.c.

596{
598 FIXME("(%p)->(%p)\n", This, p);
599 return E_NOTIMPL;
600}

◆ HTMLInputElement_get_border()

static HRESULT WINAPI HTMLInputElement_get_border ( IHTMLInputElement *  iface,
VARIANT p 
)
static

Definition at line 553 of file htmlinput.c.

554{
556 FIXME("(%p)->(%p)\n", This, p);
557 return E_NOTIMPL;
558}

◆ HTMLInputElement_get_checked()

static HRESULT WINAPI HTMLInputElement_get_checked ( IHTMLInputElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 527 of file htmlinput.c.

528{
530 cpp_bool checked;
531 nsresult nsres;
532
533 TRACE("(%p)->(%p)\n", This, p);
534
535 nsres = nsIDOMHTMLInputElement_GetChecked(This->nsinput, &checked);
536 if(NS_FAILED(nsres)) {
537 ERR("GetChecked failed: %08x\n", nsres);
538 return E_FAIL;
539 }
540
541 *p = checked ? VARIANT_TRUE : VARIANT_FALSE;
542 TRACE("checked=%x\n", *p);
543 return S_OK;
544}

◆ HTMLInputElement_get_complete()

static HRESULT WINAPI HTMLInputElement_get_complete ( IHTMLInputElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 692 of file htmlinput.c.

693{
695 FIXME("(%p)->(%p)\n", This, p);
696 return E_NOTIMPL;
697}

◆ HTMLInputElement_get_defaultChecked()

static HRESULT WINAPI HTMLInputElement_get_defaultChecked ( IHTMLInputElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 493 of file htmlinput.c.

494{
496 cpp_bool default_checked = FALSE;
497 nsresult nsres;
498
499 TRACE("(%p)->(%p)\n", This, p);
500
501 nsres = nsIDOMHTMLInputElement_GetDefaultChecked(This->nsinput, &default_checked);
502 if(NS_FAILED(nsres)) {
503 ERR("GetDefaultChecked failed: %08x\n", nsres);
504 return E_FAIL;
505 }
506
507 *p = default_checked ? VARIANT_TRUE : VARIANT_FALSE;
508 return S_OK;
509}
#define FALSE
Definition: types.h:117

◆ HTMLInputElement_get_defaultValue()

static HRESULT WINAPI HTMLInputElement_get_defaultValue ( IHTMLInputElement *  iface,
BSTR p 
)
static

Definition at line 411 of file htmlinput.c.

412{
414 nsAString nsstr;
415 nsresult nsres;
416
417 TRACE("(%p)->(%p)\n", This, p);
418
419 nsAString_Init(&nsstr, NULL);
420 nsres = nsIDOMHTMLInputElement_GetDefaultValue(This->nsinput, &nsstr);
421 return return_nsstr(nsres, &nsstr, p);
422}

◆ HTMLInputElement_get_disabled()

static HRESULT WINAPI HTMLInputElement_get_disabled ( IHTMLInputElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 228 of file htmlinput.c.

229{
231 cpp_bool disabled = FALSE;
232
233 TRACE("(%p)->(%p)\n", This, p);
234
235 nsIDOMHTMLInputElement_GetDisabled(This->nsinput, &disabled);
236
237 *p = disabled ? VARIANT_TRUE : VARIANT_FALSE;
238 return S_OK;
239}

◆ HTMLInputElement_get_dynsrc()

static HRESULT WINAPI HTMLInputElement_get_dynsrc ( IHTMLInputElement *  iface,
BSTR p 
)
static

Definition at line 678 of file htmlinput.c.

679{
681 FIXME("(%p)->(%p)\n", This, p);
682 return E_NOTIMPL;
683}

◆ HTMLInputElement_get_form()

static HRESULT WINAPI HTMLInputElement_get_form ( IHTMLInputElement *  iface,
IHTMLFormElement **  p 
)
static

Definition at line 241 of file htmlinput.c.

242{
244 nsIDOMHTMLFormElement *nsform;
245 nsIDOMNode *form_node;
248 nsresult nsres;
249
250 TRACE("(%p)->(%p)\n", This, p);
251
252 nsres = nsIDOMHTMLInputElement_GetForm(This->nsinput, &nsform);
253 if (NS_FAILED(nsres) || nsform == NULL) {
254 ERR("GetForm failed: %08x, nsform: %p\n", nsres, nsform);
255 *p = NULL;
256 return E_FAIL;
257 }
258
259 nsres = nsIDOMHTMLFormElement_QueryInterface(nsform, &IID_nsIDOMNode, (void**)&form_node);
260 nsIDOMHTMLFormElement_Release(nsform);
261 assert(nsres == NS_OK);
262
263 hres = get_node(This->element.node.doc, form_node, TRUE, &node);
264 nsIDOMNode_Release(form_node);
265 if (FAILED(hres))
266 return hres;
267
268 hres = IHTMLDOMNode_QueryInterface(&node->IHTMLDOMNode_iface, &IID_IHTMLElement, (void**)p);
269
271 return hres;
272}
HRESULT get_node(HTMLDocumentNode *This, nsIDOMNode *nsnode, BOOL create, HTMLDOMNode **ret)
Definition: htmlnode.c:1339
#define FAILED(hr)
Definition: intsafe.h:51
HRESULT hres
Definition: protocol.c:465
static void node_release(HTMLDOMNode *node)
Definition: dlist.c:348

◆ HTMLInputElement_get_height()

static HRESULT WINAPI HTMLInputElement_get_height ( IHTMLInputElement *  iface,
LONG p 
)
static

Definition at line 790 of file htmlinput.c.

791{
793 FIXME("(%p)->(%p)\n", This, p);
794 return E_NOTIMPL;
795}

◆ HTMLInputElement_get_hspace()

static HRESULT WINAPI HTMLInputElement_get_hspace ( IHTMLInputElement *  iface,
LONG p 
)
static

Definition at line 581 of file htmlinput.c.

582{
584 FIXME("(%p)->(%p)\n", This, p);
585 return E_NOTIMPL;
586}

◆ HTMLInputElement_get_indeterminate()

static HRESULT WINAPI HTMLInputElement_get_indeterminate ( IHTMLInputElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 470 of file htmlinput.c.

471{
473 FIXME("(%p)->(%p)\n", This, p);
474 return E_NOTIMPL;
475}

◆ HTMLInputElement_get_loop()

static HRESULT WINAPI HTMLInputElement_get_loop ( IHTMLInputElement *  iface,
VARIANT p 
)
static

Definition at line 706 of file htmlinput.c.

707{
709 FIXME("(%p)->(%p)\n", This, p);
710 return E_NOTIMPL;
711}

◆ HTMLInputElement_get_lowsrc()

static HRESULT WINAPI HTMLInputElement_get_lowsrc ( IHTMLInputElement *  iface,
BSTR p 
)
static

Definition at line 650 of file htmlinput.c.

651{
653 FIXME("(%p)->(%p)\n", This, p);
654 return E_NOTIMPL;
655}

◆ HTMLInputElement_get_maxLength()

static HRESULT WINAPI HTMLInputElement_get_maxLength ( IHTMLInputElement *  iface,
LONG p 
)
static

Definition at line 328 of file htmlinput.c.

329{
331 LONG max_length;
332 nsresult nsres;
333
334 TRACE("(%p)->(%p)\n", This, p);
335
336 nsres = nsIDOMHTMLInputElement_GetMaxLength(This->nsinput, &max_length);
337 assert(nsres == NS_OK);
338
339 /* Gecko reports -1 as default value, while MSHTML uses INT_MAX */
340 *p = max_length == -1 ? INT_MAX : max_length;
341 return S_OK;
342}
#define INT_MAX
Definition: limits.h:40
long LONG
Definition: pedump.c:60

◆ HTMLInputElement_get_name()

static HRESULT WINAPI HTMLInputElement_get_name ( IHTMLInputElement *  iface,
BSTR p 
)
static

Definition at line 187 of file htmlinput.c.

188{
190 nsAString name_str;
191 nsresult nsres;
192
193 TRACE("(%p)->(%p)\n", This, p);
194
195 nsAString_Init(&name_str, NULL);
196 nsres = nsIDOMHTMLInputElement_GetName(This->nsinput, &name_str);
197 return return_nsstr(nsres, &name_str, p);
198}

◆ HTMLInputElement_get_onabort()

static HRESULT WINAPI HTMLInputElement_get_onabort ( IHTMLInputElement *  iface,
VARIANT p 
)
static

Definition at line 762 of file htmlinput.c.

763{
765 FIXME("(%p)->(%p)\n", This, p);
766 return E_NOTIMPL;
767}

◆ HTMLInputElement_get_onchange()

static HRESULT WINAPI HTMLInputElement_get_onchange ( IHTMLInputElement *  iface,
VARIANT p 
)
static

Definition at line 369 of file htmlinput.c.

370{
372
373 TRACE("(%p)->(%p)\n", This, p);
374
375 return get_node_event(&This->element.node, EVENTID_CHANGE, p);
376}
@ EVENTID_CHANGE
Definition: htmlevent.h:25
static HRESULT get_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:85

◆ HTMLInputElement_get_onerror()

static HRESULT WINAPI HTMLInputElement_get_onerror ( IHTMLInputElement *  iface,
VARIANT p 
)
static

Definition at line 748 of file htmlinput.c.

749{
751 FIXME("(%p)->(%p)\n", This, p);
752 return E_NOTIMPL;
753}

◆ HTMLInputElement_get_onload()

static HRESULT WINAPI HTMLInputElement_get_onload ( IHTMLInputElement *  iface,
VARIANT p 
)
static

Definition at line 734 of file htmlinput.c.

735{
737 FIXME("(%p)->(%p)\n", This, p);
738 return E_NOTIMPL;
739}

◆ HTMLInputElement_get_onselect()

static HRESULT WINAPI HTMLInputElement_get_onselect ( IHTMLInputElement *  iface,
VARIANT p 
)
static

Definition at line 385 of file htmlinput.c.

386{
388 FIXME("(%p)->(%p)\n", This, p);
389 return E_NOTIMPL;
390}

◆ HTMLInputElement_get_readOnly()

static HRESULT WINAPI HTMLInputElement_get_readOnly ( IHTMLInputElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 439 of file htmlinput.c.

440{
442 nsresult nsres;
443 cpp_bool b;
444
445 TRACE("(%p)->(%p)\n", This, p);
446
447 nsres = nsIDOMHTMLInputElement_GetReadOnly(This->nsinput, &b);
448 if (NS_FAILED(nsres)) {
449 ERR("Get ReadOnly Failed: %08x\n", nsres);
450 return E_FAIL;
451 }
452 *p = b ? VARIANT_TRUE : VARIANT_FALSE;
453 return S_OK;
454}
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define b
Definition: ke_i.h:79

◆ HTMLInputElement_get_readyState()

static HRESULT WINAPI HTMLInputElement_get_readyState ( IHTMLInputElement *  iface,
BSTR p 
)
static

Definition at line 685 of file htmlinput.c.

686{
688 FIXME("(%p)->(%p)\n", This, p);
689 return E_NOTIMPL;
690}

◆ HTMLInputElement_get_size()

static HRESULT WINAPI HTMLInputElement_get_size ( IHTMLInputElement *  iface,
LONG p 
)
static

Definition at line 292 of file htmlinput.c.

293{
295 UINT32 val;
296 nsresult nsres;
297
298 TRACE("(%p)->(%p)\n", This, p);
299 if (p == NULL)
300 return E_INVALIDARG;
301
302 nsres = nsIDOMHTMLInputElement_GetSize(This->nsinput, &val);
303 if (NS_FAILED(nsres)) {
304 ERR("Get Size failed: %08x\n", nsres);
305 return E_FAIL;
306 }
307 *p = val;
308 return S_OK;
309}
unsigned int UINT32
#define E_INVALIDARG
Definition: ddrawi.h:101
GLuint GLfloat * val
Definition: glext.h:7180

◆ HTMLInputElement_get_src()

static HRESULT WINAPI HTMLInputElement_get_src ( IHTMLInputElement *  iface,
BSTR p 
)
static

Definition at line 619 of file htmlinput.c.

620{
622 const PRUnichar *src;
623 nsAString src_str;
624 nsresult nsres;
626
627 TRACE("(%p)->(%p)\n", This, p);
628
629 nsAString_Init(&src_str, NULL);
630 nsres = nsIDOMHTMLInputElement_GetSrc(This->nsinput, &src_str);
631 if(NS_FAILED(nsres)) {
632 ERR("GetSrc failed: %08x\n", nsres);
633 return E_FAIL;
634 }
635
636 nsAString_GetData(&src_str, &src);
638 nsAString_Finish(&src_str);
639
640 return hres;
641}
GLenum src
Definition: glext.h:6340
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
HRESULT nsuri_to_url(LPCWSTR, BOOL, BSTR *) DECLSPEC_HIDDEN
Definition: nsio.c:175
WCHAR PRUnichar
Definition: nsiface.idl:48

◆ HTMLInputElement_get_start()

static HRESULT WINAPI HTMLInputElement_get_start ( IHTMLInputElement *  iface,
BSTR p 
)
static

Definition at line 804 of file htmlinput.c.

805{
807 FIXME("(%p)->(%p)\n", This, p);
808 return E_NOTIMPL;
809}

◆ HTMLInputElement_get_status()

static HRESULT WINAPI HTMLInputElement_get_status ( IHTMLInputElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 207 of file htmlinput.c.

208{
210 FIXME("(%p)->(%p)\n", This, p);
211 return E_NOTIMPL;
212}

◆ HTMLInputElement_get_type()

static HRESULT WINAPI HTMLInputElement_get_type ( IHTMLInputElement *  iface,
BSTR p 
)
static

Definition at line 125 of file htmlinput.c.

126{
128 nsAString type_str;
129 nsresult nsres;
130
131 TRACE("(%p)->(%p)\n", This, p);
132
133 nsAString_Init(&type_str, NULL);
134 nsres = nsIDOMHTMLInputElement_GetType(This->nsinput, &type_str);
135 return return_nsstr(nsres, &type_str, p);
136}

◆ HTMLInputElement_get_value()

static HRESULT WINAPI HTMLInputElement_get_value ( IHTMLInputElement *  iface,
BSTR p 
)
static

Definition at line 155 of file htmlinput.c.

156{
159 nsresult nsres;
160
161 TRACE("(%p)->(%p)\n", This, p);
162
164 nsres = nsIDOMHTMLInputElement_GetValue(This->nsinput, &value_str);
165 return return_nsstr(nsres, &value_str, p);
166}
static UNICODE_STRING value_str
Definition: reg.c:1328

◆ HTMLInputElement_get_vrml()

static HRESULT WINAPI HTMLInputElement_get_vrml ( IHTMLInputElement *  iface,
BSTR p 
)
static

Definition at line 664 of file htmlinput.c.

665{
667 FIXME("(%p)->(%p)\n", This, p);
668 return E_NOTIMPL;
669}

◆ HTMLInputElement_get_vspace()

static HRESULT WINAPI HTMLInputElement_get_vspace ( IHTMLInputElement *  iface,
LONG p 
)
static

Definition at line 567 of file htmlinput.c.

568{
570 FIXME("(%p)->(%p)\n", This, p);
571 return E_NOTIMPL;
572}

◆ HTMLInputElement_get_width()

static HRESULT WINAPI HTMLInputElement_get_width ( IHTMLInputElement *  iface,
LONG p 
)
static

Definition at line 776 of file htmlinput.c.

777{
779 FIXME("(%p)->(%p)\n", This, p);
780 return E_NOTIMPL;
781}

◆ HTMLInputElement_GetIDsOfNames()

static HRESULT WINAPI HTMLInputElement_GetIDsOfNames ( IHTMLInputElement *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 82 of file htmlinput.c.

85{
87
88 return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
89 cNames, lcid, rgDispId);
90}

◆ HTMLInputElement_GetTypeInfo()

static HRESULT WINAPI HTMLInputElement_GetTypeInfo ( IHTMLInputElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 73 of file htmlinput.c.

75{
77
78 return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
79 ppTInfo);
80}

◆ HTMLInputElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLInputElement_GetTypeInfoCount ( IHTMLInputElement *  iface,
UINT pctinfo 
)
static

Definition at line 66 of file htmlinput.c.

67{
69
70 return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
71}

◆ HTMLInputElement_Invoke()

static HRESULT WINAPI HTMLInputElement_Invoke ( IHTMLInputElement *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 92 of file htmlinput.c.

95{
97
98 return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
99 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
100}

◆ HTMLInputElement_is_text_edit()

static BOOL HTMLInputElement_is_text_edit ( HTMLDOMNode iface)
static

Definition at line 1253 of file htmlinput.c.

1254{
1256 const PRUnichar *type;
1257 nsAString nsstr;
1258 nsresult nsres;
1259 BOOL ret = FALSE;
1260
1261 static const WCHAR buttonW[] = {'b','u','t','t','o','n',0};
1262 static const WCHAR hiddenW[] = {'h','i','d','d','e','n',0};
1263 static const WCHAR passwordW[] = {'p','a','s','s','w','o','r','d',0};
1264 static const WCHAR resetW[] = {'r','e','s','e','t',0};
1265 static const WCHAR submitW[] = {'s','u','b','m','i','t',0};
1266 static const WCHAR textW[] = {'t','e','x','t',0};
1267
1268 nsAString_Init(&nsstr, NULL);
1269 nsres = nsIDOMHTMLInputElement_GetType(This->nsinput, &nsstr);
1270 if(NS_SUCCEEDED(nsres)) {
1271 nsAString_GetData(&nsstr, &type);
1272 ret = !strcmpW(type, buttonW) || !strcmpW(type, hiddenW) || !strcmpW(type, passwordW)
1273 || !strcmpW(type, resetW) || !strcmpW(type, submitW) || !strcmpW(type, textW);
1274 }
1275 nsAString_Finish(&nsstr);
1276 return ret;
1277}
unsigned int BOOL
Definition: ntddk_ex.h:94
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
static const WCHAR hiddenW[]
Definition: htmlbody.c:591
static const WCHAR buttonW[]
Definition: htmlelem.c:24
static const WCHAR submitW[]
Definition: htmlevent.c:118
static HTMLInputElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlinput.c:1185
static const WCHAR textW[]
Definition: itemdlg.c:1559
#define NS_SUCCEEDED(res)
#define strcmpW(s1, s2)
Definition: unicode.h:44
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ HTMLInputElement_put_align()

static HRESULT WINAPI HTMLInputElement_put_align ( IHTMLInputElement *  iface,
BSTR  v 
)
static

Definition at line 713 of file htmlinput.c.

714{
716 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
717 return E_NOTIMPL;
718}

◆ HTMLInputElement_put_alt()

static HRESULT WINAPI HTMLInputElement_put_alt ( IHTMLInputElement *  iface,
BSTR  v 
)
static

Definition at line 588 of file htmlinput.c.

589{
591 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
592 return E_NOTIMPL;
593}

◆ HTMLInputElement_put_border()

static HRESULT WINAPI HTMLInputElement_put_border ( IHTMLInputElement *  iface,
VARIANT  v 
)
static

Definition at line 546 of file htmlinput.c.

547{
549 FIXME("(%p)->()\n", This);
550 return E_NOTIMPL;
551}

◆ HTMLInputElement_put_checked()

static HRESULT WINAPI HTMLInputElement_put_checked ( IHTMLInputElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 511 of file htmlinput.c.

512{
514 nsresult nsres;
515
516 TRACE("(%p)->(%x)\n", This, v);
517
518 nsres = nsIDOMHTMLInputElement_SetChecked(This->nsinput, v != VARIANT_FALSE);
519 if(NS_FAILED(nsres)) {
520 ERR("SetChecked failed: %08x\n", nsres);
521 return E_FAIL;
522 }
523
524 return S_OK;
525}

◆ HTMLInputElement_put_defaultChecked()

static HRESULT WINAPI HTMLInputElement_put_defaultChecked ( IHTMLInputElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 477 of file htmlinput.c.

478{
480 nsresult nsres;
481
482 TRACE("(%p)->(%x)\n", This, v);
483
484 nsres = nsIDOMHTMLInputElement_SetDefaultChecked(This->nsinput, v != VARIANT_FALSE);
485 if(NS_FAILED(nsres)) {
486 ERR("SetDefaultChecked failed: %08x\n", nsres);
487 return E_FAIL;
488 }
489
490 return S_OK;
491}

◆ HTMLInputElement_put_defaultValue()

static HRESULT WINAPI HTMLInputElement_put_defaultValue ( IHTMLInputElement *  iface,
BSTR  v 
)
static

Definition at line 392 of file htmlinput.c.

393{
395 nsAString nsstr;
396 nsresult nsres;
397
398 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
399
400 nsAString_InitDepend(&nsstr, v);
401 nsres = nsIDOMHTMLInputElement_SetDefaultValue(This->nsinput, &nsstr);
402 nsAString_Finish(&nsstr);
403 if(NS_FAILED(nsres)) {
404 ERR("SetValue failed: %08x\n", nsres);
405 return E_FAIL;
406 }
407
408 return S_OK;
409}

◆ HTMLInputElement_put_disabled()

static HRESULT WINAPI HTMLInputElement_put_disabled ( IHTMLInputElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 214 of file htmlinput.c.

215{
217 nsresult nsres;
218
219 TRACE("(%p)->(%x)\n", This, v);
220
221 nsres = nsIDOMHTMLInputElement_SetDisabled(This->nsinput, v != VARIANT_FALSE);
222 if(NS_FAILED(nsres))
223 ERR("SetDisabled failed: %08x\n", nsres);
224
225 return S_OK;
226}

◆ HTMLInputElement_put_dynsrc()

static HRESULT WINAPI HTMLInputElement_put_dynsrc ( IHTMLInputElement *  iface,
BSTR  v 
)
static

Definition at line 671 of file htmlinput.c.

672{
674 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
675 return E_NOTIMPL;
676}

◆ HTMLInputElement_put_height()

static HRESULT WINAPI HTMLInputElement_put_height ( IHTMLInputElement *  iface,
LONG  v 
)
static

Definition at line 783 of file htmlinput.c.

784{
786 FIXME("(%p)->(%d)\n", This, v);
787 return E_NOTIMPL;
788}

◆ HTMLInputElement_put_hspace()

static HRESULT WINAPI HTMLInputElement_put_hspace ( IHTMLInputElement *  iface,
LONG  v 
)
static

Definition at line 574 of file htmlinput.c.

575{
577 FIXME("(%p)->(%d)\n", This, v);
578 return E_NOTIMPL;
579}

◆ HTMLInputElement_put_indeterminate()

static HRESULT WINAPI HTMLInputElement_put_indeterminate ( IHTMLInputElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 463 of file htmlinput.c.

464{
466 FIXME("(%p)->(%x)\n", This, v);
467 return E_NOTIMPL;
468}

◆ HTMLInputElement_put_loop()

static HRESULT WINAPI HTMLInputElement_put_loop ( IHTMLInputElement *  iface,
VARIANT  v 
)
static

Definition at line 699 of file htmlinput.c.

700{
702 FIXME("(%p)->()\n", This);
703 return E_NOTIMPL;
704}

◆ HTMLInputElement_put_lowsrc()

static HRESULT WINAPI HTMLInputElement_put_lowsrc ( IHTMLInputElement *  iface,
BSTR  v 
)
static

Definition at line 643 of file htmlinput.c.

644{
646 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
647 return E_NOTIMPL;
648}

◆ HTMLInputElement_put_maxLength()

static HRESULT WINAPI HTMLInputElement_put_maxLength ( IHTMLInputElement *  iface,
LONG  v 
)
static

Definition at line 311 of file htmlinput.c.

312{
314 nsresult nsres;
315
316 TRACE("(%p)->(%d)\n", This, v);
317
318 nsres = nsIDOMHTMLInputElement_SetMaxLength(This->nsinput, v);
319 if(NS_FAILED(nsres)) {
320 /* FIXME: Gecko throws an error on negative values, while MSHTML should accept them */
321 FIXME("SetMaxLength failed\n");
322 return E_FAIL;
323 }
324
325 return S_OK;
326}

◆ HTMLInputElement_put_name()

static HRESULT WINAPI HTMLInputElement_put_name ( IHTMLInputElement *  iface,
BSTR  v 
)
static

Definition at line 168 of file htmlinput.c.

169{
171 nsAString name_str;
172 nsresult nsres;
173
174 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
175
176 nsAString_InitDepend(&name_str, v);
177 nsres = nsIDOMHTMLInputElement_SetName(This->nsinput, &name_str);
178 nsAString_Finish(&name_str);
179 if(NS_FAILED(nsres)) {
180 ERR("SetName failed: %08x\n", nsres);
181 return E_FAIL;
182 }
183
184 return S_OK;
185}

◆ HTMLInputElement_put_onabort()

static HRESULT WINAPI HTMLInputElement_put_onabort ( IHTMLInputElement *  iface,
VARIANT  v 
)
static

Definition at line 755 of file htmlinput.c.

756{
758 FIXME("(%p)->()\n", This);
759 return E_NOTIMPL;
760}

◆ HTMLInputElement_put_onchange()

static HRESULT WINAPI HTMLInputElement_put_onchange ( IHTMLInputElement *  iface,
VARIANT  v 
)
static

Definition at line 360 of file htmlinput.c.

361{
363
364 TRACE("(%p)->()\n", This);
365
366 return set_node_event(&This->element.node, EVENTID_CHANGE, &v);
367}
static HRESULT set_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:80

◆ HTMLInputElement_put_onerror()

static HRESULT WINAPI HTMLInputElement_put_onerror ( IHTMLInputElement *  iface,
VARIANT  v 
)
static

Definition at line 741 of file htmlinput.c.

742{
744 FIXME("(%p)->()\n", This);
745 return E_NOTIMPL;
746}

◆ HTMLInputElement_put_onload()

static HRESULT WINAPI HTMLInputElement_put_onload ( IHTMLInputElement *  iface,
VARIANT  v 
)
static

Definition at line 727 of file htmlinput.c.

728{
730 FIXME("(%p)->()\n", This);
731 return E_NOTIMPL;
732}

◆ HTMLInputElement_put_onselect()

static HRESULT WINAPI HTMLInputElement_put_onselect ( IHTMLInputElement *  iface,
VARIANT  v 
)
static

Definition at line 378 of file htmlinput.c.

379{
381 FIXME("(%p)->()\n", This);
382 return E_NOTIMPL;
383}

◆ HTMLInputElement_put_readOnly()

static HRESULT WINAPI HTMLInputElement_put_readOnly ( IHTMLInputElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 424 of file htmlinput.c.

425{
427 nsresult nsres;
428
429 TRACE("(%p)->(%x)\n", This, v);
430
431 nsres = nsIDOMHTMLInputElement_SetReadOnly(This->nsinput, v != VARIANT_FALSE);
432 if (NS_FAILED(nsres)) {
433 ERR("Set ReadOnly Failed: %08x\n", nsres);
434 return E_FAIL;
435 }
436 return S_OK;
437}

◆ HTMLInputElement_put_size()

static HRESULT WINAPI HTMLInputElement_put_size ( IHTMLInputElement *  iface,
LONG  v 
)
static

Definition at line 274 of file htmlinput.c.

275{
277 UINT32 val = v;
278 nsresult nsres;
279
280 TRACE("(%p)->(%d)\n", This, v);
281 if (v <= 0)
283
284 nsres = nsIDOMHTMLInputElement_SetSize(This->nsinput, val);
285 if (NS_FAILED(nsres)) {
286 ERR("Set Size(%u) failed: %08x\n", val, nsres);
287 return E_FAIL;
288 }
289 return S_OK;
290}
#define CTL_E_INVALIDPROPERTYVALUE
Definition: olectl.h:292

◆ HTMLInputElement_put_src()

static HRESULT WINAPI HTMLInputElement_put_src ( IHTMLInputElement *  iface,
BSTR  v 
)
static

Definition at line 602 of file htmlinput.c.

603{
605 nsAString nsstr;
606 nsresult nsres;
607
608 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
609
610 nsAString_InitDepend(&nsstr, v);
611 nsres = nsIDOMHTMLInputElement_SetSrc(This->nsinput, &nsstr);
612 nsAString_Finish(&nsstr);
613 if(NS_FAILED(nsres))
614 ERR("SetSrc failed: %08x\n", nsres);
615
616 return S_OK;
617}

◆ HTMLInputElement_put_start()

static HRESULT WINAPI HTMLInputElement_put_start ( IHTMLInputElement *  iface,
BSTR  v 
)
static

Definition at line 797 of file htmlinput.c.

798{
800 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
801 return E_NOTIMPL;
802}

◆ HTMLInputElement_put_status()

static HRESULT WINAPI HTMLInputElement_put_status ( IHTMLInputElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 200 of file htmlinput.c.

201{
203 FIXME("(%p)->(%x)\n", This, v);
204 return E_NOTIMPL;
205}

◆ HTMLInputElement_put_type()

static HRESULT WINAPI HTMLInputElement_put_type ( IHTMLInputElement *  iface,
BSTR  v 
)
static

Definition at line 102 of file htmlinput.c.

103{
105 nsAString type_str;
106 nsresult nsres;
107
108 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
109
110 /*
111 * FIXME:
112 * On IE setting type works only on dynamically created elements before adding them to DOM tree.
113 */
114 nsAString_InitDepend(&type_str, v);
115 nsres = nsIDOMHTMLInputElement_SetType(This->nsinput, &type_str);
116 nsAString_Finish(&type_str);
117 if(NS_FAILED(nsres)) {
118 ERR("SetType failed: %08x\n", nsres);
119 return E_FAIL;
120 }
121
122 return S_OK;
123}

◆ HTMLInputElement_put_value()

static HRESULT WINAPI HTMLInputElement_put_value ( IHTMLInputElement *  iface,
BSTR  v 
)
static

Definition at line 138 of file htmlinput.c.

139{
141 nsAString val_str;
142 nsresult nsres;
143
144 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
145
146 nsAString_InitDepend(&val_str, v);
147 nsres = nsIDOMHTMLInputElement_SetValue(This->nsinput, &val_str);
148 nsAString_Finish(&val_str);
149 if(NS_FAILED(nsres))
150 ERR("SetValue failed: %08x\n", nsres);
151
152 return S_OK;
153}

◆ HTMLInputElement_put_vrml()

static HRESULT WINAPI HTMLInputElement_put_vrml ( IHTMLInputElement *  iface,
BSTR  v 
)
static

Definition at line 657 of file htmlinput.c.

658{
660 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
661 return E_NOTIMPL;
662}

◆ HTMLInputElement_put_vspace()

static HRESULT WINAPI HTMLInputElement_put_vspace ( IHTMLInputElement *  iface,
LONG  v 
)
static

Definition at line 560 of file htmlinput.c.

561{
563 FIXME("(%p)->(%d)\n", This, v);
564 return E_NOTIMPL;
565}

◆ HTMLInputElement_put_width()

static HRESULT WINAPI HTMLInputElement_put_width ( IHTMLInputElement *  iface,
LONG  v 
)
static

Definition at line 769 of file htmlinput.c.

770{
772 FIXME("(%p)->(%d)\n", This, v);
773 return E_NOTIMPL;
774}

◆ HTMLInputElement_QI()

static HRESULT HTMLInputElement_QI ( HTMLDOMNode iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 1190 of file htmlinput.c.

1191{
1193
1194 *ppv = NULL;
1195
1197 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
1198 *ppv = &This->IHTMLInputElement_iface;
1199 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
1200 TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
1201 *ppv = &This->IHTMLInputElement_iface;
1202 }else if(IsEqualGUID(&IID_IHTMLInputElement, riid)) {
1203 TRACE("(%p)->(IID_IHTMLInputElement %p)\n", This, ppv);
1204 *ppv = &This->IHTMLInputElement_iface;
1205 }else if(IsEqualGUID(&IID_IHTMLInputTextElement, riid)) {
1206 TRACE("(%p)->(IID_IHTMLInputTextElement %p)\n", This, ppv);
1207 *ppv = &This->IHTMLInputTextElement_iface;
1208 }
1209
1210 if(*ppv) {
1211 IUnknown_AddRef((IUnknown*)*ppv);
1212 return S_OK;
1213 }
1214
1215 return HTMLElement_QI(&This->element.node, riid, ppv);
1216}
const GUID IID_IDispatch

◆ HTMLInputElement_QueryInterface()

static HRESULT WINAPI HTMLInputElement_QueryInterface ( IHTMLInputElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 44 of file htmlinput.c.

46{
48
49 return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
50}

◆ HTMLInputElement_Release()

static ULONG WINAPI HTMLInputElement_Release ( IHTMLInputElement *  iface)
static

Definition at line 59 of file htmlinput.c.

60{
62
63 return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
64}

◆ HTMLInputElement_select()

static HRESULT WINAPI HTMLInputElement_select ( IHTMLInputElement *  iface)
static

Definition at line 344 of file htmlinput.c.

345{
347 nsresult nsres;
348
349 TRACE("(%p)\n", This);
350
351 nsres = nsIDOMHTMLInputElement_Select(This->nsinput);
352 if(NS_FAILED(nsres)) {
353 ERR("Select failed: %08x\n", nsres);
354 return E_FAIL;
355 }
356
357 return S_OK;
358}

◆ HTMLInputElement_traverse()

static void HTMLInputElement_traverse ( HTMLDOMNode iface,
nsCycleCollectionTraversalCallback cb 
)
static

Definition at line 1279 of file htmlinput.c.

1280{
1282
1283 if(This->nsinput)
1284 note_cc_edge((nsISupports*)This->nsinput, "This->nsinput", cb);
1285}

◆ HTMLInputElement_unlink()

static void HTMLInputElement_unlink ( HTMLDOMNode iface)
static

Definition at line 1287 of file htmlinput.c.

1288{
1290
1291 if(This->nsinput) {
1292 nsIDOMHTMLInputElement *nsinput = This->nsinput;
1293
1294 This->nsinput = NULL;
1295 nsIDOMHTMLInputElement_Release(nsinput);
1296 }
1297}

◆ HTMLInputElementImpl_fire_event()

static HRESULT HTMLInputElementImpl_fire_event ( HTMLDOMNode iface,
eventid_t  eid,
BOOL handled 
)
static

Definition at line 1219 of file htmlinput.c.

1223{
1225
1226 if(eid == EVENTID_CLICK) {
1227 nsresult nsres;
1228
1229 *handled = TRUE;
1230
1231 nsres = nsIDOMHTMLElement_Click(This->element.nselem);
1232 if(NS_FAILED(nsres)) {
1233 ERR("Click failed: %08x\n", nsres);
1234 return E_FAIL;
1235 }
1236 }
1237
1238 return S_OK;
1239}
@ EVENTID_CLICK
Definition: htmlevent.h:26

◆ HTMLInputElementImpl_get_disabled()

static HRESULT HTMLInputElementImpl_get_disabled ( HTMLDOMNode iface,
VARIANT_BOOL p 
)
static

Definition at line 1247 of file htmlinput.c.

1248{
1250 return IHTMLInputElement_get_disabled(&This->IHTMLInputElement_iface, p);
1251}

◆ HTMLInputElementImpl_put_disabled()

static HRESULT HTMLInputElementImpl_put_disabled ( HTMLDOMNode iface,
VARIANT_BOOL  v 
)
static

Definition at line 1241 of file htmlinput.c.

1242{
1244 return IHTMLInputElement_put_disabled(&This->IHTMLInputElement_iface, v);
1245}

◆ HTMLInputTextElement_AddRef()

static ULONG WINAPI HTMLInputTextElement_AddRef ( IHTMLInputTextElement *  iface)
static

Definition at line 894 of file htmlinput.c.

895{
897
898 return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
899}
static HTMLInputElement * impl_from_IHTMLInputTextElement(IHTMLInputTextElement *iface)
Definition: htmlinput.c:39

◆ HTMLInputTextElement_createTextRange()

static HRESULT WINAPI HTMLInputTextElement_createTextRange ( IHTMLInputTextElement *  iface,
IHTMLTxtRange **  range 
)
static

Definition at line 1142 of file htmlinput.c.

1143{
1145
1146 TRACE("(%p)->(%p)\n", This, range);
1147
1148 return IHTMLInputElement_createTextRange(&This->IHTMLInputElement_iface, range);
1149}

◆ HTMLInputTextElement_get_defaultValue()

static HRESULT WINAPI HTMLInputTextElement_get_defaultValue ( IHTMLInputTextElement *  iface,
BSTR p 
)
static

Definition at line 1034 of file htmlinput.c.

1035{
1037
1038 TRACE("(%p)->(%p)\n", This, p);
1039
1040 return IHTMLInputElement_get_defaultValue(&This->IHTMLInputElement_iface, p);
1041}

◆ HTMLInputTextElement_get_disabled()

static HRESULT WINAPI HTMLInputTextElement_get_disabled ( IHTMLInputTextElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 1007 of file htmlinput.c.

1008{
1010
1011 TRACE("(%p)->(%p)\n", This, p);
1012
1013 return IHTMLInputElement_get_disabled(&This->IHTMLInputElement_iface, p);
1014}

◆ HTMLInputTextElement_get_form()

static HRESULT WINAPI HTMLInputTextElement_get_form ( IHTMLInputTextElement *  iface,
IHTMLFormElement **  p 
)
static

Definition at line 1016 of file htmlinput.c.

1017{
1019
1020 TRACE("(%p)->(%p)\n", This, p);
1021
1022 return IHTMLInputElement_get_form(&This->IHTMLInputElement_iface, p);
1023}

◆ HTMLInputTextElement_get_maxLength()

static HRESULT WINAPI HTMLInputTextElement_get_maxLength ( IHTMLInputTextElement *  iface,
LONG p 
)
static

Definition at line 1070 of file htmlinput.c.

1071{
1073
1074 TRACE("(%p)->(%p)\n", This, p);
1075
1076 return IHTMLInputElement_get_maxLength(&This->IHTMLInputElement_iface, p);
1077}

◆ HTMLInputTextElement_get_name()

static HRESULT WINAPI HTMLInputTextElement_get_name ( IHTMLInputTextElement *  iface,
BSTR p 
)
static

Definition at line 975 of file htmlinput.c.

976{
978
979 TRACE("(%p)->(%p)\n", This, p);
980
981 return IHTMLInputElement_get_name(&This->IHTMLInputElement_iface, p);
982}

◆ HTMLInputTextElement_get_onchange()

static HRESULT WINAPI HTMLInputTextElement_get_onchange ( IHTMLInputTextElement *  iface,
VARIANT p 
)
static

Definition at line 1097 of file htmlinput.c.

1098{
1100
1101 TRACE("(%p)->(%p)\n", This, p);
1102
1103 return IHTMLInputElement_get_onchange(&This->IHTMLInputElement_iface, p);
1104}

◆ HTMLInputTextElement_get_onselect()

static HRESULT WINAPI HTMLInputTextElement_get_onselect ( IHTMLInputTextElement *  iface,
VARIANT p 
)
static

Definition at line 1115 of file htmlinput.c.

1116{
1118
1119 TRACE("(%p)->(%p)\n", This, p);
1120
1121 return IHTMLInputElement_get_onselect(&This->IHTMLInputElement_iface, p);
1122}

◆ HTMLInputTextElement_get_readOnly()

static HRESULT WINAPI HTMLInputTextElement_get_readOnly ( IHTMLInputTextElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 1133 of file htmlinput.c.

1134{
1136
1137 TRACE("(%p)->(%p)\n", This, p);
1138
1139 return IHTMLInputElement_get_readOnly(&This->IHTMLInputElement_iface, p);
1140}

◆ HTMLInputTextElement_get_size()

static HRESULT WINAPI HTMLInputTextElement_get_size ( IHTMLInputTextElement *  iface,
LONG p 
)
static

Definition at line 1052 of file htmlinput.c.

1053{
1055
1056 TRACE("(%p)->(%p)\n", This, p);
1057
1058 return IHTMLInputElement_get_size(&This->IHTMLInputElement_iface, p);
1059}

◆ HTMLInputTextElement_get_status()

static HRESULT WINAPI HTMLInputTextElement_get_status ( IHTMLInputTextElement *  iface,
VARIANT p 
)
static

Definition at line 991 of file htmlinput.c.

992{
994 TRACE("(%p)->(%p)\n", This, p);
995 return E_NOTIMPL;
996}

◆ HTMLInputTextElement_get_type()

static HRESULT WINAPI HTMLInputTextElement_get_type ( IHTMLInputTextElement *  iface,
BSTR p 
)
static

Definition at line 939 of file htmlinput.c.

940{
942
943 TRACE("(%p)->(%p)\n", This, p);
944
945 return IHTMLInputElement_get_type(&This->IHTMLInputElement_iface, p);
946}

◆ HTMLInputTextElement_get_value()

static HRESULT WINAPI HTMLInputTextElement_get_value ( IHTMLInputTextElement *  iface,
BSTR p 
)
static

Definition at line 957 of file htmlinput.c.

958{
960
961 TRACE("(%p)->(%p)\n", This, p);
962
963 return IHTMLInputElement_get_value(&This->IHTMLInputElement_iface, p);
964}

◆ HTMLInputTextElement_GetIDsOfNames()

static HRESULT WINAPI HTMLInputTextElement_GetIDsOfNames ( IHTMLInputTextElement *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 922 of file htmlinput.c.

924{
926 return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
927 cNames, lcid, rgDispId);
928}

◆ HTMLInputTextElement_GetTypeInfo()

static HRESULT WINAPI HTMLInputTextElement_GetTypeInfo ( IHTMLInputTextElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 914 of file htmlinput.c.

916{
918 return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
919 ppTInfo);
920}

◆ HTMLInputTextElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLInputTextElement_GetTypeInfoCount ( IHTMLInputTextElement *  iface,
UINT pctinfo 
)
static

Definition at line 908 of file htmlinput.c.

909{
911 return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
912}

◆ HTMLInputTextElement_Invoke()

static HRESULT WINAPI HTMLInputTextElement_Invoke ( IHTMLInputTextElement *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 930 of file htmlinput.c.

933{
935 return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
936 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
937}

◆ HTMLInputTextElement_put_defaultValue()

static HRESULT WINAPI HTMLInputTextElement_put_defaultValue ( IHTMLInputTextElement *  iface,
BSTR  v 
)
static

Definition at line 1025 of file htmlinput.c.

1026{
1028
1029 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1030
1031 return IHTMLInputElement_put_defaultValue(&This->IHTMLInputElement_iface, v);
1032}

◆ HTMLInputTextElement_put_disabled()

static HRESULT WINAPI HTMLInputTextElement_put_disabled ( IHTMLInputTextElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 998 of file htmlinput.c.

999{
1001
1002 TRACE("(%p)->(%x)\n", This, v);
1003
1004 return IHTMLInputElement_put_disabled(&This->IHTMLInputElement_iface, v);
1005}

◆ HTMLInputTextElement_put_maxLength()

static HRESULT WINAPI HTMLInputTextElement_put_maxLength ( IHTMLInputTextElement *  iface,
LONG  v 
)
static

Definition at line 1061 of file htmlinput.c.

1062{
1064
1065 TRACE("(%p)->(%d)\n", This, v);
1066
1067 return IHTMLInputElement_put_maxLength(&This->IHTMLInputElement_iface, v);
1068}

◆ HTMLInputTextElement_put_name()

static HRESULT WINAPI HTMLInputTextElement_put_name ( IHTMLInputTextElement *  iface,
BSTR  v 
)
static

Definition at line 966 of file htmlinput.c.

967{
969
970 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
971
972 return IHTMLInputElement_put_name(&This->IHTMLInputElement_iface, v);
973}

◆ HTMLInputTextElement_put_onchange()

static HRESULT WINAPI HTMLInputTextElement_put_onchange ( IHTMLInputTextElement *  iface,
VARIANT  v 
)
static

Definition at line 1088 of file htmlinput.c.

1089{
1091
1092 TRACE("(%p)->()\n", This);
1093
1094 return IHTMLInputElement_put_onchange(&This->IHTMLInputElement_iface, v);
1095}

◆ HTMLInputTextElement_put_onselect()

static HRESULT WINAPI HTMLInputTextElement_put_onselect ( IHTMLInputTextElement *  iface,
VARIANT  v 
)
static

Definition at line 1106 of file htmlinput.c.

1107{
1109
1110 TRACE("(%p)->()\n", This);
1111
1112 return IHTMLInputElement_put_onselect(&This->IHTMLInputElement_iface, v);
1113}

◆ HTMLInputTextElement_put_readOnly()

static HRESULT WINAPI HTMLInputTextElement_put_readOnly ( IHTMLInputTextElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 1124 of file htmlinput.c.

1125{
1127
1128 TRACE("(%p)->(%x)\n", This, v);
1129
1130 return IHTMLInputElement_put_readOnly(&This->IHTMLInputElement_iface, v);
1131}

◆ HTMLInputTextElement_put_size()

static HRESULT WINAPI HTMLInputTextElement_put_size ( IHTMLInputTextElement *  iface,
LONG  v 
)
static

Definition at line 1043 of file htmlinput.c.

1044{
1046
1047 TRACE("(%p)->(%d)\n", This, v);
1048
1049 return IHTMLInputElement_put_size(&This->IHTMLInputElement_iface, v);
1050}

◆ HTMLInputTextElement_put_status()

static HRESULT WINAPI HTMLInputTextElement_put_status ( IHTMLInputTextElement *  iface,
VARIANT  v 
)
static

Definition at line 984 of file htmlinput.c.

985{
987 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
988 return E_NOTIMPL;
989}

◆ HTMLInputTextElement_put_value()

static HRESULT WINAPI HTMLInputTextElement_put_value ( IHTMLInputTextElement *  iface,
BSTR  v 
)
static

Definition at line 948 of file htmlinput.c.

949{
951
952 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
953
954 return IHTMLInputElement_put_value(&This->IHTMLInputElement_iface, v);
955}

◆ HTMLInputTextElement_QueryInterface()

static HRESULT WINAPI HTMLInputTextElement_QueryInterface ( IHTMLInputTextElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 886 of file htmlinput.c.

888{
890
891 return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
892}

◆ HTMLInputTextElement_Release()

static ULONG WINAPI HTMLInputTextElement_Release ( IHTMLInputTextElement *  iface)
static

Definition at line 901 of file htmlinput.c.

902{
904
905 return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
906}

◆ HTMLInputTextElement_select()

static HRESULT WINAPI HTMLInputTextElement_select ( IHTMLInputTextElement *  iface)
static

Definition at line 1079 of file htmlinput.c.

1080{
1082
1083 TRACE("(%p)\n", This);
1084
1085 return IHTMLInputElement_select(&This->IHTMLInputElement_iface);
1086}

◆ HTMLLabelElement_AddRef()

static ULONG WINAPI HTMLLabelElement_AddRef ( IHTMLLabelElement *  iface)
static

Definition at line 1373 of file htmlinput.c.

1374{
1376
1377 return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
1378}
static HTMLLabelElement * impl_from_IHTMLLabelElement(IHTMLLabelElement *iface)
Definition: htmlinput.c:1360

◆ HTMLLabelElement_Create()

HRESULT HTMLLabelElement_Create ( HTMLDocumentNode doc,
nsIDOMHTMLElement nselem,
HTMLElement **  elem 
)

Definition at line 1526 of file htmlinput.c.

1527{
1529
1530 ret = heap_alloc_zero(sizeof(*ret));
1531 if(!ret)
1532 return E_OUTOFMEMORY;
1533
1534 ret->IHTMLLabelElement_iface.lpVtbl = &HTMLLabelElementVtbl;
1535 ret->element.node.vtbl = &HTMLLabelElementImplVtbl;
1536
1537 HTMLElement_Init(&ret->element, doc, nselem, &HTMLLabelElement_dispex);
1538 *elem = &ret->element;
1539 return S_OK;
1540}
static const NodeImplVtbl HTMLLabelElementImplVtbl
Definition: htmlinput.c:1504
static dispex_static_data_t HTMLLabelElement_dispex
Definition: htmlinput.c:1519
static const IHTMLLabelElementVtbl HTMLLabelElementVtbl
Definition: htmlinput.c:1465

◆ HTMLLabelElement_get_accessKey()

static HRESULT WINAPI HTMLLabelElement_get_accessKey ( IHTMLLabelElement *  iface,
BSTR p 
)
static

Definition at line 1458 of file htmlinput.c.

1459{
1461 FIXME("(%p)->(%p)\n", This, p);
1462 return E_NOTIMPL;
1463}

◆ HTMLLabelElement_get_htmlFor()

static HRESULT WINAPI HTMLLabelElement_get_htmlFor ( IHTMLLabelElement *  iface,
BSTR p 
)
static

Definition at line 1442 of file htmlinput.c.

1443{
1445
1446 TRACE("(%p)->(%p)\n", This, p);
1447
1448 return elem_string_attr_getter(&This->element, forW, FALSE, p);
1449}
HRESULT elem_string_attr_getter(HTMLElement *elem, const WCHAR *name, BOOL use_null, BSTR *p)
Definition: htmlelem.c:162
static const WCHAR forW[]
Definition: htmlinput.c:32

◆ HTMLLabelElement_GetIDsOfNames()

static HRESULT WINAPI HTMLLabelElement_GetIDsOfNames ( IHTMLLabelElement *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 1402 of file htmlinput.c.

1404{
1406
1407 return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
1408 cNames, lcid, rgDispId);
1409}

◆ HTMLLabelElement_GetTypeInfo()

static HRESULT WINAPI HTMLLabelElement_GetTypeInfo ( IHTMLLabelElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 1394 of file htmlinput.c.

1396{
1398
1399 return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
1400}

◆ HTMLLabelElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLLabelElement_GetTypeInfoCount ( IHTMLLabelElement *  iface,
UINT pctinfo 
)
static

Definition at line 1387 of file htmlinput.c.

1388{
1390
1391 return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
1392}

◆ HTMLLabelElement_Invoke()

static HRESULT WINAPI HTMLLabelElement_Invoke ( IHTMLLabelElement *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 1411 of file htmlinput.c.

1414{
1416
1417 return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
1418 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
1419}

◆ HTMLLabelElement_put_accessKey()

static HRESULT WINAPI HTMLLabelElement_put_accessKey ( IHTMLLabelElement *  iface,
BSTR  v 
)
static

Definition at line 1451 of file htmlinput.c.

1452{
1454 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1455 return E_NOTIMPL;
1456}

◆ HTMLLabelElement_put_htmlFor()

static HRESULT WINAPI HTMLLabelElement_put_htmlFor ( IHTMLLabelElement *  iface,
BSTR  v 
)
static

Definition at line 1421 of file htmlinput.c.

1422{
1424 nsAString for_str, val_str;
1425 nsresult nsres;
1426
1427 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1428
1429 nsAString_InitDepend(&for_str, forW);
1430 nsAString_InitDepend(&val_str, v);
1431 nsres = nsIDOMHTMLElement_SetAttribute(This->element.nselem, &for_str, &val_str);
1432 nsAString_Finish(&for_str);
1433 nsAString_Finish(&val_str);
1434 if(NS_FAILED(nsres)) {
1435 ERR("SetAttribute failed: %08x\n", nsres);
1436 return E_FAIL;
1437 }
1438
1439 return S_OK;
1440}

◆ HTMLLabelElement_QI()

static HRESULT HTMLLabelElement_QI ( HTMLDOMNode iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 1484 of file htmlinput.c.

1485{
1487
1488 *ppv = NULL;
1489
1491 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
1492 *ppv = &This->IHTMLLabelElement_iface;
1493 }else if(IsEqualGUID(&IID_IHTMLLabelElement, riid)) {
1494 TRACE("(%p)->(IID_IHTMLLabelElement %p)\n", This, ppv);
1495 *ppv = &This->IHTMLLabelElement_iface;
1496 }else {
1497 return HTMLElement_QI(&This->element.node, riid, ppv);
1498 }
1499
1500 IUnknown_AddRef((IUnknown*)*ppv);
1501 return S_OK;
1502}
static HTMLLabelElement * label_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlinput.c:1479

◆ HTMLLabelElement_QueryInterface()

static HRESULT WINAPI HTMLLabelElement_QueryInterface ( IHTMLLabelElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 1365 of file htmlinput.c.

1367{
1369
1370 return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
1371}

◆ HTMLLabelElement_Release()

static ULONG WINAPI HTMLLabelElement_Release ( IHTMLLabelElement *  iface)
static

Definition at line 1380 of file htmlinput.c.

1381{
1383
1384 return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
1385}

◆ impl_from_HTMLDOMNode()

◆ impl_from_IHTMLButtonElement()

◆ impl_from_IHTMLInputElement()

static HTMLInputElement * impl_from_IHTMLInputElement ( IHTMLInputElement *  iface)
inlinestatic

Definition at line 34 of file htmlinput.c.

35{
36 return CONTAINING_RECORD(iface, HTMLInputElement, IHTMLInputElement_iface);
37}

Referenced by HTMLInputElement_AddRef(), HTMLInputElement_createTextRange(), HTMLInputElement_get_align(), HTMLInputElement_get_alt(), HTMLInputElement_get_border(), HTMLInputElement_get_checked(), HTMLInputElement_get_complete(), HTMLInputElement_get_defaultChecked(), HTMLInputElement_get_defaultValue(), HTMLInputElement_get_disabled(), HTMLInputElement_get_dynsrc(), HTMLInputElement_get_form(), HTMLInputElement_get_height(), HTMLInputElement_get_hspace(), HTMLInputElement_get_indeterminate(), HTMLInputElement_get_loop(), HTMLInputElement_get_lowsrc(), HTMLInputElement_get_maxLength(), HTMLInputElement_get_name(), HTMLInputElement_get_onabort(), HTMLInputElement_get_onchange(), HTMLInputElement_get_onerror(), HTMLInputElement_get_onload(), HTMLInputElement_get_onselect(), HTMLInputElement_get_readOnly(), HTMLInputElement_get_readyState(), HTMLInputElement_get_size(), HTMLInputElement_get_src(), HTMLInputElement_get_start(), HTMLInputElement_get_status(), HTMLInputElement_get_type(), HTMLInputElement_get_value(), HTMLInputElement_get_vrml(), HTMLInputElement_get_vspace(), HTMLInputElement_get_width(), HTMLInputElement_GetIDsOfNames(), HTMLInputElement_GetTypeInfo(), HTMLInputElement_GetTypeInfoCount(), HTMLInputElement_Invoke(), HTMLInputElement_put_align(), HTMLInputElement_put_alt(), HTMLInputElement_put_border(), HTMLInputElement_put_checked(), HTMLInputElement_put_defaultChecked(), HTMLInputElement_put_defaultValue(), HTMLInputElement_put_disabled(), HTMLInputElement_put_dynsrc(), HTMLInputElement_put_height(), HTMLInputElement_put_hspace(), HTMLInputElement_put_indeterminate(), HTMLInputElement_put_loop(), HTMLInputElement_put_lowsrc(), HTMLInputElement_put_maxLength(), HTMLInputElement_put_name(), HTMLInputElement_put_onabort(), HTMLInputElement_put_onchange(), HTMLInputElement_put_onerror(), HTMLInputElement_put_onload(), HTMLInputElement_put_onselect(), HTMLInputElement_put_readOnly(), HTMLInputElement_put_size(), HTMLInputElement_put_src(), HTMLInputElement_put_start(), HTMLInputElement_put_status(), HTMLInputElement_put_type(), HTMLInputElement_put_value(), HTMLInputElement_put_vrml(), HTMLInputElement_put_vspace(), HTMLInputElement_put_width(), HTMLInputElement_QueryInterface(), HTMLInputElement_Release(), and HTMLInputElement_select().

◆ impl_from_IHTMLInputTextElement()

◆ impl_from_IHTMLLabelElement()

◆ label_from_HTMLDOMNode()

static HTMLLabelElement * label_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

Definition at line 1479 of file htmlinput.c.

1480{
1481 return CONTAINING_RECORD(iface, HTMLLabelElement, element.node);
1482}

Referenced by HTMLLabelElement_QI().

Variable Documentation

◆ forW

const WCHAR forW[] = {'f','o','r',0}
static

Definition at line 32 of file htmlinput.c.

Referenced by HTMLLabelElement_get_htmlFor(), and HTMLLabelElement_put_htmlFor().

◆ HTMLButtonElement_dispex

dispex_static_data_t HTMLButtonElement_dispex
static
Initial value:
= {
DispHTMLButtonElement_tid,
}
static const tid_t HTMLButtonElement_iface_tids[]
Definition: htmlinput.c:1830

Definition at line 1836 of file htmlinput.c.

Referenced by HTMLButtonElement_Create().

◆ HTMLButtonElement_iface_tids

const tid_t HTMLButtonElement_iface_tids[]
static
Initial value:
= {
IHTMLButtonElement_tid,
0
}
#define HTMLELEMENT_TIDS

Definition at line 1830 of file htmlinput.c.

◆ HTMLButtonElementImplVtbl

const NodeImplVtbl HTMLButtonElementImplVtbl
static
Initial value:
= {
}
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
Definition: htmlelem.c:3793
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
HRESULT HTMLElement_handle_event(HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *event, BOOL *prevent_default)
Definition: htmlelem.c:3815
const cpc_entry_t HTMLElement_cpc[]
Definition: htmlelem.c:3847
HRESULT HTMLElement_get_attr_col(HTMLDOMNode *iface, HTMLAttributeCollection **ac)
Definition: htmlelem.c:4827
static HRESULT HTMLButtonElementImpl_put_disabled(HTMLDOMNode *iface, VARIANT_BOOL v)
Definition: htmlinput.c:1772
static BOOL HTMLButtonElement_is_text_edit(HTMLDOMNode *iface)
Definition: htmlinput.c:1784
static void HTMLButtonElement_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
Definition: htmlinput.c:1789
static HRESULT HTMLButtonElementImpl_get_disabled(HTMLDOMNode *iface, VARIANT_BOOL *p)
Definition: htmlinput.c:1778
static HRESULT HTMLButtonElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlinput.c:1752
static void HTMLButtonElement_unlink(HTMLDOMNode *iface)
Definition: htmlinput.c:1797

Definition at line 1809 of file htmlinput.c.

Referenced by HTMLButtonElement_Create().

◆ HTMLButtonElementVtbl

const IHTMLButtonElementVtbl HTMLButtonElementVtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLButtonElement_GetIDsOfNames(IHTMLButtonElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlinput.c:1592
static HRESULT WINAPI HTMLButtonElement_put_value(IHTMLButtonElement *iface, BSTR v)
Definition: htmlinput.c:1618
static HRESULT WINAPI HTMLButtonElement_Invoke(IHTMLButtonElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlinput.c:1601
static HRESULT WINAPI HTMLButtonElement_get_disabled(IHTMLButtonElement *iface, VARIANT_BOOL *p)
Definition: htmlinput.c:1694
static HRESULT WINAPI HTMLButtonElement_get_form(IHTMLButtonElement *iface, IHTMLFormElement **p)
Definition: htmlinput.c:1712
static HRESULT WINAPI HTMLButtonElement_GetTypeInfoCount(IHTMLButtonElement *iface, UINT *pctinfo)
Definition: htmlinput.c:1577
static HRESULT WINAPI HTMLButtonElement_GetTypeInfo(IHTMLButtonElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlinput.c:1584
static HRESULT WINAPI HTMLButtonElement_put_name(IHTMLButtonElement *iface, BSTR v)
Definition: htmlinput.c:1632
static HRESULT WINAPI HTMLButtonElement_get_value(IHTMLButtonElement *iface, BSTR *p)
Definition: htmlinput.c:1625
static HRESULT WINAPI HTMLButtonElement_get_name(IHTMLButtonElement *iface, BSTR *p)
Definition: htmlinput.c:1651
static ULONG WINAPI HTMLButtonElement_Release(IHTMLButtonElement *iface)
Definition: htmlinput.c:1570
static HRESULT WINAPI HTMLButtonElement_get_status(IHTMLButtonElement *iface, VARIANT *p)
Definition: htmlinput.c:1671
static HRESULT WINAPI HTMLButtonElement_put_disabled(IHTMLButtonElement *iface, VARIANT_BOOL v)
Definition: htmlinput.c:1678
static HRESULT WINAPI HTMLButtonElement_put_status(IHTMLButtonElement *iface, VARIANT v)
Definition: htmlinput.c:1664
static ULONG WINAPI HTMLButtonElement_AddRef(IHTMLButtonElement *iface)
Definition: htmlinput.c:1563
static HRESULT WINAPI HTMLButtonElement_QueryInterface(IHTMLButtonElement *iface, REFIID riid, void **ppv)
Definition: htmlinput.c:1555
static HRESULT WINAPI HTMLButtonElement_get_type(IHTMLButtonElement *iface, BSTR *p)
Definition: htmlinput.c:1611
static HRESULT WINAPI HTMLButtonElement_createTextRange(IHTMLButtonElement *iface, IHTMLTxtRange **range)
Definition: htmlinput.c:1719

Definition at line 1726 of file htmlinput.c.

Referenced by HTMLButtonElement_Create().

◆ HTMLInputElement_dispex

dispex_static_data_t HTMLInputElement_dispex
static
Initial value:
= {
DispHTMLInputElement_tid,
}
static const tid_t HTMLInputElement_iface_tids[]
Definition: htmlinput.c:1320

Definition at line 1325 of file htmlinput.c.

Referenced by HTMLInputElement_Create().

◆ HTMLInputElement_iface_tids

const tid_t HTMLInputElement_iface_tids[]
static
Initial value:
= {
IHTMLInputElement_tid,
0
}

Definition at line 1320 of file htmlinput.c.

◆ HTMLInputElementImplVtbl

const NodeImplVtbl HTMLInputElementImplVtbl
static
Initial value:
= {
}
static HRESULT HTMLInputElementImpl_fire_event(HTMLDOMNode *iface, eventid_t eid, BOOL *handled)
Definition: htmlinput.c:1219
static HRESULT HTMLInputElementImpl_put_disabled(HTMLDOMNode *iface, VARIANT_BOOL v)
Definition: htmlinput.c:1241
static void HTMLInputElement_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
Definition: htmlinput.c:1279
static HRESULT HTMLInputElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlinput.c:1190
static BOOL HTMLInputElement_is_text_edit(HTMLDOMNode *iface)
Definition: htmlinput.c:1253
static void HTMLInputElement_unlink(HTMLDOMNode *iface)
Definition: htmlinput.c:1287
static HRESULT HTMLInputElementImpl_get_disabled(HTMLDOMNode *iface, VARIANT_BOOL *p)
Definition: htmlinput.c:1247

Definition at line 1299 of file htmlinput.c.

Referenced by HTMLInputElement_Create().

◆ HTMLInputElementVtbl

const IHTMLInputElementVtbl HTMLInputElementVtbl
static

Definition at line 811 of file htmlinput.c.

Referenced by HTMLInputElement_Create().

◆ HTMLInputTextElementVtbl

const IHTMLInputTextElementVtbl HTMLInputTextElementVtbl
static

Definition at line 1151 of file htmlinput.c.

Referenced by HTMLInputElement_Create().

◆ HTMLLabelElement_dispex

dispex_static_data_t HTMLLabelElement_dispex
static
Initial value:
= {
DispHTMLLabelElement_tid,
}
static const tid_t HTMLLabelElement_iface_tids[]
Definition: htmlinput.c:1513

Definition at line 1519 of file htmlinput.c.

Referenced by HTMLLabelElement_Create().

◆ HTMLLabelElement_iface_tids

const tid_t HTMLLabelElement_iface_tids[]
static
Initial value:
= {
IHTMLLabelElement_tid,
0
}

Definition at line 1513 of file htmlinput.c.

◆ HTMLLabelElementImplVtbl

const NodeImplVtbl HTMLLabelElementImplVtbl
static
Initial value:
= {
}
static HRESULT HTMLLabelElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlinput.c:1484

Definition at line 1504 of file htmlinput.c.

Referenced by HTMLLabelElement_Create().

◆ HTMLLabelElementVtbl

const IHTMLLabelElementVtbl HTMLLabelElementVtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLLabelElement_put_accessKey(IHTMLLabelElement *iface, BSTR v)
Definition: htmlinput.c:1451
static HRESULT WINAPI HTMLLabelElement_put_htmlFor(IHTMLLabelElement *iface, BSTR v)
Definition: htmlinput.c:1421
static HRESULT WINAPI HTMLLabelElement_QueryInterface(IHTMLLabelElement *iface, REFIID riid, void **ppv)
Definition: htmlinput.c:1365
static HRESULT WINAPI HTMLLabelElement_GetTypeInfoCount(IHTMLLabelElement *iface, UINT *pctinfo)
Definition: htmlinput.c:1387
static HRESULT WINAPI HTMLLabelElement_GetTypeInfo(IHTMLLabelElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlinput.c:1394
static HRESULT WINAPI HTMLLabelElement_GetIDsOfNames(IHTMLLabelElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlinput.c:1402
static ULONG WINAPI HTMLLabelElement_AddRef(IHTMLLabelElement *iface)
Definition: htmlinput.c:1373
static HRESULT WINAPI HTMLLabelElement_Invoke(IHTMLLabelElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlinput.c:1411
static HRESULT WINAPI HTMLLabelElement_get_htmlFor(IHTMLLabelElement *iface, BSTR *p)
Definition: htmlinput.c:1442
static ULONG WINAPI HTMLLabelElement_Release(IHTMLLabelElement *iface)
Definition: htmlinput.c:1380
static HRESULT WINAPI HTMLLabelElement_get_accessKey(IHTMLLabelElement *iface, BSTR *p)
Definition: htmlinput.c:1458

Definition at line 1465 of file htmlinput.c.

Referenced by HTMLLabelElement_Create().