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/nsIDOMHTMLAnchorElement.id
l |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIDOMHTMLAnchorElement_h__ |
| 6 #define __gen_nsIDOMHTMLAnchorElement_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: nsIDOMHTMLAnchorElement */ |
| 19 #define NS_IDOMHTMLANCHORELEMENT_IID_STR "a6cf90aa-15b3-11d2-932e-00805f8add32" |
| 20 |
| 21 #define NS_IDOMHTMLANCHORELEMENT_IID \ |
| 22 {0xa6cf90aa, 0x15b3, 0x11d2, \ |
| 23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }} |
| 24 |
| 25 /** |
| 26 * The nsIDOMHTMLAnchorElement interface is the interface to a [X]HTML |
| 27 * a 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 nsIDOMHTMLAnchorElement : public nsIDOMHTMLElement { |
| 35 public: |
| 36 |
| 37 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLANCHORELEMENT_IID) |
| 38 |
| 39 /* attribute DOMString accessKey; */ |
| 40 NS_IMETHOD GetAccessKey(nsAString & aAccessKey) = 0; |
| 41 NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) = 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 coords; */ |
| 48 NS_IMETHOD GetCoords(nsAString & aCoords) = 0; |
| 49 NS_IMETHOD SetCoords(const nsAString & aCoords) = 0; |
| 50 |
| 51 /* attribute DOMString href; */ |
| 52 NS_IMETHOD GetHref(nsAString & aHref) = 0; |
| 53 NS_IMETHOD SetHref(const nsAString & aHref) = 0; |
| 54 |
| 55 /* attribute DOMString hreflang; */ |
| 56 NS_IMETHOD GetHreflang(nsAString & aHreflang) = 0; |
| 57 NS_IMETHOD SetHreflang(const nsAString & aHreflang) = 0; |
| 58 |
| 59 /* attribute DOMString name; */ |
| 60 NS_IMETHOD GetName(nsAString & aName) = 0; |
| 61 NS_IMETHOD SetName(const nsAString & aName) = 0; |
| 62 |
| 63 /* attribute DOMString rel; */ |
| 64 NS_IMETHOD GetRel(nsAString & aRel) = 0; |
| 65 NS_IMETHOD SetRel(const nsAString & aRel) = 0; |
| 66 |
| 67 /* attribute DOMString rev; */ |
| 68 NS_IMETHOD GetRev(nsAString & aRev) = 0; |
| 69 NS_IMETHOD SetRev(const nsAString & aRev) = 0; |
| 70 |
| 71 /* attribute DOMString shape; */ |
| 72 NS_IMETHOD GetShape(nsAString & aShape) = 0; |
| 73 NS_IMETHOD SetShape(const nsAString & aShape) = 0; |
| 74 |
| 75 /* attribute long tabIndex; */ |
| 76 NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) = 0; |
| 77 NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) = 0; |
| 78 |
| 79 /* attribute DOMString target; */ |
| 80 NS_IMETHOD GetTarget(nsAString & aTarget) = 0; |
| 81 NS_IMETHOD SetTarget(const nsAString & aTarget) = 0; |
| 82 |
| 83 /* attribute DOMString type; */ |
| 84 NS_IMETHOD GetType(nsAString & aType) = 0; |
| 85 NS_IMETHOD SetType(const nsAString & aType) = 0; |
| 86 |
| 87 /* void blur (); */ |
| 88 NS_IMETHOD Blur(void) = 0; |
| 89 |
| 90 /* void focus (); */ |
| 91 NS_IMETHOD Focus(void) = 0; |
| 92 |
| 93 }; |
| 94 |
| 95 /* Use this macro when declaring classes that implement this interface. */ |
| 96 #define NS_DECL_NSIDOMHTMLANCHORELEMENT \ |
| 97 NS_IMETHOD GetAccessKey(nsAString & aAccessKey); \ |
| 98 NS_IMETHOD SetAccessKey(const nsAString & aAccessKey); \ |
| 99 NS_IMETHOD GetCharset(nsAString & aCharset); \ |
| 100 NS_IMETHOD SetCharset(const nsAString & aCharset); \ |
| 101 NS_IMETHOD GetCoords(nsAString & aCoords); \ |
| 102 NS_IMETHOD SetCoords(const nsAString & aCoords); \ |
| 103 NS_IMETHOD GetHref(nsAString & aHref); \ |
| 104 NS_IMETHOD SetHref(const nsAString & aHref); \ |
| 105 NS_IMETHOD GetHreflang(nsAString & aHreflang); \ |
| 106 NS_IMETHOD SetHreflang(const nsAString & aHreflang); \ |
| 107 NS_IMETHOD GetName(nsAString & aName); \ |
| 108 NS_IMETHOD SetName(const nsAString & aName); \ |
| 109 NS_IMETHOD GetRel(nsAString & aRel); \ |
| 110 NS_IMETHOD SetRel(const nsAString & aRel); \ |
| 111 NS_IMETHOD GetRev(nsAString & aRev); \ |
| 112 NS_IMETHOD SetRev(const nsAString & aRev); \ |
| 113 NS_IMETHOD GetShape(nsAString & aShape); \ |
| 114 NS_IMETHOD SetShape(const nsAString & aShape); \ |
| 115 NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex); \ |
| 116 NS_IMETHOD SetTabIndex(PRInt32 aTabIndex); \ |
| 117 NS_IMETHOD GetTarget(nsAString & aTarget); \ |
| 118 NS_IMETHOD SetTarget(const nsAString & aTarget); \ |
| 119 NS_IMETHOD GetType(nsAString & aType); \ |
| 120 NS_IMETHOD SetType(const nsAString & aType); \ |
| 121 NS_IMETHOD Blur(void); \ |
| 122 NS_IMETHOD Focus(void); |
| 123 |
| 124 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 125 #define NS_FORWARD_NSIDOMHTMLANCHORELEMENT(_to) \ |
| 126 NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return _to GetAccessKey(aAcc
essKey); } \ |
| 127 NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return _to SetAccessKe
y(aAccessKey); } \ |
| 128 NS_IMETHOD GetCharset(nsAString & aCharset) { return _to GetCharset(aCharset);
} \ |
| 129 NS_IMETHOD SetCharset(const nsAString & aCharset) { return _to SetCharset(aCha
rset); } \ |
| 130 NS_IMETHOD GetCoords(nsAString & aCoords) { return _to GetCoords(aCoords); } \ |
| 131 NS_IMETHOD SetCoords(const nsAString & aCoords) { return _to SetCoords(aCoords
); } \ |
| 132 NS_IMETHOD GetHref(nsAString & aHref) { return _to GetHref(aHref); } \ |
| 133 NS_IMETHOD SetHref(const nsAString & aHref) { return _to SetHref(aHref); } \ |
| 134 NS_IMETHOD GetHreflang(nsAString & aHreflang) { return _to GetHreflang(aHrefla
ng); } \ |
| 135 NS_IMETHOD SetHreflang(const nsAString & aHreflang) { return _to SetHreflang(a
Hreflang); } \ |
| 136 NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \ |
| 137 NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \ |
| 138 NS_IMETHOD GetRel(nsAString & aRel) { return _to GetRel(aRel); } \ |
| 139 NS_IMETHOD SetRel(const nsAString & aRel) { return _to SetRel(aRel); } \ |
| 140 NS_IMETHOD GetRev(nsAString & aRev) { return _to GetRev(aRev); } \ |
| 141 NS_IMETHOD SetRev(const nsAString & aRev) { return _to SetRev(aRev); } \ |
| 142 NS_IMETHOD GetShape(nsAString & aShape) { return _to GetShape(aShape); } \ |
| 143 NS_IMETHOD SetShape(const nsAString & aShape) { return _to SetShape(aShape); }
\ |
| 144 NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return _to GetTabIndex(aTabIndex)
; } \ |
| 145 NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return _to SetTabIndex(aTabIndex);
} \ |
| 146 NS_IMETHOD GetTarget(nsAString & aTarget) { return _to GetTarget(aTarget); } \ |
| 147 NS_IMETHOD SetTarget(const nsAString & aTarget) { return _to SetTarget(aTarget
); } \ |
| 148 NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \ |
| 149 NS_IMETHOD SetType(const nsAString & aType) { return _to SetType(aType); } \ |
| 150 NS_IMETHOD Blur(void) { return _to Blur(); } \ |
| 151 NS_IMETHOD Focus(void) { return _to Focus(); } |
| 152 |
| 153 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 154 #define NS_FORWARD_SAFE_NSIDOMHTMLANCHORELEMENT(_to) \ |
| 155 NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_
POINTER : _to->GetAccessKey(aAccessKey); } \ |
| 156 NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return !_to ? NS_ERROR
_NULL_POINTER : _to->SetAccessKey(aAccessKey); } \ |
| 157 NS_IMETHOD GetCharset(nsAString & aCharset) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->GetCharset(aCharset); } \ |
| 158 NS_IMETHOD SetCharset(const nsAString & aCharset) { return !_to ? NS_ERROR_NUL
L_POINTER : _to->SetCharset(aCharset); } \ |
| 159 NS_IMETHOD GetCoords(nsAString & aCoords) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->GetCoords(aCoords); } \ |
| 160 NS_IMETHOD SetCoords(const nsAString & aCoords) { return !_to ? NS_ERROR_NULL_
POINTER : _to->SetCoords(aCoords); } \ |
| 161 NS_IMETHOD GetHref(nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetHref(aHref); } \ |
| 162 NS_IMETHOD SetHref(const nsAString & aHref) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->SetHref(aHref); } \ |
| 163 NS_IMETHOD GetHreflang(nsAString & aHreflang) { return !_to ? NS_ERROR_NULL_PO
INTER : _to->GetHreflang(aHreflang); } \ |
| 164 NS_IMETHOD SetHreflang(const nsAString & aHreflang) { return !_to ? NS_ERROR_N
ULL_POINTER : _to->SetHreflang(aHreflang); } \ |
| 165 NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetName(aName); } \ |
| 166 NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->SetName(aName); } \ |
| 167 NS_IMETHOD GetRel(nsAString & aRel) { return !_to ? NS_ERROR_NULL_POINTER : _t
o->GetRel(aRel); } \ |
| 168 NS_IMETHOD SetRel(const nsAString & aRel) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->SetRel(aRel); } \ |
| 169 NS_IMETHOD GetRev(nsAString & aRev) { return !_to ? NS_ERROR_NULL_POINTER : _t
o->GetRev(aRev); } \ |
| 170 NS_IMETHOD SetRev(const nsAString & aRev) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->SetRev(aRev); } \ |
| 171 NS_IMETHOD GetShape(nsAString & aShape) { return !_to ? NS_ERROR_NULL_POINTER
: _to->GetShape(aShape); } \ |
| 172 NS_IMETHOD SetShape(const nsAString & aShape) { return !_to ? NS_ERROR_NULL_PO
INTER : _to->SetShape(aShape); } \ |
| 173 NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return !_to ? NS_ERROR_NULL_POINT
ER : _to->GetTabIndex(aTabIndex); } \ |
| 174 NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->SetTabIndex(aTabIndex); } \ |
| 175 NS_IMETHOD GetTarget(nsAString & aTarget) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->GetTarget(aTarget); } \ |
| 176 NS_IMETHOD SetTarget(const nsAString & aTarget) { return !_to ? NS_ERROR_NULL_
POINTER : _to->SetTarget(aTarget); } \ |
| 177 NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetType(aType); } \ |
| 178 NS_IMETHOD SetType(const nsAString & aType) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->SetType(aType); } \ |
| 179 NS_IMETHOD Blur(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Blur(); } \ |
| 180 NS_IMETHOD Focus(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Focus(); }
|
| 181 |
| 182 #if 0 |
| 183 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 184 |
| 185 /* Header file */ |
| 186 class nsDOMHTMLAnchorElement : public nsIDOMHTMLAnchorElement |
| 187 { |
| 188 public: |
| 189 NS_DECL_ISUPPORTS |
| 190 NS_DECL_NSIDOMHTMLANCHORELEMENT |
| 191 |
| 192 nsDOMHTMLAnchorElement(); |
| 193 |
| 194 private: |
| 195 ~nsDOMHTMLAnchorElement(); |
| 196 |
| 197 protected: |
| 198 /* additional members */ |
| 199 }; |
| 200 |
| 201 /* Implementation file */ |
| 202 NS_IMPL_ISUPPORTS1(nsDOMHTMLAnchorElement, nsIDOMHTMLAnchorElement) |
| 203 |
| 204 nsDOMHTMLAnchorElement::nsDOMHTMLAnchorElement() |
| 205 { |
| 206 /* member initializers and constructor code */ |
| 207 } |
| 208 |
| 209 nsDOMHTMLAnchorElement::~nsDOMHTMLAnchorElement() |
| 210 { |
| 211 /* destructor code */ |
| 212 } |
| 213 |
| 214 /* attribute DOMString accessKey; */ |
| 215 NS_IMETHODIMP nsDOMHTMLAnchorElement::GetAccessKey(nsAString & aAccessKey) |
| 216 { |
| 217 return NS_ERROR_NOT_IMPLEMENTED; |
| 218 } |
| 219 NS_IMETHODIMP nsDOMHTMLAnchorElement::SetAccessKey(const nsAString & aAccessKey) |
| 220 { |
| 221 return NS_ERROR_NOT_IMPLEMENTED; |
| 222 } |
| 223 |
| 224 /* attribute DOMString charset; */ |
| 225 NS_IMETHODIMP nsDOMHTMLAnchorElement::GetCharset(nsAString & aCharset) |
| 226 { |
| 227 return NS_ERROR_NOT_IMPLEMENTED; |
| 228 } |
| 229 NS_IMETHODIMP nsDOMHTMLAnchorElement::SetCharset(const nsAString & aCharset) |
| 230 { |
| 231 return NS_ERROR_NOT_IMPLEMENTED; |
| 232 } |
| 233 |
| 234 /* attribute DOMString coords; */ |
| 235 NS_IMETHODIMP nsDOMHTMLAnchorElement::GetCoords(nsAString & aCoords) |
| 236 { |
| 237 return NS_ERROR_NOT_IMPLEMENTED; |
| 238 } |
| 239 NS_IMETHODIMP nsDOMHTMLAnchorElement::SetCoords(const nsAString & aCoords) |
| 240 { |
| 241 return NS_ERROR_NOT_IMPLEMENTED; |
| 242 } |
| 243 |
| 244 /* attribute DOMString href; */ |
| 245 NS_IMETHODIMP nsDOMHTMLAnchorElement::GetHref(nsAString & aHref) |
| 246 { |
| 247 return NS_ERROR_NOT_IMPLEMENTED; |
| 248 } |
| 249 NS_IMETHODIMP nsDOMHTMLAnchorElement::SetHref(const nsAString & aHref) |
| 250 { |
| 251 return NS_ERROR_NOT_IMPLEMENTED; |
| 252 } |
| 253 |
| 254 /* attribute DOMString hreflang; */ |
| 255 NS_IMETHODIMP nsDOMHTMLAnchorElement::GetHreflang(nsAString & aHreflang) |
| 256 { |
| 257 return NS_ERROR_NOT_IMPLEMENTED; |
| 258 } |
| 259 NS_IMETHODIMP nsDOMHTMLAnchorElement::SetHreflang(const nsAString & aHreflang) |
| 260 { |
| 261 return NS_ERROR_NOT_IMPLEMENTED; |
| 262 } |
| 263 |
| 264 /* attribute DOMString name; */ |
| 265 NS_IMETHODIMP nsDOMHTMLAnchorElement::GetName(nsAString & aName) |
| 266 { |
| 267 return NS_ERROR_NOT_IMPLEMENTED; |
| 268 } |
| 269 NS_IMETHODIMP nsDOMHTMLAnchorElement::SetName(const nsAString & aName) |
| 270 { |
| 271 return NS_ERROR_NOT_IMPLEMENTED; |
| 272 } |
| 273 |
| 274 /* attribute DOMString rel; */ |
| 275 NS_IMETHODIMP nsDOMHTMLAnchorElement::GetRel(nsAString & aRel) |
| 276 { |
| 277 return NS_ERROR_NOT_IMPLEMENTED; |
| 278 } |
| 279 NS_IMETHODIMP nsDOMHTMLAnchorElement::SetRel(const nsAString & aRel) |
| 280 { |
| 281 return NS_ERROR_NOT_IMPLEMENTED; |
| 282 } |
| 283 |
| 284 /* attribute DOMString rev; */ |
| 285 NS_IMETHODIMP nsDOMHTMLAnchorElement::GetRev(nsAString & aRev) |
| 286 { |
| 287 return NS_ERROR_NOT_IMPLEMENTED; |
| 288 } |
| 289 NS_IMETHODIMP nsDOMHTMLAnchorElement::SetRev(const nsAString & aRev) |
| 290 { |
| 291 return NS_ERROR_NOT_IMPLEMENTED; |
| 292 } |
| 293 |
| 294 /* attribute DOMString shape; */ |
| 295 NS_IMETHODIMP nsDOMHTMLAnchorElement::GetShape(nsAString & aShape) |
| 296 { |
| 297 return NS_ERROR_NOT_IMPLEMENTED; |
| 298 } |
| 299 NS_IMETHODIMP nsDOMHTMLAnchorElement::SetShape(const nsAString & aShape) |
| 300 { |
| 301 return NS_ERROR_NOT_IMPLEMENTED; |
| 302 } |
| 303 |
| 304 /* attribute long tabIndex; */ |
| 305 NS_IMETHODIMP nsDOMHTMLAnchorElement::GetTabIndex(PRInt32 *aTabIndex) |
| 306 { |
| 307 return NS_ERROR_NOT_IMPLEMENTED; |
| 308 } |
| 309 NS_IMETHODIMP nsDOMHTMLAnchorElement::SetTabIndex(PRInt32 aTabIndex) |
| 310 { |
| 311 return NS_ERROR_NOT_IMPLEMENTED; |
| 312 } |
| 313 |
| 314 /* attribute DOMString target; */ |
| 315 NS_IMETHODIMP nsDOMHTMLAnchorElement::GetTarget(nsAString & aTarget) |
| 316 { |
| 317 return NS_ERROR_NOT_IMPLEMENTED; |
| 318 } |
| 319 NS_IMETHODIMP nsDOMHTMLAnchorElement::SetTarget(const nsAString & aTarget) |
| 320 { |
| 321 return NS_ERROR_NOT_IMPLEMENTED; |
| 322 } |
| 323 |
| 324 /* attribute DOMString type; */ |
| 325 NS_IMETHODIMP nsDOMHTMLAnchorElement::GetType(nsAString & aType) |
| 326 { |
| 327 return NS_ERROR_NOT_IMPLEMENTED; |
| 328 } |
| 329 NS_IMETHODIMP nsDOMHTMLAnchorElement::SetType(const nsAString & aType) |
| 330 { |
| 331 return NS_ERROR_NOT_IMPLEMENTED; |
| 332 } |
| 333 |
| 334 /* void blur (); */ |
| 335 NS_IMETHODIMP nsDOMHTMLAnchorElement::Blur() |
| 336 { |
| 337 return NS_ERROR_NOT_IMPLEMENTED; |
| 338 } |
| 339 |
| 340 /* void focus (); */ |
| 341 NS_IMETHODIMP nsDOMHTMLAnchorElement::Focus() |
| 342 { |
| 343 return NS_ERROR_NOT_IMPLEMENTED; |
| 344 } |
| 345 |
| 346 /* End of implementation class template. */ |
| 347 #endif |
| 348 |
| 349 |
| 350 #endif /* __gen_nsIDOMHTMLAnchorElement_h__ */ |
OLD | NEW |