PageRenderTime 134ms CodeModel.GetById 61ms app.highlight 10ms RepoModel.GetById 60ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLImageElement.h

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