ReactOS  0.4.14-dev-337-gf981a68
htmllink.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmllink.c:

Go to the source code of this file.

Classes

struct  HTMLLinkElement
 

Functions

static HTMLLinkElementimpl_from_IHTMLLinkElement (IHTMLLinkElement *iface)
 
static HRESULT WINAPI HTMLLinkElement_QueryInterface (IHTMLLinkElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLLinkElement_AddRef (IHTMLLinkElement *iface)
 
static ULONG WINAPI HTMLLinkElement_Release (IHTMLLinkElement *iface)
 
static HRESULT WINAPI HTMLLinkElement_GetTypeInfoCount (IHTMLLinkElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLLinkElement_GetTypeInfo (IHTMLLinkElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLLinkElement_GetIDsOfNames (IHTMLLinkElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLLinkElement_Invoke (IHTMLLinkElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLLinkElement_put_href (IHTMLLinkElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLLinkElement_get_href (IHTMLLinkElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLLinkElement_put_rel (IHTMLLinkElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLLinkElement_get_rel (IHTMLLinkElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLLinkElement_put_rev (IHTMLLinkElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLLinkElement_get_rev (IHTMLLinkElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLLinkElement_put_type (IHTMLLinkElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLLinkElement_get_type (IHTMLLinkElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLLinkElement_get_readyState (IHTMLLinkElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLLinkElement_put_onreadystatechange (IHTMLLinkElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLLinkElement_get_onreadystatechange (IHTMLLinkElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLLinkElement_put_onload (IHTMLLinkElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLLinkElement_get_onload (IHTMLLinkElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLLinkElement_put_onerror (IHTMLLinkElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLLinkElement_get_onerror (IHTMLLinkElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLLinkElement_get_styleSheet (IHTMLLinkElement *iface, IHTMLStyleSheet **p)
 
static HRESULT WINAPI HTMLLinkElement_put_disabled (IHTMLLinkElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLLinkElement_get_disabled (IHTMLLinkElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLLinkElement_put_media (IHTMLLinkElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLLinkElement_get_media (IHTMLLinkElement *iface, BSTR *p)
 
static HTMLLinkElementimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLLinkElement_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static HRESULT HTMLLinkElementImpl_put_disabled (HTMLDOMNode *iface, VARIANT_BOOL v)
 
static HRESULT HTMLLinkElementImpl_get_disabled (HTMLDOMNode *iface, VARIANT_BOOL *p)
 
static void HTMLLinkElement_traverse (HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
 
static void HTMLLinkElement_unlink (HTMLDOMNode *iface)
 
HRESULT HTMLLinkElement_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 

Variables

static const IHTMLLinkElementVtbl HTMLLinkElementVtbl
 
static const NodeImplVtbl HTMLLinkElementImplVtbl
 
static const tid_t HTMLLinkElement_iface_tids []
 
static dispex_static_data_t HTMLLinkElement_dispex
 

Function Documentation

◆ HTMLLinkElement_AddRef()

static ULONG WINAPI HTMLLinkElement_AddRef ( IHTMLLinkElement *  iface)
static

Definition at line 41 of file htmllink.c.

42 {
44 
45  return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
46 }

◆ HTMLLinkElement_Create()

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

Definition at line 437 of file htmllink.c.

438 {
440  nsresult nsres;
441 
442  ret = heap_alloc_zero(sizeof(*ret));
443  if(!ret)
444  return E_OUTOFMEMORY;
445 
446  ret->IHTMLLinkElement_iface.lpVtbl = &HTMLLinkElementVtbl;
447  ret->element.node.vtbl = &HTMLLinkElementImplVtbl;
448 
449  HTMLElement_Init(&ret->element, doc, nselem, &HTMLLinkElement_dispex);
450 
451  nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLLinkElement, (void**)&ret->nslink);
452  assert(nsres == NS_OK);
453 
454  *elem = &ret->element;
455  return S_OK;
456 }
#define assert(x)
Definition: debug.h:53
#define NS_OK
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static size_t elem
Definition: string.c:68
int ret
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmlelem.c:4008
#define S_OK
Definition: intsafe.h:59
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLLinkElement_get_disabled()

static HRESULT WINAPI HTMLLinkElement_get_disabled ( IHTMLLinkElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 274 of file htmllink.c.

275 {
277  cpp_bool ret;
278  nsresult nsres;
279 
280  TRACE("(%p)->(%p)\n", This, p);
281 
282  nsres = nsIDOMHTMLLinkElement_GetDisabled(This->nslink, &ret);
283  if(NS_FAILED(nsres))
284  return E_FAIL;
285 
286  *p = ret ? VARIANT_TRUE : VARIANT_FALSE;
287  return S_OK;
288 }
#define E_FAIL
Definition: ddrawi.h:102
#define NS_FAILED(res)
unsigned char cpp_bool
Definition: atl.c:38
#define TRACE(s)
Definition: solgame.cpp:4
int ret
#define S_OK
Definition: intsafe.h:59
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLLinkElement_get_href()

static HRESULT WINAPI HTMLLinkElement_get_href ( IHTMLLinkElement *  iface,
BSTR p 
)
static

Definition at line 106 of file htmllink.c.

107 {
109  nsAString href_str;
110  nsresult nsres;
111 
112  TRACE("(%p)->(%p)\n", This, p);
113 
114  nsAString_Init(&href_str, NULL);
115  nsres = nsIDOMHTMLLinkElement_GetHref(This->nslink, &href_str);
116  return return_nsstr(nsres, &href_str, p);
117 }
smooth NULL
Definition: ftsmooth.c:416
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
#define TRACE(s)
Definition: solgame.cpp:4
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLLinkElement_get_media()

static HRESULT WINAPI HTMLLinkElement_get_media ( IHTMLLinkElement *  iface,
BSTR p 
)
static

Definition at line 310 of file htmllink.c.

311 {
313  nsresult nsres;
314  nsAString str;
315 
316  TRACE("(%p)->(%p)\n", This, p);
317 
319  nsres = nsIDOMHTMLLinkElement_GetMedia(This->nslink, &str);
320 
321  return return_nsstr(nsres, &str, p);
322 }
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
#define TRACE(s)
Definition: solgame.cpp:4
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLLinkElement_get_onerror()

static HRESULT WINAPI HTMLLinkElement_get_onerror ( IHTMLLinkElement *  iface,
VARIANT p 
)
static

Definition at line 249 of file htmllink.c.

250 {
252  FIXME("(%p)->(%p)\n", This, p);
253  return E_NOTIMPL;
254 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLLinkElement_get_onload()

static HRESULT WINAPI HTMLLinkElement_get_onload ( IHTMLLinkElement *  iface,
VARIANT p 
)
static

Definition at line 235 of file htmllink.c.

236 {
238  FIXME("(%p)->(%p)\n", This, p);
239  return E_NOTIMPL;
240 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLLinkElement_get_onreadystatechange()

static HRESULT WINAPI HTMLLinkElement_get_onreadystatechange ( IHTMLLinkElement *  iface,
VARIANT p 
)
static

Definition at line 221 of file htmllink.c.

222 {
224  FIXME("(%p)->(%p)\n", This, p);
225  return E_NOTIMPL;
226 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLLinkElement_get_readyState()

static HRESULT WINAPI HTMLLinkElement_get_readyState ( IHTMLLinkElement *  iface,
BSTR p 
)
static

Definition at line 207 of file htmllink.c.

208 {
210  FIXME("(%p)->(%p)\n", This, p);
211  return E_NOTIMPL;
212 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLLinkElement_get_rel()

static HRESULT WINAPI HTMLLinkElement_get_rel ( IHTMLLinkElement *  iface,
BSTR p 
)
static

Definition at line 134 of file htmllink.c.

135 {
137  nsAString rel_str;
138  nsresult nsres;
139 
140  TRACE("(%p)->(%p)\n", This, p);
141 
142  nsAString_Init(&rel_str, NULL);
143  nsres = nsIDOMHTMLLinkElement_GetRel(This->nslink, &rel_str);
144  return return_nsstr(nsres, &rel_str, p);
145 }
smooth NULL
Definition: ftsmooth.c:416
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
#define TRACE(s)
Definition: solgame.cpp:4
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLLinkElement_get_rev()

static HRESULT WINAPI HTMLLinkElement_get_rev ( IHTMLLinkElement *  iface,
BSTR p 
)
static

Definition at line 166 of file htmllink.c.

167 {
169  nsAString nsstr;
170  nsresult nsres;
171 
172  TRACE("(%p)->(%p)\n", This, p);
173 
174  nsAString_Init(&nsstr, NULL);
175  nsres = nsIDOMHTMLLinkElement_GetRev(This->nslink, &nsstr);
176  return return_nsstr(nsres, &nsstr, p);
177 }
smooth NULL
Definition: ftsmooth.c:416
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
#define TRACE(s)
Definition: solgame.cpp:4
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLLinkElement_get_styleSheet()

static HRESULT WINAPI HTMLLinkElement_get_styleSheet ( IHTMLLinkElement *  iface,
IHTMLStyleSheet **  p 
)
static

Definition at line 256 of file htmllink.c.

257 {
259  FIXME("(%p)->(%p)\n", This, p);
260  return E_NOTIMPL;
261 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLLinkElement_get_type()

static HRESULT WINAPI HTMLLinkElement_get_type ( IHTMLLinkElement *  iface,
BSTR p 
)
static

Definition at line 194 of file htmllink.c.

195 {
197  nsAString type_str;
198  nsresult nsres;
199 
200  TRACE("(%p)->(%p)\n", This, p);
201 
202  nsAString_Init(&type_str, NULL);
203  nsres = nsIDOMHTMLLinkElement_GetType(This->nslink, &type_str);
204  return return_nsstr(nsres, &type_str, p);
205 }
smooth NULL
Definition: ftsmooth.c:416
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
#define TRACE(s)
Definition: solgame.cpp:4
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLLinkElement_GetIDsOfNames()

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

Definition at line 71 of file htmllink.c.

74 {
76 
77  return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
78  cNames, lcid, rgDispId);
79 }
REFIID riid
Definition: precomp.h:44

◆ HTMLLinkElement_GetTypeInfo()

static HRESULT WINAPI HTMLLinkElement_GetTypeInfo ( IHTMLLinkElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 62 of file htmllink.c.

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

◆ HTMLLinkElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLLinkElement_GetTypeInfoCount ( IHTMLLinkElement *  iface,
UINT pctinfo 
)
static

Definition at line 55 of file htmllink.c.

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

◆ HTMLLinkElement_Invoke()

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

Definition at line 81 of file htmllink.c.

84 {
86 
87  return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
88  lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
89 }
REFIID riid
Definition: precomp.h:44
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519

◆ HTMLLinkElement_put_disabled()

static HRESULT WINAPI HTMLLinkElement_put_disabled ( IHTMLLinkElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 263 of file htmllink.c.

264 {
266  nsresult nsres;
267 
268  TRACE("(%p)->(%x)\n", This, v);
269 
270  nsres = nsIDOMHTMLLinkElement_SetDisabled(This->nslink, !!v);
271  return SUCCEEDED(nsres) ? S_OK : E_FAIL;
272 }
#define E_FAIL
Definition: ddrawi.h:102
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
HRESULT nsresult
Definition: nsiface.idl:39
#define SUCCEEDED(hr)
Definition: intsafe.h:57

◆ HTMLLinkElement_put_href()

static HRESULT WINAPI HTMLLinkElement_put_href ( IHTMLLinkElement *  iface,
BSTR  v 
)
static

Definition at line 91 of file htmllink.c.

92 {
94  nsAString href_str;
95  nsresult nsres;
96 
97  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
98 
99  nsAString_InitDepend(&href_str, v);
100  nsres = nsIDOMHTMLLinkElement_SetHref(This->nslink, &href_str);
101  nsAString_Finish(&href_str);
102 
103  return NS_SUCCEEDED(nsres) ? S_OK : E_FAIL;
104 }
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
#define NS_SUCCEEDED(res)
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLLinkElement_put_media()

static HRESULT WINAPI HTMLLinkElement_put_media ( IHTMLLinkElement *  iface,
BSTR  v 
)
static

Definition at line 290 of file htmllink.c.

291 {
293  nsresult nsres;
294  nsAString str;
295 
296  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
297 
299 
300  nsres = nsIDOMHTMLLinkElement_SetMedia(This->nslink, &str);
302 
303  if(NS_FAILED(nsres)) {
304  ERR("Set Media(%s) failed: %08x\n", debugstr_w(v), nsres);
305  return E_FAIL;
306  }
307  return S_OK;
308 }
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
const WCHAR * str
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLLinkElement_put_onerror()

static HRESULT WINAPI HTMLLinkElement_put_onerror ( IHTMLLinkElement *  iface,
VARIANT  v 
)
static

Definition at line 242 of file htmllink.c.

243 {
245  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
246  return E_NOTIMPL;
247 }
#define FIXME(fmt,...)
Definition: debug.h:110
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLLinkElement_put_onload()

static HRESULT WINAPI HTMLLinkElement_put_onload ( IHTMLLinkElement *  iface,
VARIANT  v 
)
static

Definition at line 228 of file htmllink.c.

229 {
231  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
232  return E_NOTIMPL;
233 }
#define FIXME(fmt,...)
Definition: debug.h:110
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLLinkElement_put_onreadystatechange()

static HRESULT WINAPI HTMLLinkElement_put_onreadystatechange ( IHTMLLinkElement *  iface,
VARIANT  v 
)
static

Definition at line 214 of file htmllink.c.

215 {
217  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
218  return E_NOTIMPL;
219 }
#define FIXME(fmt,...)
Definition: debug.h:110
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLLinkElement_put_rel()

static HRESULT WINAPI HTMLLinkElement_put_rel ( IHTMLLinkElement *  iface,
BSTR  v 
)
static

Definition at line 119 of file htmllink.c.

120 {
122  nsAString rel_str;
123  nsresult nsres;
124 
125  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
126 
127  nsAString_InitDepend(&rel_str, v);
128  nsres = nsIDOMHTMLLinkElement_SetRel(This->nslink, &rel_str);
129  nsAString_Finish(&rel_str);
130 
131  return NS_SUCCEEDED(nsres) ? S_OK : E_FAIL;
132 }
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
#define NS_SUCCEEDED(res)
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLLinkElement_put_rev()

static HRESULT WINAPI HTMLLinkElement_put_rev ( IHTMLLinkElement *  iface,
BSTR  v 
)
static

Definition at line 147 of file htmllink.c.

148 {
150  nsAString nsstr;
151  nsresult nsres;
152 
153  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
154 
155  nsAString_InitDepend(&nsstr, v);
156  nsres = nsIDOMHTMLLinkElement_SetRev(This->nslink, &nsstr);
157  nsAString_Finish(&nsstr);
158  if(NS_FAILED(nsres)) {
159  ERR("SetRev failed: %08x\n", nsres);
160  return E_FAIL;
161  }
162 
163  return S_OK;
164 }
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLLinkElement_put_type()

static HRESULT WINAPI HTMLLinkElement_put_type ( IHTMLLinkElement *  iface,
BSTR  v 
)
static

Definition at line 179 of file htmllink.c.

180 {
182  nsAString type_str;
183  nsresult nsres;
184 
185  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
186 
187  nsAString_InitDepend(&type_str, v);
188  nsres = nsIDOMHTMLLinkElement_SetType(This->nslink, &type_str);
189  nsAString_Finish(&type_str);
190 
191  return NS_SUCCEEDED(nsres) ? S_OK : E_FAIL;
192 }
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
#define NS_SUCCEEDED(res)
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLLinkElement_QI()

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

Definition at line 359 of file htmllink.c.

360 {
362 
363  if(IsEqualGUID(&IID_IHTMLLinkElement, riid)) {
364  TRACE("(%p)->(IID_IHTMLLinkElement %p)\n", This, ppv);
365  *ppv = &This->IHTMLLinkElement_iface;
366  }else {
367  return HTMLElement_QI(&This->element.node, riid, ppv);
368  }
369 
370  IUnknown_AddRef((IUnknown*)*ppv);
371  return S_OK;
372 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:3738
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ HTMLLinkElement_QueryInterface()

static HRESULT WINAPI HTMLLinkElement_QueryInterface ( IHTMLLinkElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 33 of file htmllink.c.

35 {
37 
38  return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
39 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39

◆ HTMLLinkElement_Release()

static ULONG WINAPI HTMLLinkElement_Release ( IHTMLLinkElement *  iface)
static

Definition at line 48 of file htmllink.c.

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

◆ HTMLLinkElement_traverse()

static void HTMLLinkElement_traverse ( HTMLDOMNode iface,
nsCycleCollectionTraversalCallback cb 
)
static

Definition at line 386 of file htmllink.c.

387 {
389 
390  if(This->nslink)
391  note_cc_edge((nsISupports*)This->nslink, "This->nslink", cb);
392 }
static HMODULE MODULEINFO DWORD cb
Definition: module.c:32

◆ HTMLLinkElement_unlink()

static void HTMLLinkElement_unlink ( HTMLDOMNode iface)
static

Definition at line 394 of file htmllink.c.

395 {
397 
398  if(This->nslink) {
399  nsIDOMHTMLLinkElement *nslink = This->nslink;
400 
401  This->nslink = NULL;
402  nsIDOMHTMLLinkElement_Release(nslink);
403  }
404 }
smooth NULL
Definition: ftsmooth.c:416

◆ HTMLLinkElementImpl_get_disabled()

static HRESULT HTMLLinkElementImpl_get_disabled ( HTMLDOMNode iface,
VARIANT_BOOL p 
)
static

Definition at line 380 of file htmllink.c.

381 {
383  return IHTMLLinkElement_get_disabled(&This->IHTMLLinkElement_iface, p);
384 }
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLLinkElementImpl_put_disabled()

static HRESULT HTMLLinkElementImpl_put_disabled ( HTMLDOMNode iface,
VARIANT_BOOL  v 
)
static

Definition at line 374 of file htmllink.c.

375 {
377  return IHTMLLinkElement_put_disabled(&This->IHTMLLinkElement_iface, v);
378 }
const GLdouble * v
Definition: gl.h:2040

◆ impl_from_HTMLDOMNode()

static HTMLLinkElement* impl_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

Definition at line 354 of file htmllink.c.

355 {
356  return CONTAINING_RECORD(iface, HTMLLinkElement, element.node);
357 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by HTMLLinkElement_QI(), HTMLLinkElement_traverse(), HTMLLinkElement_unlink(), HTMLLinkElementImpl_get_disabled(), and HTMLLinkElementImpl_put_disabled().

◆ impl_from_IHTMLLinkElement()

Variable Documentation

◆ HTMLLinkElement_dispex

dispex_static_data_t HTMLLinkElement_dispex
static
Initial value:
= {
DispHTMLLinkElement_tid,
}
smooth NULL
Definition: ftsmooth.c:416

Definition at line 430 of file htmllink.c.

Referenced by HTMLLinkElement_Create().

◆ HTMLLinkElement_iface_tids

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

Definition at line 425 of file htmllink.c.

◆ HTMLLinkElementImplVtbl

const NodeImplVtbl HTMLLinkElementImplVtbl
static
Initial value:
= {
}
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
smooth NULL
Definition: ftsmooth.c:416
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
Definition: htmlelem.c:3793

Definition at line 405 of file htmllink.c.

Referenced by HTMLLinkElement_Create().

◆ HTMLLinkElementVtbl

const IHTMLLinkElementVtbl HTMLLinkElementVtbl
static
Initial value:
= {
}

Definition at line 324 of file htmllink.c.

Referenced by HTMLLinkElement_Create().