PageRenderTime 440ms CodeModel.GetById 102ms app.highlight 223ms RepoModel.GetById 99ms app.codeStats 1ms

/gecko_api/include/nsIDOMHTMLInputElement.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 488 lines | 352 code | 68 blank | 68 comment | 0 complexity | af915402976ade028965c9a1fac7fb0d 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/nsIDOMHTMLInputElement.idl
  3 */
  4
  5#ifndef __gen_nsIDOMHTMLInputElement_h__
  6#define __gen_nsIDOMHTMLInputElement_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:    nsIDOMHTMLInputElement */
 19#define NS_IDOMHTMLINPUTELEMENT_IID_STR "a6cf9093-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMHTMLINPUTELEMENT_IID \
 22  {0xa6cf9093, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25/**
 26 * The nsIDOMHTMLInputElement interface is the interface to a [X]HTML
 27 * input 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 nsIDOMHTMLInputElement : public nsIDOMHTMLElement {
 35 public: 
 36
 37  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLINPUTELEMENT_IID)
 38
 39  /* attribute DOMString defaultValue; */
 40  NS_SCRIPTABLE NS_IMETHOD GetDefaultValue(nsAString & aDefaultValue) = 0;
 41  NS_SCRIPTABLE NS_IMETHOD SetDefaultValue(const nsAString & aDefaultValue) = 0;
 42
 43  /* attribute boolean defaultChecked; */
 44  NS_SCRIPTABLE NS_IMETHOD GetDefaultChecked(PRBool *aDefaultChecked) = 0;
 45  NS_SCRIPTABLE NS_IMETHOD SetDefaultChecked(PRBool aDefaultChecked) = 0;
 46
 47  /* readonly attribute nsIDOMHTMLFormElement form; */
 48  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
 49
 50  /* attribute DOMString accept; */
 51  NS_SCRIPTABLE NS_IMETHOD GetAccept(nsAString & aAccept) = 0;
 52  NS_SCRIPTABLE NS_IMETHOD SetAccept(const nsAString & aAccept) = 0;
 53
 54  /* attribute DOMString accessKey; */
 55  NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey) = 0;
 56  NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) = 0;
 57
 58  /* attribute DOMString align; */
 59  NS_SCRIPTABLE NS_IMETHOD GetAlign(nsAString & aAlign) = 0;
 60  NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign) = 0;
 61
 62  /* attribute DOMString alt; */
 63  NS_SCRIPTABLE NS_IMETHOD GetAlt(nsAString & aAlt) = 0;
 64  NS_SCRIPTABLE NS_IMETHOD SetAlt(const nsAString & aAlt) = 0;
 65
 66  /* attribute boolean checked; */
 67  NS_SCRIPTABLE NS_IMETHOD GetChecked(PRBool *aChecked) = 0;
 68  NS_SCRIPTABLE NS_IMETHOD SetChecked(PRBool aChecked) = 0;
 69
 70  /* attribute boolean disabled; */
 71  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
 72  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
 73
 74  /* attribute long maxLength; */
 75  NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) = 0;
 76  NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) = 0;
 77
 78  /* attribute DOMString name; */
 79  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
 80  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) = 0;
 81
 82  /* attribute boolean readOnly; */
 83  NS_SCRIPTABLE NS_IMETHOD GetReadOnly(PRBool *aReadOnly) = 0;
 84  NS_SCRIPTABLE NS_IMETHOD SetReadOnly(PRBool aReadOnly) = 0;
 85
 86  /* attribute unsigned long size; */
 87  NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint32 *aSize) = 0;
 88  NS_SCRIPTABLE NS_IMETHOD SetSize(PRUint32 aSize) = 0;
 89
 90  /* attribute DOMString src; */
 91  NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc) = 0;
 92  NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc) = 0;
 93
 94  /* attribute long tabIndex; */
 95  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) = 0;
 96  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) = 0;
 97
 98  /* attribute DOMString type; */
 99  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) = 0;
100  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) = 0;
101
102  /* attribute DOMString useMap; */
103  NS_SCRIPTABLE NS_IMETHOD GetUseMap(nsAString & aUseMap) = 0;
104  NS_SCRIPTABLE NS_IMETHOD SetUseMap(const nsAString & aUseMap) = 0;
105
106  /* attribute DOMString value; */
107  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) = 0;
108  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) = 0;
109
110  /* void blur (); */
111  NS_SCRIPTABLE NS_IMETHOD Blur(void) = 0;
112
113  /* void focus (); */
114  NS_SCRIPTABLE NS_IMETHOD Focus(void) = 0;
115
116  /* void select (); */
117  NS_SCRIPTABLE NS_IMETHOD Select(void) = 0;
118
119  /* void click (); */
120  NS_SCRIPTABLE NS_IMETHOD Click(void) = 0;
121
122};
123
124  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLInputElement, NS_IDOMHTMLINPUTELEMENT_IID)
125
126/* Use this macro when declaring classes that implement this interface. */
127#define NS_DECL_NSIDOMHTMLINPUTELEMENT \
128  NS_SCRIPTABLE NS_IMETHOD GetDefaultValue(nsAString & aDefaultValue); \
129  NS_SCRIPTABLE NS_IMETHOD SetDefaultValue(const nsAString & aDefaultValue); \
130  NS_SCRIPTABLE NS_IMETHOD GetDefaultChecked(PRBool *aDefaultChecked); \
131  NS_SCRIPTABLE NS_IMETHOD SetDefaultChecked(PRBool aDefaultChecked); \
132  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \
133  NS_SCRIPTABLE NS_IMETHOD GetAccept(nsAString & aAccept); \
134  NS_SCRIPTABLE NS_IMETHOD SetAccept(const nsAString & aAccept); \
135  NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey); \
136  NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey); \
137  NS_SCRIPTABLE NS_IMETHOD GetAlign(nsAString & aAlign); \
138  NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign); \
139  NS_SCRIPTABLE NS_IMETHOD GetAlt(nsAString & aAlt); \
140  NS_SCRIPTABLE NS_IMETHOD SetAlt(const nsAString & aAlt); \
141  NS_SCRIPTABLE NS_IMETHOD GetChecked(PRBool *aChecked); \
142  NS_SCRIPTABLE NS_IMETHOD SetChecked(PRBool aChecked); \
143  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled); \
144  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled); \
145  NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength); \
146  NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength); \
147  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
148  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName); \
149  NS_SCRIPTABLE NS_IMETHOD GetReadOnly(PRBool *aReadOnly); \
150  NS_SCRIPTABLE NS_IMETHOD SetReadOnly(PRBool aReadOnly); \
151  NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint32 *aSize); \
152  NS_SCRIPTABLE NS_IMETHOD SetSize(PRUint32 aSize); \
153  NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc); \
154  NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc); \
155  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex); \
156  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex); \
157  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType); \
158  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType); \
159  NS_SCRIPTABLE NS_IMETHOD GetUseMap(nsAString & aUseMap); \
160  NS_SCRIPTABLE NS_IMETHOD SetUseMap(const nsAString & aUseMap); \
161  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue); \
162  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue); \
163  NS_SCRIPTABLE NS_IMETHOD Blur(void); \
164  NS_SCRIPTABLE NS_IMETHOD Focus(void); \
165  NS_SCRIPTABLE NS_IMETHOD Select(void); \
166  NS_SCRIPTABLE NS_IMETHOD Click(void); 
167
168/* Use this macro to declare functions that forward the behavior of this interface to another object. */
169#define NS_FORWARD_NSIDOMHTMLINPUTELEMENT(_to) \
170  NS_SCRIPTABLE NS_IMETHOD GetDefaultValue(nsAString & aDefaultValue) { return _to GetDefaultValue(aDefaultValue); } \
171  NS_SCRIPTABLE NS_IMETHOD SetDefaultValue(const nsAString & aDefaultValue) { return _to SetDefaultValue(aDefaultValue); } \
172  NS_SCRIPTABLE NS_IMETHOD GetDefaultChecked(PRBool *aDefaultChecked) { return _to GetDefaultChecked(aDefaultChecked); } \
173  NS_SCRIPTABLE NS_IMETHOD SetDefaultChecked(PRBool aDefaultChecked) { return _to SetDefaultChecked(aDefaultChecked); } \
174  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm); } \
175  NS_SCRIPTABLE NS_IMETHOD GetAccept(nsAString & aAccept) { return _to GetAccept(aAccept); } \
176  NS_SCRIPTABLE NS_IMETHOD SetAccept(const nsAString & aAccept) { return _to SetAccept(aAccept); } \
177  NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return _to GetAccessKey(aAccessKey); } \
178  NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return _to SetAccessKey(aAccessKey); } \
179  NS_SCRIPTABLE NS_IMETHOD GetAlign(nsAString & aAlign) { return _to GetAlign(aAlign); } \
180  NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign) { return _to SetAlign(aAlign); } \
181  NS_SCRIPTABLE NS_IMETHOD GetAlt(nsAString & aAlt) { return _to GetAlt(aAlt); } \
182  NS_SCRIPTABLE NS_IMETHOD SetAlt(const nsAString & aAlt) { return _to SetAlt(aAlt); } \
183  NS_SCRIPTABLE NS_IMETHOD GetChecked(PRBool *aChecked) { return _to GetChecked(aChecked); } \
184  NS_SCRIPTABLE NS_IMETHOD SetChecked(PRBool aChecked) { return _to SetChecked(aChecked); } \
185  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
186  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
187  NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return _to GetMaxLength(aMaxLength); } \
188  NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) { return _to SetMaxLength(aMaxLength); } \
189  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
190  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \
191  NS_SCRIPTABLE NS_IMETHOD GetReadOnly(PRBool *aReadOnly) { return _to GetReadOnly(aReadOnly); } \
192  NS_SCRIPTABLE NS_IMETHOD SetReadOnly(PRBool aReadOnly) { return _to SetReadOnly(aReadOnly); } \
193  NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint32 *aSize) { return _to GetSize(aSize); } \
194  NS_SCRIPTABLE NS_IMETHOD SetSize(PRUint32 aSize) { return _to SetSize(aSize); } \
195  NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc) { return _to GetSrc(aSrc); } \
196  NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc) { return _to SetSrc(aSrc); } \
197  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return _to GetTabIndex(aTabIndex); } \
198  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return _to SetTabIndex(aTabIndex); } \
199  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
200  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) { return _to SetType(aType); } \
201  NS_SCRIPTABLE NS_IMETHOD GetUseMap(nsAString & aUseMap) { return _to GetUseMap(aUseMap); } \
202  NS_SCRIPTABLE NS_IMETHOD SetUseMap(const nsAString & aUseMap) { return _to SetUseMap(aUseMap); } \
203  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
204  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); } \
205  NS_SCRIPTABLE NS_IMETHOD Blur(void) { return _to Blur(); } \
206  NS_SCRIPTABLE NS_IMETHOD Focus(void) { return _to Focus(); } \
207  NS_SCRIPTABLE NS_IMETHOD Select(void) { return _to Select(); } \
208  NS_SCRIPTABLE NS_IMETHOD Click(void) { return _to Click(); } 
209
210/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
211#define NS_FORWARD_SAFE_NSIDOMHTMLINPUTELEMENT(_to) \
212  NS_SCRIPTABLE NS_IMETHOD GetDefaultValue(nsAString & aDefaultValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultValue(aDefaultValue); } \
213  NS_SCRIPTABLE NS_IMETHOD SetDefaultValue(const nsAString & aDefaultValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultValue(aDefaultValue); } \
214  NS_SCRIPTABLE NS_IMETHOD GetDefaultChecked(PRBool *aDefaultChecked) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultChecked(aDefaultChecked); } \
215  NS_SCRIPTABLE NS_IMETHOD SetDefaultChecked(PRBool aDefaultChecked) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultChecked(aDefaultChecked); } \
216  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
217  NS_SCRIPTABLE NS_IMETHOD GetAccept(nsAString & aAccept) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccept(aAccept); } \
218  NS_SCRIPTABLE NS_IMETHOD SetAccept(const nsAString & aAccept) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAccept(aAccept); } \
219  NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessKey(aAccessKey); } \
220  NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAccessKey(aAccessKey); } \
221  NS_SCRIPTABLE NS_IMETHOD GetAlign(nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlign(aAlign); } \
222  NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlign(aAlign); } \
223  NS_SCRIPTABLE NS_IMETHOD GetAlt(nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlt(aAlt); } \
224  NS_SCRIPTABLE NS_IMETHOD SetAlt(const nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlt(aAlt); } \
225  NS_SCRIPTABLE NS_IMETHOD GetChecked(PRBool *aChecked) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChecked(aChecked); } \
226  NS_SCRIPTABLE NS_IMETHOD SetChecked(PRBool aChecked) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChecked(aChecked); } \
227  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
228  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
229  NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLength(aMaxLength); } \
230  NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxLength(aMaxLength); } \
231  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
232  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
233  NS_SCRIPTABLE NS_IMETHOD GetReadOnly(PRBool *aReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadOnly(aReadOnly); } \
234  NS_SCRIPTABLE NS_IMETHOD SetReadOnly(PRBool aReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReadOnly(aReadOnly); } \
235  NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint32 *aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
236  NS_SCRIPTABLE NS_IMETHOD SetSize(PRUint32 aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); } \
237  NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSrc(aSrc); } \
238  NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSrc(aSrc); } \
239  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabIndex(aTabIndex); } \
240  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTabIndex(aTabIndex); } \
241  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
242  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
243  NS_SCRIPTABLE NS_IMETHOD GetUseMap(nsAString & aUseMap) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUseMap(aUseMap); } \
244  NS_SCRIPTABLE NS_IMETHOD SetUseMap(const nsAString & aUseMap) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUseMap(aUseMap); } \
245  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
246  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
247  NS_SCRIPTABLE NS_IMETHOD Blur(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Blur(); } \
248  NS_SCRIPTABLE NS_IMETHOD Focus(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Focus(); } \
249  NS_SCRIPTABLE NS_IMETHOD Select(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Select(); } \
250  NS_SCRIPTABLE NS_IMETHOD Click(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Click(); } 
251
252#if 0
253/* Use the code below as a template for the implementation class for this interface. */
254
255/* Header file */
256class nsDOMHTMLInputElement : public nsIDOMHTMLInputElement
257{
258public:
259  NS_DECL_ISUPPORTS
260  NS_DECL_NSIDOMHTMLINPUTELEMENT
261
262  nsDOMHTMLInputElement();
263
264private:
265  ~nsDOMHTMLInputElement();
266
267protected:
268  /* additional members */
269};
270
271/* Implementation file */
272NS_IMPL_ISUPPORTS1(nsDOMHTMLInputElement, nsIDOMHTMLInputElement)
273
274nsDOMHTMLInputElement::nsDOMHTMLInputElement()
275{
276  /* member initializers and constructor code */
277}
278
279nsDOMHTMLInputElement::~nsDOMHTMLInputElement()
280{
281  /* destructor code */
282}
283
284/* attribute DOMString defaultValue; */
285NS_IMETHODIMP nsDOMHTMLInputElement::GetDefaultValue(nsAString & aDefaultValue)
286{
287    return NS_ERROR_NOT_IMPLEMENTED;
288}
289NS_IMETHODIMP nsDOMHTMLInputElement::SetDefaultValue(const nsAString & aDefaultValue)
290{
291    return NS_ERROR_NOT_IMPLEMENTED;
292}
293
294/* attribute boolean defaultChecked; */
295NS_IMETHODIMP nsDOMHTMLInputElement::GetDefaultChecked(PRBool *aDefaultChecked)
296{
297    return NS_ERROR_NOT_IMPLEMENTED;
298}
299NS_IMETHODIMP nsDOMHTMLInputElement::SetDefaultChecked(PRBool aDefaultChecked)
300{
301    return NS_ERROR_NOT_IMPLEMENTED;
302}
303
304/* readonly attribute nsIDOMHTMLFormElement form; */
305NS_IMETHODIMP nsDOMHTMLInputElement::GetForm(nsIDOMHTMLFormElement * *aForm)
306{
307    return NS_ERROR_NOT_IMPLEMENTED;
308}
309
310/* attribute DOMString accept; */
311NS_IMETHODIMP nsDOMHTMLInputElement::GetAccept(nsAString & aAccept)
312{
313    return NS_ERROR_NOT_IMPLEMENTED;
314}
315NS_IMETHODIMP nsDOMHTMLInputElement::SetAccept(const nsAString & aAccept)
316{
317    return NS_ERROR_NOT_IMPLEMENTED;
318}
319
320/* attribute DOMString accessKey; */
321NS_IMETHODIMP nsDOMHTMLInputElement::GetAccessKey(nsAString & aAccessKey)
322{
323    return NS_ERROR_NOT_IMPLEMENTED;
324}
325NS_IMETHODIMP nsDOMHTMLInputElement::SetAccessKey(const nsAString & aAccessKey)
326{
327    return NS_ERROR_NOT_IMPLEMENTED;
328}
329
330/* attribute DOMString align; */
331NS_IMETHODIMP nsDOMHTMLInputElement::GetAlign(nsAString & aAlign)
332{
333    return NS_ERROR_NOT_IMPLEMENTED;
334}
335NS_IMETHODIMP nsDOMHTMLInputElement::SetAlign(const nsAString & aAlign)
336{
337    return NS_ERROR_NOT_IMPLEMENTED;
338}
339
340/* attribute DOMString alt; */
341NS_IMETHODIMP nsDOMHTMLInputElement::GetAlt(nsAString & aAlt)
342{
343    return NS_ERROR_NOT_IMPLEMENTED;
344}
345NS_IMETHODIMP nsDOMHTMLInputElement::SetAlt(const nsAString & aAlt)
346{
347    return NS_ERROR_NOT_IMPLEMENTED;
348}
349
350/* attribute boolean checked; */
351NS_IMETHODIMP nsDOMHTMLInputElement::GetChecked(PRBool *aChecked)
352{
353    return NS_ERROR_NOT_IMPLEMENTED;
354}
355NS_IMETHODIMP nsDOMHTMLInputElement::SetChecked(PRBool aChecked)
356{
357    return NS_ERROR_NOT_IMPLEMENTED;
358}
359
360/* attribute boolean disabled; */
361NS_IMETHODIMP nsDOMHTMLInputElement::GetDisabled(PRBool *aDisabled)
362{
363    return NS_ERROR_NOT_IMPLEMENTED;
364}
365NS_IMETHODIMP nsDOMHTMLInputElement::SetDisabled(PRBool aDisabled)
366{
367    return NS_ERROR_NOT_IMPLEMENTED;
368}
369
370/* attribute long maxLength; */
371NS_IMETHODIMP nsDOMHTMLInputElement::GetMaxLength(PRInt32 *aMaxLength)
372{
373    return NS_ERROR_NOT_IMPLEMENTED;
374}
375NS_IMETHODIMP nsDOMHTMLInputElement::SetMaxLength(PRInt32 aMaxLength)
376{
377    return NS_ERROR_NOT_IMPLEMENTED;
378}
379
380/* attribute DOMString name; */
381NS_IMETHODIMP nsDOMHTMLInputElement::GetName(nsAString & aName)
382{
383    return NS_ERROR_NOT_IMPLEMENTED;
384}
385NS_IMETHODIMP nsDOMHTMLInputElement::SetName(const nsAString & aName)
386{
387    return NS_ERROR_NOT_IMPLEMENTED;
388}
389
390/* attribute boolean readOnly; */
391NS_IMETHODIMP nsDOMHTMLInputElement::GetReadOnly(PRBool *aReadOnly)
392{
393    return NS_ERROR_NOT_IMPLEMENTED;
394}
395NS_IMETHODIMP nsDOMHTMLInputElement::SetReadOnly(PRBool aReadOnly)
396{
397    return NS_ERROR_NOT_IMPLEMENTED;
398}
399
400/* attribute unsigned long size; */
401NS_IMETHODIMP nsDOMHTMLInputElement::GetSize(PRUint32 *aSize)
402{
403    return NS_ERROR_NOT_IMPLEMENTED;
404}
405NS_IMETHODIMP nsDOMHTMLInputElement::SetSize(PRUint32 aSize)
406{
407    return NS_ERROR_NOT_IMPLEMENTED;
408}
409
410/* attribute DOMString src; */
411NS_IMETHODIMP nsDOMHTMLInputElement::GetSrc(nsAString & aSrc)
412{
413    return NS_ERROR_NOT_IMPLEMENTED;
414}
415NS_IMETHODIMP nsDOMHTMLInputElement::SetSrc(const nsAString & aSrc)
416{
417    return NS_ERROR_NOT_IMPLEMENTED;
418}
419
420/* attribute long tabIndex; */
421NS_IMETHODIMP nsDOMHTMLInputElement::GetTabIndex(PRInt32 *aTabIndex)
422{
423    return NS_ERROR_NOT_IMPLEMENTED;
424}
425NS_IMETHODIMP nsDOMHTMLInputElement::SetTabIndex(PRInt32 aTabIndex)
426{
427    return NS_ERROR_NOT_IMPLEMENTED;
428}
429
430/* attribute DOMString type; */
431NS_IMETHODIMP nsDOMHTMLInputElement::GetType(nsAString & aType)
432{
433    return NS_ERROR_NOT_IMPLEMENTED;
434}
435NS_IMETHODIMP nsDOMHTMLInputElement::SetType(const nsAString & aType)
436{
437    return NS_ERROR_NOT_IMPLEMENTED;
438}
439
440/* attribute DOMString useMap; */
441NS_IMETHODIMP nsDOMHTMLInputElement::GetUseMap(nsAString & aUseMap)
442{
443    return NS_ERROR_NOT_IMPLEMENTED;
444}
445NS_IMETHODIMP nsDOMHTMLInputElement::SetUseMap(const nsAString & aUseMap)
446{
447    return NS_ERROR_NOT_IMPLEMENTED;
448}
449
450/* attribute DOMString value; */
451NS_IMETHODIMP nsDOMHTMLInputElement::GetValue(nsAString & aValue)
452{
453    return NS_ERROR_NOT_IMPLEMENTED;
454}
455NS_IMETHODIMP nsDOMHTMLInputElement::SetValue(const nsAString & aValue)
456{
457    return NS_ERROR_NOT_IMPLEMENTED;
458}
459
460/* void blur (); */
461NS_IMETHODIMP nsDOMHTMLInputElement::Blur()
462{
463    return NS_ERROR_NOT_IMPLEMENTED;
464}
465
466/* void focus (); */
467NS_IMETHODIMP nsDOMHTMLInputElement::Focus()
468{
469    return NS_ERROR_NOT_IMPLEMENTED;
470}
471
472/* void select (); */
473NS_IMETHODIMP nsDOMHTMLInputElement::Select()
474{
475    return NS_ERROR_NOT_IMPLEMENTED;
476}
477
478/* void click (); */
479NS_IMETHODIMP nsDOMHTMLInputElement::Click()
480{
481    return NS_ERROR_NOT_IMPLEMENTED;
482}
483
484/* End of implementation class template. */
485#endif
486
487
488#endif /* __gen_nsIDOMHTMLInputElement_h__ */