ReactOS 0.4.16-dev-112-g52265ae
htmlimg.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmlimg.c:

Go to the source code of this file.

Classes

struct  HTMLImgElement
 

Functions

static HTMLImgElementimpl_from_IHTMLImgElement (IHTMLImgElement *iface)
 
static HRESULT WINAPI HTMLImgElement_QueryInterface (IHTMLImgElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLImgElement_AddRef (IHTMLImgElement *iface)
 
static ULONG WINAPI HTMLImgElement_Release (IHTMLImgElement *iface)
 
static HRESULT WINAPI HTMLImgElement_GetTypeInfoCount (IHTMLImgElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLImgElement_GetTypeInfo (IHTMLImgElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLImgElement_GetIDsOfNames (IHTMLImgElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLImgElement_Invoke (IHTMLImgElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLImgElement_put_isMap (IHTMLImgElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLImgElement_get_isMap (IHTMLImgElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLImgElement_put_useMap (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_useMap (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_mimeType (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_fileSize (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_fileCreatedDate (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_fileModifiedDate (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_fileUpdatedDate (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_protocol (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_href (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_nameProp (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_put_border (IHTMLImgElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLImgElement_get_border (IHTMLImgElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLImgElement_put_vspace (IHTMLImgElement *iface, LONG v)
 
static HRESULT WINAPI HTMLImgElement_get_vspace (IHTMLImgElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLImgElement_put_hspace (IHTMLImgElement *iface, LONG v)
 
static HRESULT WINAPI HTMLImgElement_get_hspace (IHTMLImgElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLImgElement_put_alt (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_alt (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_put_src (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_src (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_put_lowsrc (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_lowsrc (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_put_vrml (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_vrml (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_put_dynsrc (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_dynsrc (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_readyState (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_complete (IHTMLImgElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLImgElement_put_loop (IHTMLImgElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLImgElement_get_loop (IHTMLImgElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLImgElement_put_align (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_align (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_put_onload (IHTMLImgElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLImgElement_get_onload (IHTMLImgElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLImgElement_put_onerror (IHTMLImgElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLImgElement_get_onerror (IHTMLImgElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLImgElement_put_onabort (IHTMLImgElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLImgElement_get_onabort (IHTMLImgElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLImgElement_put_name (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_name (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_put_width (IHTMLImgElement *iface, LONG v)
 
static HRESULT WINAPI HTMLImgElement_get_width (IHTMLImgElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLImgElement_put_height (IHTMLImgElement *iface, LONG v)
 
static HRESULT WINAPI HTMLImgElement_get_height (IHTMLImgElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLImgElement_put_start (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_start (IHTMLImgElement *iface, BSTR *p)
 
static HTMLImgElementimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLImgElement_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static HRESULT HTMLImgElement_get_readystate (HTMLDOMNode *iface, BSTR *p)
 
static void HTMLImgElement_traverse (HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
 
static void HTMLImgElement_unlink (HTMLDOMNode *iface)
 
HRESULT HTMLImgElement_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 
static HTMLImageElementFactoryimpl_from_IHTMLImageElementFactory (IHTMLImageElementFactory *iface)
 
static HRESULT WINAPI HTMLImageElementFactory_QueryInterface (IHTMLImageElementFactory *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLImageElementFactory_AddRef (IHTMLImageElementFactory *iface)
 
static ULONG WINAPI HTMLImageElementFactory_Release (IHTMLImageElementFactory *iface)
 
static HRESULT WINAPI HTMLImageElementFactory_GetTypeInfoCount (IHTMLImageElementFactory *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLImageElementFactory_GetTypeInfo (IHTMLImageElementFactory *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLImageElementFactory_GetIDsOfNames (IHTMLImageElementFactory *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLImageElementFactory_Invoke (IHTMLImageElementFactory *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static LONG var_to_size (const VARIANT *v)
 
static HRESULT WINAPI HTMLImageElementFactory_create (IHTMLImageElementFactory *iface, VARIANT width, VARIANT height, IHTMLImgElement **img_elem)
 
static HTMLImageElementFactoryimpl_from_DispatchEx (DispatchEx *iface)
 
static HRESULT HTMLImageElementFactory_value (DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
 
HRESULT HTMLImageElementFactory_Create (HTMLInnerWindow *window, HTMLImageElementFactory **ret_val)
 

Variables

static const IHTMLImgElementVtbl HTMLImgElementVtbl
 
static const NodeImplVtbl HTMLImgElementImplVtbl
 
static const tid_t HTMLImgElement_iface_tids []
 
static dispex_static_data_t HTMLImgElement_dispex
 
static const IHTMLImageElementFactoryVtbl HTMLImageElementFactoryVtbl
 
static const tid_t HTMLImageElementFactory_iface_tids []
 
static const dispex_static_data_vtbl_t HTMLImageElementFactory_dispex_vtbl
 
static dispex_static_data_t HTMLImageElementFactory_dispex
 

Function Documentation

◆ HTMLImageElementFactory_AddRef()

static ULONG WINAPI HTMLImageElementFactory_AddRef ( IHTMLImageElementFactory *  iface)
static

Definition at line 775 of file htmlimg.c.

776{
779
780 TRACE("(%p) ref=%d\n", This, ref);
781
782 return ref;
783}
#define InterlockedIncrement
Definition: armddk.h:53
static HTMLImageElementFactory * impl_from_IHTMLImageElementFactory(IHTMLImageElementFactory *iface)
Definition: htmlimg.c:747
long LONG
Definition: pedump.c:60
#define TRACE(s)
Definition: solgame.cpp:4
Definition: send.c:48

◆ HTMLImageElementFactory_Create()

HRESULT HTMLImageElementFactory_Create ( HTMLInnerWindow window,
HTMLImageElementFactory **  ret_val 
)

Definition at line 972 of file htmlimg.c.

973{
975
977 if(!ret)
978 return E_OUTOFMEMORY;
979
980 ret->IHTMLImageElementFactory_iface.lpVtbl = &HTMLImageElementFactoryVtbl;
981 ret->ref = 1;
982 ret->window = window;
983
984 init_dispex(&ret->dispex, (IUnknown*)&ret->IHTMLImageElementFactory_iface,
986
987 *ret_val = ret;
988 return S_OK;
989}
static void * heap_alloc(size_t len)
Definition: appwiz.h:66
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static dispex_static_data_t HTMLImageElementFactory_dispex
Definition: htmlimg.c:965
static const IHTMLImageElementFactoryVtbl HTMLImageElementFactoryVtbl
Definition: htmlimg.c:909
#define S_OK
Definition: intsafe.h:52
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
Definition: dispex.c:919
static IHTMLWindow2 * window
Definition: events.c:77
int ret

Referenced by HTMLWindow2_get_Image().

◆ HTMLImageElementFactory_create()

static HRESULT WINAPI HTMLImageElementFactory_create ( IHTMLImageElementFactory *  iface,
VARIANT  width,
VARIANT  height,
IHTMLImgElement **  img_elem 
)
static

Definition at line 854 of file htmlimg.c.

856{
858 HTMLDocumentNode *doc;
859 IHTMLImgElement *img;
861 nsIDOMHTMLElement *nselem;
862 LONG l;
864
865 static const PRUnichar imgW[] = {'I','M','G',0};
866
867 TRACE("(%p)->(%s %s %p)\n", This, debugstr_variant(&width),
868 debugstr_variant(&height), img_elem);
869
870 if(!This->window || !This->window->doc) {
871 WARN("NULL doc\n");
872 return E_UNEXPECTED;
873 }
874
875 doc = This->window->doc;
876
877 *img_elem = NULL;
878
879 hres = create_nselem(doc, imgW, &nselem);
880 if(FAILED(hres))
881 return hres;
882
883 hres = HTMLElement_Create(doc, (nsIDOMNode*)nselem, FALSE, &elem);
884 nsIDOMHTMLElement_Release(nselem);
885 if(FAILED(hres)) {
886 ERR("HTMLElement_Create failed\n");
887 return hres;
888 }
889
890 hres = IHTMLElement_QueryInterface(&elem->IHTMLElement_iface, &IID_IHTMLImgElement,
891 (void**)&img);
892 IHTMLElement_Release(&elem->IHTMLElement_iface);
893 if(FAILED(hres)) {
894 ERR("IHTMLElement_QueryInterface failed: 0x%08x\n", hres);
895 return hres;
896 }
897
898 l = var_to_size(&width);
899 if(l)
900 IHTMLImgElement_put_width(img, l);
901 l = var_to_size(&height);
902 if(l)
903 IHTMLImgElement_put_height(img, l);
904
905 *img_elem = img;
906 return S_OK;
907}
#define WARN(fmt,...)
Definition: precomp.h:61
#define ERR(fmt,...)
Definition: precomp.h:57
r l[0]
Definition: byte_order.h:168
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
GLint GLvoid * img
Definition: gl.h:1956
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLint GLint GLsizei width
Definition: gl.h:1546
HRESULT HTMLElement_Create(HTMLDocumentNode *doc, nsIDOMNode *nsnode, BOOL use_generic, HTMLElement **ret)
Definition: htmlelem.c:4032
static const WCHAR imgW[]
Definition: htmlelem.c:30
HRESULT create_nselem(HTMLDocumentNode *doc, const WCHAR *tag, nsIDOMHTMLElement **ret)
Definition: htmlelem.c:246
static LONG var_to_size(const VARIANT *v)
Definition: htmlimg.c:830
#define FAILED(hr)
Definition: intsafe.h:51
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
HRESULT hres
Definition: protocol.c:465
static size_t elem
Definition: string.c:68
WCHAR PRUnichar
Definition: nsiface.idl:48
#define E_UNEXPECTED
Definition: winerror.h:2456

◆ HTMLImageElementFactory_GetIDsOfNames()

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

Definition at line 812 of file htmlimg.c.

815{
817 return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames, lcid, rgDispId);
818}
REFIID riid
Definition: atlbase.h:39

◆ HTMLImageElementFactory_GetTypeInfo()

static HRESULT WINAPI HTMLImageElementFactory_GetTypeInfo ( IHTMLImageElementFactory *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 805 of file htmlimg.c.

807{
809 return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
810}

◆ HTMLImageElementFactory_GetTypeInfoCount()

static HRESULT WINAPI HTMLImageElementFactory_GetTypeInfoCount ( IHTMLImageElementFactory *  iface,
UINT pctinfo 
)
static

Definition at line 798 of file htmlimg.c.

800{
802 return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
803}

◆ HTMLImageElementFactory_Invoke()

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

Definition at line 820 of file htmlimg.c.

824{
826 return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid, wFlags,
827 pDispParams, pVarResult, pExcepInfo, puArgErr);
828}
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:531

◆ HTMLImageElementFactory_QueryInterface()

static HRESULT WINAPI HTMLImageElementFactory_QueryInterface ( IHTMLImageElementFactory *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 752 of file htmlimg.c.

754{
756
757 TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
758
760 *ppv = &This->IHTMLImageElementFactory_iface;
761 }else if(IsEqualGUID(&IID_IHTMLImageElementFactory, riid)) {
762 *ppv = &This->IHTMLImageElementFactory_iface;
763 }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
764 return *ppv ? S_OK : E_NOINTERFACE;
765 }else {
766 *ppv = NULL;
767 WARN("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
768 return E_NOINTERFACE;
769 }
770
771 IUnknown_AddRef((IUnknown*)*ppv);
772 return S_OK;
773}
const GUID IID_IUnknown
const char * debugstr_mshtml_guid(const GUID *iid)
Definition: main.c:542
REFIID LPVOID * ppv
Definition: atlbase.h:39
BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
Definition: dispex.c:1656
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ HTMLImageElementFactory_Release()

static ULONG WINAPI HTMLImageElementFactory_Release ( IHTMLImageElementFactory *  iface)
static

Definition at line 785 of file htmlimg.c.

786{
789
790 TRACE("(%p) ref=%d\n", This, ref);
791
792 if(!ref)
794
795 return ref;
796}
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
#define InterlockedDecrement
Definition: armddk.h:52

◆ HTMLImageElementFactory_value()

static HRESULT HTMLImageElementFactory_value ( DispatchEx dispex,
LCID  lcid,
WORD  flags,
DISPPARAMS *  params,
VARIANT res,
EXCEPINFO *  ei,
IServiceProvider caller 
)
static

Definition at line 925 of file htmlimg.c.

928{
930 IHTMLImgElement *img;
933 int argc = params->cArgs - params->cNamedArgs;
934
935 V_VT(res) = VT_NULL;
936
937 V_VT(&empty) = VT_EMPTY;
938
939 width = argc >= 1 ? params->rgvarg + (params->cArgs - 1) : ∅
940 height = argc >= 2 ? params->rgvarg + (params->cArgs - 2) : ∅
941
942 hres = IHTMLImageElementFactory_create(&This->IHTMLImageElementFactory_iface, *width, *height,
943 &img);
944 if(FAILED(hres))
945 return hres;
946
949
950 return S_OK;
951}
static int argc
Definition: ServiceArgs.c:12
static const WCHAR empty[]
Definition: main.c:47
@ VT_NULL
Definition: compat.h:2296
@ VT_EMPTY
Definition: compat.h:2295
@ VT_DISPATCH
Definition: compat.h:2304
GLuint res
Definition: glext.h:9613
GLenum const GLfloat * params
Definition: glext.h:5645
static HTMLImageElementFactory * impl_from_DispatchEx(DispatchEx *iface)
Definition: htmlimg.c:920
#define V_VT(A)
Definition: oleauto.h:211
#define V_DISPATCH(A)
Definition: oleauto.h:239

◆ HTMLImgElement_AddRef()

static ULONG WINAPI HTMLImgElement_AddRef ( IHTMLImgElement *  iface)
static

Definition at line 41 of file htmlimg.c.

42{
44
45 return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
46}
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29

◆ HTMLImgElement_Create()

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

Definition at line 726 of file htmlimg.c.

727{
729 nsresult nsres;
730
731 ret = heap_alloc_zero(sizeof(HTMLImgElement));
732 if(!ret)
733 return E_OUTOFMEMORY;
734
735 ret->IHTMLImgElement_iface.lpVtbl = &HTMLImgElementVtbl;
736 ret->element.node.vtbl = &HTMLImgElementImplVtbl;
737
738 HTMLElement_Init(&ret->element, doc, nselem, &HTMLImgElement_dispex);
739
740 nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLImageElement, (void**)&ret->nsimg);
741 assert(nsres == NS_OK);
742
743 *elem = &ret->element;
744 return S_OK;
745}
#define assert(x)
Definition: debug.h:53
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmlelem.c:4008
static const IHTMLImgElementVtbl HTMLImgElementVtbl
Definition: htmlimg.c:587
static dispex_static_data_t HTMLImgElement_dispex
Definition: htmlimg.c:719
static const NodeImplVtbl HTMLImgElementImplVtbl
Definition: htmlimg.c:694
#define NS_OK

◆ HTMLImgElement_get_align()

static HRESULT WINAPI HTMLImgElement_get_align ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 417 of file htmlimg.c.

418{
421 nsresult nsres;
422
423 TRACE("(%p)->(%p)\n", This, p);
424
426 nsres = nsIDOMHTMLImageElement_GetAlign(This->nsimg, &str);
427
428 return return_nsstr(nsres, &str, p);
429}
GLfloat GLfloat p
Definition: glext.h:8902
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
const WCHAR * str

◆ HTMLImgElement_get_alt()

static HRESULT WINAPI HTMLImgElement_get_alt ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 252 of file htmlimg.c.

253{
255 nsAString alt_str;
256 nsresult nsres;
257
258 TRACE("(%p)->(%p)\n", This, p);
259
260 nsAString_Init(&alt_str, NULL);
261 nsres = nsIDOMHTMLImageElement_GetAlt(This->nsimg, &alt_str);
262 return return_nsstr(nsres, &alt_str, p);
263}

◆ HTMLImgElement_get_border()

static HRESULT WINAPI HTMLImgElement_get_border ( IHTMLImgElement *  iface,
VARIANT p 
)
static

Definition at line 200 of file htmlimg.c.

201{
203 FIXME("(%p)->(%p)\n", This, p);
204 return E_NOTIMPL;
205}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLImgElement_get_complete()

static HRESULT WINAPI HTMLImgElement_get_complete ( IHTMLImgElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 365 of file htmlimg.c.

366{
369 nsresult nsres;
370
371 TRACE("(%p)->(%p)\n", This, p);
372
373 nsres = nsIDOMHTMLImageElement_GetComplete(This->nsimg, &complete);
374 if(NS_FAILED(nsres)) {
375 ERR("GetComplete failed: %08x\n", nsres);
376 return E_FAIL;
377 }
378
379 *p = complete ? VARIANT_TRUE : VARIANT_FALSE;
380 return S_OK;
381}
#define E_FAIL
Definition: ddrawi.h:102
unsigned char cpp_bool
Definition: atl.c:38
static BOOL complete
Definition: htmldoc.c:198
#define NS_FAILED(res)

◆ HTMLImgElement_get_dynsrc()

static HRESULT WINAPI HTMLImgElement_get_dynsrc ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 351 of file htmlimg.c.

352{
354 FIXME("(%p)->(%p)\n", This, p);
355 return E_NOTIMPL;
356}

◆ HTMLImgElement_get_fileCreatedDate()

static HRESULT WINAPI HTMLImgElement_get_fileCreatedDate ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 151 of file htmlimg.c.

152{
154 FIXME("(%p)->(%p)\n", This, p);
155 return E_NOTIMPL;
156}

◆ HTMLImgElement_get_fileModifiedDate()

static HRESULT WINAPI HTMLImgElement_get_fileModifiedDate ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 158 of file htmlimg.c.

159{
161 FIXME("(%p)->(%p)\n", This, p);
162 return E_NOTIMPL;
163}

◆ HTMLImgElement_get_fileSize()

static HRESULT WINAPI HTMLImgElement_get_fileSize ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 144 of file htmlimg.c.

145{
147 FIXME("(%p)->(%p)\n", This, p);
148 return E_NOTIMPL;
149}

◆ HTMLImgElement_get_fileUpdatedDate()

static HRESULT WINAPI HTMLImgElement_get_fileUpdatedDate ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 165 of file htmlimg.c.

166{
168 FIXME("(%p)->(%p)\n", This, p);
169 return E_NOTIMPL;
170}

◆ HTMLImgElement_get_height()

static HRESULT WINAPI HTMLImgElement_get_height ( IHTMLImgElement *  iface,
LONG p 
)
static

Definition at line 555 of file htmlimg.c.

556{
559 nsresult nsres;
560
561 TRACE("(%p)->(%p)\n", This, p);
562
563 nsres = nsIDOMHTMLImageElement_GetHeight(This->nsimg, &height);
564 if(NS_FAILED(nsres)) {
565 ERR("GetHeight failed: %08x\n", nsres);
566 return E_FAIL;
567 }
568
569 *p = height;
570 return S_OK;
571}
unsigned int UINT32

◆ HTMLImgElement_get_href()

static HRESULT WINAPI HTMLImgElement_get_href ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 179 of file htmlimg.c.

180{
182 FIXME("(%p)->(%p)\n", This, p);
183 return E_NOTIMPL;
184}

◆ HTMLImgElement_get_hspace()

static HRESULT WINAPI HTMLImgElement_get_hspace ( IHTMLImgElement *  iface,
LONG p 
)
static

Definition at line 228 of file htmlimg.c.

229{
231 FIXME("(%p)->(%p)\n", This, p);
232 return E_NOTIMPL;
233}

◆ HTMLImgElement_get_isMap()

static HRESULT WINAPI HTMLImgElement_get_isMap ( IHTMLImgElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 103 of file htmlimg.c.

104{
106 cpp_bool b;
107 nsresult nsres;
108
109 TRACE("(%p)->(%p)\n", This, p);
110
111 if (p == NULL)
112 return E_INVALIDARG;
113
114 nsres = nsIDOMHTMLImageElement_GetIsMap(This->nsimg, &b);
115 if (NS_FAILED(nsres)) {
116 ERR("Get IsMap failed: %08x\n", nsres);
117 return E_FAIL;
118 }
119 *p = b ? VARIANT_TRUE : VARIANT_FALSE;
120 return S_OK;
121}
#define E_INVALIDARG
Definition: ddrawi.h:101
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define b
Definition: ke_i.h:79

◆ HTMLImgElement_get_loop()

static HRESULT WINAPI HTMLImgElement_get_loop ( IHTMLImgElement *  iface,
VARIANT p 
)
static

Definition at line 390 of file htmlimg.c.

391{
393 FIXME("(%p)->(%p)\n", This, p);
394 return E_NOTIMPL;
395}

◆ HTMLImgElement_get_lowsrc()

static HRESULT WINAPI HTMLImgElement_get_lowsrc ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 323 of file htmlimg.c.

324{
326 FIXME("(%p)->(%p)\n", This, p);
327 return E_NOTIMPL;
328}

◆ HTMLImgElement_get_mimeType()

static HRESULT WINAPI HTMLImgElement_get_mimeType ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 137 of file htmlimg.c.

138{
140 FIXME("(%p)->(%p)\n", This, p);
141 return E_NOTIMPL;
142}

◆ HTMLImgElement_get_name()

static HRESULT WINAPI HTMLImgElement_get_name ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 492 of file htmlimg.c.

493{
496 nsresult nsres;
497
498 TRACE("(%p)->(%p)\n", This, p);
499
501 nsres = nsIDOMHTMLImageElement_GetName(This->nsimg, &name);
502 return return_nsstr(nsres, &name, p);
503}
Definition: name.c:39

◆ HTMLImgElement_get_nameProp()

static HRESULT WINAPI HTMLImgElement_get_nameProp ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 186 of file htmlimg.c.

187{
189 FIXME("(%p)->(%p)\n", This, p);
190 return E_NOTIMPL;
191}

◆ HTMLImgElement_get_onabort()

static HRESULT WINAPI HTMLImgElement_get_onabort ( IHTMLImgElement *  iface,
VARIANT p 
)
static

Definition at line 476 of file htmlimg.c.

477{
479
480 TRACE("(%p)->(%p)\n", This, p);
481
482 return get_node_event(&This->element.node, EVENTID_ABORT, p);
483}
@ EVENTID_ABORT
Definition: htmlevent.h:22
static HRESULT get_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:85

◆ HTMLImgElement_get_onerror()

static HRESULT WINAPI HTMLImgElement_get_onerror ( IHTMLImgElement *  iface,
VARIANT p 
)
static

Definition at line 458 of file htmlimg.c.

459{
461
462 TRACE("(%p)->(%p)\n", This, p);
463
464 return get_node_event(&This->element.node, EVENTID_ERROR, p);
465}
@ EVENTID_ERROR
Definition: htmlevent.h:32

◆ HTMLImgElement_get_onload()

static HRESULT WINAPI HTMLImgElement_get_onload ( IHTMLImgElement *  iface,
VARIANT p 
)
static

Definition at line 440 of file htmlimg.c.

441{
443
444 TRACE("(%p)->(%p)\n", This, p);
445
446 return get_node_event(&This->element.node, EVENTID_LOAD, p);
447}
@ EVENTID_LOAD
Definition: htmlevent.h:39

◆ HTMLImgElement_get_protocol()

static HRESULT WINAPI HTMLImgElement_get_protocol ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 172 of file htmlimg.c.

173{
175 FIXME("(%p)->(%p)\n", This, p);
176 return E_NOTIMPL;
177}

◆ HTMLImgElement_get_readystate()

static HRESULT HTMLImgElement_get_readystate ( HTMLDOMNode iface,
BSTR p 
)
static

Definition at line 667 of file htmlimg.c.

668{
670
671 return IHTMLImgElement_get_readyState(&This->IHTMLImgElement_iface, p);
672}
static HTMLImgElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlimg.c:645

◆ HTMLImgElement_get_readyState()

static HRESULT WINAPI HTMLImgElement_get_readyState ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 358 of file htmlimg.c.

359{
361 FIXME("(%p)->(%p)\n", This, p);
362 return E_NOTIMPL;
363}

◆ HTMLImgElement_get_src()

static HRESULT WINAPI HTMLImgElement_get_src ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 282 of file htmlimg.c.

283{
285 const PRUnichar *src;
286 nsAString src_str;
287 nsresult nsres;
288 HRESULT hres = S_OK;
289
290 static const WCHAR blockedW[] = {'B','L','O','C','K','E','D',':',':',0};
291
292 TRACE("(%p)->(%p)\n", This, p);
293
294 nsAString_Init(&src_str, NULL);
295 nsres = nsIDOMHTMLImageElement_GetSrc(This->nsimg, &src_str);
296 if(NS_SUCCEEDED(nsres)) {
297 nsAString_GetData(&src_str, &src);
298
299 if(!strncmpiW(src, blockedW, sizeof(blockedW)/sizeof(WCHAR)-1)) {
300 TRACE("returning BLOCKED::\n");
301 *p = SysAllocString(blockedW);
302 if(!*p)
304 }else {
306 }
307 }else {
308 ERR("GetSrc failed: %08x\n", nsres);
309 hres = E_FAIL;
310 }
311
312 nsAString_Finish(&src_str);
313 return hres;
314}
#define TRUE
Definition: types.h:120
GLenum src
Definition: glext.h:6340
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
HRESULT nsuri_to_url(LPCWSTR, BOOL, BSTR *) DECLSPEC_HIDDEN
Definition: nsio.c:175
#define NS_SUCCEEDED(res)
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:238
#define strncmpiW(s1, s2, n)
Definition: unicode.h:46
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ HTMLImgElement_get_start()

static HRESULT WINAPI HTMLImgElement_get_start ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 580 of file htmlimg.c.

581{
583 FIXME("(%p)->(%p)\n", This, p);
584 return E_NOTIMPL;
585}

◆ HTMLImgElement_get_useMap()

static HRESULT WINAPI HTMLImgElement_get_useMap ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 130 of file htmlimg.c.

131{
133 FIXME("(%p)->(%p)\n", This, p);
134 return E_NOTIMPL;
135}

◆ HTMLImgElement_get_vrml()

static HRESULT WINAPI HTMLImgElement_get_vrml ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 337 of file htmlimg.c.

338{
340 FIXME("(%p)->(%p)\n", This, p);
341 return E_NOTIMPL;
342}

◆ HTMLImgElement_get_vspace()

static HRESULT WINAPI HTMLImgElement_get_vspace ( IHTMLImgElement *  iface,
LONG p 
)
static

Definition at line 214 of file htmlimg.c.

215{
217 FIXME("(%p)->(%p)\n", This, p);
218 return E_NOTIMPL;
219}

◆ HTMLImgElement_get_width()

static HRESULT WINAPI HTMLImgElement_get_width ( IHTMLImgElement *  iface,
LONG p 
)
static

Definition at line 521 of file htmlimg.c.

522{
525 nsresult nsres;
526
527 TRACE("(%p)->(%p)\n", This, p);
528
529 nsres = nsIDOMHTMLImageElement_GetWidth(This->nsimg, &width);
530 if(NS_FAILED(nsres)) {
531 ERR("GetWidth failed: %08x\n", nsres);
532 return E_FAIL;
533 }
534
535 *p = width;
536 return S_OK;
537}

◆ HTMLImgElement_GetIDsOfNames()

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

Definition at line 69 of file htmlimg.c.

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

◆ HTMLImgElement_GetTypeInfo()

static HRESULT WINAPI HTMLImgElement_GetTypeInfo ( IHTMLImgElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 61 of file htmlimg.c.

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

◆ HTMLImgElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLImgElement_GetTypeInfoCount ( IHTMLImgElement *  iface,
UINT pctinfo 
)
static

Definition at line 55 of file htmlimg.c.

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

◆ HTMLImgElement_Invoke()

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

Definition at line 78 of file htmlimg.c.

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

◆ HTMLImgElement_put_align()

static HRESULT WINAPI HTMLImgElement_put_align ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 397 of file htmlimg.c.

398{
401 nsresult nsres;
402
403 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
404
406
407 nsres = nsIDOMHTMLImageElement_SetAlign(This->nsimg, &str);
409 if (NS_FAILED(nsres)){
410 ERR("Set Align(%s) failed: %08x\n", debugstr_w(v), nsres);
411 return E_FAIL;
412 }
413
414 return S_OK;
415}
const GLdouble * v
Definition: gl.h:2040
#define debugstr_w
Definition: kernel32.h:32
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826

◆ HTMLImgElement_put_alt()

static HRESULT WINAPI HTMLImgElement_put_alt ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 235 of file htmlimg.c.

236{
238 nsAString alt_str;
239 nsresult nsres;
240
241 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
242
243 nsAString_InitDepend(&alt_str, v);
244 nsres = nsIDOMHTMLImageElement_SetAlt(This->nsimg, &alt_str);
245 nsAString_Finish(&alt_str);
246 if(NS_FAILED(nsres))
247 ERR("SetAlt failed: %08x\n", nsres);
248
249 return S_OK;
250}

◆ HTMLImgElement_put_border()

static HRESULT WINAPI HTMLImgElement_put_border ( IHTMLImgElement *  iface,
VARIANT  v 
)
static

Definition at line 193 of file htmlimg.c.

194{
196 FIXME("(%p)->()\n", This);
197 return E_NOTIMPL;
198}

◆ HTMLImgElement_put_dynsrc()

static HRESULT WINAPI HTMLImgElement_put_dynsrc ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 344 of file htmlimg.c.

345{
347 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
348 return E_NOTIMPL;
349}

◆ HTMLImgElement_put_height()

static HRESULT WINAPI HTMLImgElement_put_height ( IHTMLImgElement *  iface,
LONG  v 
)
static

Definition at line 539 of file htmlimg.c.

540{
542 nsresult nsres;
543
544 TRACE("(%p)->(%d)\n", This, v);
545
546 nsres = nsIDOMHTMLImageElement_SetHeight(This->nsimg, v);
547 if(NS_FAILED(nsres)) {
548 ERR("SetHeight failed: %08x\n", nsres);
549 return E_FAIL;
550 }
551
552 return S_OK;
553}

◆ HTMLImgElement_put_hspace()

static HRESULT WINAPI HTMLImgElement_put_hspace ( IHTMLImgElement *  iface,
LONG  v 
)
static

Definition at line 221 of file htmlimg.c.

222{
224 FIXME("(%p)->(%d)\n", This, v);
225 return E_NOTIMPL;
226}

◆ HTMLImgElement_put_isMap()

static HRESULT WINAPI HTMLImgElement_put_isMap ( IHTMLImgElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 87 of file htmlimg.c.

88{
90 nsresult nsres;
91
92 TRACE("(%p)->(%x)\n", This, v);
93
94 nsres = nsIDOMHTMLImageElement_SetIsMap(This->nsimg, v != VARIANT_FALSE);
95 if (NS_FAILED(nsres)) {
96 ERR("Set IsMap failed: %08x\n", nsres);
97 return E_FAIL;
98 }
99
100 return S_OK;
101}

◆ HTMLImgElement_put_loop()

static HRESULT WINAPI HTMLImgElement_put_loop ( IHTMLImgElement *  iface,
VARIANT  v 
)
static

Definition at line 383 of file htmlimg.c.

384{
386 FIXME("(%p)->()\n", This);
387 return E_NOTIMPL;
388}

◆ HTMLImgElement_put_lowsrc()

static HRESULT WINAPI HTMLImgElement_put_lowsrc ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 316 of file htmlimg.c.

317{
319 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
320 return E_NOTIMPL;
321}

◆ HTMLImgElement_put_name()

static HRESULT WINAPI HTMLImgElement_put_name ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 485 of file htmlimg.c.

486{
488 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
489 return E_NOTIMPL;
490}

◆ HTMLImgElement_put_onabort()

static HRESULT WINAPI HTMLImgElement_put_onabort ( IHTMLImgElement *  iface,
VARIANT  v 
)
static

Definition at line 467 of file htmlimg.c.

468{
470
471 TRACE("(%p)->()\n", This);
472
473 return set_node_event(&This->element.node, EVENTID_ABORT, &v);
474}
static HRESULT set_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:80

◆ HTMLImgElement_put_onerror()

static HRESULT WINAPI HTMLImgElement_put_onerror ( IHTMLImgElement *  iface,
VARIANT  v 
)
static

Definition at line 449 of file htmlimg.c.

450{
452
453 TRACE("(%p)->()\n", This);
454
455 return set_node_event(&This->element.node, EVENTID_ERROR, &v);
456}

◆ HTMLImgElement_put_onload()

static HRESULT WINAPI HTMLImgElement_put_onload ( IHTMLImgElement *  iface,
VARIANT  v 
)
static

Definition at line 431 of file htmlimg.c.

432{
434
435 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
436
437 return set_node_event(&This->element.node, EVENTID_LOAD, &v);
438}

◆ HTMLImgElement_put_src()

static HRESULT WINAPI HTMLImgElement_put_src ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 265 of file htmlimg.c.

266{
268 nsAString src_str;
269 nsresult nsres;
270
271 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
272
273 nsAString_InitDepend(&src_str, v);
274 nsres = nsIDOMHTMLImageElement_SetSrc(This->nsimg, &src_str);
275 nsAString_Finish(&src_str);
276 if(NS_FAILED(nsres))
277 ERR("SetSrc failed: %08x\n", nsres);
278
279 return NS_OK;
280}

◆ HTMLImgElement_put_start()

static HRESULT WINAPI HTMLImgElement_put_start ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 573 of file htmlimg.c.

574{
576 FIXME("(%p)->()\n", This);
577 return E_NOTIMPL;
578}

◆ HTMLImgElement_put_useMap()

static HRESULT WINAPI HTMLImgElement_put_useMap ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 123 of file htmlimg.c.

124{
126 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
127 return E_NOTIMPL;
128}

◆ HTMLImgElement_put_vrml()

static HRESULT WINAPI HTMLImgElement_put_vrml ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 330 of file htmlimg.c.

331{
333 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
334 return E_NOTIMPL;
335}

◆ HTMLImgElement_put_vspace()

static HRESULT WINAPI HTMLImgElement_put_vspace ( IHTMLImgElement *  iface,
LONG  v 
)
static

Definition at line 207 of file htmlimg.c.

208{
210 FIXME("(%p)->(%d)\n", This, v);
211 return E_NOTIMPL;
212}

◆ HTMLImgElement_put_width()

static HRESULT WINAPI HTMLImgElement_put_width ( IHTMLImgElement *  iface,
LONG  v 
)
static

Definition at line 505 of file htmlimg.c.

506{
508 nsresult nsres;
509
510 TRACE("(%p)->(%d)\n", This, v);
511
512 nsres = nsIDOMHTMLImageElement_SetWidth(This->nsimg, v);
513 if(NS_FAILED(nsres)) {
514 ERR("SetWidth failed: %08x\n", nsres);
515 return E_FAIL;
516 }
517
518 return S_OK;
519}

◆ HTMLImgElement_QI()

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

Definition at line 650 of file htmlimg.c.

651{
653
654 *ppv = NULL;
655
656 if(IsEqualGUID(&IID_IHTMLImgElement, riid)) {
657 TRACE("(%p)->(IID_IHTMLImgElement %p)\n", This, ppv);
658 *ppv = &This->IHTMLImgElement_iface;
659 }else {
660 return HTMLElement_QI(&This->element.node, riid, ppv);
661 }
662
663 IUnknown_AddRef((IUnknown*)*ppv);
664 return S_OK;
665}
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:3738

◆ HTMLImgElement_QueryInterface()

static HRESULT WINAPI HTMLImgElement_QueryInterface ( IHTMLImgElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 34 of file htmlimg.c.

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

◆ HTMLImgElement_Release()

static ULONG WINAPI HTMLImgElement_Release ( IHTMLImgElement *  iface)
static

Definition at line 48 of file htmlimg.c.

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

◆ HTMLImgElement_traverse()

static void HTMLImgElement_traverse ( HTMLDOMNode iface,
nsCycleCollectionTraversalCallback cb 
)
static

Definition at line 674 of file htmlimg.c.

675{
677
678 if(This->nsimg)
679 note_cc_edge((nsISupports*)This->nsimg, "This->nsimg", cb);
680}
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33

◆ HTMLImgElement_unlink()

static void HTMLImgElement_unlink ( HTMLDOMNode iface)
static

Definition at line 682 of file htmlimg.c.

683{
685
686 if(This->nsimg) {
687 nsIDOMHTMLImageElement *nsimg = This->nsimg;
688
689 This->nsimg = NULL;
690 nsIDOMHTMLImageElement_Release(nsimg);
691 }
692}

◆ impl_from_DispatchEx()

static HTMLImageElementFactory * impl_from_DispatchEx ( DispatchEx iface)
inlinestatic

Definition at line 920 of file htmlimg.c.

921{
922 return CONTAINING_RECORD(iface, HTMLImageElementFactory, dispex);
923}
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260

Referenced by HTMLImageElementFactory_value().

◆ impl_from_HTMLDOMNode()

static HTMLImgElement * impl_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

◆ impl_from_IHTMLImageElementFactory()

◆ impl_from_IHTMLImgElement()

static HTMLImgElement * impl_from_IHTMLImgElement ( IHTMLImgElement *  iface)
inlinestatic

Definition at line 29 of file htmlimg.c.

30{
31 return CONTAINING_RECORD(iface, HTMLImgElement, IHTMLImgElement_iface);
32}

Referenced by HTMLImgElement_AddRef(), HTMLImgElement_get_align(), HTMLImgElement_get_alt(), HTMLImgElement_get_border(), HTMLImgElement_get_complete(), HTMLImgElement_get_dynsrc(), HTMLImgElement_get_fileCreatedDate(), HTMLImgElement_get_fileModifiedDate(), HTMLImgElement_get_fileSize(), HTMLImgElement_get_fileUpdatedDate(), HTMLImgElement_get_height(), HTMLImgElement_get_href(), HTMLImgElement_get_hspace(), HTMLImgElement_get_isMap(), HTMLImgElement_get_loop(), HTMLImgElement_get_lowsrc(), HTMLImgElement_get_mimeType(), HTMLImgElement_get_name(), HTMLImgElement_get_nameProp(), HTMLImgElement_get_onabort(), HTMLImgElement_get_onerror(), HTMLImgElement_get_onload(), HTMLImgElement_get_protocol(), HTMLImgElement_get_readyState(), HTMLImgElement_get_src(), HTMLImgElement_get_start(), HTMLImgElement_get_useMap(), HTMLImgElement_get_vrml(), HTMLImgElement_get_vspace(), HTMLImgElement_get_width(), HTMLImgElement_GetIDsOfNames(), HTMLImgElement_GetTypeInfo(), HTMLImgElement_GetTypeInfoCount(), HTMLImgElement_Invoke(), HTMLImgElement_put_align(), HTMLImgElement_put_alt(), HTMLImgElement_put_border(), HTMLImgElement_put_dynsrc(), HTMLImgElement_put_height(), HTMLImgElement_put_hspace(), HTMLImgElement_put_isMap(), HTMLImgElement_put_loop(), HTMLImgElement_put_lowsrc(), HTMLImgElement_put_name(), HTMLImgElement_put_onabort(), HTMLImgElement_put_onerror(), HTMLImgElement_put_onload(), HTMLImgElement_put_src(), HTMLImgElement_put_start(), HTMLImgElement_put_useMap(), HTMLImgElement_put_vrml(), HTMLImgElement_put_vspace(), HTMLImgElement_put_width(), HTMLImgElement_QueryInterface(), and HTMLImgElement_Release().

◆ var_to_size()

static LONG var_to_size ( const VARIANT v)
static

Definition at line 830 of file htmlimg.c.

831{
832 switch(V_VT(v)) {
833 case VT_EMPTY:
834 return 0;
835 case VT_I4:
836 return V_I4(v);
837 case VT_BSTR: {
838 LONG ret;
840
841 hres = VarI4FromStr(V_BSTR(v), 0, 0, &ret);
842 if(FAILED(hres)) {
843 FIXME("VarI4FromStr failed: %08x\n", hres);
844 return 0;
845 }
846 return ret;
847 }
848 default:
849 FIXME("unsupported size %s\n", debugstr_variant(v));
850 }
851 return 0;
852}
@ VT_BSTR
Definition: compat.h:2303
@ VT_I4
Definition: compat.h:2298
HRESULT WINAPI VarI4FromStr(OLECHAR *strIn, LCID lcid, ULONG dwFlags, LONG *piOut)
Definition: vartype.c:1611
#define V_BSTR(A)
Definition: oleauto.h:226
#define V_I4(A)
Definition: oleauto.h:247

Referenced by HTMLImageElementFactory_create().

Variable Documentation

◆ HTMLImageElementFactory_dispex

dispex_static_data_t HTMLImageElementFactory_dispex
static
Initial value:
= {
IHTMLImageElementFactory_tid,
}
static const dispex_static_data_vtbl_t HTMLImageElementFactory_dispex_vtbl
Definition: htmlimg.c:958
static const tid_t HTMLImageElementFactory_iface_tids[]
Definition: htmlimg.c:953

Definition at line 965 of file htmlimg.c.

Referenced by HTMLImageElementFactory_Create().

◆ HTMLImageElementFactory_dispex_vtbl

const dispex_static_data_vtbl_t HTMLImageElementFactory_dispex_vtbl
static
Initial value:
= {
}
static HRESULT HTMLImageElementFactory_value(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
Definition: htmlimg.c:925

Definition at line 958 of file htmlimg.c.

◆ HTMLImageElementFactory_iface_tids

const tid_t HTMLImageElementFactory_iface_tids[]
static
Initial value:
= {
IHTMLImageElementFactory_tid,
0
}

Definition at line 953 of file htmlimg.c.

◆ HTMLImageElementFactoryVtbl

const IHTMLImageElementFactoryVtbl HTMLImageElementFactoryVtbl
static
Initial value:
= {
}
static ULONG WINAPI HTMLImageElementFactory_AddRef(IHTMLImageElementFactory *iface)
Definition: htmlimg.c:775
static HRESULT WINAPI HTMLImageElementFactory_GetTypeInfo(IHTMLImageElementFactory *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlimg.c:805
static ULONG WINAPI HTMLImageElementFactory_Release(IHTMLImageElementFactory *iface)
Definition: htmlimg.c:785
static HRESULT WINAPI HTMLImageElementFactory_Invoke(IHTMLImageElementFactory *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlimg.c:820
static HRESULT WINAPI HTMLImageElementFactory_create(IHTMLImageElementFactory *iface, VARIANT width, VARIANT height, IHTMLImgElement **img_elem)
Definition: htmlimg.c:854
static HRESULT WINAPI HTMLImageElementFactory_QueryInterface(IHTMLImageElementFactory *iface, REFIID riid, void **ppv)
Definition: htmlimg.c:752
static HRESULT WINAPI HTMLImageElementFactory_GetIDsOfNames(IHTMLImageElementFactory *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlimg.c:812
static HRESULT WINAPI HTMLImageElementFactory_GetTypeInfoCount(IHTMLImageElementFactory *iface, UINT *pctinfo)
Definition: htmlimg.c:798

Definition at line 909 of file htmlimg.c.

Referenced by HTMLImageElementFactory_Create().

◆ HTMLImgElement_dispex

dispex_static_data_t HTMLImgElement_dispex
static
Initial value:
= {
DispHTMLImg_tid,
}
static const tid_t HTMLImgElement_iface_tids[]
Definition: htmlimg.c:714

Definition at line 719 of file htmlimg.c.

Referenced by HTMLImgElement_Create().

◆ HTMLImgElement_iface_tids

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

Definition at line 714 of file htmlimg.c.

◆ HTMLImgElementImplVtbl

const NodeImplVtbl HTMLImgElementImplVtbl
static
Initial value:
= {
}
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
Definition: htmlelem.c:3793
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
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 HTMLImgElement_unlink(HTMLDOMNode *iface)
Definition: htmlimg.c:682
static void HTMLImgElement_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
Definition: htmlimg.c:674
static HRESULT HTMLImgElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlimg.c:650
static HRESULT HTMLImgElement_get_readystate(HTMLDOMNode *iface, BSTR *p)
Definition: htmlimg.c:667

Definition at line 694 of file htmlimg.c.

Referenced by HTMLImgElement_Create().

◆ HTMLImgElementVtbl

const IHTMLImgElementVtbl HTMLImgElementVtbl
static

Definition at line 587 of file htmlimg.c.

Referenced by HTMLImgElement_Create().