PageRenderTime 114ms CodeModel.GetById 80ms app.highlight 11ms RepoModel.GetById 19ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLAnchorElement.h

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