PageRenderTime 141ms CodeModel.GetById 40ms app.highlight 8ms RepoModel.GetById 73ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLLinkElement.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 268 lines | 184 code | 42 blank | 42 comment | 0 complexity | d1bfd2b757429cfcb09dcefedcaf4c32 MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/dom/public/idl/html/nsIDOMHTMLLinkElement.idl
  3 */
  4
  5#ifndef __gen_nsIDOMHTMLLinkElement_h__
  6#define __gen_nsIDOMHTMLLinkElement_h__
  7
  8
  9#ifndef __gen_nsIDOMHTMLElement_h__
 10#include "nsIDOMHTMLElement.h"
 11#endif
 12
 13/* For IDL files that don't want to include root IDL files. */
 14#ifndef NS_NO_VTABLE
 15#define NS_NO_VTABLE
 16#endif
 17
 18/* starting interface:    nsIDOMHTMLLinkElement */
 19#define NS_IDOMHTMLLINKELEMENT_IID_STR "a6cf9088-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMHTMLLINKELEMENT_IID \
 22  {0xa6cf9088, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25/**
 26 * The nsIDOMHTMLLinkElement interface is the interface to a [X]HTML
 27 * link element.
 28 *
 29 * For more information on this interface please see
 30 * http://www.w3.org/TR/DOM-Level-2-HTML/
 31 *
 32 * @status FROZEN
 33 */
 34class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLLinkElement : public nsIDOMHTMLElement {
 35 public: 
 36
 37  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLLINKELEMENT_IID)
 38
 39  /* attribute boolean disabled; */
 40  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
 41  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
 42
 43  /* attribute DOMString charset; */
 44  NS_SCRIPTABLE NS_IMETHOD GetCharset(nsAString & aCharset) = 0;
 45  NS_SCRIPTABLE NS_IMETHOD SetCharset(const nsAString & aCharset) = 0;
 46
 47  /* attribute DOMString href; */
 48  NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref) = 0;
 49  NS_SCRIPTABLE NS_IMETHOD SetHref(const nsAString & aHref) = 0;
 50
 51  /* attribute DOMString hreflang; */
 52  NS_SCRIPTABLE NS_IMETHOD GetHreflang(nsAString & aHreflang) = 0;
 53  NS_SCRIPTABLE NS_IMETHOD SetHreflang(const nsAString & aHreflang) = 0;
 54
 55  /* attribute DOMString media; */
 56  NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia) = 0;
 57  NS_SCRIPTABLE NS_IMETHOD SetMedia(const nsAString & aMedia) = 0;
 58
 59  /* attribute DOMString rel; */
 60  NS_SCRIPTABLE NS_IMETHOD GetRel(nsAString & aRel) = 0;
 61  NS_SCRIPTABLE NS_IMETHOD SetRel(const nsAString & aRel) = 0;
 62
 63  /* attribute DOMString rev; */
 64  NS_SCRIPTABLE NS_IMETHOD GetRev(nsAString & aRev) = 0;
 65  NS_SCRIPTABLE NS_IMETHOD SetRev(const nsAString & aRev) = 0;
 66
 67  /* attribute DOMString target; */
 68  NS_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget) = 0;
 69  NS_SCRIPTABLE NS_IMETHOD SetTarget(const nsAString & aTarget) = 0;
 70
 71  /* attribute DOMString type; */
 72  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) = 0;
 73  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) = 0;
 74
 75};
 76
 77  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLLinkElement, NS_IDOMHTMLLINKELEMENT_IID)
 78
 79/* Use this macro when declaring classes that implement this interface. */
 80#define NS_DECL_NSIDOMHTMLLINKELEMENT \
 81  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled); \
 82  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled); \
 83  NS_SCRIPTABLE NS_IMETHOD GetCharset(nsAString & aCharset); \
 84  NS_SCRIPTABLE NS_IMETHOD SetCharset(const nsAString & aCharset); \
 85  NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref); \
 86  NS_SCRIPTABLE NS_IMETHOD SetHref(const nsAString & aHref); \
 87  NS_SCRIPTABLE NS_IMETHOD GetHreflang(nsAString & aHreflang); \
 88  NS_SCRIPTABLE NS_IMETHOD SetHreflang(const nsAString & aHreflang); \
 89  NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia); \
 90  NS_SCRIPTABLE NS_IMETHOD SetMedia(const nsAString & aMedia); \
 91  NS_SCRIPTABLE NS_IMETHOD GetRel(nsAString & aRel); \
 92  NS_SCRIPTABLE NS_IMETHOD SetRel(const nsAString & aRel); \
 93  NS_SCRIPTABLE NS_IMETHOD GetRev(nsAString & aRev); \
 94  NS_SCRIPTABLE NS_IMETHOD SetRev(const nsAString & aRev); \
 95  NS_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget); \
 96  NS_SCRIPTABLE NS_IMETHOD SetTarget(const nsAString & aTarget); \
 97  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType); \
 98  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType); 
 99
100/* Use this macro to declare functions that forward the behavior of this interface to another object. */
101#define NS_FORWARD_NSIDOMHTMLLINKELEMENT(_to) \
102  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
103  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
104  NS_SCRIPTABLE NS_IMETHOD GetCharset(nsAString & aCharset) { return _to GetCharset(aCharset); } \
105  NS_SCRIPTABLE NS_IMETHOD SetCharset(const nsAString & aCharset) { return _to SetCharset(aCharset); } \
106  NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref) { return _to GetHref(aHref); } \
107  NS_SCRIPTABLE NS_IMETHOD SetHref(const nsAString & aHref) { return _to SetHref(aHref); } \
108  NS_SCRIPTABLE NS_IMETHOD GetHreflang(nsAString & aHreflang) { return _to GetHreflang(aHreflang); } \
109  NS_SCRIPTABLE NS_IMETHOD SetHreflang(const nsAString & aHreflang) { return _to SetHreflang(aHreflang); } \
110  NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia) { return _to GetMedia(aMedia); } \
111  NS_SCRIPTABLE NS_IMETHOD SetMedia(const nsAString & aMedia) { return _to SetMedia(aMedia); } \
112  NS_SCRIPTABLE NS_IMETHOD GetRel(nsAString & aRel) { return _to GetRel(aRel); } \
113  NS_SCRIPTABLE NS_IMETHOD SetRel(const nsAString & aRel) { return _to SetRel(aRel); } \
114  NS_SCRIPTABLE NS_IMETHOD GetRev(nsAString & aRev) { return _to GetRev(aRev); } \
115  NS_SCRIPTABLE NS_IMETHOD SetRev(const nsAString & aRev) { return _to SetRev(aRev); } \
116  NS_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget) { return _to GetTarget(aTarget); } \
117  NS_SCRIPTABLE NS_IMETHOD SetTarget(const nsAString & aTarget) { return _to SetTarget(aTarget); } \
118  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
119  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) { return _to SetType(aType); } 
120
121/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
122#define NS_FORWARD_SAFE_NSIDOMHTMLLINKELEMENT(_to) \
123  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
124  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
125  NS_SCRIPTABLE NS_IMETHOD GetCharset(nsAString & aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharset(aCharset); } \
126  NS_SCRIPTABLE NS_IMETHOD SetCharset(const nsAString & aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharset(aCharset); } \
127  NS_SCRIPTABLE NS_IMETHOD GetHref(nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHref(aHref); } \
128  NS_SCRIPTABLE NS_IMETHOD SetHref(const nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHref(aHref); } \
129  NS_SCRIPTABLE NS_IMETHOD GetHreflang(nsAString & aHreflang) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHreflang(aHreflang); } \
130  NS_SCRIPTABLE NS_IMETHOD SetHreflang(const nsAString & aHreflang) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHreflang(aHreflang); } \
131  NS_SCRIPTABLE NS_IMETHOD GetMedia(nsAString & aMedia) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMedia(aMedia); } \
132  NS_SCRIPTABLE NS_IMETHOD SetMedia(const nsAString & aMedia) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMedia(aMedia); } \
133  NS_SCRIPTABLE NS_IMETHOD GetRel(nsAString & aRel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRel(aRel); } \
134  NS_SCRIPTABLE NS_IMETHOD SetRel(const nsAString & aRel) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRel(aRel); } \
135  NS_SCRIPTABLE NS_IMETHOD GetRev(nsAString & aRev) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRev(aRev); } \
136  NS_SCRIPTABLE NS_IMETHOD SetRev(const nsAString & aRev) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRev(aRev); } \
137  NS_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
138  NS_SCRIPTABLE NS_IMETHOD SetTarget(const nsAString & aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTarget(aTarget); } \
139  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
140  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } 
141
142#if 0
143/* Use the code below as a template for the implementation class for this interface. */
144
145/* Header file */
146class nsDOMHTMLLinkElement : public nsIDOMHTMLLinkElement
147{
148public:
149  NS_DECL_ISUPPORTS
150  NS_DECL_NSIDOMHTMLLINKELEMENT
151
152  nsDOMHTMLLinkElement();
153
154private:
155  ~nsDOMHTMLLinkElement();
156
157protected:
158  /* additional members */
159};
160
161/* Implementation file */
162NS_IMPL_ISUPPORTS1(nsDOMHTMLLinkElement, nsIDOMHTMLLinkElement)
163
164nsDOMHTMLLinkElement::nsDOMHTMLLinkElement()
165{
166  /* member initializers and constructor code */
167}
168
169nsDOMHTMLLinkElement::~nsDOMHTMLLinkElement()
170{
171  /* destructor code */
172}
173
174/* attribute boolean disabled; */
175NS_IMETHODIMP nsDOMHTMLLinkElement::GetDisabled(PRBool *aDisabled)
176{
177    return NS_ERROR_NOT_IMPLEMENTED;
178}
179NS_IMETHODIMP nsDOMHTMLLinkElement::SetDisabled(PRBool aDisabled)
180{
181    return NS_ERROR_NOT_IMPLEMENTED;
182}
183
184/* attribute DOMString charset; */
185NS_IMETHODIMP nsDOMHTMLLinkElement::GetCharset(nsAString & aCharset)
186{
187    return NS_ERROR_NOT_IMPLEMENTED;
188}
189NS_IMETHODIMP nsDOMHTMLLinkElement::SetCharset(const nsAString & aCharset)
190{
191    return NS_ERROR_NOT_IMPLEMENTED;
192}
193
194/* attribute DOMString href; */
195NS_IMETHODIMP nsDOMHTMLLinkElement::GetHref(nsAString & aHref)
196{
197    return NS_ERROR_NOT_IMPLEMENTED;
198}
199NS_IMETHODIMP nsDOMHTMLLinkElement::SetHref(const nsAString & aHref)
200{
201    return NS_ERROR_NOT_IMPLEMENTED;
202}
203
204/* attribute DOMString hreflang; */
205NS_IMETHODIMP nsDOMHTMLLinkElement::GetHreflang(nsAString & aHreflang)
206{
207    return NS_ERROR_NOT_IMPLEMENTED;
208}
209NS_IMETHODIMP nsDOMHTMLLinkElement::SetHreflang(const nsAString & aHreflang)
210{
211    return NS_ERROR_NOT_IMPLEMENTED;
212}
213
214/* attribute DOMString media; */
215NS_IMETHODIMP nsDOMHTMLLinkElement::GetMedia(nsAString & aMedia)
216{
217    return NS_ERROR_NOT_IMPLEMENTED;
218}
219NS_IMETHODIMP nsDOMHTMLLinkElement::SetMedia(const nsAString & aMedia)
220{
221    return NS_ERROR_NOT_IMPLEMENTED;
222}
223
224/* attribute DOMString rel; */
225NS_IMETHODIMP nsDOMHTMLLinkElement::GetRel(nsAString & aRel)
226{
227    return NS_ERROR_NOT_IMPLEMENTED;
228}
229NS_IMETHODIMP nsDOMHTMLLinkElement::SetRel(const nsAString & aRel)
230{
231    return NS_ERROR_NOT_IMPLEMENTED;
232}
233
234/* attribute DOMString rev; */
235NS_IMETHODIMP nsDOMHTMLLinkElement::GetRev(nsAString & aRev)
236{
237    return NS_ERROR_NOT_IMPLEMENTED;
238}
239NS_IMETHODIMP nsDOMHTMLLinkElement::SetRev(const nsAString & aRev)
240{
241    return NS_ERROR_NOT_IMPLEMENTED;
242}
243
244/* attribute DOMString target; */
245NS_IMETHODIMP nsDOMHTMLLinkElement::GetTarget(nsAString & aTarget)
246{
247    return NS_ERROR_NOT_IMPLEMENTED;
248}
249NS_IMETHODIMP nsDOMHTMLLinkElement::SetTarget(const nsAString & aTarget)
250{
251    return NS_ERROR_NOT_IMPLEMENTED;
252}
253
254/* attribute DOMString type; */
255NS_IMETHODIMP nsDOMHTMLLinkElement::GetType(nsAString & aType)
256{
257    return NS_ERROR_NOT_IMPLEMENTED;
258}
259NS_IMETHODIMP nsDOMHTMLLinkElement::SetType(const nsAString & aType)
260{
261    return NS_ERROR_NOT_IMPLEMENTED;
262}
263
264/* End of implementation class template. */
265#endif
266
267
268#endif /* __gen_nsIDOMHTMLLinkElement_h__ */