ReactOS 0.4.15-dev-7934-g1dc8d80
htmlembed.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmlembed.c:

Go to the source code of this file.

Classes

struct  HTMLEmbedElement
 

Functions

static HTMLEmbedElementimpl_from_IHTMLEmbedElement (IHTMLEmbedElement *iface)
 
static HRESULT WINAPI HTMLEmbedElement_QueryInterface (IHTMLEmbedElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLEmbedElement_AddRef (IHTMLEmbedElement *iface)
 
static ULONG WINAPI HTMLEmbedElement_Release (IHTMLEmbedElement *iface)
 
static HRESULT WINAPI HTMLEmbedElement_GetTypeInfoCount (IHTMLEmbedElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLEmbedElement_GetTypeInfo (IHTMLEmbedElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLEmbedElement_GetIDsOfNames (IHTMLEmbedElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLEmbedElement_Invoke (IHTMLEmbedElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLEmbedElement_put_hidden (IHTMLEmbedElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLEmbedElement_get_hidden (IHTMLEmbedElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLEmbedElement_get_palete (IHTMLEmbedElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLEmbedElement_get_pluginspage (IHTMLEmbedElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLEmbedElement_put_src (IHTMLEmbedElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLEmbedElement_get_src (IHTMLEmbedElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLEmbedElement_put_units (IHTMLEmbedElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLEmbedElement_get_units (IHTMLEmbedElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLEmbedElement_put_name (IHTMLEmbedElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLEmbedElement_get_name (IHTMLEmbedElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLEmbedElement_put_width (IHTMLEmbedElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLEmbedElement_get_width (IHTMLEmbedElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLEmbedElement_put_height (IHTMLEmbedElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLEmbedElement_get_height (IHTMLEmbedElement *iface, VARIANT *p)
 
static HTMLEmbedElementimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLEmbedElement_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static void HTMLEmbedElement_destructor (HTMLDOMNode *iface)
 
HRESULT HTMLEmbedElement_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 

Variables

static const IHTMLEmbedElementVtbl HTMLEmbedElementVtbl
 
static const NodeImplVtbl HTMLEmbedElementImplVtbl
 
static const tid_t HTMLEmbedElement_iface_tids []
 
static dispex_static_data_t HTMLEmbedElement_dispex
 

Function Documentation

◆ HTMLEmbedElement_AddRef()

static ULONG WINAPI HTMLEmbedElement_AddRef ( IHTMLEmbedElement *  iface)
static

Definition at line 40 of file htmlembed.c.

41{
43
44 return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
45}
static HTMLEmbedElement * impl_from_IHTMLEmbedElement(IHTMLEmbedElement *iface)
Definition: htmlembed.c:27

◆ HTMLEmbedElement_Create()

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

Definition at line 260 of file htmlembed.c.

261{
263
264 ret = heap_alloc_zero(sizeof(*ret));
265 if(!ret)
266 return E_OUTOFMEMORY;
267
268 ret->IHTMLEmbedElement_iface.lpVtbl = &HTMLEmbedElementVtbl;
269 ret->element.node.vtbl = &HTMLEmbedElementImplVtbl;
270
271 HTMLElement_Init(&ret->element, doc, nselem, &HTMLEmbedElement_dispex);
272 *elem = &ret->element;
273 return S_OK;
274}
#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 HTMLEmbedElement_dispex
Definition: htmlembed.c:253
static const NodeImplVtbl HTMLEmbedElementImplVtbl
Definition: htmlembed.c:239
static const IHTMLEmbedElementVtbl HTMLEmbedElementVtbl
Definition: htmlembed.c:183
#define S_OK
Definition: intsafe.h:52
static size_t elem
Definition: string.c:68
int ret

◆ HTMLEmbedElement_destructor()

static void HTMLEmbedElement_destructor ( HTMLDOMNode iface)
static

Definition at line 232 of file htmlembed.c.

233{
235
236 HTMLElement_destructor(&This->element.node);
237}
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
static HTMLEmbedElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlembed.c:207

◆ HTMLEmbedElement_get_height()

static HRESULT WINAPI HTMLEmbedElement_get_height ( IHTMLEmbedElement *  iface,
VARIANT p 
)
static

Definition at line 176 of file htmlembed.c.

177{
179 FIXME("(%p)->(%p)\n", This, p);
180 return E_NOTIMPL;
181}
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLEmbedElement_get_hidden()

static HRESULT WINAPI HTMLEmbedElement_get_hidden ( IHTMLEmbedElement *  iface,
BSTR p 
)
static

Definition at line 92 of file htmlembed.c.

93{
95 FIXME("(%p)->(%p)\n", This, p);
96 return E_NOTIMPL;
97}

◆ HTMLEmbedElement_get_name()

static HRESULT WINAPI HTMLEmbedElement_get_name ( IHTMLEmbedElement *  iface,
BSTR p 
)
static

Definition at line 148 of file htmlembed.c.

149{
151 FIXME("(%p)->(%p)\n", This, p);
152 return E_NOTIMPL;
153}

◆ HTMLEmbedElement_get_palete()

static HRESULT WINAPI HTMLEmbedElement_get_palete ( IHTMLEmbedElement *  iface,
BSTR p 
)
static

Definition at line 99 of file htmlembed.c.

100{
102 FIXME("(%p)->(%p)\n", This, p);
103 return E_NOTIMPL;
104}

◆ HTMLEmbedElement_get_pluginspage()

static HRESULT WINAPI HTMLEmbedElement_get_pluginspage ( IHTMLEmbedElement *  iface,
BSTR p 
)
static

Definition at line 106 of file htmlembed.c.

107{
109 FIXME("(%p)->(%p)\n", This, p);
110 return E_NOTIMPL;
111}

◆ HTMLEmbedElement_get_src()

static HRESULT WINAPI HTMLEmbedElement_get_src ( IHTMLEmbedElement *  iface,
BSTR p 
)
static

Definition at line 120 of file htmlembed.c.

121{
123 FIXME("(%p)->(%p)\n", This, p);
124 return E_NOTIMPL;
125}

◆ HTMLEmbedElement_get_units()

static HRESULT WINAPI HTMLEmbedElement_get_units ( IHTMLEmbedElement *  iface,
BSTR p 
)
static

Definition at line 134 of file htmlembed.c.

135{
137 FIXME("(%p)->(%p)\n", This, p);
138 return E_NOTIMPL;
139}

◆ HTMLEmbedElement_get_width()

static HRESULT WINAPI HTMLEmbedElement_get_width ( IHTMLEmbedElement *  iface,
VARIANT p 
)
static

Definition at line 162 of file htmlembed.c.

163{
165 FIXME("(%p)->(%p)\n", This, p);
166 return E_NOTIMPL;
167}

◆ HTMLEmbedElement_GetIDsOfNames()

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

Definition at line 68 of file htmlembed.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

◆ HTMLEmbedElement_GetTypeInfo()

static HRESULT WINAPI HTMLEmbedElement_GetTypeInfo ( IHTMLEmbedElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 60 of file htmlembed.c.

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

◆ HTMLEmbedElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLEmbedElement_GetTypeInfoCount ( IHTMLEmbedElement *  iface,
UINT pctinfo 
)
static

Definition at line 54 of file htmlembed.c.

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

◆ HTMLEmbedElement_Invoke()

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

Definition at line 76 of file htmlembed.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

◆ HTMLEmbedElement_put_height()

static HRESULT WINAPI HTMLEmbedElement_put_height ( IHTMLEmbedElement *  iface,
VARIANT  v 
)
static

Definition at line 169 of file htmlembed.c.

170{
172 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
173 return E_NOTIMPL;
174}
const GLdouble * v
Definition: gl.h:2040
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46

◆ HTMLEmbedElement_put_hidden()

static HRESULT WINAPI HTMLEmbedElement_put_hidden ( IHTMLEmbedElement *  iface,
BSTR  v 
)
static

Definition at line 85 of file htmlembed.c.

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

◆ HTMLEmbedElement_put_name()

static HRESULT WINAPI HTMLEmbedElement_put_name ( IHTMLEmbedElement *  iface,
BSTR  v 
)
static

Definition at line 141 of file htmlembed.c.

142{
144 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
145 return E_NOTIMPL;
146}

◆ HTMLEmbedElement_put_src()

static HRESULT WINAPI HTMLEmbedElement_put_src ( IHTMLEmbedElement *  iface,
BSTR  v 
)
static

Definition at line 113 of file htmlembed.c.

114{
116 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
117 return E_NOTIMPL;
118}

◆ HTMLEmbedElement_put_units()

static HRESULT WINAPI HTMLEmbedElement_put_units ( IHTMLEmbedElement *  iface,
BSTR  v 
)
static

Definition at line 127 of file htmlembed.c.

128{
130 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
131 return E_NOTIMPL;
132}

◆ HTMLEmbedElement_put_width()

static HRESULT WINAPI HTMLEmbedElement_put_width ( IHTMLEmbedElement *  iface,
VARIANT  v 
)
static

Definition at line 155 of file htmlembed.c.

156{
158 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
159 return E_NOTIMPL;
160}

◆ HTMLEmbedElement_QI()

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

Definition at line 212 of file htmlembed.c.

213{
215
216 TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
217
219 *ppv = &This->IHTMLEmbedElement_iface;
220 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
221 *ppv = &This->IHTMLEmbedElement_iface;
222 }else if(IsEqualGUID(&IID_IHTMLEmbedElement, riid)) {
223 *ppv = &This->IHTMLEmbedElement_iface;
224 }else {
225 return HTMLElement_QI(&This->element.node, riid, ppv);
226 }
227
228 IUnknown_AddRef((IUnknown*)*ppv);
229 return S_OK;
230}
const GUID IID_IUnknown
const char * debugstr_mshtml_guid(const GUID *iid)
Definition: main.c:542
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
#define TRACE(s)
Definition: solgame.cpp:4

◆ HTMLEmbedElement_QueryInterface()

static HRESULT WINAPI HTMLEmbedElement_QueryInterface ( IHTMLEmbedElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 32 of file htmlembed.c.

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

◆ HTMLEmbedElement_Release()

static ULONG WINAPI HTMLEmbedElement_Release ( IHTMLEmbedElement *  iface)
static

Definition at line 47 of file htmlembed.c.

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

◆ impl_from_HTMLDOMNode()

static HTMLEmbedElement * impl_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

Definition at line 207 of file htmlembed.c.

208{
209 return CONTAINING_RECORD(iface, HTMLEmbedElement, element.node);
210}
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260

Referenced by HTMLEmbedElement_destructor(), and HTMLEmbedElement_QI().

◆ impl_from_IHTMLEmbedElement()

Variable Documentation

◆ HTMLEmbedElement_dispex

dispex_static_data_t HTMLEmbedElement_dispex
static
Initial value:
= {
DispHTMLEmbed_tid,
}
#define NULL
Definition: types.h:112
static const tid_t HTMLEmbedElement_iface_tids[]
Definition: htmlembed.c:248

Definition at line 253 of file htmlembed.c.

Referenced by HTMLEmbedElement_Create().

◆ HTMLEmbedElement_iface_tids

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

Definition at line 248 of file htmlembed.c.

◆ HTMLEmbedElementImplVtbl

const NodeImplVtbl HTMLEmbedElementImplVtbl
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 HTMLEmbedElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlembed.c:212
static void HTMLEmbedElement_destructor(HTMLDOMNode *iface)
Definition: htmlembed.c:232

Definition at line 239 of file htmlembed.c.

Referenced by HTMLEmbedElement_Create().

◆ HTMLEmbedElementVtbl

const IHTMLEmbedElementVtbl HTMLEmbedElementVtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLEmbedElement_Invoke(IHTMLEmbedElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlembed.c:76
static HRESULT WINAPI HTMLEmbedElement_get_width(IHTMLEmbedElement *iface, VARIANT *p)
Definition: htmlembed.c:162
static HRESULT WINAPI HTMLEmbedElement_put_src(IHTMLEmbedElement *iface, BSTR v)
Definition: htmlembed.c:113
static HRESULT WINAPI HTMLEmbedElement_get_pluginspage(IHTMLEmbedElement *iface, BSTR *p)
Definition: htmlembed.c:106
static HRESULT WINAPI HTMLEmbedElement_GetTypeInfoCount(IHTMLEmbedElement *iface, UINT *pctinfo)
Definition: htmlembed.c:54
static HRESULT WINAPI HTMLEmbedElement_QueryInterface(IHTMLEmbedElement *iface, REFIID riid, void **ppv)
Definition: htmlembed.c:32
static ULONG WINAPI HTMLEmbedElement_AddRef(IHTMLEmbedElement *iface)
Definition: htmlembed.c:40
static HRESULT WINAPI HTMLEmbedElement_put_name(IHTMLEmbedElement *iface, BSTR v)
Definition: htmlembed.c:141
static ULONG WINAPI HTMLEmbedElement_Release(IHTMLEmbedElement *iface)
Definition: htmlembed.c:47
static HRESULT WINAPI HTMLEmbedElement_get_palete(IHTMLEmbedElement *iface, BSTR *p)
Definition: htmlembed.c:99
static HRESULT WINAPI HTMLEmbedElement_get_units(IHTMLEmbedElement *iface, BSTR *p)
Definition: htmlembed.c:134
static HRESULT WINAPI HTMLEmbedElement_put_hidden(IHTMLEmbedElement *iface, BSTR v)
Definition: htmlembed.c:85
static HRESULT WINAPI HTMLEmbedElement_put_width(IHTMLEmbedElement *iface, VARIANT v)
Definition: htmlembed.c:155
static HRESULT WINAPI HTMLEmbedElement_put_height(IHTMLEmbedElement *iface, VARIANT v)
Definition: htmlembed.c:169
static HRESULT WINAPI HTMLEmbedElement_get_name(IHTMLEmbedElement *iface, BSTR *p)
Definition: htmlembed.c:148
static HRESULT WINAPI HTMLEmbedElement_get_src(IHTMLEmbedElement *iface, BSTR *p)
Definition: htmlembed.c:120
static HRESULT WINAPI HTMLEmbedElement_GetTypeInfo(IHTMLEmbedElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlembed.c:60
static HRESULT WINAPI HTMLEmbedElement_put_units(IHTMLEmbedElement *iface, BSTR v)
Definition: htmlembed.c:127
static HRESULT WINAPI HTMLEmbedElement_get_hidden(IHTMLEmbedElement *iface, BSTR *p)
Definition: htmlembed.c:92
static HRESULT WINAPI HTMLEmbedElement_get_height(IHTMLEmbedElement *iface, VARIANT *p)
Definition: htmlembed.c:176
static HRESULT WINAPI HTMLEmbedElement_GetIDsOfNames(IHTMLEmbedElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlembed.c:68

Definition at line 183 of file htmlembed.c.

Referenced by HTMLEmbedElement_Create().