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

Go to the source code of this file.

Classes

struct  HTMLTable
 

Functions

static HTMLTableimpl_from_IHTMLTable (IHTMLTable *iface)
 
static HTMLTableimpl_from_IHTMLTable2 (IHTMLTable2 *iface)
 
static HTMLTableimpl_from_IHTMLTable3 (IHTMLTable3 *iface)
 
static HRESULT var2str (const VARIANT *p, nsAString *nsstr)
 
static HRESULT nsstr_to_truncated_bstr (const nsAString *nsstr, BSTR *ret_ptr)
 
static HRESULT WINAPI HTMLTable_QueryInterface (IHTMLTable *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLTable_AddRef (IHTMLTable *iface)
 
static ULONG WINAPI HTMLTable_Release (IHTMLTable *iface)
 
static HRESULT WINAPI HTMLTable_GetTypeInfoCount (IHTMLTable *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLTable_GetTypeInfo (IHTMLTable *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLTable_GetIDsOfNames (IHTMLTable *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLTable_Invoke (IHTMLTable *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLTable_put_cols (IHTMLTable *iface, LONG v)
 
static HRESULT WINAPI HTMLTable_get_cols (IHTMLTable *iface, LONG *p)
 
static HRESULT WINAPI HTMLTable_put_border (IHTMLTable *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTable_get_border (IHTMLTable *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTable_put_frame (IHTMLTable *iface, BSTR v)
 
static HRESULT WINAPI HTMLTable_get_frame (IHTMLTable *iface, BSTR *p)
 
static HRESULT WINAPI HTMLTable_put_rules (IHTMLTable *iface, BSTR v)
 
static HRESULT WINAPI HTMLTable_get_rules (IHTMLTable *iface, BSTR *p)
 
static HRESULT WINAPI HTMLTable_put_cellSpacing (IHTMLTable *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTable_get_cellSpacing (IHTMLTable *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTable_put_cellPadding (IHTMLTable *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTable_get_cellPadding (IHTMLTable *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTable_put_background (IHTMLTable *iface, BSTR v)
 
static HRESULT WINAPI HTMLTable_get_background (IHTMLTable *iface, BSTR *p)
 
static HRESULT WINAPI HTMLTable_put_bgColor (IHTMLTable *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTable_get_bgColor (IHTMLTable *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTable_put_borderColor (IHTMLTable *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTable_get_borderColor (IHTMLTable *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTable_put_borderColorLight (IHTMLTable *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTable_get_borderColorLight (IHTMLTable *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTable_put_borderColorDark (IHTMLTable *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTable_get_borderColorDark (IHTMLTable *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTable_put_align (IHTMLTable *iface, BSTR v)
 
static HRESULT WINAPI HTMLTable_get_align (IHTMLTable *iface, BSTR *p)
 
static HRESULT WINAPI HTMLTable_refresh (IHTMLTable *iface)
 
static HRESULT WINAPI HTMLTable_get_rows (IHTMLTable *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI HTMLTable_put_width (IHTMLTable *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTable_get_width (IHTMLTable *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTable_put_height (IHTMLTable *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTable_get_height (IHTMLTable *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTable_put_dataPageSize (IHTMLTable *iface, LONG v)
 
static HRESULT WINAPI HTMLTable_get_dataPageSize (IHTMLTable *iface, LONG *p)
 
static HRESULT WINAPI HTMLTable_nextPage (IHTMLTable *iface)
 
static HRESULT WINAPI HTMLTable_previousPage (IHTMLTable *iface)
 
static HRESULT WINAPI HTMLTable_get_tHead (IHTMLTable *iface, IHTMLTableSection **p)
 
static HRESULT WINAPI HTMLTable_get_tFoot (IHTMLTable *iface, IHTMLTableSection **p)
 
static HRESULT WINAPI HTMLTable_get_tBodies (IHTMLTable *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI HTMLTable_get_caption (IHTMLTable *iface, IHTMLTableCaption **p)
 
static HRESULT WINAPI HTMLTable_createTHead (IHTMLTable *iface, IDispatch **head)
 
static HRESULT WINAPI HTMLTable_deleteTHead (IHTMLTable *iface)
 
static HRESULT WINAPI HTMLTable_createTFoot (IHTMLTable *iface, IDispatch **foot)
 
static HRESULT WINAPI HTMLTable_deleteTFoot (IHTMLTable *iface)
 
static HRESULT WINAPI HTMLTable_createCaption (IHTMLTable *iface, IHTMLTableCaption **caption)
 
static HRESULT WINAPI HTMLTable_deleteCaption (IHTMLTable *iface)
 
static HRESULT WINAPI HTMLTable_insertRow (IHTMLTable *iface, LONG index, IDispatch **row)
 
static HRESULT WINAPI HTMLTable_deleteRow (IHTMLTable *iface, LONG index)
 
static HRESULT WINAPI HTMLTable_get_readyState (IHTMLTable *iface, BSTR *p)
 
static HRESULT WINAPI HTMLTable_put_onreadystatechange (IHTMLTable *iface, VARIANT v)
 
static HRESULT WINAPI HTMLTable_get_onreadystatechange (IHTMLTable *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLTable2_QueryInterface (IHTMLTable2 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLTable2_AddRef (IHTMLTable2 *iface)
 
static ULONG WINAPI HTMLTable2_Release (IHTMLTable2 *iface)
 
static HRESULT WINAPI HTMLTable2_GetTypeInfoCount (IHTMLTable2 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLTable2_GetTypeInfo (IHTMLTable2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLTable2_GetIDsOfNames (IHTMLTable2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLTable2_Invoke (IHTMLTable2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLTable2_firstPage (IHTMLTable2 *iface)
 
static HRESULT WINAPI HTMLTable2_lastPage (IHTMLTable2 *iface)
 
static HRESULT WINAPI HTMLTable2_cells (IHTMLTable2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI HTMLTable2_moveRow (IHTMLTable2 *iface, LONG indexFrom, LONG indexTo, IDispatch **row)
 
static HRESULT WINAPI HTMLTable3_QueryInterface (IHTMLTable3 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLTable3_AddRef (IHTMLTable3 *iface)
 
static ULONG WINAPI HTMLTable3_Release (IHTMLTable3 *iface)
 
static HRESULT WINAPI HTMLTable3_GetTypeInfoCount (IHTMLTable3 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLTable3_GetTypeInfo (IHTMLTable3 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLTable3_GetIDsOfNames (IHTMLTable3 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLTable3_Invoke (IHTMLTable3 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLTable3_put_summary (IHTMLTable3 *iface, BSTR v)
 
static HRESULT WINAPI HTMLTable3_get_summary (IHTMLTable3 *iface, BSTR *p)
 
static HTMLTableimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLTable_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static void HTMLTable_traverse (HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
 
static void HTMLTable_unlink (HTMLDOMNode *iface)
 
HRESULT HTMLTable_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 

Variables

static const IHTMLTableVtbl HTMLTableVtbl
 
static const IHTMLTable2Vtbl HTMLTable2Vtbl
 
static const IHTMLTable3Vtbl HTMLTable3Vtbl
 
static const cpc_entry_t HTMLTable_cpc []
 
static const NodeImplVtbl HTMLTableImplVtbl
 
static const tid_t HTMLTable_iface_tids []
 
static dispex_static_data_t HTMLTable_dispex
 

Function Documentation

◆ HTMLTable2_AddRef()

static ULONG WINAPI HTMLTable2_AddRef ( IHTMLTable2 *  iface)
static

Definition at line 778 of file htmltable.c.

779 {
781 
782  return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
783 }
static HTMLTable * impl_from_IHTMLTable2(IHTMLTable2 *iface)
Definition: htmltable.c:36

◆ HTMLTable2_cells()

static HRESULT WINAPI HTMLTable2_cells ( IHTMLTable2 *  iface,
IHTMLElementCollection **  p 
)
static

Definition at line 838 of file htmltable.c.

839 {
841  FIXME("(%p)->(%p)\n", This, p);
842  return E_NOTIMPL;
843 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLTable * impl_from_IHTMLTable2(IHTMLTable2 *iface)
Definition: htmltable.c:36
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLTable2_firstPage()

static HRESULT WINAPI HTMLTable2_firstPage ( IHTMLTable2 *  iface)
static

Definition at line 824 of file htmltable.c.

825 {
827  FIXME("(%p)->()\n", This);
828  return E_NOTIMPL;
829 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLTable * impl_from_IHTMLTable2(IHTMLTable2 *iface)
Definition: htmltable.c:36
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLTable2_GetIDsOfNames()

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

Definition at line 806 of file htmltable.c.

809 {
811  return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
812  cNames, lcid, rgDispId);
813 }
REFIID riid
Definition: precomp.h:44
static HTMLTable * impl_from_IHTMLTable2(IHTMLTable2 *iface)
Definition: htmltable.c:36

◆ HTMLTable2_GetTypeInfo()

static HRESULT WINAPI HTMLTable2_GetTypeInfo ( IHTMLTable2 *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 798 of file htmltable.c.

800 {
802  return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
803  ppTInfo);
804 }
static HTMLTable * impl_from_IHTMLTable2(IHTMLTable2 *iface)
Definition: htmltable.c:36

◆ HTMLTable2_GetTypeInfoCount()

static HRESULT WINAPI HTMLTable2_GetTypeInfoCount ( IHTMLTable2 *  iface,
UINT pctinfo 
)
static

Definition at line 792 of file htmltable.c.

793 {
795  return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
796 }
static HTMLTable * impl_from_IHTMLTable2(IHTMLTable2 *iface)
Definition: htmltable.c:36

◆ HTMLTable2_Invoke()

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

Definition at line 815 of file htmltable.c.

818 {
820  return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
821  lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
822 }
REFIID riid
Definition: precomp.h:44
static HTMLTable * impl_from_IHTMLTable2(IHTMLTable2 *iface)
Definition: htmltable.c:36
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519

◆ HTMLTable2_lastPage()

static HRESULT WINAPI HTMLTable2_lastPage ( IHTMLTable2 *  iface)
static

Definition at line 831 of file htmltable.c.

832 {
834  FIXME("(%p)->()\n", This);
835  return E_NOTIMPL;
836 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLTable * impl_from_IHTMLTable2(IHTMLTable2 *iface)
Definition: htmltable.c:36
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLTable2_moveRow()

static HRESULT WINAPI HTMLTable2_moveRow ( IHTMLTable2 *  iface,
LONG  indexFrom,
LONG  indexTo,
IDispatch **  row 
)
static

Definition at line 845 of file htmltable.c.

846 {
848  FIXME("(%p)->(%d %d %p)\n", This, indexFrom, indexTo, row);
849  return E_NOTIMPL;
850 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLTable * impl_from_IHTMLTable2(IHTMLTable2 *iface)
Definition: htmltable.c:36
#define E_NOTIMPL
Definition: ddrawi.h:99
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

◆ HTMLTable2_QueryInterface()

static HRESULT WINAPI HTMLTable2_QueryInterface ( IHTMLTable2 *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 770 of file htmltable.c.

772 {
774 
775  return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
776 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static HTMLTable * impl_from_IHTMLTable2(IHTMLTable2 *iface)
Definition: htmltable.c:36

◆ HTMLTable2_Release()

static ULONG WINAPI HTMLTable2_Release ( IHTMLTable2 *  iface)
static

Definition at line 785 of file htmltable.c.

786 {
788 
789  return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
790 }
static HTMLTable * impl_from_IHTMLTable2(IHTMLTable2 *iface)
Definition: htmltable.c:36

◆ HTMLTable3_AddRef()

static ULONG WINAPI HTMLTable3_AddRef ( IHTMLTable3 *  iface)
static

Definition at line 876 of file htmltable.c.

877 {
879 
880  return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
881 }
static HTMLTable * impl_from_IHTMLTable3(IHTMLTable3 *iface)
Definition: htmltable.c:41

◆ HTMLTable3_get_summary()

static HRESULT WINAPI HTMLTable3_get_summary ( IHTMLTable3 *  iface,
BSTR p 
)
static

Definition at line 942 of file htmltable.c.

943 {
945  nsAString str;
946  nsresult nsres;
947 
948  TRACE("(%p)->(%p)\n", This, p);
949 
951  nsres = nsIDOMHTMLTableElement_GetSummary(This->nstable, &str);
952 
953  return return_nsstr(nsres, &str, p);
954 }
static HTMLTable * impl_from_IHTMLTable3(IHTMLTable3 *iface)
Definition: htmltable.c:41
const WCHAR * str
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
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

◆ HTMLTable3_GetIDsOfNames()

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

Definition at line 904 of file htmltable.c.

907 {
909  return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
910  cNames, lcid, rgDispId);
911 }
REFIID riid
Definition: precomp.h:44
static HTMLTable * impl_from_IHTMLTable3(IHTMLTable3 *iface)
Definition: htmltable.c:41

◆ HTMLTable3_GetTypeInfo()

static HRESULT WINAPI HTMLTable3_GetTypeInfo ( IHTMLTable3 *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 896 of file htmltable.c.

898 {
900  return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
901  ppTInfo);
902 }
static HTMLTable * impl_from_IHTMLTable3(IHTMLTable3 *iface)
Definition: htmltable.c:41

◆ HTMLTable3_GetTypeInfoCount()

static HRESULT WINAPI HTMLTable3_GetTypeInfoCount ( IHTMLTable3 *  iface,
UINT pctinfo 
)
static

Definition at line 890 of file htmltable.c.

891 {
893  return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
894 }
static HTMLTable * impl_from_IHTMLTable3(IHTMLTable3 *iface)
Definition: htmltable.c:41

◆ HTMLTable3_Invoke()

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

Definition at line 913 of file htmltable.c.

916 {
918  return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
919  lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
920 }
REFIID riid
Definition: precomp.h:44
static HTMLTable * impl_from_IHTMLTable3(IHTMLTable3 *iface)
Definition: htmltable.c:41
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519

◆ HTMLTable3_put_summary()

static HRESULT WINAPI HTMLTable3_put_summary ( IHTMLTable3 *  iface,
BSTR  v 
)
static

Definition at line 922 of file htmltable.c.

923 {
925  nsAString str;
926  nsresult nsres;
927 
928  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
929 
931 
932  nsres = nsIDOMHTMLTableElement_SetSummary(This->nstable, &str);
933 
935  if (NS_FAILED(nsres)) {
936  ERR("Set summary(%s) failed: %08x\n", debugstr_w(v), nsres);
937  return E_FAIL;
938  }
939  return S_OK;
940 }
#define E_FAIL
Definition: ddrawi.h:102
static HTMLTable * impl_from_IHTMLTable3(IHTMLTable3 *iface)
Definition: htmltable.c:41
#define debugstr_w
Definition: kernel32.h:32
const WCHAR * str
#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

◆ HTMLTable3_QueryInterface()

static HRESULT WINAPI HTMLTable3_QueryInterface ( IHTMLTable3 *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 868 of file htmltable.c.

870 {
872 
873  return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
874 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static HTMLTable * impl_from_IHTMLTable3(IHTMLTable3 *iface)
Definition: htmltable.c:41

◆ HTMLTable3_Release()

static ULONG WINAPI HTMLTable3_Release ( IHTMLTable3 *  iface)
static

Definition at line 883 of file htmltable.c.

884 {
886 
887  return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
888 }
static HTMLTable * impl_from_IHTMLTable3(IHTMLTable3 *iface)
Definition: htmltable.c:41

◆ HTMLTable_AddRef()

static ULONG WINAPI HTMLTable_AddRef ( IHTMLTable *  iface)
static

Definition at line 105 of file htmltable.c.

106 {
108 
109  return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
110 }
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_Create()

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

Definition at line 1065 of file htmltable.c.

1066 {
1067  HTMLTable *ret;
1068  nsresult nsres;
1069 
1070  ret = heap_alloc_zero(sizeof(HTMLTable));
1071  if(!ret)
1072  return E_OUTOFMEMORY;
1073 
1074  ret->element.node.vtbl = &HTMLTableImplVtbl;
1075  ret->IHTMLTable_iface.lpVtbl = &HTMLTableVtbl;
1076  ret->IHTMLTable2_iface.lpVtbl = &HTMLTable2Vtbl;
1077  ret->IHTMLTable3_iface.lpVtbl = &HTMLTable3Vtbl;
1078 
1079  HTMLElement_Init(&ret->element, doc, nselem, &HTMLTable_dispex);
1080 
1081  nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLTableElement, (void**)&ret->nstable);
1082  assert(nsres == NS_OK);
1083 
1084  *elem = &ret->element;
1085  return S_OK;
1086 }
static const IHTMLTableVtbl HTMLTableVtbl
Definition: htmltable.c:710
static const NodeImplVtbl HTMLTableImplVtbl
Definition: htmltable.c:1030
#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
static dispex_static_data_t HTMLTable_dispex
Definition: htmltable.c:1058
static const IHTMLTable3Vtbl HTMLTable3Vtbl
Definition: htmltable.c:956
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
static const IHTMLTable2Vtbl HTMLTable2Vtbl
Definition: htmltable.c:853
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLTable_createCaption()

static HRESULT WINAPI HTMLTable_createCaption ( IHTMLTable *  iface,
IHTMLTableCaption **  caption 
)
static

Definition at line 635 of file htmltable.c.

636 {
638  FIXME("(%p)->(%p)\n", This, caption);
639  return E_NOTIMPL;
640 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_createTFoot()

static HRESULT WINAPI HTMLTable_createTFoot ( IHTMLTable *  iface,
IDispatch **  foot 
)
static

Definition at line 621 of file htmltable.c.

622 {
624  FIXME("(%p)->(%p)\n", This, foot);
625  return E_NOTIMPL;
626 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_createTHead()

static HRESULT WINAPI HTMLTable_createTHead ( IHTMLTable *  iface,
IDispatch **  head 
)
static

Definition at line 607 of file htmltable.c.

608 {
610  FIXME("(%p)->(%p)\n", This, head);
611  return E_NOTIMPL;
612 }
struct outqueuenode * head
Definition: adnsresfilter.c:66
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_deleteCaption()

static HRESULT WINAPI HTMLTable_deleteCaption ( IHTMLTable *  iface)
static

Definition at line 642 of file htmltable.c.

643 {
645  FIXME("(%p)\n", This);
646  return E_NOTIMPL;
647 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_deleteRow()

static HRESULT WINAPI HTMLTable_deleteRow ( IHTMLTable *  iface,
LONG  index 
)
static

Definition at line 675 of file htmltable.c.

676 {
678  nsresult nsres;
679 
680  TRACE("(%p)->(%d)\n", This, index);
681  nsres = nsIDOMHTMLTableElement_DeleteRow(This->nstable, index);
682  if(NS_FAILED(nsres)) {
683  ERR("Delete Row failed: %08x\n", nsres);
684  return E_FAIL;
685  }
686  return S_OK;
687 }
#define E_FAIL
Definition: ddrawi.h:102
GLuint index
Definition: glext.h:6031
#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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_deleteTFoot()

static HRESULT WINAPI HTMLTable_deleteTFoot ( IHTMLTable *  iface)
static

Definition at line 628 of file htmltable.c.

629 {
631  FIXME("(%p)\n", This);
632  return E_NOTIMPL;
633 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_deleteTHead()

static HRESULT WINAPI HTMLTable_deleteTHead ( IHTMLTable *  iface)
static

Definition at line 614 of file htmltable.c.

615 {
617  FIXME("(%p)\n", This);
618  return E_NOTIMPL;
619 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_align()

static HRESULT WINAPI HTMLTable_get_align ( IHTMLTable *  iface,
BSTR p 
)
static

Definition at line 432 of file htmltable.c.

433 {
435  nsAString val;
436  nsresult nsres;
437 
438  TRACE("(%p)->(%p)\n", This, p);
439 
441  nsres = nsIDOMHTMLTableElement_GetAlign(This->nstable, &val);
442 
443  return return_nsstr(nsres, &val, p);
444 }
smooth NULL
Definition: ftsmooth.c:416
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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_background()

static HRESULT WINAPI HTMLTable_get_background ( IHTMLTable *  iface,
BSTR p 
)
static

Definition at line 317 of file htmltable.c.

318 {
320  FIXME("(%p)->(%p)\n", This, p);
321  return E_NOTIMPL;
322 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_bgColor()

static HRESULT WINAPI HTMLTable_get_bgColor ( IHTMLTable *  iface,
VARIANT p 
)
static

Definition at line 345 of file htmltable.c.

346 {
348  nsAString strColor;
349  nsresult nsres;
350  HRESULT hres;
351  const PRUnichar *color;
352 
353  TRACE("(%p)->(%p)\n", This, p);
354 
355  nsAString_Init(&strColor, NULL);
356  nsres = nsIDOMHTMLTableElement_GetBgColor(This->nstable, &strColor);
357 
358  if(NS_SUCCEEDED(nsres)) {
359  nsAString_GetData(&strColor, &color);
360  V_VT(p) = VT_BSTR;
362  }else {
363  ERR("SetBgColor failed: %08x\n", nsres);
364  hres = E_FAIL;
365  }
366 
367  nsAString_Finish(&strColor);
368  return hres;
369 }
#define E_FAIL
Definition: ddrawi.h:102
GLuint color
Definition: glext.h:6243
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 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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_border()

static HRESULT WINAPI HTMLTable_get_border ( IHTMLTable *  iface,
VARIANT p 
)
static

Definition at line 172 of file htmltable.c.

173 {
175  FIXME("(%p)->(%p)\n", This, p);
176  return E_NOTIMPL;
177 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_borderColor()

static HRESULT WINAPI HTMLTable_get_borderColor ( IHTMLTable *  iface,
VARIANT p 
)
static

Definition at line 378 of file htmltable.c.

379 {
381  FIXME("(%p)->(%p)\n", This, p);
382  return E_NOTIMPL;
383 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_borderColorDark()

static HRESULT WINAPI HTMLTable_get_borderColorDark ( IHTMLTable *  iface,
VARIANT p 
)
static

Definition at line 406 of file htmltable.c.

407 {
409  FIXME("(%p)->(%p)\n", This, p);
410  return E_NOTIMPL;
411 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_borderColorLight()

static HRESULT WINAPI HTMLTable_get_borderColorLight ( IHTMLTable *  iface,
VARIANT p 
)
static

Definition at line 392 of file htmltable.c.

393 {
395  FIXME("(%p)->(%p)\n", This, p);
396  return E_NOTIMPL;
397 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_caption()

static HRESULT WINAPI HTMLTable_get_caption ( IHTMLTable *  iface,
IHTMLTableCaption **  p 
)
static

Definition at line 600 of file htmltable.c.

601 {
603  FIXME("(%p)->(%p)\n", This, p);
604  return E_NOTIMPL;
605 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_cellPadding()

static HRESULT WINAPI HTMLTable_get_cellPadding ( IHTMLTable *  iface,
VARIANT p 
)
static

Definition at line 297 of file htmltable.c.

298 {
300  nsAString val;
301  nsresult nsres;
302 
303  TRACE("(%p)->(%p)\n", This, p);
304 
306  nsres = nsIDOMHTMLTableElement_GetCellPadding(This->nstable, &val);
307  return return_nsstr_variant(nsres, &val, p);
308 }
smooth NULL
Definition: ftsmooth.c:416
static HRESULT return_nsstr_variant(nsresult nsres, nsAString *nsstr, VARIANT *p)
GLuint GLfloat * val
Definition: glext.h:7180
#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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_cellSpacing()

static HRESULT WINAPI HTMLTable_get_cellSpacing ( IHTMLTable *  iface,
VARIANT p 
)
static

Definition at line 260 of file htmltable.c.

261 {
263  nsAString nsstr;
264  nsresult nsres;
265 
266  TRACE("(%p)->(%p)\n", This, p);
267 
268  nsAString_Init(&nsstr, NULL);
269  nsres = nsIDOMHTMLTableElement_GetCellSpacing(This->nstable, &nsstr);
270  V_VT(p) = VT_BSTR;
271  return return_nsstr(nsres, &nsstr, &V_BSTR(p));
272 }
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
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226
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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_cols()

static HRESULT WINAPI HTMLTable_get_cols ( IHTMLTable *  iface,
LONG p 
)
static

Definition at line 158 of file htmltable.c.

159 {
161  FIXME("(%p)->(%p)\n", This, p);
162  return E_NOTIMPL;
163 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_dataPageSize()

static HRESULT WINAPI HTMLTable_get_dataPageSize ( IHTMLTable *  iface,
LONG p 
)
static

Definition at line 545 of file htmltable.c.

546 {
548  FIXME("(%p)->(%p)\n", This, p);
549  return E_NOTIMPL;
550 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_frame()

static HRESULT WINAPI HTMLTable_get_frame ( IHTMLTable *  iface,
BSTR p 
)
static

Definition at line 198 of file htmltable.c.

199 {
201  nsAString str;
202  nsresult nsres;
203 
204  TRACE("(%p)->(%p)\n", This, p);
205 
207  nsres = nsIDOMHTMLTableElement_GetFrame(This->nstable, &str);
208 
209  return return_nsstr(nsres, &str, p);
210 }
const WCHAR * str
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
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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_height()

static HRESULT WINAPI HTMLTable_get_height ( IHTMLTable *  iface,
VARIANT p 
)
static

Definition at line 531 of file htmltable.c.

532 {
534  FIXME("(%p)->(%p)\n", This, p);
535  return E_NOTIMPL;
536 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_onreadystatechange()

static HRESULT WINAPI HTMLTable_get_onreadystatechange ( IHTMLTable *  iface,
VARIANT p 
)
static

Definition at line 703 of file htmltable.c.

704 {
706  FIXME("(%p)->(%p)\n", This, p);
707  return E_NOTIMPL;
708 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_readyState()

static HRESULT WINAPI HTMLTable_get_readyState ( IHTMLTable *  iface,
BSTR p 
)
static

Definition at line 689 of file htmltable.c.

690 {
692  FIXME("(%p)->(%p)\n", This, p);
693  return E_NOTIMPL;
694 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_rows()

static HRESULT WINAPI HTMLTable_get_rows ( IHTMLTable *  iface,
IHTMLElementCollection **  p 
)
static

Definition at line 453 of file htmltable.c.

454 {
456  nsIDOMHTMLCollection *nscol;
457  nsresult nsres;
458 
459  TRACE("(%p)->(%p)\n", This, p);
460 
461  nsres = nsIDOMHTMLTableElement_GetRows(This->nstable, &nscol);
462  if(NS_FAILED(nsres)) {
463  ERR("GetRows failed: %08x\n", nsres);
464  return E_FAIL;
465  }
466 
467  *p = create_collection_from_htmlcol(This->element.node.doc, nscol);
468 
469  nsIDOMHTMLCollection_Release(nscol);
470  return S_OK;
471 }
#define E_FAIL
Definition: ddrawi.h:102
IHTMLElementCollection * create_collection_from_htmlcol(HTMLDocumentNode *doc, nsIDOMHTMLCollection *nscol)
Definition: htmlelemcol.c:705
#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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_rules()

static HRESULT WINAPI HTMLTable_get_rules ( IHTMLTable *  iface,
BSTR p 
)
static

Definition at line 219 of file htmltable.c.

220 {
222  FIXME("(%p)->(%p)\n", This, p);
223  return E_NOTIMPL;
224 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_tBodies()

static HRESULT WINAPI HTMLTable_get_tBodies ( IHTMLTable *  iface,
IHTMLElementCollection **  p 
)
static

Definition at line 580 of file htmltable.c.

581 {
583  nsIDOMHTMLCollection *nscol = NULL;
584  nsresult nsres;
585 
586  TRACE("(%p)->(%p)\n", This, p);
587 
588  nsres = nsIDOMHTMLTableElement_GetTBodies(This->nstable, &nscol);
589  if(NS_FAILED(nsres)) {
590  ERR("GetTBodies failed: %08x\n", nsres);
591  return E_FAIL;
592  }
593 
594  *p = create_collection_from_htmlcol(This->element.node.doc, nscol);
595 
596  nsIDOMHTMLCollection_Release(nscol);
597  return S_OK;
598 }
#define E_FAIL
Definition: ddrawi.h:102
IHTMLElementCollection * create_collection_from_htmlcol(HTMLDocumentNode *doc, nsIDOMHTMLCollection *nscol)
Definition: htmlelemcol.c:705
smooth NULL
Definition: ftsmooth.c:416
#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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_tFoot()

static HRESULT WINAPI HTMLTable_get_tFoot ( IHTMLTable *  iface,
IHTMLTableSection **  p 
)
static

Definition at line 573 of file htmltable.c.

574 {
576  FIXME("(%p)->(%p)\n", This, p);
577  return E_NOTIMPL;
578 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_tHead()

static HRESULT WINAPI HTMLTable_get_tHead ( IHTMLTable *  iface,
IHTMLTableSection **  p 
)
static

Definition at line 566 of file htmltable.c.

567 {
569  FIXME("(%p)->(%p)\n", This, p);
570  return E_NOTIMPL;
571 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_get_width()

static HRESULT WINAPI HTMLTable_get_width ( IHTMLTable *  iface,
VARIANT p 
)
static

Definition at line 499 of file htmltable.c.

500 {
502  nsAString val;
503  BSTR bstr;
504  nsresult nsres;
505  HRESULT hres;
506 
507  TRACE("(%p)->(%p)\n", This, p);
509  nsres = nsIDOMHTMLTableElement_GetWidth(This->nstable, &val);
510  if (NS_FAILED(nsres)){
511  ERR("Get Width failed!\n");
513  return E_FAIL;
514  }
515 
516  hres = nsstr_to_truncated_bstr(&val, &bstr);
518 
519  V_VT(p) = VT_BSTR;
520  V_BSTR(p) = bstr;
521  return hres;
522 }
OLECHAR * BSTR
Definition: compat.h:1934
#define E_FAIL
Definition: ddrawi.h:102
smooth NULL
Definition: ftsmooth.c:416
static HRESULT nsstr_to_truncated_bstr(const nsAString *nsstr, BSTR *ret_ptr)
Definition: htmltable.c:77
GLuint GLfloat * val
Definition: glext.h:7180
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
#define V_VT(A)
Definition: oleauto.h:211
#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
GLfloat GLfloat p
Definition: glext.h:8902
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_GetIDsOfNames()

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

Definition at line 133 of file htmltable.c.

136 {
138  return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
139  cNames, lcid, rgDispId);
140 }
REFIID riid
Definition: precomp.h:44
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_GetTypeInfo()

static HRESULT WINAPI HTMLTable_GetTypeInfo ( IHTMLTable *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 125 of file htmltable.c.

127 {
129  return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
130  ppTInfo);
131 }
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_GetTypeInfoCount()

static HRESULT WINAPI HTMLTable_GetTypeInfoCount ( IHTMLTable *  iface,
UINT pctinfo 
)
static

Definition at line 119 of file htmltable.c.

120 {
122  return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
123 }
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_insertRow()

static HRESULT WINAPI HTMLTable_insertRow ( IHTMLTable *  iface,
LONG  index,
IDispatch **  row 
)
static

Definition at line 649 of file htmltable.c.

650 {
652  nsIDOMHTMLElement *nselem;
653  HTMLElement *elem;
654  nsresult nsres;
655  HRESULT hres;
656 
657  TRACE("(%p)->(%d %p)\n", This, index, row);
658  nsres = nsIDOMHTMLTableElement_InsertRow(This->nstable, index, &nselem);
659  if(NS_FAILED(nsres)) {
660  ERR("Insert Row at %d failed: %08x\n", index, nsres);
661  return E_FAIL;
662  }
663 
664  hres = HTMLTableRow_Create(This->element.node.doc, nselem, &elem);
665  nsIDOMHTMLElement_Release(nselem);
666  if (FAILED(hres)) {
667  ERR("Create TableRow failed: %08x\n", hres);
668  return hres;
669  }
670 
671  *row = (IDispatch *)&elem->IHTMLElement_iface;
672  return S_OK;
673 }
HRESULT HTMLTableRow_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmltablerow.c:444
#define E_FAIL
Definition: ddrawi.h:102
static size_t elem
Definition: string.c:68
GLuint index
Definition: glext.h:6031
#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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_Invoke()

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

Definition at line 142 of file htmltable.c.

145 {
147  return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
148  lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
149 }
REFIID riid
Definition: precomp.h:44
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_nextPage()

static HRESULT WINAPI HTMLTable_nextPage ( IHTMLTable *  iface)
static

Definition at line 552 of file htmltable.c.

553 {
555  FIXME("(%p)\n", This);
556  return E_NOTIMPL;
557 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_previousPage()

static HRESULT WINAPI HTMLTable_previousPage ( IHTMLTable *  iface)
static

Definition at line 559 of file htmltable.c.

560 {
562  FIXME("(%p)\n", This);
563  return E_NOTIMPL;
564 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_align()

static HRESULT WINAPI HTMLTable_put_align ( IHTMLTable *  iface,
BSTR  v 
)
static

Definition at line 413 of file htmltable.c.

414 {
416  nsAString val;
417  nsresult nsres;
418 
419  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
420 
422 
423  nsres = nsIDOMHTMLTableElement_SetAlign(This->nstable, &val);
425  if (NS_FAILED(nsres)){
426  ERR("Set Align(%s) failed!\n", debugstr_w(v));
427  return E_FAIL;
428  }
429  return S_OK;
430 }
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_background()

static HRESULT WINAPI HTMLTable_put_background ( IHTMLTable *  iface,
BSTR  v 
)
static

Definition at line 310 of file htmltable.c.

311 {
313  FIXME("(%p)->(%s)\n", This, debugstr_w(v));
314  return E_NOTIMPL;
315 }
#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 HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_bgColor()

static HRESULT WINAPI HTMLTable_put_bgColor ( IHTMLTable *  iface,
VARIANT  v 
)
static

Definition at line 324 of file htmltable.c.

325 {
327  nsAString val;
328  nsresult nsres;
329 
330  TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
331 
332  if(!variant_to_nscolor(&v, &val))
333  return S_OK;
334 
335  nsres = nsIDOMHTMLTableElement_SetBgColor(This->nstable, &val);
337  if (NS_FAILED(nsres)){
338  ERR("Set BgColor(%s) failed!\n", debugstr_variant(&v));
339  return E_FAIL;
340  }
341 
342  return S_OK;
343 }
#define E_FAIL
Definition: ddrawi.h:102
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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_border()

static HRESULT WINAPI HTMLTable_put_border ( IHTMLTable *  iface,
VARIANT  v 
)
static

Definition at line 165 of file htmltable.c.

166 {
168  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
169  return E_NOTIMPL;
170 }
#define FIXME(fmt,...)
Definition: debug.h:110
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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_borderColor()

static HRESULT WINAPI HTMLTable_put_borderColor ( IHTMLTable *  iface,
VARIANT  v 
)
static

Definition at line 371 of file htmltable.c.

372 {
374  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
375  return E_NOTIMPL;
376 }
#define FIXME(fmt,...)
Definition: debug.h:110
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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_borderColorDark()

static HRESULT WINAPI HTMLTable_put_borderColorDark ( IHTMLTable *  iface,
VARIANT  v 
)
static

Definition at line 399 of file htmltable.c.

400 {
402  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
403  return E_NOTIMPL;
404 }
#define FIXME(fmt,...)
Definition: debug.h:110
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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_borderColorLight()

static HRESULT WINAPI HTMLTable_put_borderColorLight ( IHTMLTable *  iface,
VARIANT  v 
)
static

Definition at line 385 of file htmltable.c.

386 {
388  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
389  return E_NOTIMPL;
390 }
#define FIXME(fmt,...)
Definition: debug.h:110
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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_cellPadding()

static HRESULT WINAPI HTMLTable_put_cellPadding ( IHTMLTable *  iface,
VARIANT  v 
)
static

Definition at line 274 of file htmltable.c.

275 {
277  nsAString val;
278  HRESULT hres;
279  nsresult nsres;
280 
281  TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
282 
283  hres = var2str(&v, &val);
284  if(FAILED(hres))
285  return hres;
286 
287  nsres = nsIDOMHTMLTableElement_SetCellPadding(This->nstable, &val);
289  if(NS_FAILED(nsres)) {
290  ERR("Set Width(%s) failed, err = %08x\n", debugstr_variant(&v), nsres);
291  return E_FAIL;
292  }
293 
294  return S_OK;
295 }
#define E_FAIL
Definition: ddrawi.h:102
GLuint GLfloat * val
Definition: glext.h:7180
#define NS_FAILED(res)
static HRESULT var2str(const VARIANT *p, nsAString *nsstr)
Definition: htmltable.c:46
#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
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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_cellSpacing()

static HRESULT WINAPI HTMLTable_put_cellSpacing ( IHTMLTable *  iface,
VARIANT  v 
)
static

Definition at line 226 of file htmltable.c.

227 {
229  nsAString nsstr;
230  WCHAR buf[64];
231  nsresult nsres;
232 
233  TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
234 
235  switch(V_VT(&v)) {
236  case VT_BSTR:
237  nsAString_InitDepend(&nsstr, V_BSTR(&v));
238  break;
239  case VT_I4: {
240  static const WCHAR formatW[] = {'%','d',0};
241  sprintfW(buf, formatW, V_I4(&v));
242  nsAString_InitDepend(&nsstr, buf);
243  break;
244  }
245  default:
246  FIXME("unsupported arg %s\n", debugstr_variant(&v));
247  return E_NOTIMPL;
248  }
249 
250  nsres = nsIDOMHTMLTableElement_SetCellSpacing(This->nstable, &nsstr);
251  nsAString_Finish(&nsstr);
252  if(NS_FAILED(nsres)) {
253  ERR("SetCellSpacing failed: %08x\n", nsres);
254  return E_FAIL;
255  }
256 
257  return S_OK;
258 }
Definition: compat.h:1939
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define E_FAIL
Definition: ddrawi.h:102
#define V_I4(A)
Definition: oleauto.h:247
#define FIXME(fmt,...)
Definition: debug.h:110
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226
#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
#define E_NOTIMPL
Definition: ddrawi.h:99
#define sprintfW
Definition: unicode.h:58
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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_cols()

static HRESULT WINAPI HTMLTable_put_cols ( IHTMLTable *  iface,
LONG  v 
)
static

Definition at line 151 of file htmltable.c.

152 {
154  FIXME("(%p)->(%d)\n", This, v);
155  return E_NOTIMPL;
156 }
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_dataPageSize()

static HRESULT WINAPI HTMLTable_put_dataPageSize ( IHTMLTable *  iface,
LONG  v 
)
static

Definition at line 538 of file htmltable.c.

539 {
541  FIXME("(%p)->(%d)\n", This, v);
542  return E_NOTIMPL;
543 }
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_frame()

static HRESULT WINAPI HTMLTable_put_frame ( IHTMLTable *  iface,
BSTR  v 
)
static

Definition at line 179 of file htmltable.c.

180 {
182  nsAString str;
183  nsresult nsres;
184 
185  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
186 
188  nsres = nsIDOMHTMLTableElement_SetFrame(This->nstable, &str);
190 
191  if (NS_FAILED(nsres)) {
192  ERR("SetFrame(%s) failed: %08x\n", debugstr_w(v), nsres);
193  return E_FAIL;
194  }
195  return S_OK;
196 }
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
const WCHAR * str
#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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_height()

static HRESULT WINAPI HTMLTable_put_height ( IHTMLTable *  iface,
VARIANT  v 
)
static

Definition at line 524 of file htmltable.c.

525 {
527  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
528  return E_NOTIMPL;
529 }
#define FIXME(fmt,...)
Definition: debug.h:110
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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_onreadystatechange()

static HRESULT WINAPI HTMLTable_put_onreadystatechange ( IHTMLTable *  iface,
VARIANT  v 
)
static

Definition at line 696 of file htmltable.c.

697 {
699  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
700  return E_NOTIMPL;
701 }
#define FIXME(fmt,...)
Definition: debug.h:110
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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_rules()

static HRESULT WINAPI HTMLTable_put_rules ( IHTMLTable *  iface,
BSTR  v 
)
static

Definition at line 212 of file htmltable.c.

213 {
215  FIXME("(%p)->(%s)\n", This, debugstr_w(v));
216  return E_NOTIMPL;
217 }
#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 HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_put_width()

static HRESULT WINAPI HTMLTable_put_width ( IHTMLTable *  iface,
VARIANT  v 
)
static

Definition at line 473 of file htmltable.c.

474 {
476  nsAString val;
477  HRESULT hres;
478  nsresult nsres;
479 
480  TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
481  hres = var2str(&v, &val);
482 
483  if (FAILED(hres)){
484  ERR("Set Width(%s) failed when initializing a nsAString, err = %08x\n",
485  debugstr_variant(&v), hres);
486  return hres;
487  }
488 
489  nsres = nsIDOMHTMLTableElement_SetWidth(This->nstable, &val);
491 
492  if (NS_FAILED(nsres)){
493  ERR("Set Width(%s) failed, err = %08x\n", debugstr_variant(&v), nsres);
494  return E_FAIL;
495  }
496  return S_OK;
497 }
#define E_FAIL
Definition: ddrawi.h:102
GLuint GLfloat * val
Definition: glext.h:7180
#define NS_FAILED(res)
static HRESULT var2str(const VARIANT *p, nsAString *nsstr)
Definition: htmltable.c:46
#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
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
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_QI()

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

Definition at line 973 of file htmltable.c.

974 {
976 
977  *ppv = NULL;
978 
979  if(IsEqualGUID(&IID_IUnknown, riid)) {
980  TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
981  *ppv = &This->IHTMLTable_iface;
982  }else if(IsEqualGUID(&IID_IDispatch, riid)) {
983  TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
984  *ppv = &This->IHTMLTable_iface;
985  }else if(IsEqualGUID(&IID_IHTMLTable, riid)) {
986  TRACE("(%p)->(IID_IHTMLTable %p)\n", This, ppv);
987  *ppv = &This->IHTMLTable_iface;
988  }else if(IsEqualGUID(&IID_IHTMLTable2, riid)) {
989  TRACE("(%p)->(IID_IHTMLTable2 %p)\n", This, ppv);
990  *ppv = &This->IHTMLTable2_iface;
991  }else if(IsEqualGUID(&IID_IHTMLTable3, riid)) {
992  TRACE("(%p)->(IID_IHTMLTable3 %p)\n", This, ppv);
993  *ppv = &This->IHTMLTable3_iface;
994  }
995 
996  if(*ppv) {
997  IUnknown_AddRef((IUnknown*)*ppv);
998  return S_OK;
999  }
1000 
1001  return HTMLElement_QI(&This->element.node, riid, ppv);
1002 }
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
const GUID IID_IUnknown
const GUID IID_IDispatch
#define S_OK
Definition: intsafe.h:59
static HTMLTable * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmltable.c:968
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4021

◆ HTMLTable_QueryInterface()

static HRESULT WINAPI HTMLTable_QueryInterface ( IHTMLTable *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 97 of file htmltable.c.

99 {
101 
102  return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
103 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_refresh()

static HRESULT WINAPI HTMLTable_refresh ( IHTMLTable *  iface)
static

Definition at line 446 of file htmltable.c.

447 {
449  FIXME("(%p)\n", This);
450  return E_NOTIMPL;
451 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_Release()

static ULONG WINAPI HTMLTable_Release ( IHTMLTable *  iface)
static

Definition at line 112 of file htmltable.c.

113 {
115 
116  return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
117 }
static HTMLTable * impl_from_IHTMLTable(IHTMLTable *iface)
Definition: htmltable.c:31

◆ HTMLTable_traverse()

static void HTMLTable_traverse ( HTMLDOMNode iface,
nsCycleCollectionTraversalCallback cb 
)
static

Definition at line 1004 of file htmltable.c.

1005 {
1007 
1008  if(This->nstable)
1009  note_cc_edge((nsISupports*)This->nstable, "This->nstable", cb);
1010 }
static DWORD cb
Definition: integrity.c:41
static HTMLTable * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmltable.c:968

◆ HTMLTable_unlink()

static void HTMLTable_unlink ( HTMLDOMNode iface)
static

Definition at line 1012 of file htmltable.c.

1013 {
1015 
1016  if(This->nstable) {
1017  nsIDOMHTMLTableElement *nstable = This->nstable;
1018 
1019  This->nstable = NULL;
1020  nsIDOMHTMLTableElement_Release(nstable);
1021  }
1022 }
smooth NULL
Definition: ftsmooth.c:416
static HTMLTable * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmltable.c:968

◆ impl_from_HTMLDOMNode()

static HTMLTable* impl_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

Definition at line 968 of file htmltable.c.

969 {
970  return CONTAINING_RECORD(iface, HTMLTable, element.node);
971 }
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 HTMLTable_QI(), HTMLTable_traverse(), and HTMLTable_unlink().

◆ impl_from_IHTMLTable()

static HTMLTable* impl_from_IHTMLTable ( IHTMLTable *  iface)
inlinestatic

Definition at line 31 of file htmltable.c.

32 {
33  return CONTAINING_RECORD(iface, HTMLTable, IHTMLTable_iface);
34 }
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 HTMLTable_AddRef(), HTMLTable_createCaption(), HTMLTable_createTFoot(), HTMLTable_createTHead(), HTMLTable_deleteCaption(), HTMLTable_deleteRow(), HTMLTable_deleteTFoot(), HTMLTable_deleteTHead(), HTMLTable_get_align(), HTMLTable_get_background(), HTMLTable_get_bgColor(), HTMLTable_get_border(), HTMLTable_get_borderColor(), HTMLTable_get_borderColorDark(), HTMLTable_get_borderColorLight(), HTMLTable_get_caption(), HTMLTable_get_cellPadding(), HTMLTable_get_cellSpacing(), HTMLTable_get_cols(), HTMLTable_get_dataPageSize(), HTMLTable_get_frame(), HTMLTable_get_height(), HTMLTable_get_onreadystatechange(), HTMLTable_get_readyState(), HTMLTable_get_rows(), HTMLTable_get_rules(), HTMLTable_get_tBodies(), HTMLTable_get_tFoot(), HTMLTable_get_tHead(), HTMLTable_get_width(), HTMLTable_GetIDsOfNames(), HTMLTable_GetTypeInfo(), HTMLTable_GetTypeInfoCount(), HTMLTable_insertRow(), HTMLTable_Invoke(), HTMLTable_nextPage(), HTMLTable_previousPage(), HTMLTable_put_align(), HTMLTable_put_background(), HTMLTable_put_bgColor(), HTMLTable_put_border(), HTMLTable_put_borderColor(), HTMLTable_put_borderColorDark(), HTMLTable_put_borderColorLight(), HTMLTable_put_cellPadding(), HTMLTable_put_cellSpacing(), HTMLTable_put_cols(), HTMLTable_put_dataPageSize(), HTMLTable_put_frame(), HTMLTable_put_height(), HTMLTable_put_onreadystatechange(), HTMLTable_put_rules(), HTMLTable_put_width(), HTMLTable_QueryInterface(), HTMLTable_refresh(), and HTMLTable_Release().

◆ impl_from_IHTMLTable2()

static HTMLTable* impl_from_IHTMLTable2 ( IHTMLTable2 *  iface)
inlinestatic

Definition at line 36 of file htmltable.c.

37 {
38  return CONTAINING_RECORD(iface, HTMLTable, IHTMLTable2_iface);
39 }
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 HTMLTable2_AddRef(), HTMLTable2_cells(), HTMLTable2_firstPage(), HTMLTable2_GetIDsOfNames(), HTMLTable2_GetTypeInfo(), HTMLTable2_GetTypeInfoCount(), HTMLTable2_Invoke(), HTMLTable2_lastPage(), HTMLTable2_moveRow(), HTMLTable2_QueryInterface(), and HTMLTable2_Release().

◆ impl_from_IHTMLTable3()

static HTMLTable* impl_from_IHTMLTable3 ( IHTMLTable3 *  iface)
inlinestatic

Definition at line 41 of file htmltable.c.

42 {
43  return CONTAINING_RECORD(iface, HTMLTable, IHTMLTable3_iface);
44 }
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 HTMLTable3_AddRef(), HTMLTable3_get_summary(), HTMLTable3_GetIDsOfNames(), HTMLTable3_GetTypeInfo(), HTMLTable3_GetTypeInfoCount(), HTMLTable3_Invoke(), HTMLTable3_put_summary(), HTMLTable3_QueryInterface(), and HTMLTable3_Release().

◆ nsstr_to_truncated_bstr()

static HRESULT nsstr_to_truncated_bstr ( const nsAString nsstr,
BSTR ret_ptr 
)
static

Definition at line 77 of file htmltable.c.

78 {
79  const PRUnichar *str, *ptr, *end = NULL;
80  BSTR ret;
81 
82  nsAString_GetData(nsstr, &str);
83 
84  for(ptr = str; isdigitW(*ptr); ptr++);
85  if(*ptr == '.') {
86  for(end = ptr++; isdigitW(*ptr); ptr++);
87  if(*ptr)
88  end = NULL;
89  }
90 
92 
93  *ret_ptr = ret;
94  return ret ? S_OK : E_OUTOFMEMORY;
95 }
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
Definition: oleaut.c:342
GLuint GLuint end
Definition: gl.h:1545
OLECHAR * BSTR
Definition: compat.h:1934
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static PVOID ptr
Definition: dispmode.c:27
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
int ret
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
#define S_OK
Definition: intsafe.h:59
WINE_UNICODE_INLINE int isdigitW(WCHAR wc)
Definition: unicode.h:170
WCHAR PRUnichar
Definition: nsiface.idl:48

Referenced by HTMLTable_get_width().

◆ var2str()

static HRESULT var2str ( const VARIANT p,
nsAString nsstr 
)
static

Definition at line 46 of file htmltable.c.

47 {
48  BSTR str;
49  BOOL ret;
50  HRESULT hres;
51 
52  switch(V_VT(p)) {
53  case VT_BSTR:
54  return nsAString_Init(nsstr, V_BSTR(p))?
56  case VT_R8:
57  hres = VarBstrFromR8(V_R8(p), 0, 0, &str);
58  break;
59  case VT_R4:
60  hres = VarBstrFromR4(V_R4(p), 0, 0, &str);
61  break;
62  case VT_I4:
63  hres = VarBstrFromI4(V_I4(p), 0, 0, &str);
64  break;
65  default:
66  FIXME("unsupported arg %s\n", debugstr_variant(p));
67  return E_NOTIMPL;
68  }
69  if (FAILED(hres))
70  return hres;
71 
72  ret = nsAString_Init(nsstr, str);
74  return ret ? S_OK : E_OUTOFMEMORY;
75 }
Definition: compat.h:1939
#define V_R8(A)
Definition: oleauto.h:262
OLECHAR * BSTR
Definition: compat.h:1934
#define V_I4(A)
Definition: oleauto.h:247
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
unsigned int BOOL
Definition: ntddk_ex.h:94
#define FIXME(fmt,...)
Definition: debug.h:110
const WCHAR * str
HRESULT WINAPI VarBstrFromI4(LONG lIn, LCID lcid, ULONG dwFlags, BSTR *pbstrOut)
Definition: vartype.c:6444
#define V_R4(A)
Definition: oleauto.h:260
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
HRESULT WINAPI VarBstrFromR8(double dblIn, LCID lcid, ULONG dwFlags, BSTR *pbstrOut)
Definition: vartype.c:6586
int ret
Definition: compat.h:1940
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define S_OK
Definition: intsafe.h:59
#define E_NOTIMPL
Definition: ddrawi.h:99
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:274
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
GLfloat GLfloat p
Definition: glext.h:8902
HRESULT WINAPI VarBstrFromR4(FLOAT fltIn, LCID lcid, ULONG dwFlags, BSTR *pbstrOut)
Definition: vartype.c:6565
Definition: compat.h:1941

Referenced by HTMLTable_put_cellPadding(), and HTMLTable_put_width().

Variable Documentation

◆ HTMLTable2Vtbl

const IHTMLTable2Vtbl HTMLTable2Vtbl
static
Initial value:
= {
}
static ULONG WINAPI HTMLTable2_Release(IHTMLTable2 *iface)
Definition: htmltable.c:785
static HRESULT WINAPI HTMLTable2_moveRow(IHTMLTable2 *iface, LONG indexFrom, LONG indexTo, IDispatch **row)
Definition: htmltable.c:845
static HRESULT WINAPI HTMLTable2_firstPage(IHTMLTable2 *iface)
Definition: htmltable.c:824
static HRESULT WINAPI HTMLTable2_GetTypeInfo(IHTMLTable2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmltable.c:798
static HRESULT WINAPI HTMLTable2_lastPage(IHTMLTable2 *iface)
Definition: htmltable.c:831
static ULONG WINAPI HTMLTable2_AddRef(IHTMLTable2 *iface)
Definition: htmltable.c:778
static HRESULT WINAPI HTMLTable2_GetTypeInfoCount(IHTMLTable2 *iface, UINT *pctinfo)
Definition: htmltable.c:792
static HRESULT WINAPI HTMLTable2_QueryInterface(IHTMLTable2 *iface, REFIID riid, void **ppv)
Definition: htmltable.c:770
static HRESULT WINAPI HTMLTable2_Invoke(IHTMLTable2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmltable.c:815
static HRESULT WINAPI HTMLTable2_cells(IHTMLTable2 *iface, IHTMLElementCollection **p)
Definition: htmltable.c:838
static HRESULT WINAPI HTMLTable2_GetIDsOfNames(IHTMLTable2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmltable.c:806

Definition at line 853 of file htmltable.c.

Referenced by HTMLTable_Create().

◆ HTMLTable3Vtbl

const IHTMLTable3Vtbl HTMLTable3Vtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLTable3_GetTypeInfoCount(IHTMLTable3 *iface, UINT *pctinfo)
Definition: htmltable.c:890
static HRESULT WINAPI HTMLTable3_get_summary(IHTMLTable3 *iface, BSTR *p)
Definition: htmltable.c:942
static HRESULT WINAPI HTMLTable3_Invoke(IHTMLTable3 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmltable.c:913
static ULONG WINAPI HTMLTable3_Release(IHTMLTable3 *iface)
Definition: htmltable.c:883
static HRESULT WINAPI HTMLTable3_GetTypeInfo(IHTMLTable3 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmltable.c:896
static HRESULT WINAPI HTMLTable3_QueryInterface(IHTMLTable3 *iface, REFIID riid, void **ppv)
Definition: htmltable.c:868
static HRESULT WINAPI HTMLTable3_put_summary(IHTMLTable3 *iface, BSTR v)
Definition: htmltable.c:922
static ULONG WINAPI HTMLTable3_AddRef(IHTMLTable3 *iface)
Definition: htmltable.c:876
static HRESULT WINAPI HTMLTable3_GetIDsOfNames(IHTMLTable3 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmltable.c:904

Definition at line 956 of file htmltable.c.

Referenced by HTMLTable_Create().

◆ HTMLTable_cpc

const cpc_entry_t HTMLTable_cpc[]
static
Initial value:
= {
{&DIID_HTMLTableEvents},
{NULL}
}
smooth NULL
Definition: ftsmooth.c:416
#define HTMLELEMENT_CPC

Definition at line 1024 of file htmltable.c.

◆ HTMLTable_dispex

dispex_static_data_t HTMLTable_dispex
static
Initial value:
= {
DispHTMLTable_tid,
}
smooth NULL
Definition: ftsmooth.c:416
static const tid_t HTMLTable_iface_tids[]
Definition: htmltable.c:1050

Definition at line 1058 of file htmltable.c.

Referenced by HTMLTable_Create().

◆ HTMLTable_iface_tids

const tid_t HTMLTable_iface_tids[]
static
Initial value:
= {
IHTMLTable_tid,
IHTMLTable2_tid,
IHTMLTable3_tid,
0
}
#define HTMLELEMENT_TIDS

Definition at line 1050 of file htmltable.c.

◆ HTMLTableImplVtbl

const NodeImplVtbl HTMLTableImplVtbl
static
Initial value:
= {
}
static void HTMLTable_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
Definition: htmltable.c:1004
HRESULT HTMLElement_handle_event(HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *event, BOOL *prevent_default)
Definition: htmlelem.c:3815
HRESULT HTMLElement_get_attr_col(HTMLDOMNode *iface, HTMLAttributeCollection **ac)
Definition: htmlelem.c:4827
smooth NULL
Definition: ftsmooth.c:416
static HRESULT HTMLTable_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmltable.c:973
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
static const cpc_entry_t HTMLTable_cpc[]
Definition: htmltable.c:1024
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
Definition: htmlelem.c:3793
static void HTMLTable_unlink(HTMLDOMNode *iface)
Definition: htmltable.c:1012

Definition at line 1030 of file htmltable.c.

Referenced by HTMLTable_Create().

◆ HTMLTableVtbl

const IHTMLTableVtbl HTMLTableVtbl
static

Definition at line 710 of file htmltable.c.

Referenced by HTMLTable_Create().