ReactOS 0.4.15-dev-5666-gc548b97
htmlmeta.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmlmeta.c:

Go to the source code of this file.

Classes

struct  HTMLMetaElement
 

Functions

static HTMLMetaElementimpl_from_IHTMLMetaElement (IHTMLMetaElement *iface)
 
static HRESULT WINAPI HTMLMetaElement_QueryInterface (IHTMLMetaElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLMetaElement_AddRef (IHTMLMetaElement *iface)
 
static ULONG WINAPI HTMLMetaElement_Release (IHTMLMetaElement *iface)
 
static HRESULT WINAPI HTMLMetaElement_GetTypeInfoCount (IHTMLMetaElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLMetaElement_GetTypeInfo (IHTMLMetaElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLMetaElement_GetIDsOfNames (IHTMLMetaElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLMetaElement_Invoke (IHTMLMetaElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLMetaElement_put_httpEquiv (IHTMLMetaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLMetaElement_get_httpEquiv (IHTMLMetaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLMetaElement_put_content (IHTMLMetaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLMetaElement_get_content (IHTMLMetaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLMetaElement_put_name (IHTMLMetaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLMetaElement_get_name (IHTMLMetaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLMetaElement_put_url (IHTMLMetaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLMetaElement_get_url (IHTMLMetaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLMetaElement_put_charset (IHTMLMetaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLMetaElement_get_charset (IHTMLMetaElement *iface, BSTR *p)
 
static HTMLMetaElementimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLMetaElement_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static void HTMLMetaElement_destructor (HTMLDOMNode *iface)
 
HRESULT HTMLMetaElement_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 

Variables

static const WCHAR charsetW [] = {'c','h','a','r','s','e','t',0}
 
static const IHTMLMetaElementVtbl HTMLMetaElementVtbl
 
static const NodeImplVtbl HTMLMetaElementImplVtbl
 
static const tid_t HTMLMetaElement_iface_tids []
 
static dispex_static_data_t HTMLMetaElement_dispex
 

Function Documentation

◆ HTMLMetaElement_AddRef()

static ULONG WINAPI HTMLMetaElement_AddRef ( IHTMLMetaElement *  iface)
static

Definition at line 39 of file htmlmeta.c.

40{
42
43 return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
44}
static HTMLMetaElement * impl_from_IHTMLMetaElement(IHTMLMetaElement *iface)
Definition: htmlmeta.c:27

◆ HTMLMetaElement_Create()

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

Definition at line 244 of file htmlmeta.c.

245{
247
248 ret = heap_alloc_zero(sizeof(*ret));
249 if(!ret)
250 return E_OUTOFMEMORY;
251
252 ret->IHTMLMetaElement_iface.lpVtbl = &HTMLMetaElementVtbl;
253 ret->element.node.vtbl = &HTMLMetaElementImplVtbl;
254
255 HTMLElement_Init(&ret->element, doc, nselem, &HTMLMetaElement_dispex);
256
257 *elem = &ret->element;
258 return S_OK;
259}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmlelem.c:4008
static dispex_static_data_t HTMLMetaElement_dispex
Definition: htmlmeta.c:237
static const NodeImplVtbl HTMLMetaElementImplVtbl
Definition: htmlmeta.c:222
static const IHTMLMetaElementVtbl HTMLMetaElementVtbl
Definition: htmlmeta.c:169
#define S_OK
Definition: intsafe.h:52
static size_t elem
Definition: string.c:68
int ret

◆ HTMLMetaElement_destructor()

static void HTMLMetaElement_destructor ( HTMLDOMNode iface)
static

Definition at line 215 of file htmlmeta.c.

216{
218
219 HTMLElement_destructor(&This->element.node);
220}
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
static HTMLMetaElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlmeta.c:189

◆ HTMLMetaElement_get_charset()

static HRESULT WINAPI HTMLMetaElement_get_charset ( IHTMLMetaElement *  iface,
BSTR p 
)
static

Definition at line 160 of file htmlmeta.c.

161{
163
164 TRACE("(%p)->(%p)\n", This, p);
165
166 return elem_string_attr_getter(&This->element, charsetW, TRUE, p);
167}
#define TRUE
Definition: types.h:120
GLfloat GLfloat p
Definition: glext.h:8902
HRESULT elem_string_attr_getter(HTMLElement *elem, const WCHAR *name, BOOL use_null, BSTR *p)
Definition: htmlelem.c:162
static const WCHAR charsetW[]
Definition: htmlmeta.c:149
#define TRACE(s)
Definition: solgame.cpp:4

◆ HTMLMetaElement_get_content()

static HRESULT WINAPI HTMLMetaElement_get_content ( IHTMLMetaElement *  iface,
BSTR p 
)
static

Definition at line 108 of file htmlmeta.c.

109{
111 static const PRUnichar contentW[] = {'c','o','n','t','e','n','t',0};
112
113 TRACE("(%p)->(%p)\n", This, p);
114
115 return elem_string_attr_getter(&This->element, contentW, TRUE, p);
116}
WCHAR PRUnichar
Definition: nsiface.idl:48

◆ HTMLMetaElement_get_httpEquiv()

static HRESULT WINAPI HTMLMetaElement_get_httpEquiv ( IHTMLMetaElement *  iface,
BSTR p 
)
static

Definition at line 91 of file htmlmeta.c.

92{
94 static const PRUnichar httpEquivW[] = {'h','t','t','p','-','e','q','u','i','v',0};
95
96 TRACE("(%p)->(%p)\n", This, p);
97
98 return elem_string_attr_getter(&This->element, httpEquivW, TRUE, p);
99}

◆ HTMLMetaElement_get_name()

static HRESULT WINAPI HTMLMetaElement_get_name ( IHTMLMetaElement *  iface,
BSTR p 
)
static

Definition at line 125 of file htmlmeta.c.

126{
128 static const PRUnichar nameW[] = {'n','a','m','e',0};
129
130 TRACE("(%p)->(%p)\n", This, p);
131
132 return elem_string_attr_getter(&This->element, nameW, TRUE, p);
133}
static const WCHAR nameW[]
Definition: main.c:46

◆ HTMLMetaElement_get_url()

static HRESULT WINAPI HTMLMetaElement_get_url ( IHTMLMetaElement *  iface,
BSTR p 
)
static

Definition at line 142 of file htmlmeta.c.

143{
145 FIXME("(%p)->(%p)\n", This, p);
146 return E_NOTIMPL;
147}
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLMetaElement_GetIDsOfNames()

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

Definition at line 67 of file htmlmeta.c.

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

◆ HTMLMetaElement_GetTypeInfo()

static HRESULT WINAPI HTMLMetaElement_GetTypeInfo ( IHTMLMetaElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 59 of file htmlmeta.c.

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

◆ HTMLMetaElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLMetaElement_GetTypeInfoCount ( IHTMLMetaElement *  iface,
UINT pctinfo 
)
static

Definition at line 53 of file htmlmeta.c.

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

◆ HTMLMetaElement_Invoke()

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

Definition at line 75 of file htmlmeta.c.

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

◆ HTMLMetaElement_put_charset()

static HRESULT WINAPI HTMLMetaElement_put_charset ( IHTMLMetaElement *  iface,
BSTR  v 
)
static

Definition at line 151 of file htmlmeta.c.

152{
154
155 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
156
157 return elem_string_attr_setter(&This->element, charsetW, v);
158}
const GLdouble * v
Definition: gl.h:2040
HRESULT elem_string_attr_setter(HTMLElement *elem, const WCHAR *name, const WCHAR *value)
Definition: htmlelem.c:186
#define debugstr_w
Definition: kernel32.h:32

◆ HTMLMetaElement_put_content()

static HRESULT WINAPI HTMLMetaElement_put_content ( IHTMLMetaElement *  iface,
BSTR  v 
)
static

Definition at line 101 of file htmlmeta.c.

102{
104 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
105 return E_NOTIMPL;
106}

◆ HTMLMetaElement_put_httpEquiv()

static HRESULT WINAPI HTMLMetaElement_put_httpEquiv ( IHTMLMetaElement *  iface,
BSTR  v 
)
static

Definition at line 84 of file htmlmeta.c.

85{
87 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
88 return E_NOTIMPL;
89}

◆ HTMLMetaElement_put_name()

static HRESULT WINAPI HTMLMetaElement_put_name ( IHTMLMetaElement *  iface,
BSTR  v 
)
static

Definition at line 118 of file htmlmeta.c.

119{
121 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
122 return E_NOTIMPL;
123}

◆ HTMLMetaElement_put_url()

static HRESULT WINAPI HTMLMetaElement_put_url ( IHTMLMetaElement *  iface,
BSTR  v 
)
static

Definition at line 135 of file htmlmeta.c.

136{
138 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
139 return E_NOTIMPL;
140}

◆ HTMLMetaElement_QI()

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

Definition at line 194 of file htmlmeta.c.

195{
197
199 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
200 *ppv = &This->IHTMLMetaElement_iface;
201 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
202 TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
203 *ppv = &This->IHTMLMetaElement_iface;
204 }else if(IsEqualGUID(&IID_IHTMLMetaElement, riid)) {
205 TRACE("(%p)->(IID_IHTMLMetaElement %p)\n", This, ppv);
206 *ppv = &This->IHTMLMetaElement_iface;
207 }else {
208 return HTMLElement_QI(&This->element.node, riid, ppv);
209 }
210
211 IUnknown_AddRef((IUnknown*)*ppv);
212 return S_OK;
213}
const GUID IID_IUnknown
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:3738
REFIID LPVOID * ppv
Definition: atlbase.h:39
const GUID IID_IDispatch
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147

◆ HTMLMetaElement_QueryInterface()

static HRESULT WINAPI HTMLMetaElement_QueryInterface ( IHTMLMetaElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 32 of file htmlmeta.c.

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

◆ HTMLMetaElement_Release()

static ULONG WINAPI HTMLMetaElement_Release ( IHTMLMetaElement *  iface)
static

Definition at line 46 of file htmlmeta.c.

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

◆ impl_from_HTMLDOMNode()

static HTMLMetaElement * impl_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

Definition at line 189 of file htmlmeta.c.

190{
191 return CONTAINING_RECORD(iface, HTMLMetaElement, element.node);
192}
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260

Referenced by HTMLMetaElement_destructor(), and HTMLMetaElement_QI().

◆ impl_from_IHTMLMetaElement()

Variable Documentation

◆ charsetW

const WCHAR charsetW[] = {'c','h','a','r','s','e','t',0}
static

◆ HTMLMetaElement_dispex

dispex_static_data_t HTMLMetaElement_dispex
static
Initial value:
= {
DispHTMLMetaElement_tid,
}
#define NULL
Definition: types.h:112
static const tid_t HTMLMetaElement_iface_tids[]
Definition: htmlmeta.c:231

Definition at line 237 of file htmlmeta.c.

Referenced by HTMLMetaElement_Create().

◆ HTMLMetaElement_iface_tids

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

Definition at line 231 of file htmlmeta.c.

◆ HTMLMetaElementImplVtbl

const NodeImplVtbl HTMLMetaElementImplVtbl
static
Initial value:
= {
}
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
static HRESULT HTMLMetaElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlmeta.c:194
static void HTMLMetaElement_destructor(HTMLDOMNode *iface)
Definition: htmlmeta.c:215

Definition at line 222 of file htmlmeta.c.

Referenced by HTMLMetaElement_Create().

◆ HTMLMetaElementVtbl

const IHTMLMetaElementVtbl HTMLMetaElementVtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLMetaElement_put_content(IHTMLMetaElement *iface, BSTR v)
Definition: htmlmeta.c:101
static HRESULT WINAPI HTMLMetaElement_get_content(IHTMLMetaElement *iface, BSTR *p)
Definition: htmlmeta.c:108
static HRESULT WINAPI HTMLMetaElement_get_httpEquiv(IHTMLMetaElement *iface, BSTR *p)
Definition: htmlmeta.c:91
static HRESULT WINAPI HTMLMetaElement_put_charset(IHTMLMetaElement *iface, BSTR v)
Definition: htmlmeta.c:151
static HRESULT WINAPI HTMLMetaElement_get_url(IHTMLMetaElement *iface, BSTR *p)
Definition: htmlmeta.c:142
static HRESULT WINAPI HTMLMetaElement_put_name(IHTMLMetaElement *iface, BSTR v)
Definition: htmlmeta.c:118
static HRESULT WINAPI HTMLMetaElement_get_name(IHTMLMetaElement *iface, BSTR *p)
Definition: htmlmeta.c:125
static HRESULT WINAPI HTMLMetaElement_GetTypeInfoCount(IHTMLMetaElement *iface, UINT *pctinfo)
Definition: htmlmeta.c:53
static HRESULT WINAPI HTMLMetaElement_QueryInterface(IHTMLMetaElement *iface, REFIID riid, void **ppv)
Definition: htmlmeta.c:32
static HRESULT WINAPI HTMLMetaElement_put_httpEquiv(IHTMLMetaElement *iface, BSTR v)
Definition: htmlmeta.c:84
static ULONG WINAPI HTMLMetaElement_AddRef(IHTMLMetaElement *iface)
Definition: htmlmeta.c:39
static HRESULT WINAPI HTMLMetaElement_Invoke(IHTMLMetaElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlmeta.c:75
static HRESULT WINAPI HTMLMetaElement_get_charset(IHTMLMetaElement *iface, BSTR *p)
Definition: htmlmeta.c:160
static HRESULT WINAPI HTMLMetaElement_GetIDsOfNames(IHTMLMetaElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlmeta.c:67
static ULONG WINAPI HTMLMetaElement_Release(IHTMLMetaElement *iface)
Definition: htmlmeta.c:46
static HRESULT WINAPI HTMLMetaElement_put_url(IHTMLMetaElement *iface, BSTR v)
Definition: htmlmeta.c:135
static HRESULT WINAPI HTMLMetaElement_GetTypeInfo(IHTMLMetaElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlmeta.c:59

Definition at line 169 of file htmlmeta.c.

Referenced by HTMLMetaElement_Create().