ReactOS  0.4.14-dev-41-g31d7680
htmlgeneric.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmlgeneric.c:

Go to the source code of this file.

Classes

struct  HTMLGenericElement
 

Functions

static HTMLGenericElementimpl_from_IHTMLGenericElement (IHTMLGenericElement *iface)
 
static HRESULT WINAPI HTMLGenericElement_QueryInterface (IHTMLGenericElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLGenericElement_AddRef (IHTMLGenericElement *iface)
 
static ULONG WINAPI HTMLGenericElement_Release (IHTMLGenericElement *iface)
 
static HRESULT WINAPI HTMLGenericElement_GetTypeInfoCount (IHTMLGenericElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLGenericElement_GetTypeInfo (IHTMLGenericElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLGenericElement_GetIDsOfNames (IHTMLGenericElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLGenericElement_Invoke (IHTMLGenericElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLGenericElement_get_recordset (IHTMLGenericElement *iface, IDispatch **p)
 
static HRESULT WINAPI HTMLGenericElement_namedRecordset (IHTMLGenericElement *iface, BSTR dataMember, VARIANT *hierarchy, IDispatch **ppRecordset)
 
static HTMLGenericElementimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLGenericElement_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static void HTMLGenericElement_destructor (HTMLDOMNode *iface)
 
HRESULT HTMLGenericElement_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 

Variables

static const IHTMLGenericElementVtbl HTMLGenericElementVtbl
 
static const NodeImplVtbl HTMLGenericElementImplVtbl
 
static const tid_t HTMLGenericElement_iface_tids []
 
static dispex_static_data_t HTMLGenericElement_dispex
 

Function Documentation

◆ HTMLGenericElement_AddRef()

static ULONG WINAPI HTMLGenericElement_AddRef ( IHTMLGenericElement *  iface)
static

Definition at line 39 of file htmlgeneric.c.

40 {
42 
43  return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
44 }
static HTMLGenericElement * impl_from_IHTMLGenericElement(IHTMLGenericElement *iface)
Definition: htmlgeneric.c:27

◆ HTMLGenericElement_Create()

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

Definition at line 162 of file htmlgeneric.c.

163 {
165 
166  ret = heap_alloc_zero(sizeof(HTMLGenericElement));
167  if(!ret)
168  return E_OUTOFMEMORY;
169 
170  ret->IHTMLGenericElement_iface.lpVtbl = &HTMLGenericElementVtbl;
171  ret->element.node.vtbl = &HTMLGenericElementImplVtbl;
172 
173  HTMLElement_Init(&ret->element, doc, nselem, &HTMLGenericElement_dispex);
174 
175  *elem = &ret->element;
176  return S_OK;
177 }
static const IHTMLGenericElementVtbl HTMLGenericElementVtbl
Definition: htmlgeneric.c:99
static const NodeImplVtbl HTMLGenericElementImplVtbl
Definition: htmlgeneric.c:140
#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
static dispex_static_data_t HTMLGenericElement_dispex
Definition: htmlgeneric.c:155

Referenced by HTMLElement_Create().

◆ HTMLGenericElement_destructor()

static void HTMLGenericElement_destructor ( HTMLDOMNode iface)
static

Definition at line 133 of file htmlgeneric.c.

134 {
136 
137  HTMLElement_destructor(&This->element.node);
138 }
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
static HTMLGenericElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlgeneric.c:111

◆ HTMLGenericElement_get_recordset()

static HRESULT WINAPI HTMLGenericElement_get_recordset ( IHTMLGenericElement *  iface,
IDispatch **  p 
)
static

Definition at line 84 of file htmlgeneric.c.

85 {
87  FIXME("(%p)->(%p)\n", This, p);
88  return E_NOTIMPL;
89 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLGenericElement * impl_from_IHTMLGenericElement(IHTMLGenericElement *iface)
Definition: htmlgeneric.c:27
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLGenericElement_GetIDsOfNames()

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

Definition at line 67 of file htmlgeneric.c.

69 {
71  return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
72  cNames, lcid, rgDispId);
73 }
REFIID riid
Definition: precomp.h:44
static HTMLGenericElement * impl_from_IHTMLGenericElement(IHTMLGenericElement *iface)
Definition: htmlgeneric.c:27

◆ HTMLGenericElement_GetTypeInfo()

static HRESULT WINAPI HTMLGenericElement_GetTypeInfo ( IHTMLGenericElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 59 of file htmlgeneric.c.

61 {
63  return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
64  ppTInfo);
65 }
static HTMLGenericElement * impl_from_IHTMLGenericElement(IHTMLGenericElement *iface)
Definition: htmlgeneric.c:27

◆ HTMLGenericElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLGenericElement_GetTypeInfoCount ( IHTMLGenericElement *  iface,
UINT pctinfo 
)
static

Definition at line 53 of file htmlgeneric.c.

54 {
56  return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
57 }
static HTMLGenericElement * impl_from_IHTMLGenericElement(IHTMLGenericElement *iface)
Definition: htmlgeneric.c:27

◆ HTMLGenericElement_Invoke()

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

Definition at line 75 of file htmlgeneric.c.

78 {
80  return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
81  lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
82 }
REFIID riid
Definition: precomp.h:44
static HTMLGenericElement * impl_from_IHTMLGenericElement(IHTMLGenericElement *iface)
Definition: htmlgeneric.c:27
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519

◆ HTMLGenericElement_namedRecordset()

static HRESULT WINAPI HTMLGenericElement_namedRecordset ( IHTMLGenericElement *  iface,
BSTR  dataMember,
VARIANT hierarchy,
IDispatch **  ppRecordset 
)
static

Definition at line 91 of file htmlgeneric.c.

93 {
95  FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(dataMember), hierarchy, ppRecordset);
96  return E_NOTIMPL;
97 }
static const h_entry hierarchy[]
Definition: dialog.c:68
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLGenericElement * impl_from_IHTMLGenericElement(IHTMLGenericElement *iface)
Definition: htmlgeneric.c:27
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLGenericElement_QI()

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

Definition at line 116 of file htmlgeneric.c.

117 {
119 
120  *ppv = NULL;
121 
122  if(IsEqualGUID(&IID_IHTMLGenericElement, riid)) {
123  TRACE("(%p)->(IID_IHTMLGenericElement %p)\n", This, ppv);
124  *ppv = &This->IHTMLGenericElement_iface;
125  }else {
126  return HTMLElement_QI(&This->element.node, riid, ppv);
127  }
128 
129  IUnknown_AddRef((IUnknown*)*ppv);
130  return S_OK;
131 }
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 HTMLGenericElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlgeneric.c:111
#define S_OK
Definition: intsafe.h:59
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4021

◆ HTMLGenericElement_QueryInterface()

static HRESULT WINAPI HTMLGenericElement_QueryInterface ( IHTMLGenericElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 32 of file htmlgeneric.c.

33 {
35 
36  return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
37 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static HTMLGenericElement * impl_from_IHTMLGenericElement(IHTMLGenericElement *iface)
Definition: htmlgeneric.c:27

◆ HTMLGenericElement_Release()

static ULONG WINAPI HTMLGenericElement_Release ( IHTMLGenericElement *  iface)
static

Definition at line 46 of file htmlgeneric.c.

47 {
49 
50  return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
51 }
static HTMLGenericElement * impl_from_IHTMLGenericElement(IHTMLGenericElement *iface)
Definition: htmlgeneric.c:27

◆ impl_from_HTMLDOMNode()

static HTMLGenericElement* impl_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

Definition at line 111 of file htmlgeneric.c.

112 {
113  return CONTAINING_RECORD(iface, HTMLGenericElement, element.node);
114 }
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 HTMLGenericElement_destructor(), and HTMLGenericElement_QI().

◆ impl_from_IHTMLGenericElement()

static HTMLGenericElement* impl_from_IHTMLGenericElement ( IHTMLGenericElement *  iface)
inlinestatic

Definition at line 27 of file htmlgeneric.c.

28 {
29  return CONTAINING_RECORD(iface, HTMLGenericElement, IHTMLGenericElement_iface);
30 }
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 HTMLGenericElement_AddRef(), HTMLGenericElement_get_recordset(), HTMLGenericElement_GetIDsOfNames(), HTMLGenericElement_GetTypeInfo(), HTMLGenericElement_GetTypeInfoCount(), HTMLGenericElement_Invoke(), HTMLGenericElement_namedRecordset(), HTMLGenericElement_QueryInterface(), and HTMLGenericElement_Release().

Variable Documentation

◆ HTMLGenericElement_dispex

dispex_static_data_t HTMLGenericElement_dispex
static
Initial value:
= {
DispHTMLGenericElement_tid,
}
smooth NULL
Definition: ftsmooth.c:416
static const tid_t HTMLGenericElement_iface_tids[]
Definition: htmlgeneric.c:149

Definition at line 155 of file htmlgeneric.c.

Referenced by HTMLGenericElement_Create().

◆ HTMLGenericElement_iface_tids

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

Definition at line 149 of file htmlgeneric.c.

◆ HTMLGenericElementImplVtbl

const NodeImplVtbl HTMLGenericElementImplVtbl
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 HTMLGenericElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlgeneric.c:116
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
Definition: htmlelem.c:3793
static void HTMLGenericElement_destructor(HTMLDOMNode *iface)
Definition: htmlgeneric.c:133

Definition at line 140 of file htmlgeneric.c.

Referenced by HTMLGenericElement_Create().

◆ HTMLGenericElementVtbl

const IHTMLGenericElementVtbl HTMLGenericElementVtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLGenericElement_namedRecordset(IHTMLGenericElement *iface, BSTR dataMember, VARIANT *hierarchy, IDispatch **ppRecordset)
Definition: htmlgeneric.c:91
static ULONG WINAPI HTMLGenericElement_AddRef(IHTMLGenericElement *iface)
Definition: htmlgeneric.c:39
static ULONG WINAPI HTMLGenericElement_Release(IHTMLGenericElement *iface)
Definition: htmlgeneric.c:46
static HRESULT WINAPI HTMLGenericElement_get_recordset(IHTMLGenericElement *iface, IDispatch **p)
Definition: htmlgeneric.c:84
static HRESULT WINAPI HTMLGenericElement_GetIDsOfNames(IHTMLGenericElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlgeneric.c:67
static HRESULT WINAPI HTMLGenericElement_GetTypeInfoCount(IHTMLGenericElement *iface, UINT *pctinfo)
Definition: htmlgeneric.c:53
static HRESULT WINAPI HTMLGenericElement_Invoke(IHTMLGenericElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlgeneric.c:75
static HRESULT WINAPI HTMLGenericElement_QueryInterface(IHTMLGenericElement *iface, REFIID riid, void **ppv)
Definition: htmlgeneric.c:32
static HRESULT WINAPI HTMLGenericElement_GetTypeInfo(IHTMLGenericElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlgeneric.c:59

Definition at line 99 of file htmlgeneric.c.

Referenced by HTMLGenericElement_Create().