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/nsIDOMHTMLImageElement.idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIDOMHTMLImageElement_h__ |
| 6 #define __gen_nsIDOMHTMLImageElement_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: nsIDOMHTMLImageElement */ |
| 19 #define NS_IDOMHTMLIMAGEELEMENT_IID_STR "a6cf90ab-15b3-11d2-932e-00805f8add32" |
| 20 |
| 21 #define NS_IDOMHTMLIMAGEELEMENT_IID \ |
| 22 {0xa6cf90ab, 0x15b3, 0x11d2, \ |
| 23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }} |
| 24 |
| 25 /** |
| 26 * The nsIDOMHTMLImageElement interface is the interface to a [X]HTML |
| 27 * img 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 nsIDOMHTMLImageElement : public nsIDOMHTMLElement { |
| 35 public: |
| 36 |
| 37 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLIMAGEELEMENT_IID) |
| 38 |
| 39 /* attribute DOMString name; */ |
| 40 NS_IMETHOD GetName(nsAString & aName) = 0; |
| 41 NS_IMETHOD SetName(const nsAString & aName) = 0; |
| 42 |
| 43 /* attribute DOMString align; */ |
| 44 NS_IMETHOD GetAlign(nsAString & aAlign) = 0; |
| 45 NS_IMETHOD SetAlign(const nsAString & aAlign) = 0; |
| 46 |
| 47 /* attribute DOMString alt; */ |
| 48 NS_IMETHOD GetAlt(nsAString & aAlt) = 0; |
| 49 NS_IMETHOD SetAlt(const nsAString & aAlt) = 0; |
| 50 |
| 51 /* attribute DOMString border; */ |
| 52 NS_IMETHOD GetBorder(nsAString & aBorder) = 0; |
| 53 NS_IMETHOD SetBorder(const nsAString & aBorder) = 0; |
| 54 |
| 55 /* attribute long height; */ |
| 56 NS_IMETHOD GetHeight(PRInt32 *aHeight) = 0; |
| 57 NS_IMETHOD SetHeight(PRInt32 aHeight) = 0; |
| 58 |
| 59 /* attribute long hspace; */ |
| 60 NS_IMETHOD GetHspace(PRInt32 *aHspace) = 0; |
| 61 NS_IMETHOD SetHspace(PRInt32 aHspace) = 0; |
| 62 |
| 63 /* attribute boolean isMap; */ |
| 64 NS_IMETHOD GetIsMap(PRBool *aIsMap) = 0; |
| 65 NS_IMETHOD SetIsMap(PRBool aIsMap) = 0; |
| 66 |
| 67 /* attribute DOMString longDesc; */ |
| 68 NS_IMETHOD GetLongDesc(nsAString & aLongDesc) = 0; |
| 69 NS_IMETHOD SetLongDesc(const nsAString & aLongDesc) = 0; |
| 70 |
| 71 /* attribute DOMString src; */ |
| 72 NS_IMETHOD GetSrc(nsAString & aSrc) = 0; |
| 73 NS_IMETHOD SetSrc(const nsAString & aSrc) = 0; |
| 74 |
| 75 /* attribute DOMString useMap; */ |
| 76 NS_IMETHOD GetUseMap(nsAString & aUseMap) = 0; |
| 77 NS_IMETHOD SetUseMap(const nsAString & aUseMap) = 0; |
| 78 |
| 79 /* attribute long vspace; */ |
| 80 NS_IMETHOD GetVspace(PRInt32 *aVspace) = 0; |
| 81 NS_IMETHOD SetVspace(PRInt32 aVspace) = 0; |
| 82 |
| 83 /* attribute long width; */ |
| 84 NS_IMETHOD GetWidth(PRInt32 *aWidth) = 0; |
| 85 NS_IMETHOD SetWidth(PRInt32 aWidth) = 0; |
| 86 |
| 87 }; |
| 88 |
| 89 /* Use this macro when declaring classes that implement this interface. */ |
| 90 #define NS_DECL_NSIDOMHTMLIMAGEELEMENT \ |
| 91 NS_IMETHOD GetName(nsAString & aName); \ |
| 92 NS_IMETHOD SetName(const nsAString & aName); \ |
| 93 NS_IMETHOD GetAlign(nsAString & aAlign); \ |
| 94 NS_IMETHOD SetAlign(const nsAString & aAlign); \ |
| 95 NS_IMETHOD GetAlt(nsAString & aAlt); \ |
| 96 NS_IMETHOD SetAlt(const nsAString & aAlt); \ |
| 97 NS_IMETHOD GetBorder(nsAString & aBorder); \ |
| 98 NS_IMETHOD SetBorder(const nsAString & aBorder); \ |
| 99 NS_IMETHOD GetHeight(PRInt32 *aHeight); \ |
| 100 NS_IMETHOD SetHeight(PRInt32 aHeight); \ |
| 101 NS_IMETHOD GetHspace(PRInt32 *aHspace); \ |
| 102 NS_IMETHOD SetHspace(PRInt32 aHspace); \ |
| 103 NS_IMETHOD GetIsMap(PRBool *aIsMap); \ |
| 104 NS_IMETHOD SetIsMap(PRBool aIsMap); \ |
| 105 NS_IMETHOD GetLongDesc(nsAString & aLongDesc); \ |
| 106 NS_IMETHOD SetLongDesc(const nsAString & aLongDesc); \ |
| 107 NS_IMETHOD GetSrc(nsAString & aSrc); \ |
| 108 NS_IMETHOD SetSrc(const nsAString & aSrc); \ |
| 109 NS_IMETHOD GetUseMap(nsAString & aUseMap); \ |
| 110 NS_IMETHOD SetUseMap(const nsAString & aUseMap); \ |
| 111 NS_IMETHOD GetVspace(PRInt32 *aVspace); \ |
| 112 NS_IMETHOD SetVspace(PRInt32 aVspace); \ |
| 113 NS_IMETHOD GetWidth(PRInt32 *aWidth); \ |
| 114 NS_IMETHOD SetWidth(PRInt32 aWidth); |
| 115 |
| 116 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 117 #define NS_FORWARD_NSIDOMHTMLIMAGEELEMENT(_to) \ |
| 118 NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \ |
| 119 NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \ |
| 120 NS_IMETHOD GetAlign(nsAString & aAlign) { return _to GetAlign(aAlign); } \ |
| 121 NS_IMETHOD SetAlign(const nsAString & aAlign) { return _to SetAlign(aAlign); }
\ |
| 122 NS_IMETHOD GetAlt(nsAString & aAlt) { return _to GetAlt(aAlt); } \ |
| 123 NS_IMETHOD SetAlt(const nsAString & aAlt) { return _to SetAlt(aAlt); } \ |
| 124 NS_IMETHOD GetBorder(nsAString & aBorder) { return _to GetBorder(aBorder); } \ |
| 125 NS_IMETHOD SetBorder(const nsAString & aBorder) { return _to SetBorder(aBorder
); } \ |
| 126 NS_IMETHOD GetHeight(PRInt32 *aHeight) { return _to GetHeight(aHeight); } \ |
| 127 NS_IMETHOD SetHeight(PRInt32 aHeight) { return _to SetHeight(aHeight); } \ |
| 128 NS_IMETHOD GetHspace(PRInt32 *aHspace) { return _to GetHspace(aHspace); } \ |
| 129 NS_IMETHOD SetHspace(PRInt32 aHspace) { return _to SetHspace(aHspace); } \ |
| 130 NS_IMETHOD GetIsMap(PRBool *aIsMap) { return _to GetIsMap(aIsMap); } \ |
| 131 NS_IMETHOD SetIsMap(PRBool aIsMap) { return _to SetIsMap(aIsMap); } \ |
| 132 NS_IMETHOD GetLongDesc(nsAString & aLongDesc) { return _to GetLongDesc(aLongDe
sc); } \ |
| 133 NS_IMETHOD SetLongDesc(const nsAString & aLongDesc) { return _to SetLongDesc(a
LongDesc); } \ |
| 134 NS_IMETHOD GetSrc(nsAString & aSrc) { return _to GetSrc(aSrc); } \ |
| 135 NS_IMETHOD SetSrc(const nsAString & aSrc) { return _to SetSrc(aSrc); } \ |
| 136 NS_IMETHOD GetUseMap(nsAString & aUseMap) { return _to GetUseMap(aUseMap); } \ |
| 137 NS_IMETHOD SetUseMap(const nsAString & aUseMap) { return _to SetUseMap(aUseMap
); } \ |
| 138 NS_IMETHOD GetVspace(PRInt32 *aVspace) { return _to GetVspace(aVspace); } \ |
| 139 NS_IMETHOD SetVspace(PRInt32 aVspace) { return _to SetVspace(aVspace); } \ |
| 140 NS_IMETHOD GetWidth(PRInt32 *aWidth) { return _to GetWidth(aWidth); } \ |
| 141 NS_IMETHOD SetWidth(PRInt32 aWidth) { return _to SetWidth(aWidth); } |
| 142 |
| 143 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 144 #define NS_FORWARD_SAFE_NSIDOMHTMLIMAGEELEMENT(_to) \ |
| 145 NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetName(aName); } \ |
| 146 NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->SetName(aName); } \ |
| 147 NS_IMETHOD GetAlign(nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER
: _to->GetAlign(aAlign); } \ |
| 148 NS_IMETHOD SetAlign(const nsAString & aAlign) { return !_to ? NS_ERROR_NULL_PO
INTER : _to->SetAlign(aAlign); } \ |
| 149 NS_IMETHOD GetAlt(nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _t
o->GetAlt(aAlt); } \ |
| 150 NS_IMETHOD SetAlt(const nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->SetAlt(aAlt); } \ |
| 151 NS_IMETHOD GetBorder(nsAString & aBorder) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->GetBorder(aBorder); } \ |
| 152 NS_IMETHOD SetBorder(const nsAString & aBorder) { return !_to ? NS_ERROR_NULL_
POINTER : _to->SetBorder(aBorder); } \ |
| 153 NS_IMETHOD GetHeight(PRInt32 *aHeight) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetHeight(aHeight); } \ |
| 154 NS_IMETHOD SetHeight(PRInt32 aHeight) { return !_to ? NS_ERROR_NULL_POINTER :
_to->SetHeight(aHeight); } \ |
| 155 NS_IMETHOD GetHspace(PRInt32 *aHspace) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetHspace(aHspace); } \ |
| 156 NS_IMETHOD SetHspace(PRInt32 aHspace) { return !_to ? NS_ERROR_NULL_POINTER :
_to->SetHspace(aHspace); } \ |
| 157 NS_IMETHOD GetIsMap(PRBool *aIsMap) { return !_to ? NS_ERROR_NULL_POINTER : _t
o->GetIsMap(aIsMap); } \ |
| 158 NS_IMETHOD SetIsMap(PRBool aIsMap) { return !_to ? NS_ERROR_NULL_POINTER : _to
->SetIsMap(aIsMap); } \ |
| 159 NS_IMETHOD GetLongDesc(nsAString & aLongDesc) { return !_to ? NS_ERROR_NULL_PO
INTER : _to->GetLongDesc(aLongDesc); } \ |
| 160 NS_IMETHOD SetLongDesc(const nsAString & aLongDesc) { return !_to ? NS_ERROR_N
ULL_POINTER : _to->SetLongDesc(aLongDesc); } \ |
| 161 NS_IMETHOD GetSrc(nsAString & aSrc) { return !_to ? NS_ERROR_NULL_POINTER : _t
o->GetSrc(aSrc); } \ |
| 162 NS_IMETHOD SetSrc(const nsAString & aSrc) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->SetSrc(aSrc); } \ |
| 163 NS_IMETHOD GetUseMap(nsAString & aUseMap) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->GetUseMap(aUseMap); } \ |
| 164 NS_IMETHOD SetUseMap(const nsAString & aUseMap) { return !_to ? NS_ERROR_NULL_
POINTER : _to->SetUseMap(aUseMap); } \ |
| 165 NS_IMETHOD GetVspace(PRInt32 *aVspace) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetVspace(aVspace); } \ |
| 166 NS_IMETHOD SetVspace(PRInt32 aVspace) { return !_to ? NS_ERROR_NULL_POINTER :
_to->SetVspace(aVspace); } \ |
| 167 NS_IMETHOD GetWidth(PRInt32 *aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _
to->GetWidth(aWidth); } \ |
| 168 NS_IMETHOD SetWidth(PRInt32 aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _t
o->SetWidth(aWidth); } |
| 169 |
| 170 #if 0 |
| 171 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 172 |
| 173 /* Header file */ |
| 174 class nsDOMHTMLImageElement : public nsIDOMHTMLImageElement |
| 175 { |
| 176 public: |
| 177 NS_DECL_ISUPPORTS |
| 178 NS_DECL_NSIDOMHTMLIMAGEELEMENT |
| 179 |
| 180 nsDOMHTMLImageElement(); |
| 181 |
| 182 private: |
| 183 ~nsDOMHTMLImageElement(); |
| 184 |
| 185 protected: |
| 186 /* additional members */ |
| 187 }; |
| 188 |
| 189 /* Implementation file */ |
| 190 NS_IMPL_ISUPPORTS1(nsDOMHTMLImageElement, nsIDOMHTMLImageElement) |
| 191 |
| 192 nsDOMHTMLImageElement::nsDOMHTMLImageElement() |
| 193 { |
| 194 /* member initializers and constructor code */ |
| 195 } |
| 196 |
| 197 nsDOMHTMLImageElement::~nsDOMHTMLImageElement() |
| 198 { |
| 199 /* destructor code */ |
| 200 } |
| 201 |
| 202 /* attribute DOMString name; */ |
| 203 NS_IMETHODIMP nsDOMHTMLImageElement::GetName(nsAString & aName) |
| 204 { |
| 205 return NS_ERROR_NOT_IMPLEMENTED; |
| 206 } |
| 207 NS_IMETHODIMP nsDOMHTMLImageElement::SetName(const nsAString & aName) |
| 208 { |
| 209 return NS_ERROR_NOT_IMPLEMENTED; |
| 210 } |
| 211 |
| 212 /* attribute DOMString align; */ |
| 213 NS_IMETHODIMP nsDOMHTMLImageElement::GetAlign(nsAString & aAlign) |
| 214 { |
| 215 return NS_ERROR_NOT_IMPLEMENTED; |
| 216 } |
| 217 NS_IMETHODIMP nsDOMHTMLImageElement::SetAlign(const nsAString & aAlign) |
| 218 { |
| 219 return NS_ERROR_NOT_IMPLEMENTED; |
| 220 } |
| 221 |
| 222 /* attribute DOMString alt; */ |
| 223 NS_IMETHODIMP nsDOMHTMLImageElement::GetAlt(nsAString & aAlt) |
| 224 { |
| 225 return NS_ERROR_NOT_IMPLEMENTED; |
| 226 } |
| 227 NS_IMETHODIMP nsDOMHTMLImageElement::SetAlt(const nsAString & aAlt) |
| 228 { |
| 229 return NS_ERROR_NOT_IMPLEMENTED; |
| 230 } |
| 231 |
| 232 /* attribute DOMString border; */ |
| 233 NS_IMETHODIMP nsDOMHTMLImageElement::GetBorder(nsAString & aBorder) |
| 234 { |
| 235 return NS_ERROR_NOT_IMPLEMENTED; |
| 236 } |
| 237 NS_IMETHODIMP nsDOMHTMLImageElement::SetBorder(const nsAString & aBorder) |
| 238 { |
| 239 return NS_ERROR_NOT_IMPLEMENTED; |
| 240 } |
| 241 |
| 242 /* attribute long height; */ |
| 243 NS_IMETHODIMP nsDOMHTMLImageElement::GetHeight(PRInt32 *aHeight) |
| 244 { |
| 245 return NS_ERROR_NOT_IMPLEMENTED; |
| 246 } |
| 247 NS_IMETHODIMP nsDOMHTMLImageElement::SetHeight(PRInt32 aHeight) |
| 248 { |
| 249 return NS_ERROR_NOT_IMPLEMENTED; |
| 250 } |
| 251 |
| 252 /* attribute long hspace; */ |
| 253 NS_IMETHODIMP nsDOMHTMLImageElement::GetHspace(PRInt32 *aHspace) |
| 254 { |
| 255 return NS_ERROR_NOT_IMPLEMENTED; |
| 256 } |
| 257 NS_IMETHODIMP nsDOMHTMLImageElement::SetHspace(PRInt32 aHspace) |
| 258 { |
| 259 return NS_ERROR_NOT_IMPLEMENTED; |
| 260 } |
| 261 |
| 262 /* attribute boolean isMap; */ |
| 263 NS_IMETHODIMP nsDOMHTMLImageElement::GetIsMap(PRBool *aIsMap) |
| 264 { |
| 265 return NS_ERROR_NOT_IMPLEMENTED; |
| 266 } |
| 267 NS_IMETHODIMP nsDOMHTMLImageElement::SetIsMap(PRBool aIsMap) |
| 268 { |
| 269 return NS_ERROR_NOT_IMPLEMENTED; |
| 270 } |
| 271 |
| 272 /* attribute DOMString longDesc; */ |
| 273 NS_IMETHODIMP nsDOMHTMLImageElement::GetLongDesc(nsAString & aLongDesc) |
| 274 { |
| 275 return NS_ERROR_NOT_IMPLEMENTED; |
| 276 } |
| 277 NS_IMETHODIMP nsDOMHTMLImageElement::SetLongDesc(const nsAString & aLongDesc) |
| 278 { |
| 279 return NS_ERROR_NOT_IMPLEMENTED; |
| 280 } |
| 281 |
| 282 /* attribute DOMString src; */ |
| 283 NS_IMETHODIMP nsDOMHTMLImageElement::GetSrc(nsAString & aSrc) |
| 284 { |
| 285 return NS_ERROR_NOT_IMPLEMENTED; |
| 286 } |
| 287 NS_IMETHODIMP nsDOMHTMLImageElement::SetSrc(const nsAString & aSrc) |
| 288 { |
| 289 return NS_ERROR_NOT_IMPLEMENTED; |
| 290 } |
| 291 |
| 292 /* attribute DOMString useMap; */ |
| 293 NS_IMETHODIMP nsDOMHTMLImageElement::GetUseMap(nsAString & aUseMap) |
| 294 { |
| 295 return NS_ERROR_NOT_IMPLEMENTED; |
| 296 } |
| 297 NS_IMETHODIMP nsDOMHTMLImageElement::SetUseMap(const nsAString & aUseMap) |
| 298 { |
| 299 return NS_ERROR_NOT_IMPLEMENTED; |
| 300 } |
| 301 |
| 302 /* attribute long vspace; */ |
| 303 NS_IMETHODIMP nsDOMHTMLImageElement::GetVspace(PRInt32 *aVspace) |
| 304 { |
| 305 return NS_ERROR_NOT_IMPLEMENTED; |
| 306 } |
| 307 NS_IMETHODIMP nsDOMHTMLImageElement::SetVspace(PRInt32 aVspace) |
| 308 { |
| 309 return NS_ERROR_NOT_IMPLEMENTED; |
| 310 } |
| 311 |
| 312 /* attribute long width; */ |
| 313 NS_IMETHODIMP nsDOMHTMLImageElement::GetWidth(PRInt32 *aWidth) |
| 314 { |
| 315 return NS_ERROR_NOT_IMPLEMENTED; |
| 316 } |
| 317 NS_IMETHODIMP nsDOMHTMLImageElement::SetWidth(PRInt32 aWidth) |
| 318 { |
| 319 return NS_ERROR_NOT_IMPLEMENTED; |
| 320 } |
| 321 |
| 322 /* End of implementation class template. */ |
| 323 #endif |
| 324 |
| 325 |
| 326 #endif /* __gen_nsIDOMHTMLImageElement_h__ */ |
OLD | NEW |