static HRESULT WINAPI HTMLFrameBase_put_marginHeight(IHTMLFrameBase *iface, VARIANT v) { HTMLFrameBase *This = impl_from_IHTMLFrameBase(iface); nsAString nsstr; nsresult nsres; TRACE("(%p)->(%s)\n", This, debugstr_variant(&v)); if(V_VT(&v) != VT_BSTR) { FIXME("unsupported %s\n", debugstr_variant(&v)); return E_NOTIMPL; } nsAString_InitDepend(&nsstr, V_BSTR(&v)); if(This->nsframe) nsres = nsIDOMHTMLFrameElement_SetMarginHeight(This->nsframe, &nsstr); else nsres = nsIDOMHTMLIFrameElement_SetMarginHeight(This->nsiframe, &nsstr); nsAString_Finish(&nsstr); return NS_SUCCEEDED(nsres) ? S_OK : E_FAIL; }
static HRESULT WINAPI HTMLFrameBase_get_name(IHTMLFrameBase *iface, BSTR *p) { HTMLFrameBase *This = impl_from_IHTMLFrameBase(iface); nsAString nsstr; const PRUnichar *strdata; nsresult nsres; TRACE("(%p)->(%p)\n", This, p); if(This->nsframe) { nsAString_Init(&nsstr, NULL); nsres = nsIDOMHTMLFrameElement_GetName(This->nsframe, &nsstr); } else if(This->nsiframe) { nsAString_Init(&nsstr, NULL); nsres = nsIDOMHTMLIFrameElement_GetName(This->nsiframe, &nsstr); } else { ERR("No attached ns frame object\n"); return E_UNEXPECTED; } if(NS_FAILED(nsres)) { ERR("GetName failed: 0x%08x\n", nsres); nsAString_Finish(&nsstr); return E_FAIL; } nsAString_GetData(&nsstr, &strdata); if(*strdata) { *p = SysAllocString(strdata); if(!*p) { nsAString_Finish(&nsstr); return E_OUTOFMEMORY; } } else *p = NULL; nsAString_Finish(&nsstr); return S_OK; }
static HRESULT WINAPI HTMLFrameBase_GetTypeInfoCount(IHTMLFrameBase *iface, UINT *pctinfo) { HTMLFrameBase *This = impl_from_IHTMLFrameBase(iface); return IDispatchEx_GetTypeInfoCount(&This->element.node.dispex.IDispatchEx_iface, pctinfo); }
static ULONG WINAPI HTMLFrameBase_Release(IHTMLFrameBase *iface) { HTMLFrameBase *This = impl_from_IHTMLFrameBase(iface); return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface); }
static HRESULT WINAPI HTMLFrameBase_QueryInterface(IHTMLFrameBase *iface, REFIID riid, void **ppv) { HTMLFrameBase *This = impl_from_IHTMLFrameBase(iface); return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv); }
static HRESULT WINAPI HTMLFrameBase_get_noResize(IHTMLFrameBase *iface, VARIANT_BOOL *p) { HTMLFrameBase *This = impl_from_IHTMLFrameBase(iface); FIXME("(%p)->(%p)\n", This, p); return E_NOTIMPL; }
static HRESULT WINAPI HTMLFrameBase_get_frameSpacing(IHTMLFrameBase *iface, VARIANT *p) { HTMLFrameBase *This = impl_from_IHTMLFrameBase(iface); FIXME("(%p)->(%p)\n", This, p); return E_NOTIMPL; }
static HRESULT WINAPI HTMLFrameBase_put_frameSpacing(IHTMLFrameBase *iface, VARIANT v) { HTMLFrameBase *This = impl_from_IHTMLFrameBase(iface); FIXME("(%p)->(%s)\n", This, debugstr_variant(&v)); return E_NOTIMPL; }
static HRESULT WINAPI HTMLFrameBase_get_src(IHTMLFrameBase *iface, BSTR *p) { HTMLFrameBase *This = impl_from_IHTMLFrameBase(iface); FIXME("(%p)->(%p)\n", This, p); return E_NOTIMPL; }
static HRESULT WINAPI HTMLFrameBase_put_frameBorder(IHTMLFrameBase *iface, BSTR v) { HTMLFrameBase *This = impl_from_IHTMLFrameBase(iface); FIXME("(%p)->(%s)\n", This, debugstr_w(v)); return E_NOTIMPL; }