ReactOS 0.4.15-dev-8231-g29a56f3
htmlcomment.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmlcomment.c:

Go to the source code of this file.

Classes

struct  HTMLCommentElement
 

Functions

static HTMLCommentElementimpl_from_IHTMLCommentElement (IHTMLCommentElement *iface)
 
static HRESULT WINAPI HTMLCommentElement_QueryInterface (IHTMLCommentElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLCommentElement_AddRef (IHTMLCommentElement *iface)
 
static ULONG WINAPI HTMLCommentElement_Release (IHTMLCommentElement *iface)
 
static HRESULT WINAPI HTMLCommentElement_GetTypeInfoCount (IHTMLCommentElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLCommentElement_GetTypeInfo (IHTMLCommentElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLCommentElement_GetIDsOfNames (IHTMLCommentElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLCommentElement_Invoke (IHTMLCommentElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLCommentElement_put_text (IHTMLCommentElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLCommentElement_get_text (IHTMLCommentElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLCommentElement_put_atomic (IHTMLCommentElement *iface, LONG v)
 
static HRESULT WINAPI HTMLCommentElement_get_atomic (IHTMLCommentElement *iface, LONG *p)
 
static HTMLCommentElementimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLCommentElement_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static void HTMLCommentElement_destructor (HTMLDOMNode *iface)
 
HRESULT HTMLCommentElement_Create (HTMLDocumentNode *doc, nsIDOMNode *nsnode, HTMLElement **elem)
 

Variables

static const IHTMLCommentElementVtbl HTMLCommentElementVtbl
 
static const NodeImplVtbl HTMLCommentElementImplVtbl
 
static const tid_t HTMLCommentElement_iface_tids []
 
static dispex_static_data_t HTMLCommentElement_dispex
 

Function Documentation

◆ HTMLCommentElement_AddRef()

static ULONG WINAPI HTMLCommentElement_AddRef ( IHTMLCommentElement *  iface)
static

Definition at line 39 of file htmlcomment.c.

40{
42
43 return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
44}
static HTMLCommentElement * impl_from_IHTMLCommentElement(IHTMLCommentElement *iface)
Definition: htmlcomment.c:26

◆ HTMLCommentElement_Create()

HRESULT HTMLCommentElement_Create ( HTMLDocumentNode doc,
nsIDOMNode nsnode,
HTMLElement **  elem 
)

Definition at line 179 of file htmlcomment.c.

180{
182
183 ret = heap_alloc_zero(sizeof(*ret));
184 if(!ret)
185 return E_OUTOFMEMORY;
186
187 ret->element.node.vtbl = &HTMLCommentElementImplVtbl;
188 ret->IHTMLCommentElement_iface.lpVtbl = &HTMLCommentElementVtbl;
189
191 HTMLDOMNode_Init(doc, &ret->element.node, nsnode);
192
193 *elem = &ret->element;
194 return S_OK;
195}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define NULL
Definition: types.h:112
static const IHTMLCommentElementVtbl HTMLCommentElementVtbl
Definition: htmlcomment.c:115
static dispex_static_data_t HTMLCommentElement_dispex
Definition: htmlcomment.c:172
static const NodeImplVtbl HTMLCommentElementImplVtbl
Definition: htmlcomment.c:158
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmlelem.c:4008
void HTMLDOMNode_Init(HTMLDocumentNode *doc, HTMLDOMNode *node, nsIDOMNode *nsnode)
Definition: htmlnode.c:1196
#define S_OK
Definition: intsafe.h:52
static size_t elem
Definition: string.c:68
int ret

Referenced by create_node(), and HTMLDocument5_createComment().

◆ HTMLCommentElement_destructor()

static void HTMLCommentElement_destructor ( HTMLDOMNode iface)
static

Definition at line 151 of file htmlcomment.c.

152{
154
155 HTMLElement_destructor(&This->element.node);
156}
static HTMLCommentElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlcomment.c:129
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764

◆ HTMLCommentElement_get_atomic()

static HRESULT WINAPI HTMLCommentElement_get_atomic ( IHTMLCommentElement *  iface,
LONG p 
)
static

Definition at line 108 of file htmlcomment.c.

109{
111 FIXME("(%p)->(%p)\n", This, p);
112 return E_NOTIMPL;
113}
#define FIXME(fmt,...)
Definition: debug.h:114
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLCommentElement_get_text()

static HRESULT WINAPI HTMLCommentElement_get_text ( IHTMLCommentElement *  iface,
BSTR p 
)
static

Definition at line 92 of file htmlcomment.c.

93{
95
96 TRACE("(%p)->(%p)\n", This, p);
97
98 return IHTMLElement_get_outerHTML(&This->element.IHTMLElement_iface, p);
99}
#define TRACE(s)
Definition: solgame.cpp:4

◆ HTMLCommentElement_GetIDsOfNames()

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

Definition at line 67 of file htmlcomment.c.

70{
72 return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
73 cNames, lcid, rgDispId);
74}
REFIID riid
Definition: atlbase.h:39

◆ HTMLCommentElement_GetTypeInfo()

static HRESULT WINAPI HTMLCommentElement_GetTypeInfo ( IHTMLCommentElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 59 of file htmlcomment.c.

61{
63 return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
64 ppTInfo);
65}

◆ HTMLCommentElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLCommentElement_GetTypeInfoCount ( IHTMLCommentElement *  iface,
UINT pctinfo 
)
static

Definition at line 53 of file htmlcomment.c.

54{
56 return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
57}

◆ HTMLCommentElement_Invoke()

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

Definition at line 76 of file htmlcomment.c.

79{
81 return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
82 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
83}
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:531

◆ HTMLCommentElement_put_atomic()

static HRESULT WINAPI HTMLCommentElement_put_atomic ( IHTMLCommentElement *  iface,
LONG  v 
)
static

Definition at line 101 of file htmlcomment.c.

102{
104 FIXME("(%p)->(%d)\n", This, v);
105 return E_NOTIMPL;
106}
const GLdouble * v
Definition: gl.h:2040

◆ HTMLCommentElement_put_text()

static HRESULT WINAPI HTMLCommentElement_put_text ( IHTMLCommentElement *  iface,
BSTR  v 
)
static

Definition at line 85 of file htmlcomment.c.

86{
88 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
89 return E_NOTIMPL;
90}
#define debugstr_w
Definition: kernel32.h:32

◆ HTMLCommentElement_QI()

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

Definition at line 134 of file htmlcomment.c.

135{
137
138 *ppv = NULL;
139
140 if(IsEqualGUID(&IID_IHTMLCommentElement, riid)) {
141 TRACE("(%p)->(IID_IHTMLCommentElement %p)\n", This, ppv);
142 *ppv = &This->IHTMLCommentElement_iface;
143 }else {
144 return HTMLElement_QI(&This->element.node, riid, ppv);
145 }
146
147 IUnknown_AddRef((IUnknown*)*ppv);
148 return S_OK;
149}
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:3738
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147

◆ HTMLCommentElement_QueryInterface()

static HRESULT WINAPI HTMLCommentElement_QueryInterface ( IHTMLCommentElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 31 of file htmlcomment.c.

33{
35
36 return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
37}

◆ HTMLCommentElement_Release()

static ULONG WINAPI HTMLCommentElement_Release ( IHTMLCommentElement *  iface)
static

Definition at line 46 of file htmlcomment.c.

47{
49
50 return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
51}

◆ impl_from_HTMLDOMNode()

static HTMLCommentElement * impl_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

Definition at line 129 of file htmlcomment.c.

130{
131 return CONTAINING_RECORD(iface, HTMLCommentElement, element.node);
132}
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260

Referenced by HTMLCommentElement_destructor(), and HTMLCommentElement_QI().

◆ impl_from_IHTMLCommentElement()

Variable Documentation

◆ HTMLCommentElement_dispex

dispex_static_data_t HTMLCommentElement_dispex
static
Initial value:
= {
DispHTMLCommentElement_tid,
}
static const tid_t HTMLCommentElement_iface_tids[]
Definition: htmlcomment.c:167

Definition at line 172 of file htmlcomment.c.

Referenced by HTMLCommentElement_Create().

◆ HTMLCommentElement_iface_tids

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

Definition at line 167 of file htmlcomment.c.

◆ HTMLCommentElementImplVtbl

const NodeImplVtbl HTMLCommentElementImplVtbl
static
Initial value:
= {
}
static void HTMLCommentElement_destructor(HTMLDOMNode *iface)
Definition: htmlcomment.c:151
static HRESULT HTMLCommentElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlcomment.c:134
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
Definition: htmlelem.c:3793
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

Definition at line 158 of file htmlcomment.c.

Referenced by HTMLCommentElement_Create().

◆ HTMLCommentElementVtbl

const IHTMLCommentElementVtbl HTMLCommentElementVtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLCommentElement_put_atomic(IHTMLCommentElement *iface, LONG v)
Definition: htmlcomment.c:101
static ULONG WINAPI HTMLCommentElement_AddRef(IHTMLCommentElement *iface)
Definition: htmlcomment.c:39
static HRESULT WINAPI HTMLCommentElement_get_atomic(IHTMLCommentElement *iface, LONG *p)
Definition: htmlcomment.c:108
static HRESULT WINAPI HTMLCommentElement_get_text(IHTMLCommentElement *iface, BSTR *p)
Definition: htmlcomment.c:92
static HRESULT WINAPI HTMLCommentElement_Invoke(IHTMLCommentElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlcomment.c:76
static HRESULT WINAPI HTMLCommentElement_GetIDsOfNames(IHTMLCommentElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlcomment.c:67
static HRESULT WINAPI HTMLCommentElement_QueryInterface(IHTMLCommentElement *iface, REFIID riid, void **ppv)
Definition: htmlcomment.c:31
static HRESULT WINAPI HTMLCommentElement_GetTypeInfoCount(IHTMLCommentElement *iface, UINT *pctinfo)
Definition: htmlcomment.c:53
static HRESULT WINAPI HTMLCommentElement_GetTypeInfo(IHTMLCommentElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlcomment.c:59
static HRESULT WINAPI HTMLCommentElement_put_text(IHTMLCommentElement *iface, BSTR v)
Definition: htmlcomment.c:85
static ULONG WINAPI HTMLCommentElement_Release(IHTMLCommentElement *iface)
Definition: htmlcomment.c:46

Definition at line 115 of file htmlcomment.c.

Referenced by HTMLCommentElement_Create().