ReactOS  0.4.13-dev-651-g5dbc677
htmltablerow.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmltablerow.c:

Go to the source code of this file.

Classes

struct  HTMLTableRow
 

Functions

static HTMLTableRowimpl_from_IHTMLTableRow (IHTMLTableRow *iface)
 
static HRESULT WINAPI HTMLTableRow_QueryInterface (IHTMLTableRow *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLTableRow_AddRef (IHTMLTableRow *iface)
 
static ULONG WINAPI HTMLTableRow_Release (IHTMLTableRow *iface)
 
static HRESULT WINAPI HTMLTableRow_GetTypeInfoCount (IHTMLTableRow *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLTableRow_GetTypeInfo (IHTMLTableRow *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLTableRow_GetIDsOfNames (IHTMLTableRow *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLTableRow_Invoke (IHTMLTableRow *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLTableRow_put_align (IHTMLTableRow *iface, BSTR v)
 
static HRESULT WINAPI HTMLTableRow_get_align (IHTMLTableRow *iface, BSTR *p)
 
static HRESULT WINAPI HTMLTableRow_put_vAlign (IHTMLTableRow *iface, BSTR v)
 
static HRESULT WINAPI HTMLTableRow_get_vAlign (IHTMLTableRow *iface, BSTR *p)
 
static HRESULT WINAPI HTMLTableRow_put_bgColor (IHTMLTableRow *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTableRow_get_bgColor (IHTMLTableRow *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTableRow_put_borderColor (IHTMLTableRow *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTableRow_get_borderColor (IHTMLTableRow *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTableRow_put_borderColorLight (IHTMLTableRow *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTableRow_get_borderColorLight (IHTMLTableRow *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTableRow_put_borderColorDark (IHTMLTableRow *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTableRow_get_borderColorDark (IHTMLTableRow *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTableRow_get_rowIndex (IHTMLTableRow *iface, LONG *p)
 
static HRESULT WINAPI HTMLTableRow_get_sectionRowIndex (IHTMLTableRow *iface, LONG *p)
 
static HRESULT WINAPI HTMLTableRow_get_cells (IHTMLTableRow *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI HTMLTableRow_insertCell (IHTMLTableRow *iface, LONG index, IDispatch **row)
 
static HRESULT WINAPI HTMLTableRow_deleteCell (IHTMLTableRow *iface, LONG index)
 
static HTMLTableRowimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLTableRow_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static void HTMLTableRow_traverse (HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
 
static void HTMLTableRow_unlink (HTMLDOMNode *iface)
 
HRESULT HTMLTableRow_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 

Variables

static const IHTMLTableRowVtbl HTMLTableRowVtbl
 
static const NodeImplVtbl HTMLTableRowImplVtbl
 
static const tid_t HTMLTableRow_iface_tids []
 
static dispex_static_data_t HTMLTableRow_dispex
 

Function Documentation

◆ HTMLTableRow_AddRef()

static ULONG WINAPI HTMLTableRow_AddRef ( IHTMLTableRow *  iface)
static

Definition at line 42 of file htmltablerow.c.

43 {
45 
46  return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
47 }
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29

◆ HTMLTableRow_Create()

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

Definition at line 444 of file htmltablerow.c.

445 {
446  HTMLTableRow *ret;
447  nsresult nsres;
448 
449  ret = heap_alloc_zero(sizeof(HTMLTableRow));
450  if(!ret)
451  return E_OUTOFMEMORY;
452 
453  ret->IHTMLTableRow_iface.lpVtbl = &HTMLTableRowVtbl;
454  ret->element.node.vtbl = &HTMLTableRowImplVtbl;
455 
456  HTMLElement_Init(&ret->element, doc, nselem, &HTMLTableRow_dispex);
457 
458  nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLTableRowElement, (void**)&ret->nsrow);
459  assert(nsres == NS_OK);
460 
461  *elem = &ret->element;
462  return S_OK;
463 }
static const IHTMLTableRowVtbl HTMLTableRowVtbl
Definition: htmltablerow.c:334
static const NodeImplVtbl HTMLTableRowImplVtbl
Definition: htmltablerow.c:411
static dispex_static_data_t HTMLTableRow_dispex
Definition: htmltablerow.c:437
#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
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

Referenced by HTMLTable_insertRow().

◆ HTMLTableRow_deleteCell()

static HRESULT WINAPI HTMLTableRow_deleteCell ( IHTMLTableRow *  iface,
LONG  index 
)
static

Definition at line 320 of file htmltablerow.c.

321 {
323  nsresult nsres;
324 
325  TRACE("(%p)->(%d)\n", This, index);
326  nsres = nsIDOMHTMLTableRowElement_DeleteCell(This->nsrow, index);
327  if(NS_FAILED(nsres)) {
328  ERR("Delete Cell failed: %08x\n", nsres);
329  return E_FAIL;
330  }
331  return S_OK;
332 }
#define E_FAIL
Definition: ddrawi.h:102
GLuint index
Definition: glext.h:6031
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
#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
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLTableRow_get_align()

static HRESULT WINAPI HTMLTableRow_get_align ( IHTMLTableRow *  iface,
BSTR p 
)
static

Definition at line 107 of file htmltablerow.c.

108 {
110  nsAString val;
111  nsresult nsres;
112 
113  TRACE("(%p)->(%p)\n", This, p);
114 
116  nsres = nsIDOMHTMLTableRowElement_GetAlign(This->nsrow, &val);
117 
118  return return_nsstr(nsres, &val, p);
119 }
smooth NULL
Definition: ftsmooth.c:416
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
GLuint GLfloat * val
Definition: glext.h:7180
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
#define TRACE(s)
Definition: solgame.cpp:4
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

◆ HTMLTableRow_get_bgColor()

static HRESULT WINAPI HTMLTableRow_get_bgColor ( IHTMLTableRow *  iface,
VARIANT p 
)
static

Definition at line 178 of file htmltablerow.c.

179 {
181  nsAString strColor;
182  nsresult nsres;
183  HRESULT hres;
184  const PRUnichar *color;
185 
186  TRACE("(%p)->(%p)\n", This, p);
187 
188  nsAString_Init(&strColor, NULL);
189  nsres = nsIDOMHTMLTableRowElement_GetBgColor(This->nsrow, &strColor);
190 
191  if(NS_SUCCEEDED(nsres)) {
192  nsAString_GetData(&strColor, &color);
193  V_VT(p) = VT_BSTR;
195  }else {
196  ERR("SetBgColor failed: %08x\n", nsres);
197  hres = E_FAIL;
198  }
199 
200  nsAString_Finish(&strColor);
201  return hres;
202 }
#define E_FAIL
Definition: ddrawi.h:102
GLuint color
Definition: glext.h:6243
smooth NULL
Definition: ftsmooth.c:416
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
#define NS_SUCCEEDED(res)
HRESULT nscolor_to_str(LPCWSTR color, BSTR *ret)
Definition: htmlbody.c:111
#define V_VT(A)
Definition: oleauto.h:211
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
#define V_BSTR(A)
Definition: oleauto.h:226
#define ERR(fmt,...)
Definition: debug.h:109
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39
WCHAR PRUnichar
Definition: nsiface.idl:48
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTableRow_get_borderColor()

static HRESULT WINAPI HTMLTableRow_get_borderColor ( IHTMLTableRow *  iface,
VARIANT p 
)
static

Definition at line 211 of file htmltablerow.c.

212 {
214  FIXME("(%p)->(%p)\n", This, p);
215  return E_NOTIMPL;
216 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTableRow_get_borderColorDark()

static HRESULT WINAPI HTMLTableRow_get_borderColorDark ( IHTMLTableRow *  iface,
VARIANT p 
)
static

Definition at line 239 of file htmltablerow.c.

240 {
242  FIXME("(%p)->(%p)\n", This, p);
243  return E_NOTIMPL;
244 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTableRow_get_borderColorLight()

static HRESULT WINAPI HTMLTableRow_get_borderColorLight ( IHTMLTableRow *  iface,
VARIANT p 
)
static

Definition at line 225 of file htmltablerow.c.

226 {
228  FIXME("(%p)->(%p)\n", This, p);
229  return E_NOTIMPL;
230 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTableRow_get_cells()

static HRESULT WINAPI HTMLTableRow_get_cells ( IHTMLTableRow *  iface,
IHTMLElementCollection **  p 
)
static

Definition at line 274 of file htmltablerow.c.

275 {
277  nsIDOMHTMLCollection *nscol;
278  nsresult nsres;
279 
280  TRACE("(%p)->(%p)\n", This, p);
281 
282  nsres = nsIDOMHTMLTableRowElement_GetCells(This->nsrow, &nscol);
283  if(NS_FAILED(nsres)) {
284  ERR("GetCells failed: %08x\n", nsres);
285  return E_FAIL;
286  }
287 
288  *p = create_collection_from_htmlcol(This->element.node.doc, nscol);
289 
290  nsIDOMHTMLCollection_Release(nscol);
291  return S_OK;
292 }
#define E_FAIL
Definition: ddrawi.h:102
IHTMLElementCollection * create_collection_from_htmlcol(HTMLDocumentNode *doc, nsIDOMHTMLCollection *nscol)
Definition: htmlelemcol.c:705
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
#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
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTableRow_get_rowIndex()

static HRESULT WINAPI HTMLTableRow_get_rowIndex ( IHTMLTableRow *  iface,
LONG p 
)
static

Definition at line 246 of file htmltablerow.c.

247 {
249  nsresult nsres;
250 
251  TRACE("(%p)->(%p)\n", This, p);
252  nsres = nsIDOMHTMLTableRowElement_GetRowIndex(This->nsrow, p);
253  if(NS_FAILED(nsres)) {
254  ERR("Get rowIndex failed: %08x\n", nsres);
255  return E_FAIL;
256  }
257  return S_OK;
258 }
#define E_FAIL
Definition: ddrawi.h:102
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
#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
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTableRow_get_sectionRowIndex()

static HRESULT WINAPI HTMLTableRow_get_sectionRowIndex ( IHTMLTableRow *  iface,
LONG p 
)
static

Definition at line 260 of file htmltablerow.c.

261 {
263  nsresult nsres;
264 
265  TRACE("(%p)->(%p)\n", This, p);
266  nsres = nsIDOMHTMLTableRowElement_GetSectionRowIndex(This->nsrow, p);
267  if(NS_FAILED(nsres)) {
268  ERR("Get selectionRowIndex failed: %08x\n", nsres);
269  return E_FAIL;
270  }
271  return S_OK;
272 }
#define E_FAIL
Definition: ddrawi.h:102
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
#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
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTableRow_get_vAlign()

static HRESULT WINAPI HTMLTableRow_get_vAlign ( IHTMLTableRow *  iface,
BSTR p 
)
static

Definition at line 142 of file htmltablerow.c.

143 {
145  nsAString val;
146  nsresult nsres;
147 
148  TRACE("(%p)->(%p)\n", This, p);
149 
151  nsres = nsIDOMHTMLTableRowElement_GetVAlign(This->nsrow, &val);
152 
153  return return_nsstr(nsres, &val, p);
154 }
smooth NULL
Definition: ftsmooth.c:416
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
GLuint GLfloat * val
Definition: glext.h:7180
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
#define TRACE(s)
Definition: solgame.cpp:4
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

◆ HTMLTableRow_GetIDsOfNames()

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

Definition at line 70 of file htmltablerow.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 HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29

◆ HTMLTableRow_GetTypeInfo()

static HRESULT WINAPI HTMLTableRow_GetTypeInfo ( IHTMLTableRow *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 62 of file htmltablerow.c.

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

◆ HTMLTableRow_GetTypeInfoCount()

static HRESULT WINAPI HTMLTableRow_GetTypeInfoCount ( IHTMLTableRow *  iface,
UINT pctinfo 
)
static

Definition at line 56 of file htmltablerow.c.

57 {
59  return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
60 }
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29

◆ HTMLTableRow_insertCell()

static HRESULT WINAPI HTMLTableRow_insertCell ( IHTMLTableRow *  iface,
LONG  index,
IDispatch **  row 
)
static

Definition at line 294 of file htmltablerow.c.

295 {
297  nsIDOMHTMLElement *nselem;
298  HTMLElement *elem;
299  nsresult nsres;
300  HRESULT hres;
301 
302  TRACE("(%p)->(%d %p)\n", This, index, row);
303  nsres = nsIDOMHTMLTableRowElement_InsertCell(This->nsrow, index, &nselem);
304  if(NS_FAILED(nsres)) {
305  ERR("Insert Cell at %d failed: %08x\n", index, nsres);
306  return E_FAIL;
307  }
308 
309  hres = HTMLTableCell_Create(This->element.node.doc, nselem, &elem);
310  nsIDOMHTMLElement_Release(nselem);
311  if (FAILED(hres)) {
312  ERR("Create TableCell failed: %08x\n", hres);
313  return hres;
314  }
315 
316  *row = (IDispatch *)&elem->IHTMLElement_iface;
317  return S_OK;
318 }
HRESULT HTMLTableCell_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
#define E_FAIL
Definition: ddrawi.h:102
static size_t elem
Definition: string.c:68
GLuint index
Definition: glext.h:6031
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
HRESULT nsresult
Definition: nsiface.idl:39
struct png_info_def *typedef unsigned char **typedef struct png_info_def *typedef struct png_info_def *typedef struct png_info_def *typedef unsigned char ** row
Definition: typeof.h:78

◆ HTMLTableRow_Invoke()

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

Definition at line 79 of file htmltablerow.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
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519

◆ HTMLTableRow_put_align()

static HRESULT WINAPI HTMLTableRow_put_align ( IHTMLTableRow *  iface,
BSTR  v 
)
static

Definition at line 88 of file htmltablerow.c.

89 {
91  nsAString val;
92  nsresult nsres;
93 
94  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
95 
97 
98  nsres = nsIDOMHTMLTableRowElement_SetAlign(This->nsrow, &val);
100  if (NS_FAILED(nsres)){
101  ERR("Set Align(%s) failed!\n", debugstr_w(v));
102  return E_FAIL;
103  }
104  return S_OK;
105 }
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
GLuint GLfloat * val
Definition: glext.h:7180
#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
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

◆ HTMLTableRow_put_bgColor()

static HRESULT WINAPI HTMLTableRow_put_bgColor ( IHTMLTableRow *  iface,
VARIANT  v 
)
static

Definition at line 156 of file htmltablerow.c.

157 {
159  nsAString val;
160  nsresult nsres;
161 
162  TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
163 
164  if (!variant_to_nscolor(&v, &val))
165  return S_OK;
166 
167  nsres = nsIDOMHTMLTableRowElement_SetBgColor(This->nsrow, &val);
169 
170  if (NS_FAILED(nsres)){
171  ERR("Set BgColor(%s) failed!\n", debugstr_variant(&v));
172  return E_FAIL;
173  }
174 
175  return S_OK;
176 }
#define E_FAIL
Definition: ddrawi.h:102
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
GLuint GLfloat * val
Definition: glext.h:7180
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
BOOL variant_to_nscolor(const VARIANT *v, nsAString *nsstr)
Definition: htmlbody.c:142
#define ERR(fmt,...)
Definition: debug.h:109
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLTableRow_put_borderColor()

static HRESULT WINAPI HTMLTableRow_put_borderColor ( IHTMLTableRow *  iface,
VARIANT  v 
)
static

Definition at line 204 of file htmltablerow.c.

205 {
207  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
208  return E_NOTIMPL;
209 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLTableRow_put_borderColorDark()

static HRESULT WINAPI HTMLTableRow_put_borderColorDark ( IHTMLTableRow *  iface,
VARIANT  v 
)
static

Definition at line 232 of file htmltablerow.c.

233 {
235  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
236  return E_NOTIMPL;
237 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLTableRow_put_borderColorLight()

static HRESULT WINAPI HTMLTableRow_put_borderColorLight ( IHTMLTableRow *  iface,
VARIANT  v 
)
static

Definition at line 218 of file htmltablerow.c.

219 {
221  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
222  return E_NOTIMPL;
223 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLTableRow_put_vAlign()

static HRESULT WINAPI HTMLTableRow_put_vAlign ( IHTMLTableRow *  iface,
BSTR  v 
)
static

Definition at line 121 of file htmltablerow.c.

122 {
124  nsAString val;
125  nsresult nsres;
126 
127  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
128 
130 
131  nsres = nsIDOMHTMLTableRowElement_SetVAlign(This->nsrow, &val);
133 
134  if (NS_FAILED(nsres)){
135  ERR("Set VAlign(%s) failed!\n", debugstr_w(v));
136  return E_FAIL;
137  }
138 
139  return S_OK;
140 }
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29
GLuint GLfloat * val
Definition: glext.h:7180
#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
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

◆ HTMLTableRow_QI()

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

Definition at line 366 of file htmltablerow.c.

367 {
369 
370  *ppv = NULL;
371 
372  if(IsEqualGUID(&IID_IUnknown, riid)) {
373  TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
374  *ppv = &This->IHTMLTableRow_iface;
375  }else if(IsEqualGUID(&IID_IDispatch, riid)) {
376  TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
377  *ppv = &This->IHTMLTableRow_iface;
378  }else if(IsEqualGUID(&IID_IHTMLTableRow, riid)) {
379  TRACE("(%p)->(IID_IHTMLTableRow %p)\n", This, ppv);
380  *ppv = &This->IHTMLTableRow_iface;
381  }
382 
383  if(*ppv) {
384  IUnknown_AddRef((IUnknown*)*ppv);
385  return S_OK;
386  }
387 
388  return HTMLElement_QI(&This->element.node, riid, ppv);
389 }
REFIID riid
Definition: precomp.h:44
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
static HTMLTableRow * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmltablerow.c:361
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

◆ HTMLTableRow_QueryInterface()

static HRESULT WINAPI HTMLTableRow_QueryInterface ( IHTMLTableRow *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 34 of file htmltablerow.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 HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29

◆ HTMLTableRow_Release()

static ULONG WINAPI HTMLTableRow_Release ( IHTMLTableRow *  iface)
static

Definition at line 49 of file htmltablerow.c.

50 {
52 
53  return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
54 }
static HTMLTableRow * impl_from_IHTMLTableRow(IHTMLTableRow *iface)
Definition: htmltablerow.c:29

◆ HTMLTableRow_traverse()

static void HTMLTableRow_traverse ( HTMLDOMNode iface,
nsCycleCollectionTraversalCallback cb 
)
static

Definition at line 391 of file htmltablerow.c.

392 {
394 
395  if(This->nsrow)
396  note_cc_edge((nsISupports*)This->nsrow, "This->nstablerow", cb);
397 }
static HTMLTableRow * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmltablerow.c:361
static DWORD cb
Definition: integrity.c:41

◆ HTMLTableRow_unlink()

static void HTMLTableRow_unlink ( HTMLDOMNode iface)
static

Definition at line 399 of file htmltablerow.c.

400 {
402 
403  if(This->nsrow) {
404  nsIDOMHTMLTableRowElement *nsrow = This->nsrow;
405 
406  This->nsrow = NULL;
407  nsIDOMHTMLTableRowElement_Release(nsrow);
408  }
409 }
smooth NULL
Definition: ftsmooth.c:416
static HTMLTableRow * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmltablerow.c:361

◆ impl_from_HTMLDOMNode()

static HTMLTableRow* impl_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

Definition at line 361 of file htmltablerow.c.

362 {
363  return CONTAINING_RECORD(iface, HTMLTableRow, element.node);
364 }
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 HTMLTableRow_QI(), HTMLTableRow_traverse(), and HTMLTableRow_unlink().

◆ impl_from_IHTMLTableRow()

Variable Documentation

◆ HTMLTableRow_dispex

dispex_static_data_t HTMLTableRow_dispex
static
Initial value:
= {
DispHTMLTableRow_tid,
}
smooth NULL
Definition: ftsmooth.c:416
static const tid_t HTMLTableRow_iface_tids[]
Definition: htmltablerow.c:431

Definition at line 437 of file htmltablerow.c.

Referenced by HTMLTableRow_Create().

◆ HTMLTableRow_iface_tids

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

Definition at line 431 of file htmltablerow.c.

◆ HTMLTableRowImplVtbl

const NodeImplVtbl HTMLTableRowImplVtbl
static
Initial value:
= {
}
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 HTMLTableRow_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmltablerow.c:366
static void HTMLTableRow_unlink(HTMLDOMNode *iface)
Definition: htmltablerow.c:399
smooth NULL
Definition: ftsmooth.c:416
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
Definition: htmlelem.c:3793
static void HTMLTableRow_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
Definition: htmltablerow.c:391

Definition at line 411 of file htmltablerow.c.

Referenced by HTMLTableRow_Create().

◆ HTMLTableRowVtbl

const IHTMLTableRowVtbl HTMLTableRowVtbl
static
Initial value:
= {
}
static ULONG WINAPI HTMLTableRow_AddRef(IHTMLTableRow *iface)
Definition: htmltablerow.c:42
static HRESULT WINAPI HTMLTableRow_insertCell(IHTMLTableRow *iface, LONG index, IDispatch **row)
Definition: htmltablerow.c:294
static HRESULT WINAPI HTMLTableRow_put_borderColorLight(IHTMLTableRow *iface, VARIANT v)
Definition: htmltablerow.c:218
static HRESULT WINAPI HTMLTableRow_put_borderColor(IHTMLTableRow *iface, VARIANT v)
Definition: htmltablerow.c:204
static HRESULT WINAPI HTMLTableRow_put_vAlign(IHTMLTableRow *iface, BSTR v)
Definition: htmltablerow.c:121
static HRESULT WINAPI HTMLTableRow_get_borderColorLight(IHTMLTableRow *iface, VARIANT *p)
Definition: htmltablerow.c:225
static HRESULT WINAPI HTMLTableRow_Invoke(IHTMLTableRow *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmltablerow.c:79
static HRESULT WINAPI HTMLTableRow_get_borderColor(IHTMLTableRow *iface, VARIANT *p)
Definition: htmltablerow.c:211
static HRESULT WINAPI HTMLTableRow_get_bgColor(IHTMLTableRow *iface, VARIANT *p)
Definition: htmltablerow.c:178
static ULONG WINAPI HTMLTableRow_Release(IHTMLTableRow *iface)
Definition: htmltablerow.c:49
static HRESULT WINAPI HTMLTableRow_deleteCell(IHTMLTableRow *iface, LONG index)
Definition: htmltablerow.c:320
static HRESULT WINAPI HTMLTableRow_GetIDsOfNames(IHTMLTableRow *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmltablerow.c:70
static HRESULT WINAPI HTMLTableRow_get_vAlign(IHTMLTableRow *iface, BSTR *p)
Definition: htmltablerow.c:142
static HRESULT WINAPI HTMLTableRow_get_sectionRowIndex(IHTMLTableRow *iface, LONG *p)
Definition: htmltablerow.c:260
static HRESULT WINAPI HTMLTableRow_get_cells(IHTMLTableRow *iface, IHTMLElementCollection **p)
Definition: htmltablerow.c:274
static HRESULT WINAPI HTMLTableRow_get_borderColorDark(IHTMLTableRow *iface, VARIANT *p)
Definition: htmltablerow.c:239
static HRESULT WINAPI HTMLTableRow_put_borderColorDark(IHTMLTableRow *iface, VARIANT v)
Definition: htmltablerow.c:232
static HRESULT WINAPI HTMLTableRow_get_rowIndex(IHTMLTableRow *iface, LONG *p)
Definition: htmltablerow.c:246
static HRESULT WINAPI HTMLTableRow_QueryInterface(IHTMLTableRow *iface, REFIID riid, void **ppv)
Definition: htmltablerow.c:34
static HRESULT WINAPI HTMLTableRow_put_align(IHTMLTableRow *iface, BSTR v)
Definition: htmltablerow.c:88
static HRESULT WINAPI HTMLTableRow_GetTypeInfo(IHTMLTableRow *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmltablerow.c:62
static HRESULT WINAPI HTMLTableRow_GetTypeInfoCount(IHTMLTableRow *iface, UINT *pctinfo)
Definition: htmltablerow.c:56
static HRESULT WINAPI HTMLTableRow_get_align(IHTMLTableRow *iface, BSTR *p)
Definition: htmltablerow.c:107
static HRESULT WINAPI HTMLTableRow_put_bgColor(IHTMLTableRow *iface, VARIANT v)
Definition: htmltablerow.c:156

Definition at line 334 of file htmltablerow.c.

Referenced by HTMLTableRow_Create().