ReactOS  0.4.14-dev-98-gb0d4763
htmltextarea.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmltextarea.c:

Go to the source code of this file.

Classes

struct  HTMLTextAreaElement
 

Functions

static HTMLTextAreaElementimpl_from_IHTMLTextAreaElement (IHTMLTextAreaElement *iface)
 
static HRESULT WINAPI HTMLTextAreaElement_QueryInterface (IHTMLTextAreaElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLTextAreaElement_AddRef (IHTMLTextAreaElement *iface)
 
static ULONG WINAPI HTMLTextAreaElement_Release (IHTMLTextAreaElement *iface)
 
static HRESULT WINAPI HTMLTextAreaElement_GetTypeInfoCount (IHTMLTextAreaElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLTextAreaElement_GetTypeInfo (IHTMLTextAreaElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLTextAreaElement_GetIDsOfNames (IHTMLTextAreaElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLTextAreaElement_Invoke (IHTMLTextAreaElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLTextAreaElement_get_type (IHTMLTextAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLTextAreaElement_put_value (IHTMLTextAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLTextAreaElement_get_value (IHTMLTextAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLTextAreaElement_put_name (IHTMLTextAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLTextAreaElement_get_name (IHTMLTextAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLTextAreaElement_put_status (IHTMLTextAreaElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTextAreaElement_get_status (IHTMLTextAreaElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTextAreaElement_put_disabled (IHTMLTextAreaElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLTextAreaElement_get_disabled (IHTMLTextAreaElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLTextAreaElement_get_form (IHTMLTextAreaElement *iface, IHTMLFormElement **p)
 
static HRESULT WINAPI HTMLTextAreaElement_put_defaultValue (IHTMLTextAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLTextAreaElement_get_defaultValue (IHTMLTextAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLTextAreaElement_select (IHTMLTextAreaElement *iface)
 
static HRESULT WINAPI HTMLTextAreaElement_put_onchange (IHTMLTextAreaElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTextAreaElement_get_onchange (IHTMLTextAreaElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTextAreaElement_put_onselect (IHTMLTextAreaElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTextAreaElement_get_onselect (IHTMLTextAreaElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTextAreaElement_put_readOnly (IHTMLTextAreaElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLTextAreaElement_get_readOnly (IHTMLTextAreaElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLTextAreaElement_put_rows (IHTMLTextAreaElement *iface, LONG v)
 
static HRESULT WINAPI HTMLTextAreaElement_get_rows (IHTMLTextAreaElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLTextAreaElement_put_cols (IHTMLTextAreaElement *iface, LONG v)
 
static HRESULT WINAPI HTMLTextAreaElement_get_cols (IHTMLTextAreaElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLTextAreaElement_put_wrap (IHTMLTextAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLTextAreaElement_get_wrap (IHTMLTextAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLTextAreaElement_createTextRange (IHTMLTextAreaElement *iface, IHTMLTxtRange **range)
 
static HTMLTextAreaElementimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLTextAreaElement_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static HRESULT HTMLTextAreaElementImpl_put_disabled (HTMLDOMNode *iface, VARIANT_BOOL v)
 
static HRESULT HTMLTextAreaElementImpl_get_disabled (HTMLDOMNode *iface, VARIANT_BOOL *p)
 
static BOOL HTMLTextAreaElement_is_text_edit (HTMLDOMNode *iface)
 
static void HTMLTextAreaElement_traverse (HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
 
static void HTMLTextAreaElement_unlink (HTMLDOMNode *iface)
 
HRESULT HTMLTextAreaElement_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 

Variables

static const IHTMLTextAreaElementVtbl HTMLTextAreaElementVtbl
 
static const NodeImplVtbl HTMLTextAreaElementImplVtbl
 
static const tid_t HTMLTextAreaElement_iface_tids []
 
static dispex_static_data_t HTMLTextAreaElement_dispex
 

Function Documentation

◆ HTMLTextAreaElement_AddRef()

static ULONG WINAPI HTMLTextAreaElement_AddRef ( IHTMLTextAreaElement *  iface)
static

Definition at line 42 of file htmltextarea.c.

43 {
45 
46  return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
47 }
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_Create()

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

Definition at line 498 of file htmltextarea.c.

499 {
501  nsresult nsres;
502 
503  ret = heap_alloc_zero(sizeof(HTMLTextAreaElement));
504  if(!ret)
505  return E_OUTOFMEMORY;
506 
507  ret->IHTMLTextAreaElement_iface.lpVtbl = &HTMLTextAreaElementVtbl;
508  ret->element.node.vtbl = &HTMLTextAreaElementImplVtbl;
509 
510  HTMLElement_Init(&ret->element, doc, nselem, &HTMLTextAreaElement_dispex);
511 
512  nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLTextAreaElement, (void**)&ret->nstextarea);
513  assert(nsres == NS_OK);
514 
515  *elem = &ret->element;
516  return S_OK;
517 }
static dispex_static_data_t HTMLTextAreaElement_dispex
Definition: htmltextarea.c:491
#define assert(x)
Definition: debug.h:53
#define NS_OK
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static size_t elem
Definition: string.c:68
static const IHTMLTextAreaElementVtbl HTMLTextAreaElementVtbl
Definition: htmltextarea.c:361
static const NodeImplVtbl HTMLTextAreaElementImplVtbl
Definition: htmltextarea.c:464
int ret
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmlelem.c:4008
#define S_OK
Definition: intsafe.h:59
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLTextAreaElement_createTextRange()

static HRESULT WINAPI HTMLTextAreaElement_createTextRange ( IHTMLTextAreaElement *  iface,
IHTMLTxtRange **  range 
)
static

Definition at line 353 of file htmltextarea.c.

355 {
357  FIXME("(%p)->(%p)\n", This, range);
358  return E_NOTIMPL;
359 }
#define FIXME(fmt,...)
Definition: debug.h:110
GLenum GLint * range
Definition: glext.h:7539
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_get_cols()

static HRESULT WINAPI HTMLTextAreaElement_get_cols ( IHTMLTextAreaElement *  iface,
LONG p 
)
static

Definition at line 332 of file htmltextarea.c.

333 {
335  FIXME("(%p)->(%p)\n", This, p);
336  return E_NOTIMPL;
337 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTextAreaElement_get_defaultValue()

static HRESULT WINAPI HTMLTextAreaElement_get_defaultValue ( IHTMLTextAreaElement *  iface,
BSTR p 
)
static

Definition at line 229 of file htmltextarea.c.

230 {
232  nsAString nsstr;
233  nsresult nsres;
234 
235  TRACE("(%p)->(%p)\n", This, p);
236 
237  nsAString_Init(&nsstr, NULL);
238  nsres = nsIDOMHTMLTextAreaElement_GetDefaultValue(This->nstextarea, &nsstr);
239  return return_nsstr(nsres, &nsstr, p);
240 }
smooth NULL
Definition: ftsmooth.c:416
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
#define TRACE(s)
Definition: solgame.cpp:4
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTextAreaElement_get_disabled()

static HRESULT WINAPI HTMLTextAreaElement_get_disabled ( IHTMLTextAreaElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 175 of file htmltextarea.c.

176 {
178  FIXME("(%p)->(%p)\n", This, p);
179  return E_NOTIMPL;
180 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTextAreaElement_get_form()

static HRESULT WINAPI HTMLTextAreaElement_get_form ( IHTMLTextAreaElement *  iface,
IHTMLFormElement **  p 
)
static

Definition at line 182 of file htmltextarea.c.

183 {
185  nsIDOMHTMLFormElement *nsform;
186  nsIDOMNode *nsnode;
187  HTMLDOMNode *node;
188  nsresult nsres;
189  HRESULT hres;
190 
191  TRACE("(%p)->(%p)\n", This, p);
192 
193  nsres = nsIDOMHTMLTextAreaElement_GetForm(This->nstextarea, &nsform);
194  assert(nsres == NS_OK);
195 
196  if(!nsform) {
197  *p = NULL;
198  return S_OK;
199  }
200 
201  nsres = nsIDOMHTMLFormElement_QueryInterface(nsform, &IID_nsIDOMNode, (void**)&nsnode);
202  nsIDOMHTMLFormElement_Release(nsform);
203  assert(nsres == NS_OK);
204 
205  hres = get_node(This->element.node.doc, nsnode, TRUE, &node);
206  nsIDOMNode_Release(nsnode);
207  if(FAILED(hres))
208  return hres;
209 
210  hres = IHTMLDOMNode_QueryInterface(&node->IHTMLDOMNode_iface, &IID_IHTMLFormElement, (void**)p);
211  IHTMLDOMNode_Release(&node->IHTMLDOMNode_iface);
212  return hres;
213 }
#define TRUE
Definition: types.h:120
#define assert(x)
Definition: debug.h:53
#define NS_OK
struct node node
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
#define S_OK
Definition: intsafe.h:59
HRESULT get_node(HTMLDocumentNode *This, nsIDOMNode *nsnode, BOOL create, HTMLDOMNode **ret)
Definition: htmlnode.c:1339
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902
Definition: dlist.c:348

◆ HTMLTextAreaElement_get_name()

static HRESULT WINAPI HTMLTextAreaElement_get_name ( IHTMLTextAreaElement *  iface,
BSTR p 
)
static

Definition at line 141 of file htmltextarea.c.

142 {
144  nsAString name_str;
145  nsresult nsres;
146 
147  TRACE("(%p)->(%p)\n", This, p);
148 
149  nsAString_Init(&name_str, NULL);
150  nsres = nsIDOMHTMLTextAreaElement_GetName(This->nstextarea, &name_str);
151  return return_nsstr(nsres, &name_str, p);
152 }
smooth NULL
Definition: ftsmooth.c:416
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
#define TRACE(s)
Definition: solgame.cpp:4
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTextAreaElement_get_onchange()

static HRESULT WINAPI HTMLTextAreaElement_get_onchange ( IHTMLTextAreaElement *  iface,
VARIANT p 
)
static

Definition at line 256 of file htmltextarea.c.

257 {
259  FIXME("(%p)->(%p)\n", This, p);
260  return E_NOTIMPL;
261 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTextAreaElement_get_onselect()

static HRESULT WINAPI HTMLTextAreaElement_get_onselect ( IHTMLTextAreaElement *  iface,
VARIANT p 
)
static

Definition at line 270 of file htmltextarea.c.

271 {
273  FIXME("(%p)->(%p)\n", This, p);
274  return E_NOTIMPL;
275 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTextAreaElement_get_readOnly()

static HRESULT WINAPI HTMLTextAreaElement_get_readOnly ( IHTMLTextAreaElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 293 of file htmltextarea.c.

294 {
296  cpp_bool b;
297  nsresult nsres;
298 
299  TRACE("(%p)->(%p)\n", This, p);
300 
301  nsres = nsIDOMHTMLTextAreaElement_GetReadOnly(This->nstextarea, &b);
302  if(NS_FAILED(nsres)) {
303  ERR("GetReadOnly failed: %08x\n", nsres);
304  return E_FAIL;
305  }
306 
307  *p = b ? VARIANT_TRUE : VARIANT_FALSE;
308  return S_OK;
309 }
#define E_FAIL
Definition: ddrawi.h:102
#define b
Definition: ke_i.h:79
#define NS_FAILED(res)
unsigned char cpp_bool
Definition: atl.c:39
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define TRACE(s)
Definition: solgame.cpp:4
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTextAreaElement_get_rows()

static HRESULT WINAPI HTMLTextAreaElement_get_rows ( IHTMLTextAreaElement *  iface,
LONG p 
)
static

Definition at line 318 of file htmltextarea.c.

319 {
321  FIXME("(%p)->(%p)\n", This, p);
322  return E_NOTIMPL;
323 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTextAreaElement_get_status()

static HRESULT WINAPI HTMLTextAreaElement_get_status ( IHTMLTextAreaElement *  iface,
VARIANT p 
)
static

Definition at line 161 of file htmltextarea.c.

162 {
164  FIXME("(%p)->(%p)\n", This, p);
165  return E_NOTIMPL;
166 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTextAreaElement_get_type()

static HRESULT WINAPI HTMLTextAreaElement_get_type ( IHTMLTextAreaElement *  iface,
BSTR p 
)
static

Definition at line 88 of file htmltextarea.c.

89 {
90  static const WCHAR textareaW[] = {'t','e','x','t','a','r','e','a',0};
91 
93 
94  TRACE("(%p)->(%p)\n", This, p);
95 
97  if(!*p)
98  return E_OUTOFMEMORY;
99  return S_OK;
100 }
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const WCHAR textareaW[]
Definition: htmlelem.c:42
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define S_OK
Definition: intsafe.h:59
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTextAreaElement_get_value()

static HRESULT WINAPI HTMLTextAreaElement_get_value ( IHTMLTextAreaElement *  iface,
BSTR p 
)
static

Definition at line 121 of file htmltextarea.c.

122 {
125  nsresult nsres;
126 
127  TRACE("(%p)->(%p)\n", This, p);
128 
130  nsres = nsIDOMHTMLTextAreaElement_GetValue(This->nstextarea, &value_str);
131  return return_nsstr(nsres, &value_str, p);
132 }
smooth NULL
Definition: ftsmooth.c:416
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
#define TRACE(s)
Definition: solgame.cpp:4
static UNICODE_STRING value_str
Definition: reg.c:1328
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTextAreaElement_get_wrap()

static HRESULT WINAPI HTMLTextAreaElement_get_wrap ( IHTMLTextAreaElement *  iface,
BSTR p 
)
static

Definition at line 346 of file htmltextarea.c.

347 {
349  FIXME("(%p)->(%p)\n", This, p);
350  return E_NOTIMPL;
351 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTextAreaElement_GetIDsOfNames()

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

Definition at line 70 of file htmltextarea.c.

73 {
75  return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
76  cNames, lcid, rgDispId);
77 }
REFIID riid
Definition: precomp.h:44
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_GetTypeInfo()

static HRESULT WINAPI HTMLTextAreaElement_GetTypeInfo ( IHTMLTextAreaElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 62 of file htmltextarea.c.

64 {
66  return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
67  ppTInfo);
68 }
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLTextAreaElement_GetTypeInfoCount ( IHTMLTextAreaElement *  iface,
UINT pctinfo 
)
static

Definition at line 56 of file htmltextarea.c.

57 {
59  return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
60 }
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_Invoke()

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

Definition at line 79 of file htmltextarea.c.

82 {
84  return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
85  lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
86 }
REFIID riid
Definition: precomp.h:44
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_is_text_edit()

static BOOL HTMLTextAreaElement_is_text_edit ( HTMLDOMNode iface)
static

Definition at line 439 of file htmltextarea.c.

440 {
441  return TRUE;
442 }
#define TRUE
Definition: types.h:120

◆ HTMLTextAreaElement_put_cols()

static HRESULT WINAPI HTMLTextAreaElement_put_cols ( IHTMLTextAreaElement *  iface,
LONG  v 
)
static

Definition at line 325 of file htmltextarea.c.

326 {
328  FIXME("(%p)->(%d)\n", This, v);
329  return E_NOTIMPL;
330 }
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_put_defaultValue()

static HRESULT WINAPI HTMLTextAreaElement_put_defaultValue ( IHTMLTextAreaElement *  iface,
BSTR  v 
)
static

Definition at line 215 of file htmltextarea.c.

216 {
218  nsAString nsstr;
219  nsresult nsres;
220 
221  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
222 
223  nsAString_InitDepend(&nsstr, v);
224  nsres = nsIDOMHTMLTextAreaElement_SetDefaultValue(This->nstextarea, &nsstr);
225  nsAString_Finish(&nsstr);
226  return NS_SUCCEEDED(nsres) ? S_OK : E_FAIL;
227 }
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
#define NS_SUCCEEDED(res)
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLTextAreaElement_put_disabled()

static HRESULT WINAPI HTMLTextAreaElement_put_disabled ( IHTMLTextAreaElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 168 of file htmltextarea.c.

169 {
171  FIXME("(%p)->(%x)\n", This, v);
172  return E_NOTIMPL;
173 }
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_put_name()

static HRESULT WINAPI HTMLTextAreaElement_put_name ( IHTMLTextAreaElement *  iface,
BSTR  v 
)
static

Definition at line 134 of file htmltextarea.c.

135 {
137  FIXME("(%p)->(%s)\n", This, debugstr_w(v));
138  return E_NOTIMPL;
139 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_put_onchange()

static HRESULT WINAPI HTMLTextAreaElement_put_onchange ( IHTMLTextAreaElement *  iface,
VARIANT  v 
)
static

Definition at line 249 of file htmltextarea.c.

250 {
252  FIXME("(%p)->()\n", This);
253  return E_NOTIMPL;
254 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_put_onselect()

static HRESULT WINAPI HTMLTextAreaElement_put_onselect ( IHTMLTextAreaElement *  iface,
VARIANT  v 
)
static

Definition at line 263 of file htmltextarea.c.

264 {
266  FIXME("(%p)->()\n", This);
267  return E_NOTIMPL;
268 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_put_readOnly()

static HRESULT WINAPI HTMLTextAreaElement_put_readOnly ( IHTMLTextAreaElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 277 of file htmltextarea.c.

278 {
280  nsresult nsres;
281 
282  TRACE("(%p)->(%x)\n", This, v);
283 
284  nsres = nsIDOMHTMLTextAreaElement_SetReadOnly(This->nstextarea, v != VARIANT_FALSE);
285  if(NS_FAILED(nsres)) {
286  ERR("SetReadOnly failed: %08x\n", nsres);
287  return E_FAIL;
288  }
289 
290  return S_OK;
291 }
#define E_FAIL
Definition: ddrawi.h:102
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLTextAreaElement_put_rows()

static HRESULT WINAPI HTMLTextAreaElement_put_rows ( IHTMLTextAreaElement *  iface,
LONG  v 
)
static

Definition at line 311 of file htmltextarea.c.

312 {
314  FIXME("(%p)->(%d)\n", This, v);
315  return E_NOTIMPL;
316 }
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_put_status()

static HRESULT WINAPI HTMLTextAreaElement_put_status ( IHTMLTextAreaElement *  iface,
VARIANT  v 
)
static

Definition at line 154 of file htmltextarea.c.

155 {
157  FIXME("(%p)->()\n", This);
158  return E_NOTIMPL;
159 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_put_value()

static HRESULT WINAPI HTMLTextAreaElement_put_value ( IHTMLTextAreaElement *  iface,
BSTR  v 
)
static

Definition at line 102 of file htmltextarea.c.

103 {
106  nsresult nsres;
107 
108  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
109 
111  nsres = nsIDOMHTMLTextAreaElement_SetValue(This->nstextarea, &value_str);
113  if(NS_FAILED(nsres)) {
114  ERR("SetValue failed: %08x\n", nsres);
115  return E_FAIL;
116  }
117 
118  return S_OK;
119 }
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
static UNICODE_STRING value_str
Definition: reg.c:1328
const GLdouble * v
Definition: gl.h:2040
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLTextAreaElement_put_wrap()

static HRESULT WINAPI HTMLTextAreaElement_put_wrap ( IHTMLTextAreaElement *  iface,
BSTR  v 
)
static

Definition at line 339 of file htmltextarea.c.

340 {
342  FIXME("(%p)->(%s)\n", This, debugstr_w(v));
343  return E_NOTIMPL;
344 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_QI()

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

Definition at line 402 of file htmltextarea.c.

403 {
405 
406  *ppv = NULL;
407 
408  if(IsEqualGUID(&IID_IUnknown, riid)) {
409  TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
410  *ppv = &This->IHTMLTextAreaElement_iface;
411  }else if(IsEqualGUID(&IID_IDispatch, riid)) {
412  TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
413  *ppv = &This->IHTMLTextAreaElement_iface;
414  }else if(IsEqualGUID(&IID_IHTMLTextAreaElement, riid)) {
415  TRACE("(%p)->(IID_IHTMLTextAreaElement %p)\n", This, ppv);
416  *ppv = &This->IHTMLTextAreaElement_iface;
417  }
418 
419  if(*ppv) {
420  IUnknown_AddRef((IUnknown*)*ppv);
421  return S_OK;
422  }
423 
424  return HTMLElement_QI(&This->element.node, riid, ppv);
425 }
REFIID riid
Definition: precomp.h:44
static HTMLTextAreaElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmltextarea.c:397
REFIID LPVOID * ppv
Definition: atlbase.h:39
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:3738
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
const GUID IID_IDispatch
#define S_OK
Definition: intsafe.h:59
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4021

◆ HTMLTextAreaElement_QueryInterface()

static HRESULT WINAPI HTMLTextAreaElement_QueryInterface ( IHTMLTextAreaElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 34 of file htmltextarea.c.

36 {
38 
39  return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
40 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_Release()

static ULONG WINAPI HTMLTextAreaElement_Release ( IHTMLTextAreaElement *  iface)
static

Definition at line 49 of file htmltextarea.c.

50 {
52 
53  return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
54 }
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_select()

static HRESULT WINAPI HTMLTextAreaElement_select ( IHTMLTextAreaElement *  iface)
static

Definition at line 242 of file htmltextarea.c.

243 {
245  FIXME("(%p)\n", This);
246  return E_NOTIMPL;
247 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29

◆ HTMLTextAreaElement_traverse()

static void HTMLTextAreaElement_traverse ( HTMLDOMNode iface,
nsCycleCollectionTraversalCallback cb 
)
static

Definition at line 444 of file htmltextarea.c.

445 {
447 
448  if(This->nstextarea)
449  note_cc_edge((nsISupports*)This->nstextarea, "This->nstextarea", cb);
450 }
static HTMLTextAreaElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmltextarea.c:397
static DWORD cb
Definition: integrity.c:41

◆ HTMLTextAreaElement_unlink()

static void HTMLTextAreaElement_unlink ( HTMLDOMNode iface)
static

Definition at line 452 of file htmltextarea.c.

453 {
455 
456  if(This->nstextarea) {
457  nsIDOMHTMLTextAreaElement *nstextarea = This->nstextarea;
458 
459  This->nstextarea = NULL;
460  nsIDOMHTMLTextAreaElement_Release(nstextarea);
461  }
462 }
static HTMLTextAreaElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmltextarea.c:397
smooth NULL
Definition: ftsmooth.c:416

◆ HTMLTextAreaElementImpl_get_disabled()

static HRESULT HTMLTextAreaElementImpl_get_disabled ( HTMLDOMNode iface,
VARIANT_BOOL p 
)
static

Definition at line 433 of file htmltextarea.c.

434 {
436  return IHTMLTextAreaElement_get_disabled(&This->IHTMLTextAreaElement_iface, p);
437 }
static HTMLTextAreaElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmltextarea.c:397
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTextAreaElementImpl_put_disabled()

static HRESULT HTMLTextAreaElementImpl_put_disabled ( HTMLDOMNode iface,
VARIANT_BOOL  v 
)
static

Definition at line 427 of file htmltextarea.c.

428 {
430  return IHTMLTextAreaElement_put_disabled(&This->IHTMLTextAreaElement_iface, v);
431 }
static HTMLTextAreaElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmltextarea.c:397
const GLdouble * v
Definition: gl.h:2040

◆ impl_from_HTMLDOMNode()

static HTMLTextAreaElement* impl_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

Definition at line 397 of file htmltextarea.c.

398 {
399  return CONTAINING_RECORD(iface, HTMLTextAreaElement, element.node);
400 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by HTMLTextAreaElement_QI(), HTMLTextAreaElement_traverse(), HTMLTextAreaElement_unlink(), HTMLTextAreaElementImpl_get_disabled(), and HTMLTextAreaElementImpl_put_disabled().

◆ impl_from_IHTMLTextAreaElement()

static HTMLTextAreaElement* impl_from_IHTMLTextAreaElement ( IHTMLTextAreaElement *  iface)
inlinestatic

Definition at line 29 of file htmltextarea.c.

30 {
31  return CONTAINING_RECORD(iface, HTMLTextAreaElement, IHTMLTextAreaElement_iface);
32 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by HTMLTextAreaElement_AddRef(), HTMLTextAreaElement_createTextRange(), HTMLTextAreaElement_get_cols(), HTMLTextAreaElement_get_defaultValue(), HTMLTextAreaElement_get_disabled(), HTMLTextAreaElement_get_form(), HTMLTextAreaElement_get_name(), HTMLTextAreaElement_get_onchange(), HTMLTextAreaElement_get_onselect(), HTMLTextAreaElement_get_readOnly(), HTMLTextAreaElement_get_rows(), HTMLTextAreaElement_get_status(), HTMLTextAreaElement_get_type(), HTMLTextAreaElement_get_value(), HTMLTextAreaElement_get_wrap(), HTMLTextAreaElement_GetIDsOfNames(), HTMLTextAreaElement_GetTypeInfo(), HTMLTextAreaElement_GetTypeInfoCount(), HTMLTextAreaElement_Invoke(), HTMLTextAreaElement_put_cols(), HTMLTextAreaElement_put_defaultValue(), HTMLTextAreaElement_put_disabled(), HTMLTextAreaElement_put_name(), HTMLTextAreaElement_put_onchange(), HTMLTextAreaElement_put_onselect(), HTMLTextAreaElement_put_readOnly(), HTMLTextAreaElement_put_rows(), HTMLTextAreaElement_put_status(), HTMLTextAreaElement_put_value(), HTMLTextAreaElement_put_wrap(), HTMLTextAreaElement_QueryInterface(), HTMLTextAreaElement_Release(), and HTMLTextAreaElement_select().

Variable Documentation

◆ HTMLTextAreaElement_dispex

dispex_static_data_t HTMLTextAreaElement_dispex
static
Initial value:
= {
DispHTMLTextAreaElement_tid,
}
static const tid_t HTMLTextAreaElement_iface_tids[]
Definition: htmltextarea.c:485
smooth NULL
Definition: ftsmooth.c:416

Definition at line 491 of file htmltextarea.c.

Referenced by HTMLTextAreaElement_Create().

◆ HTMLTextAreaElement_iface_tids

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

Definition at line 485 of file htmltextarea.c.

◆ HTMLTextAreaElementImplVtbl

const NodeImplVtbl HTMLTextAreaElementImplVtbl
static
Initial value:
= {
}
static void HTMLTextAreaElement_unlink(HTMLDOMNode *iface)
Definition: htmltextarea.c:452
static HRESULT HTMLTextAreaElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmltextarea.c:402
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 void HTMLTextAreaElement_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
Definition: htmltextarea.c:444
smooth NULL
Definition: ftsmooth.c:416
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
static HRESULT HTMLTextAreaElementImpl_get_disabled(HTMLDOMNode *iface, VARIANT_BOOL *p)
Definition: htmltextarea.c:433
static HRESULT HTMLTextAreaElementImpl_put_disabled(HTMLDOMNode *iface, VARIANT_BOOL v)
Definition: htmltextarea.c:427
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
Definition: htmlelem.c:3793
static BOOL HTMLTextAreaElement_is_text_edit(HTMLDOMNode *iface)
Definition: htmltextarea.c:439

Definition at line 464 of file htmltextarea.c.

Referenced by HTMLTextAreaElement_Create().

◆ HTMLTextAreaElementVtbl

const IHTMLTextAreaElementVtbl HTMLTextAreaElementVtbl
static

Definition at line 361 of file htmltextarea.c.

Referenced by HTMLTextAreaElement_Create().