OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0
-Release/WINNT_5.2_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 */ |
| 34 class NS_NO_VTABLE nsIDOMHTMLLinkElement : public nsIDOMHTMLElement { |
| 35 public: |
| 36 |
| 37 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLLINKELEMENT_IID) |
| 38 |
| 39 /* attribute boolean disabled; */ |
| 40 NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0; |
| 41 NS_IMETHOD SetDisabled(PRBool aDisabled) = 0; |
| 42 |
| 43 /* attribute DOMString charset; */ |
| 44 NS_IMETHOD GetCharset(nsAString & aCharset) = 0; |
| 45 NS_IMETHOD SetCharset(const nsAString & aCharset) = 0; |
| 46 |
| 47 /* attribute DOMString href; */ |
| 48 NS_IMETHOD GetHref(nsAString & aHref) = 0; |
| 49 NS_IMETHOD SetHref(const nsAString & aHref) = 0; |
| 50 |
| 51 /* attribute DOMString hreflang; */ |
| 52 NS_IMETHOD GetHreflang(nsAString & aHreflang) = 0; |
| 53 NS_IMETHOD SetHreflang(const nsAString & aHreflang) = 0; |
| 54 |
| 55 /* attribute DOMString media; */ |
| 56 NS_IMETHOD GetMedia(nsAString & aMedia) = 0; |
| 57 NS_IMETHOD SetMedia(const nsAString & aMedia) = 0; |
| 58 |
| 59 /* attribute DOMString rel; */ |
| 60 NS_IMETHOD GetRel(nsAString & aRel) = 0; |
| 61 NS_IMETHOD SetRel(const nsAString & aRel) = 0; |
| 62 |
| 63 /* attribute DOMString rev; */ |
| 64 NS_IMETHOD GetRev(nsAString & aRev) = 0; |
| 65 NS_IMETHOD SetRev(const nsAString & aRev) = 0; |
| 66 |
| 67 /* attribute DOMString target; */ |
| 68 NS_IMETHOD GetTarget(nsAString & aTarget) = 0; |
| 69 NS_IMETHOD SetTarget(const nsAString & aTarget) = 0; |
| 70 |
| 71 /* attribute DOMString type; */ |
| 72 NS_IMETHOD GetType(nsAString & aType) = 0; |
| 73 NS_IMETHOD SetType(const nsAString & aType) = 0; |
| 74 |
| 75 }; |
| 76 |
| 77 /* Use this macro when declaring classes that implement this interface. */ |
| 78 #define NS_DECL_NSIDOMHTMLLINKELEMENT \ |
| 79 NS_IMETHOD GetDisabled(PRBool *aDisabled); \ |
| 80 NS_IMETHOD SetDisabled(PRBool aDisabled); \ |
| 81 NS_IMETHOD GetCharset(nsAString & aCharset); \ |
| 82 NS_IMETHOD SetCharset(const nsAString & aCharset); \ |
| 83 NS_IMETHOD GetHref(nsAString & aHref); \ |
| 84 NS_IMETHOD SetHref(const nsAString & aHref); \ |
| 85 NS_IMETHOD GetHreflang(nsAString & aHreflang); \ |
| 86 NS_IMETHOD SetHreflang(const nsAString & aHreflang); \ |
| 87 NS_IMETHOD GetMedia(nsAString & aMedia); \ |
| 88 NS_IMETHOD SetMedia(const nsAString & aMedia); \ |
| 89 NS_IMETHOD GetRel(nsAString & aRel); \ |
| 90 NS_IMETHOD SetRel(const nsAString & aRel); \ |
| 91 NS_IMETHOD GetRev(nsAString & aRev); \ |
| 92 NS_IMETHOD SetRev(const nsAString & aRev); \ |
| 93 NS_IMETHOD GetTarget(nsAString & aTarget); \ |
| 94 NS_IMETHOD SetTarget(const nsAString & aTarget); \ |
| 95 NS_IMETHOD GetType(nsAString & aType); \ |
| 96 NS_IMETHOD SetType(const nsAString & aType); |
| 97 |
| 98 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 99 #define NS_FORWARD_NSIDOMHTMLLINKELEMENT(_to) \ |
| 100 NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled);
} \ |
| 101 NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled);
} \ |
| 102 NS_IMETHOD GetCharset(nsAString & aCharset) { return _to GetCharset(aCharset);
} \ |
| 103 NS_IMETHOD SetCharset(const nsAString & aCharset) { return _to SetCharset(aCha
rset); } \ |
| 104 NS_IMETHOD GetHref(nsAString & aHref) { return _to GetHref(aHref); } \ |
| 105 NS_IMETHOD SetHref(const nsAString & aHref) { return _to SetHref(aHref); } \ |
| 106 NS_IMETHOD GetHreflang(nsAString & aHreflang) { return _to GetHreflang(aHrefla
ng); } \ |
| 107 NS_IMETHOD SetHreflang(const nsAString & aHreflang) { return _to SetHreflang(a
Hreflang); } \ |
| 108 NS_IMETHOD GetMedia(nsAString & aMedia) { return _to GetMedia(aMedia); } \ |
| 109 NS_IMETHOD SetMedia(const nsAString & aMedia) { return _to SetMedia(aMedia); }
\ |
| 110 NS_IMETHOD GetRel(nsAString & aRel) { return _to GetRel(aRel); } \ |
| 111 NS_IMETHOD SetRel(const nsAString & aRel) { return _to SetRel(aRel); } \ |
| 112 NS_IMETHOD GetRev(nsAString & aRev) { return _to GetRev(aRev); } \ |
| 113 NS_IMETHOD SetRev(const nsAString & aRev) { return _to SetRev(aRev); } \ |
| 114 NS_IMETHOD GetTarget(nsAString & aTarget) { return _to GetTarget(aTarget); } \ |
| 115 NS_IMETHOD SetTarget(const nsAString & aTarget) { return _to SetTarget(aTarget
); } \ |
| 116 NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \ |
| 117 NS_IMETHOD SetType(const nsAString & aType) { return _to SetType(aType); } |
| 118 |
| 119 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 120 #define NS_FORWARD_SAFE_NSIDOMHTMLLINKELEMENT(_to) \ |
| 121 NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->GetDisabled(aDisabled); } \ |
| 122 NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER
: _to->SetDisabled(aDisabled); } \ |
| 123 NS_IMETHOD GetCharset(nsAString & aCharset) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->GetCharset(aCharset); } \ |
| 124 NS_IMETHOD SetCharset(const nsAString & aCharset) { return !_to ? NS_ERROR_NUL
L_POINTER : _to->SetCharset(aCharset); } \ |
| 125 NS_IMETHOD GetHref(nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetHref(aHref); } \ |
| 126 NS_IMETHOD SetHref(const nsAString & aHref) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->SetHref(aHref); } \ |
| 127 NS_IMETHOD GetHreflang(nsAString & aHreflang) { return !_to ? NS_ERROR_NULL_PO
INTER : _to->GetHreflang(aHreflang); } \ |
| 128 NS_IMETHOD SetHreflang(const nsAString & aHreflang) { return !_to ? NS_ERROR_N
ULL_POINTER : _to->SetHreflang(aHreflang); } \ |
| 129 NS_IMETHOD GetMedia(nsAString & aMedia) { return !_to ? NS_ERROR_NULL_POINTER
: _to->GetMedia(aMedia); } \ |
| 130 NS_IMETHOD SetMedia(const nsAString & aMedia) { return !_to ? NS_ERROR_NULL_PO
INTER : _to->SetMedia(aMedia); } \ |
| 131 NS_IMETHOD GetRel(nsAString & aRel) { return !_to ? NS_ERROR_NULL_POINTER : _t
o->GetRel(aRel); } \ |
| 132 NS_IMETHOD SetRel(const nsAString & aRel) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->SetRel(aRel); } \ |
| 133 NS_IMETHOD GetRev(nsAString & aRev) { return !_to ? NS_ERROR_NULL_POINTER : _t
o->GetRev(aRev); } \ |
| 134 NS_IMETHOD SetRev(const nsAString & aRev) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->SetRev(aRev); } \ |
| 135 NS_IMETHOD GetTarget(nsAString & aTarget) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->GetTarget(aTarget); } \ |
| 136 NS_IMETHOD SetTarget(const nsAString & aTarget) { return !_to ? NS_ERROR_NULL_
POINTER : _to->SetTarget(aTarget); } \ |
| 137 NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetType(aType); } \ |
| 138 NS_IMETHOD SetType(const nsAString & aType) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->SetType(aType); } |
| 139 |
| 140 #if 0 |
| 141 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 142 |
| 143 /* Header file */ |
| 144 class nsDOMHTMLLinkElement : public nsIDOMHTMLLinkElement |
| 145 { |
| 146 public: |
| 147 NS_DECL_ISUPPORTS |
| 148 NS_DECL_NSIDOMHTMLLINKELEMENT |
| 149 |
| 150 nsDOMHTMLLinkElement(); |
| 151 |
| 152 private: |
| 153 ~nsDOMHTMLLinkElement(); |
| 154 |
| 155 protected: |
| 156 /* additional members */ |
| 157 }; |
| 158 |
| 159 /* Implementation file */ |
| 160 NS_IMPL_ISUPPORTS1(nsDOMHTMLLinkElement, nsIDOMHTMLLinkElement) |
| 161 |
| 162 nsDOMHTMLLinkElement::nsDOMHTMLLinkElement() |
| 163 { |
| 164 /* member initializers and constructor code */ |
| 165 } |
| 166 |
| 167 nsDOMHTMLLinkElement::~nsDOMHTMLLinkElement() |
| 168 { |
| 169 /* destructor code */ |
| 170 } |
| 171 |
| 172 /* attribute boolean disabled; */ |
| 173 NS_IMETHODIMP nsDOMHTMLLinkElement::GetDisabled(PRBool *aDisabled) |
| 174 { |
| 175 return NS_ERROR_NOT_IMPLEMENTED; |
| 176 } |
| 177 NS_IMETHODIMP nsDOMHTMLLinkElement::SetDisabled(PRBool aDisabled) |
| 178 { |
| 179 return NS_ERROR_NOT_IMPLEMENTED; |
| 180 } |
| 181 |
| 182 /* attribute DOMString charset; */ |
| 183 NS_IMETHODIMP nsDOMHTMLLinkElement::GetCharset(nsAString & aCharset) |
| 184 { |
| 185 return NS_ERROR_NOT_IMPLEMENTED; |
| 186 } |
| 187 NS_IMETHODIMP nsDOMHTMLLinkElement::SetCharset(const nsAString & aCharset) |
| 188 { |
| 189 return NS_ERROR_NOT_IMPLEMENTED; |
| 190 } |
| 191 |
| 192 /* attribute DOMString href; */ |
| 193 NS_IMETHODIMP nsDOMHTMLLinkElement::GetHref(nsAString & aHref) |
| 194 { |
| 195 return NS_ERROR_NOT_IMPLEMENTED; |
| 196 } |
| 197 NS_IMETHODIMP nsDOMHTMLLinkElement::SetHref(const nsAString & aHref) |
| 198 { |
| 199 return NS_ERROR_NOT_IMPLEMENTED; |
| 200 } |
| 201 |
| 202 /* attribute DOMString hreflang; */ |
| 203 NS_IMETHODIMP nsDOMHTMLLinkElement::GetHreflang(nsAString & aHreflang) |
| 204 { |
| 205 return NS_ERROR_NOT_IMPLEMENTED; |
| 206 } |
| 207 NS_IMETHODIMP nsDOMHTMLLinkElement::SetHreflang(const nsAString & aHreflang) |
| 208 { |
| 209 return NS_ERROR_NOT_IMPLEMENTED; |
| 210 } |
| 211 |
| 212 /* attribute DOMString media; */ |
| 213 NS_IMETHODIMP nsDOMHTMLLinkElement::GetMedia(nsAString & aMedia) |
| 214 { |
| 215 return NS_ERROR_NOT_IMPLEMENTED; |
| 216 } |
| 217 NS_IMETHODIMP nsDOMHTMLLinkElement::SetMedia(const nsAString & aMedia) |
| 218 { |
| 219 return NS_ERROR_NOT_IMPLEMENTED; |
| 220 } |
| 221 |
| 222 /* attribute DOMString rel; */ |
| 223 NS_IMETHODIMP nsDOMHTMLLinkElement::GetRel(nsAString & aRel) |
| 224 { |
| 225 return NS_ERROR_NOT_IMPLEMENTED; |
| 226 } |
| 227 NS_IMETHODIMP nsDOMHTMLLinkElement::SetRel(const nsAString & aRel) |
| 228 { |
| 229 return NS_ERROR_NOT_IMPLEMENTED; |
| 230 } |
| 231 |
| 232 /* attribute DOMString rev; */ |
| 233 NS_IMETHODIMP nsDOMHTMLLinkElement::GetRev(nsAString & aRev) |
| 234 { |
| 235 return NS_ERROR_NOT_IMPLEMENTED; |
| 236 } |
| 237 NS_IMETHODIMP nsDOMHTMLLinkElement::SetRev(const nsAString & aRev) |
| 238 { |
| 239 return NS_ERROR_NOT_IMPLEMENTED; |
| 240 } |
| 241 |
| 242 /* attribute DOMString target; */ |
| 243 NS_IMETHODIMP nsDOMHTMLLinkElement::GetTarget(nsAString & aTarget) |
| 244 { |
| 245 return NS_ERROR_NOT_IMPLEMENTED; |
| 246 } |
| 247 NS_IMETHODIMP nsDOMHTMLLinkElement::SetTarget(const nsAString & aTarget) |
| 248 { |
| 249 return NS_ERROR_NOT_IMPLEMENTED; |
| 250 } |
| 251 |
| 252 /* attribute DOMString type; */ |
| 253 NS_IMETHODIMP nsDOMHTMLLinkElement::GetType(nsAString & aType) |
| 254 { |
| 255 return NS_ERROR_NOT_IMPLEMENTED; |
| 256 } |
| 257 NS_IMETHODIMP nsDOMHTMLLinkElement::SetType(const nsAString & aType) |
| 258 { |
| 259 return NS_ERROR_NOT_IMPLEMENTED; |
| 260 } |
| 261 |
| 262 /* End of implementation class template. */ |
| 263 #endif |
| 264 |
| 265 |
| 266 #endif /* __gen_nsIDOMHTMLLinkElement_h__ */ |
OLD | NEW |