ReactOS 0.4.15-dev-7942-gd23573b
htmliframe.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmliframe.c:

Go to the source code of this file.

Classes

struct  HTMLIFrame
 

Functions

static HTMLIFrameimpl_from_IHTMLIFrameElement (IHTMLIFrameElement *iface)
 
static HRESULT WINAPI HTMLIFrameElement_QueryInterface (IHTMLIFrameElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLIFrameElement_AddRef (IHTMLIFrameElement *iface)
 
static ULONG WINAPI HTMLIFrameElement_Release (IHTMLIFrameElement *iface)
 
static HRESULT WINAPI HTMLIFrameElement_GetTypeInfoCount (IHTMLIFrameElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLIFrameElement_GetTypeInfo (IHTMLIFrameElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLIFrameElement_GetIDsOfNames (IHTMLIFrameElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLIFrameElement_Invoke (IHTMLIFrameElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLIFrameElement_put_vspace (IHTMLIFrameElement *iface, LONG v)
 
static HRESULT WINAPI HTMLIFrameElement_get_vspace (IHTMLIFrameElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLIFrameElement_put_hspace (IHTMLIFrameElement *iface, LONG v)
 
static HRESULT WINAPI HTMLIFrameElement_get_hspace (IHTMLIFrameElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLIFrameElement_put_align (IHTMLIFrameElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLIFrameElement_get_align (IHTMLIFrameElement *iface, BSTR *p)
 
static HTMLIFrameimpl_from_IHTMLIFrameElement2 (IHTMLIFrameElement2 *iface)
 
static HRESULT WINAPI HTMLIFrameElement2_QueryInterface (IHTMLIFrameElement2 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLIFrameElement2_AddRef (IHTMLIFrameElement2 *iface)
 
static ULONG WINAPI HTMLIFrameElement2_Release (IHTMLIFrameElement2 *iface)
 
static HRESULT WINAPI HTMLIFrameElement2_GetTypeInfoCount (IHTMLIFrameElement2 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLIFrameElement2_GetTypeInfo (IHTMLIFrameElement2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLIFrameElement2_GetIDsOfNames (IHTMLIFrameElement2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLIFrameElement2_Invoke (IHTMLIFrameElement2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLIFrameElement2_put_height (IHTMLIFrameElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLIFrameElement2_get_height (IHTMLIFrameElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLIFrameElement2_put_width (IHTMLIFrameElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLIFrameElement2_get_width (IHTMLIFrameElement2 *iface, VARIANT *p)
 
static HTMLIFrameimpl_from_IHTMLIFrameElement3 (IHTMLIFrameElement3 *iface)
 
static HRESULT WINAPI HTMLIFrameElement3_QueryInterface (IHTMLIFrameElement3 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLIFrameElement3_AddRef (IHTMLIFrameElement3 *iface)
 
static ULONG WINAPI HTMLIFrameElement3_Release (IHTMLIFrameElement3 *iface)
 
static HRESULT WINAPI HTMLIFrameElement3_GetTypeInfoCount (IHTMLIFrameElement3 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLIFrameElement3_GetTypeInfo (IHTMLIFrameElement3 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLIFrameElement3_GetIDsOfNames (IHTMLIFrameElement3 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLIFrameElement3_Invoke (IHTMLIFrameElement3 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLIFrameElement3_get_contentDocument (IHTMLIFrameElement3 *iface, IDispatch **p)
 
static HRESULT WINAPI HTMLIFrameElement3_put_src (IHTMLIFrameElement3 *iface, BSTR v)
 
static HRESULT WINAPI HTMLIFrameElement3_get_src (IHTMLIFrameElement3 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLIFrameElement3_put_longDesc (IHTMLIFrameElement3 *iface, BSTR v)
 
static HRESULT WINAPI HTMLIFrameElement3_get_longDesc (IHTMLIFrameElement3 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLIFrameElement3_put_frameBorder (IHTMLIFrameElement3 *iface, BSTR v)
 
static HRESULT WINAPI HTMLIFrameElement3_get_frameBorder (IHTMLIFrameElement3 *iface, BSTR *p)
 
static HTMLIFrameimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLIFrame_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static void HTMLIFrame_destructor (HTMLDOMNode *iface)
 
static HRESULT HTMLIFrame_get_document (HTMLDOMNode *iface, IDispatch **p)
 
static HRESULT HTMLIFrame_get_dispid (HTMLDOMNode *iface, BSTR name, DWORD grfdex, DISPID *pid)
 
static HRESULT HTMLIFrame_invoke (HTMLDOMNode *iface, DISPID id, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
 
static HRESULT HTMLIFrame_get_readystate (HTMLDOMNode *iface, BSTR *p)
 
static HRESULT HTMLIFrame_bind_to_tree (HTMLDOMNode *iface)
 
static void HTMLIFrame_traverse (HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
 
static void HTMLIFrame_unlink (HTMLDOMNode *iface)
 
HRESULT HTMLIFrame_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 

Variables

static const IHTMLIFrameElementVtbl HTMLIFrameElementVtbl
 
static const IHTMLIFrameElement2Vtbl HTMLIFrameElement2Vtbl
 
static const IHTMLIFrameElement3Vtbl HTMLIFrameElement3Vtbl
 
static const NodeImplVtbl HTMLIFrameImplVtbl
 
static const tid_t HTMLIFrame_iface_tids []
 
static dispex_static_data_t HTMLIFrame_dispex
 

Function Documentation

◆ HTMLIFrame_bind_to_tree()

static HRESULT HTMLIFrame_bind_to_tree ( HTMLDOMNode iface)
static

Definition at line 511 of file htmliframe.c.

512{
514 nsIDOMDocument *nsdoc;
515 nsresult nsres;
517
518 nsres = nsIDOMHTMLIFrameElement_GetContentDocument(This->framebase.nsiframe, &nsdoc);
519 if(NS_FAILED(nsres) || !nsdoc) {
520 ERR("GetContentDocument failed: %08x\n", nsres);
521 return E_FAIL;
522 }
523
524 hres = set_frame_doc(&This->framebase, nsdoc);
525 nsIDOMDocument_Release(nsdoc);
526 return hres;
527}
#define ERR(fmt,...)
Definition: debug.h:110
#define E_FAIL
Definition: ddrawi.h:102
HRESULT set_frame_doc(HTMLFrameBase *frame, nsIDOMDocument *nsdoc)
Definition: htmlframebase.c:26
static HTMLIFrame * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmliframe.c:432
HRESULT hres
Definition: protocol.c:465
#define NS_FAILED(res)

◆ HTMLIFrame_Create()

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

Definition at line 586 of file htmliframe.c.

587{
589
590 ret = heap_alloc_zero(sizeof(HTMLIFrame));
591 if(!ret)
592 return E_OUTOFMEMORY;
593
594 ret->IHTMLIFrameElement_iface.lpVtbl = &HTMLIFrameElementVtbl;
595 ret->IHTMLIFrameElement2_iface.lpVtbl = &HTMLIFrameElement2Vtbl;
596 ret->IHTMLIFrameElement3_iface.lpVtbl = &HTMLIFrameElement3Vtbl;
597 ret->framebase.element.node.vtbl = &HTMLIFrameImplVtbl;
598
599 HTMLFrameBase_Init(&ret->framebase, doc, nselem, &HTMLIFrame_dispex);
600
601 *elem = &ret->framebase.element;
602 return S_OK;
603}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
void HTMLFrameBase_Init(HTMLFrameBase *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
static const NodeImplVtbl HTMLIFrameImplVtbl
Definition: htmliframe.c:549
static dispex_static_data_t HTMLIFrame_dispex
Definition: htmliframe.c:579
static const IHTMLIFrameElement3Vtbl HTMLIFrameElement3Vtbl
Definition: htmliframe.c:415
static const IHTMLIFrameElement2Vtbl HTMLIFrameElement2Vtbl
Definition: htmliframe.c:282
static const IHTMLIFrameElementVtbl HTMLIFrameElementVtbl
Definition: htmliframe.c:129
#define S_OK
Definition: intsafe.h:52
static size_t elem
Definition: string.c:68
int ret

◆ HTMLIFrame_destructor()

static void HTMLIFrame_destructor ( HTMLDOMNode iface)
static

Definition at line 458 of file htmliframe.c.

459{
461
462 HTMLFrameBase_destructor(&This->framebase);
463}
void HTMLFrameBase_destructor(HTMLFrameBase *This)

◆ HTMLIFrame_get_dispid()

static HRESULT HTMLIFrame_get_dispid ( HTMLDOMNode iface,
BSTR  name,
DWORD  grfdex,
DISPID pid 
)
static

Definition at line 479 of file htmliframe.c.

481{
483
484 if(!This->framebase.content_window)
485 return DISP_E_UNKNOWNNAME;
486
487 return search_window_props(This->framebase.content_window->base.inner_window, name, grfdex, pid);
488}
HRESULT search_window_props(HTMLInnerWindow *This, BSTR bstrName, DWORD grfdex, DISPID *pid)
Definition: htmlwindow.c:2513
Definition: name.c:39
_In_ ULONG_PTR _In_ ULONG _Out_ ULONG_PTR * pid
Definition: winddi.h:3837
#define DISP_E_UNKNOWNNAME
Definition: winerror.h:2515

◆ HTMLIFrame_get_document()

static HRESULT HTMLIFrame_get_document ( HTMLDOMNode iface,
IDispatch **  p 
)
static

Definition at line 465 of file htmliframe.c.

466{
468
469 if(!This->framebase.content_window || !This->framebase.content_window->base.inner_window->doc) {
470 *p = NULL;
471 return S_OK;
472 }
473
474 *p = (IDispatch*)&This->framebase.content_window->base.inner_window->doc->basedoc.IHTMLDocument2_iface;
475 IDispatch_AddRef(*p);
476 return S_OK;
477}
#define NULL
Definition: types.h:112
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLIFrame_get_readystate()

static HRESULT HTMLIFrame_get_readystate ( HTMLDOMNode iface,
BSTR p 
)
static

Definition at line 504 of file htmliframe.c.

505{
507
508 return IHTMLFrameBase2_get_readyState(&This->framebase.IHTMLFrameBase2_iface, p);
509}

◆ HTMLIFrame_invoke()

static HRESULT HTMLIFrame_invoke ( HTMLDOMNode iface,
DISPID  id,
LCID  lcid,
WORD  flags,
DISPPARAMS *  params,
VARIANT res,
EXCEPINFO *  ei,
IServiceProvider caller 
)
static

Definition at line 490 of file htmliframe.c.

492{
494
495 if(!This->framebase.content_window) {
496 ERR("no content window to invoke on\n");
497 return E_FAIL;
498 }
499
500 return IDispatchEx_InvokeEx(&This->framebase.content_window->base.IDispatchEx_iface, id, lcid,
501 flags, params, res, ei, caller);
502}
GLuint res
Definition: glext.h:9613
GLenum const GLfloat * params
Definition: glext.h:5645
GLbitfield flags
Definition: glext.h:7161

◆ HTMLIFrame_QI()

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

Definition at line 437 of file htmliframe.c.

438{
440
441 if(IsEqualGUID(&IID_IHTMLIFrameElement, riid)) {
442 TRACE("(%p)->(IID_IHTMLIFrameElement %p)\n", This, ppv);
443 *ppv = &This->IHTMLIFrameElement_iface;
444 }else if(IsEqualGUID(&IID_IHTMLIFrameElement2, riid)) {
445 TRACE("(%p)->(IID_IHTMLIFrameElement2 %p)\n", This, ppv);
446 *ppv = &This->IHTMLIFrameElement2_iface;
447 }else if(IsEqualGUID(&IID_IHTMLIFrameElement3, riid)) {
448 TRACE("(%p)->(IID_IHTMLIFrameElement3 %p)\n", This, ppv);
449 *ppv = &This->IHTMLIFrameElement3_iface;
450 }else {
451 return HTMLFrameBase_QI(&This->framebase, riid, ppv);
452 }
453
454 IUnknown_AddRef((IUnknown*)*ppv);
455 return S_OK;
456}
HRESULT HTMLFrameBase_QI(HTMLFrameBase *This, REFIID riid, void **ppv)
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define TRACE(s)
Definition: solgame.cpp:4

◆ HTMLIFrame_traverse()

static void HTMLIFrame_traverse ( HTMLDOMNode iface,
nsCycleCollectionTraversalCallback cb 
)
static

Definition at line 529 of file htmliframe.c.

530{
532
533 if(This->framebase.nsiframe)
534 note_cc_edge((nsISupports*)This->framebase.nsiframe, "This->nsiframe", cb);
535}
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33

◆ HTMLIFrame_unlink()

static void HTMLIFrame_unlink ( HTMLDOMNode iface)
static

Definition at line 537 of file htmliframe.c.

538{
540
541 if(This->framebase.nsiframe) {
542 nsIDOMHTMLIFrameElement *nsiframe = This->framebase.nsiframe;
543
544 This->framebase.nsiframe = NULL;
545 nsIDOMHTMLIFrameElement_Release(nsiframe);
546 }
547}

◆ HTMLIFrameElement2_AddRef()

static ULONG WINAPI HTMLIFrameElement2_AddRef ( IHTMLIFrameElement2 *  iface)
static

Definition at line 158 of file htmliframe.c.

159{
161
162 return IHTMLDOMNode_AddRef(&This->framebase.element.node.IHTMLDOMNode_iface);
163}
static HTMLIFrame * impl_from_IHTMLIFrameElement2(IHTMLIFrameElement2 *iface)
Definition: htmliframe.c:145

◆ HTMLIFrameElement2_get_height()

static HRESULT WINAPI HTMLIFrameElement2_get_height ( IHTMLIFrameElement2 *  iface,
VARIANT p 
)
static

Definition at line 228 of file htmliframe.c.

229{
231 nsAString nsstr;
232 nsresult nsres;
233
234 TRACE("(%p)->(%p)\n", This, p);
235
236 nsAString_Init(&nsstr, NULL);
237 nsres = nsIDOMHTMLIFrameElement_GetHeight(This->framebase.nsiframe, &nsstr);
238
239 V_VT(p) = VT_BSTR;
240 return return_nsstr(nsres, &nsstr, &V_BSTR(p));
241}
@ VT_BSTR
Definition: compat.h:2303
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226

◆ HTMLIFrameElement2_get_width()

static HRESULT WINAPI HTMLIFrameElement2_get_width ( IHTMLIFrameElement2 *  iface,
VARIANT p 
)
static

Definition at line 267 of file htmliframe.c.

268{
270 nsAString nsstr;
271 nsresult nsres;
272
273 TRACE("(%p)->(%p)\n", This, p);
274
275 nsAString_Init(&nsstr, NULL);
276 nsres = nsIDOMHTMLIFrameElement_GetWidth(This->framebase.nsiframe, &nsstr);
277
278 V_VT(p) = VT_BSTR;
279 return return_nsstr(nsres, &nsstr, &V_BSTR(p));
280}

◆ HTMLIFrameElement2_GetIDsOfNames()

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

Definition at line 187 of file htmliframe.c.

189{
191 return IDispatchEx_GetIDsOfNames(&This->framebase.element.node.event_target.dispex.IDispatchEx_iface, riid,
192 rgszNames, cNames, lcid, rgDispId);
193}

◆ HTMLIFrameElement2_GetTypeInfo()

static HRESULT WINAPI HTMLIFrameElement2_GetTypeInfo ( IHTMLIFrameElement2 *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 179 of file htmliframe.c.

181{
183 return IDispatchEx_GetTypeInfo(&This->framebase.element.node.event_target.dispex.IDispatchEx_iface, iTInfo,
184 lcid, ppTInfo);
185}

◆ HTMLIFrameElement2_GetTypeInfoCount()

static HRESULT WINAPI HTMLIFrameElement2_GetTypeInfoCount ( IHTMLIFrameElement2 *  iface,
UINT pctinfo 
)
static

Definition at line 172 of file htmliframe.c.

173{
175 return IDispatchEx_GetTypeInfoCount(&This->framebase.element.node.event_target.dispex.IDispatchEx_iface,
176 pctinfo);
177}

◆ HTMLIFrameElement2_Invoke()

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

Definition at line 195 of file htmliframe.c.

198{
200 return IDispatchEx_Invoke(&This->framebase.element.node.event_target.dispex.IDispatchEx_iface, dispIdMember,
201 riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
202}
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:531

◆ HTMLIFrameElement2_put_height()

static HRESULT WINAPI HTMLIFrameElement2_put_height ( IHTMLIFrameElement2 *  iface,
VARIANT  v 
)
static

Definition at line 204 of file htmliframe.c.

205{
207 nsAString nsstr;
208 nsresult nsres;
209
210 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
211
212 if(V_VT(&v) != VT_BSTR) {
213 FIXME("Unsupported %s\n", debugstr_variant(&v));
214 return E_NOTIMPL;
215 }
216
217 nsAString_InitDepend(&nsstr, V_BSTR(&v));
218 nsres = nsIDOMHTMLIFrameElement_SetHeight(This->framebase.nsiframe, &nsstr);
219 nsAString_Finish(&nsstr);
220 if(NS_FAILED(nsres)) {
221 ERR("SetHeight failed: %08x\n", nsres);
222 return E_FAIL;
223 }
224
225 return S_OK;
226}
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99
const GLdouble * v
Definition: gl.h:2040
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826

◆ HTMLIFrameElement2_put_width()

static HRESULT WINAPI HTMLIFrameElement2_put_width ( IHTMLIFrameElement2 *  iface,
VARIANT  v 
)
static

Definition at line 243 of file htmliframe.c.

244{
246 nsAString nsstr;
247 nsresult nsres;
248
249 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
250
251 if(V_VT(&v) != VT_BSTR) {
252 FIXME("Unsupported %s\n", debugstr_variant(&v));
253 return E_NOTIMPL;
254 }
255
256 nsAString_InitDepend(&nsstr, V_BSTR(&v));
257 nsres = nsIDOMHTMLIFrameElement_SetWidth(This->framebase.nsiframe, &nsstr);
258 nsAString_Finish(&nsstr);
259 if(NS_FAILED(nsres)) {
260 ERR("SetWidth failed: %08x\n", nsres);
261 return E_FAIL;
262 }
263
264 return S_OK;
265}

◆ HTMLIFrameElement2_QueryInterface()

static HRESULT WINAPI HTMLIFrameElement2_QueryInterface ( IHTMLIFrameElement2 *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 150 of file htmliframe.c.

152{
154
155 return IHTMLDOMNode_QueryInterface(&This->framebase.element.node.IHTMLDOMNode_iface, riid, ppv);
156}

◆ HTMLIFrameElement2_Release()

static ULONG WINAPI HTMLIFrameElement2_Release ( IHTMLIFrameElement2 *  iface)
static

Definition at line 165 of file htmliframe.c.

166{
168
169 return IHTMLDOMNode_Release(&This->framebase.element.node.IHTMLDOMNode_iface);
170}

◆ HTMLIFrameElement3_AddRef()

static ULONG WINAPI HTMLIFrameElement3_AddRef ( IHTMLIFrameElement3 *  iface)
static

Definition at line 309 of file htmliframe.c.

310{
312
313 return IHTMLDOMNode_AddRef(&This->framebase.element.node.IHTMLDOMNode_iface);
314}
static HTMLIFrame * impl_from_IHTMLIFrameElement3(IHTMLIFrameElement3 *iface)
Definition: htmliframe.c:296

◆ HTMLIFrameElement3_get_contentDocument()

static HRESULT WINAPI HTMLIFrameElement3_get_contentDocument ( IHTMLIFrameElement3 *  iface,
IDispatch **  p 
)
static

Definition at line 355 of file htmliframe.c.

356{
358 IHTMLDocument2 *doc;
360
361 TRACE("(%p)->(%p)\n", This, p);
362
363 if(!This->framebase.content_window) {
364 *p = NULL;
365 return S_OK;
366 }
367
368 hres = IHTMLWindow2_get_document(&This->framebase.content_window->base.IHTMLWindow2_iface, &doc);
369 *p = (IDispatch*)doc;
370 return hres;
371}

◆ HTMLIFrameElement3_get_frameBorder()

static HRESULT WINAPI HTMLIFrameElement3_get_frameBorder ( IHTMLIFrameElement3 *  iface,
BSTR p 
)
static

Definition at line 408 of file htmliframe.c.

409{
411 FIXME("(%p)->(%p)\n", This, p);
412 return E_NOTIMPL;
413}

◆ HTMLIFrameElement3_get_longDesc()

static HRESULT WINAPI HTMLIFrameElement3_get_longDesc ( IHTMLIFrameElement3 *  iface,
BSTR p 
)
static

Definition at line 394 of file htmliframe.c.

395{
397 FIXME("(%p)->(%p)\n", This, p);
398 return E_NOTIMPL;
399}

◆ HTMLIFrameElement3_get_src()

static HRESULT WINAPI HTMLIFrameElement3_get_src ( IHTMLIFrameElement3 *  iface,
BSTR p 
)
static

Definition at line 380 of file htmliframe.c.

381{
383 FIXME("(%p)->(%p)\n", This, p);
384 return E_NOTIMPL;
385}

◆ HTMLIFrameElement3_GetIDsOfNames()

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

Definition at line 338 of file htmliframe.c.

340{
342 return IDispatchEx_GetIDsOfNames(&This->framebase.element.node.event_target.dispex.IDispatchEx_iface, riid,
343 rgszNames, cNames, lcid, rgDispId);
344}

◆ HTMLIFrameElement3_GetTypeInfo()

static HRESULT WINAPI HTMLIFrameElement3_GetTypeInfo ( IHTMLIFrameElement3 *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 330 of file htmliframe.c.

332{
334 return IDispatchEx_GetTypeInfo(&This->framebase.element.node.event_target.dispex.IDispatchEx_iface, iTInfo,
335 lcid, ppTInfo);
336}

◆ HTMLIFrameElement3_GetTypeInfoCount()

static HRESULT WINAPI HTMLIFrameElement3_GetTypeInfoCount ( IHTMLIFrameElement3 *  iface,
UINT pctinfo 
)
static

Definition at line 323 of file htmliframe.c.

324{
326 return IDispatchEx_GetTypeInfoCount(&This->framebase.element.node.event_target.dispex.IDispatchEx_iface,
327 pctinfo);
328}

◆ HTMLIFrameElement3_Invoke()

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

Definition at line 346 of file htmliframe.c.

349{
351 return IDispatchEx_Invoke(&This->framebase.element.node.event_target.dispex.IDispatchEx_iface, dispIdMember,
352 riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
353}

◆ HTMLIFrameElement3_put_frameBorder()

static HRESULT WINAPI HTMLIFrameElement3_put_frameBorder ( IHTMLIFrameElement3 *  iface,
BSTR  v 
)
static

Definition at line 401 of file htmliframe.c.

402{
404 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
405 return E_NOTIMPL;
406}
#define debugstr_w
Definition: kernel32.h:32

◆ HTMLIFrameElement3_put_longDesc()

static HRESULT WINAPI HTMLIFrameElement3_put_longDesc ( IHTMLIFrameElement3 *  iface,
BSTR  v 
)
static

Definition at line 387 of file htmliframe.c.

388{
390 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
391 return E_NOTIMPL;
392}

◆ HTMLIFrameElement3_put_src()

static HRESULT WINAPI HTMLIFrameElement3_put_src ( IHTMLIFrameElement3 *  iface,
BSTR  v 
)
static

Definition at line 373 of file htmliframe.c.

374{
376 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
377 return E_NOTIMPL;
378}

◆ HTMLIFrameElement3_QueryInterface()

static HRESULT WINAPI HTMLIFrameElement3_QueryInterface ( IHTMLIFrameElement3 *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 301 of file htmliframe.c.

303{
305
306 return IHTMLDOMNode_QueryInterface(&This->framebase.element.node.IHTMLDOMNode_iface, riid, ppv);
307}

◆ HTMLIFrameElement3_Release()

static ULONG WINAPI HTMLIFrameElement3_Release ( IHTMLIFrameElement3 *  iface)
static

Definition at line 316 of file htmliframe.c.

317{
319
320 return IHTMLDOMNode_Release(&This->framebase.element.node.IHTMLDOMNode_iface);
321}

◆ HTMLIFrameElement_AddRef()

static ULONG WINAPI HTMLIFrameElement_AddRef ( IHTMLIFrameElement *  iface)
static

Definition at line 41 of file htmliframe.c.

42{
44
45 return IHTMLDOMNode_AddRef(&This->framebase.element.node.IHTMLDOMNode_iface);
46}
static HTMLIFrame * impl_from_IHTMLIFrameElement(IHTMLIFrameElement *iface)
Definition: htmliframe.c:28

◆ HTMLIFrameElement_get_align()

static HRESULT WINAPI HTMLIFrameElement_get_align ( IHTMLIFrameElement *  iface,
BSTR p 
)
static

Definition at line 122 of file htmliframe.c.

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

◆ HTMLIFrameElement_get_hspace()

static HRESULT WINAPI HTMLIFrameElement_get_hspace ( IHTMLIFrameElement *  iface,
LONG p 
)
static

Definition at line 108 of file htmliframe.c.

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

◆ HTMLIFrameElement_get_vspace()

static HRESULT WINAPI HTMLIFrameElement_get_vspace ( IHTMLIFrameElement *  iface,
LONG p 
)
static

Definition at line 94 of file htmliframe.c.

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

◆ HTMLIFrameElement_GetIDsOfNames()

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

Definition at line 70 of file htmliframe.c.

72{
74 return IDispatchEx_GetIDsOfNames(&This->framebase.element.node.event_target.dispex.IDispatchEx_iface, riid,
75 rgszNames, cNames, lcid, rgDispId);
76}

◆ HTMLIFrameElement_GetTypeInfo()

static HRESULT WINAPI HTMLIFrameElement_GetTypeInfo ( IHTMLIFrameElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 62 of file htmliframe.c.

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

◆ HTMLIFrameElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLIFrameElement_GetTypeInfoCount ( IHTMLIFrameElement *  iface,
UINT pctinfo 
)
static

Definition at line 55 of file htmliframe.c.

56{
58 return IDispatchEx_GetTypeInfoCount(&This->framebase.element.node.event_target.dispex.IDispatchEx_iface,
59 pctinfo);
60}

◆ HTMLIFrameElement_Invoke()

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

Definition at line 78 of file htmliframe.c.

81{
83 return IDispatchEx_Invoke(&This->framebase.element.node.event_target.dispex.IDispatchEx_iface, dispIdMember,
84 riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
85}

◆ HTMLIFrameElement_put_align()

static HRESULT WINAPI HTMLIFrameElement_put_align ( IHTMLIFrameElement *  iface,
BSTR  v 
)
static

Definition at line 115 of file htmliframe.c.

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

◆ HTMLIFrameElement_put_hspace()

static HRESULT WINAPI HTMLIFrameElement_put_hspace ( IHTMLIFrameElement *  iface,
LONG  v 
)
static

Definition at line 101 of file htmliframe.c.

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

◆ HTMLIFrameElement_put_vspace()

static HRESULT WINAPI HTMLIFrameElement_put_vspace ( IHTMLIFrameElement *  iface,
LONG  v 
)
static

Definition at line 87 of file htmliframe.c.

88{
90 FIXME("(%p)->(%d)\n", This, v);
91 return E_NOTIMPL;
92}

◆ HTMLIFrameElement_QueryInterface()

static HRESULT WINAPI HTMLIFrameElement_QueryInterface ( IHTMLIFrameElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 33 of file htmliframe.c.

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

◆ HTMLIFrameElement_Release()

static ULONG WINAPI HTMLIFrameElement_Release ( IHTMLIFrameElement *  iface)
static

Definition at line 48 of file htmliframe.c.

49{
51
52 return IHTMLDOMNode_Release(&This->framebase.element.node.IHTMLDOMNode_iface);
53}

◆ impl_from_HTMLDOMNode()

static HTMLIFrame * impl_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

Definition at line 432 of file htmliframe.c.

433{
434 return CONTAINING_RECORD(iface, HTMLIFrame, framebase.element.node);
435}
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260

Referenced by HTMLIFrame_bind_to_tree(), HTMLIFrame_destructor(), HTMLIFrame_get_dispid(), HTMLIFrame_get_document(), HTMLIFrame_get_readystate(), HTMLIFrame_invoke(), HTMLIFrame_QI(), HTMLIFrame_traverse(), and HTMLIFrame_unlink().

◆ impl_from_IHTMLIFrameElement()

◆ impl_from_IHTMLIFrameElement2()

◆ impl_from_IHTMLIFrameElement3()

Variable Documentation

◆ HTMLIFrame_dispex

dispex_static_data_t HTMLIFrame_dispex
static
Initial value:
= {
DispHTMLIFrame_tid,
}
static const tid_t HTMLIFrame_iface_tids[]
Definition: htmliframe.c:569

Definition at line 579 of file htmliframe.c.

Referenced by HTMLIFrame_Create().

◆ HTMLIFrame_iface_tids

const tid_t HTMLIFrame_iface_tids[]
static
Initial value:
= {
IHTMLFrameBase_tid,
IHTMLFrameBase2_tid,
IHTMLIFrameElement_tid,
IHTMLIFrameElement2_tid,
IHTMLIFrameElement3_tid,
0
}
#define HTMLELEMENT_TIDS

Definition at line 569 of file htmliframe.c.

◆ HTMLIFrameElement2Vtbl

const IHTMLIFrameElement2Vtbl HTMLIFrameElement2Vtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLIFrameElement2_GetTypeInfoCount(IHTMLIFrameElement2 *iface, UINT *pctinfo)
Definition: htmliframe.c:172
static ULONG WINAPI HTMLIFrameElement2_AddRef(IHTMLIFrameElement2 *iface)
Definition: htmliframe.c:158
static HRESULT WINAPI HTMLIFrameElement2_GetIDsOfNames(IHTMLIFrameElement2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmliframe.c:187
static HRESULT WINAPI HTMLIFrameElement2_QueryInterface(IHTMLIFrameElement2 *iface, REFIID riid, void **ppv)
Definition: htmliframe.c:150
static HRESULT WINAPI HTMLIFrameElement2_put_height(IHTMLIFrameElement2 *iface, VARIANT v)
Definition: htmliframe.c:204
static HRESULT WINAPI HTMLIFrameElement2_get_width(IHTMLIFrameElement2 *iface, VARIANT *p)
Definition: htmliframe.c:267
static HRESULT WINAPI HTMLIFrameElement2_Invoke(IHTMLIFrameElement2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmliframe.c:195
static HRESULT WINAPI HTMLIFrameElement2_GetTypeInfo(IHTMLIFrameElement2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmliframe.c:179
static ULONG WINAPI HTMLIFrameElement2_Release(IHTMLIFrameElement2 *iface)
Definition: htmliframe.c:165
static HRESULT WINAPI HTMLIFrameElement2_get_height(IHTMLIFrameElement2 *iface, VARIANT *p)
Definition: htmliframe.c:228
static HRESULT WINAPI HTMLIFrameElement2_put_width(IHTMLIFrameElement2 *iface, VARIANT v)
Definition: htmliframe.c:243

Definition at line 282 of file htmliframe.c.

Referenced by HTMLIFrame_Create().

◆ HTMLIFrameElement3Vtbl

const IHTMLIFrameElement3Vtbl HTMLIFrameElement3Vtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLIFrameElement3_put_frameBorder(IHTMLIFrameElement3 *iface, BSTR v)
Definition: htmliframe.c:401
static HRESULT WINAPI HTMLIFrameElement3_get_contentDocument(IHTMLIFrameElement3 *iface, IDispatch **p)
Definition: htmliframe.c:355
static HRESULT WINAPI HTMLIFrameElement3_put_src(IHTMLIFrameElement3 *iface, BSTR v)
Definition: htmliframe.c:373
static HRESULT WINAPI HTMLIFrameElement3_get_src(IHTMLIFrameElement3 *iface, BSTR *p)
Definition: htmliframe.c:380
static ULONG WINAPI HTMLIFrameElement3_AddRef(IHTMLIFrameElement3 *iface)
Definition: htmliframe.c:309
static HRESULT WINAPI HTMLIFrameElement3_get_longDesc(IHTMLIFrameElement3 *iface, BSTR *p)
Definition: htmliframe.c:394
static ULONG WINAPI HTMLIFrameElement3_Release(IHTMLIFrameElement3 *iface)
Definition: htmliframe.c:316
static HRESULT WINAPI HTMLIFrameElement3_Invoke(IHTMLIFrameElement3 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmliframe.c:346
static HRESULT WINAPI HTMLIFrameElement3_GetTypeInfoCount(IHTMLIFrameElement3 *iface, UINT *pctinfo)
Definition: htmliframe.c:323
static HRESULT WINAPI HTMLIFrameElement3_QueryInterface(IHTMLIFrameElement3 *iface, REFIID riid, void **ppv)
Definition: htmliframe.c:301
static HRESULT WINAPI HTMLIFrameElement3_get_frameBorder(IHTMLIFrameElement3 *iface, BSTR *p)
Definition: htmliframe.c:408
static HRESULT WINAPI HTMLIFrameElement3_put_longDesc(IHTMLIFrameElement3 *iface, BSTR v)
Definition: htmliframe.c:387
static HRESULT WINAPI HTMLIFrameElement3_GetTypeInfo(IHTMLIFrameElement3 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmliframe.c:330
static HRESULT WINAPI HTMLIFrameElement3_GetIDsOfNames(IHTMLIFrameElement3 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmliframe.c:338

Definition at line 415 of file htmliframe.c.

Referenced by HTMLIFrame_Create().

◆ HTMLIFrameElementVtbl

const IHTMLIFrameElementVtbl HTMLIFrameElementVtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLIFrameElement_Invoke(IHTMLIFrameElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmliframe.c:78
static HRESULT WINAPI HTMLIFrameElement_get_hspace(IHTMLIFrameElement *iface, LONG *p)
Definition: htmliframe.c:108
static HRESULT WINAPI HTMLIFrameElement_get_align(IHTMLIFrameElement *iface, BSTR *p)
Definition: htmliframe.c:122
static HRESULT WINAPI HTMLIFrameElement_QueryInterface(IHTMLIFrameElement *iface, REFIID riid, void **ppv)
Definition: htmliframe.c:33
static ULONG WINAPI HTMLIFrameElement_AddRef(IHTMLIFrameElement *iface)
Definition: htmliframe.c:41
static ULONG WINAPI HTMLIFrameElement_Release(IHTMLIFrameElement *iface)
Definition: htmliframe.c:48
static HRESULT WINAPI HTMLIFrameElement_put_align(IHTMLIFrameElement *iface, BSTR v)
Definition: htmliframe.c:115
static HRESULT WINAPI HTMLIFrameElement_put_vspace(IHTMLIFrameElement *iface, LONG v)
Definition: htmliframe.c:87
static HRESULT WINAPI HTMLIFrameElement_put_hspace(IHTMLIFrameElement *iface, LONG v)
Definition: htmliframe.c:101
static HRESULT WINAPI HTMLIFrameElement_GetTypeInfoCount(IHTMLIFrameElement *iface, UINT *pctinfo)
Definition: htmliframe.c:55
static HRESULT WINAPI HTMLIFrameElement_GetTypeInfo(IHTMLIFrameElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmliframe.c:62
static HRESULT WINAPI HTMLIFrameElement_GetIDsOfNames(IHTMLIFrameElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmliframe.c:70
static HRESULT WINAPI HTMLIFrameElement_get_vspace(IHTMLIFrameElement *iface, LONG *p)
Definition: htmliframe.c:94

Definition at line 129 of file htmliframe.c.

Referenced by HTMLIFrame_Create().

◆ HTMLIFrameImplVtbl

const NodeImplVtbl HTMLIFrameImplVtbl
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 void HTMLIFrame_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
Definition: htmliframe.c:529
static HRESULT HTMLIFrame_get_dispid(HTMLDOMNode *iface, BSTR name, DWORD grfdex, DISPID *pid)
Definition: htmliframe.c:479
static HRESULT HTMLIFrame_invoke(HTMLDOMNode *iface, DISPID id, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
Definition: htmliframe.c:490
static HRESULT HTMLIFrame_get_readystate(HTMLDOMNode *iface, BSTR *p)
Definition: htmliframe.c:504
static HRESULT HTMLIFrame_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmliframe.c:437
static HRESULT HTMLIFrame_bind_to_tree(HTMLDOMNode *iface)
Definition: htmliframe.c:511
static void HTMLIFrame_unlink(HTMLDOMNode *iface)
Definition: htmliframe.c:537
static HRESULT HTMLIFrame_get_document(HTMLDOMNode *iface, IDispatch **p)
Definition: htmliframe.c:465
static void HTMLIFrame_destructor(HTMLDOMNode *iface)
Definition: htmliframe.c:458

Definition at line 549 of file htmliframe.c.

Referenced by HTMLIFrame_Create().