PageRenderTime 124ms CodeModel.GetById 81ms app.highlight 10ms RepoModel.GetById 30ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLTextAreaElement.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 328 lines | 224 code | 52 blank | 52 comment | 0 complexity | ff3d96dfa51ebffe6ace5455a19736cc 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/nsIDOMHTMLTextAreaElement.idl
  3 */
  4
  5#ifndef __gen_nsIDOMHTMLTextAreaElement_h__
  6#define __gen_nsIDOMHTMLTextAreaElement_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:    nsIDOMHTMLTextAreaElement */
 19#define NS_IDOMHTMLTEXTAREAELEMENT_IID_STR "a6cf9094-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMHTMLTEXTAREAELEMENT_IID \
 22  {0xa6cf9094, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25/**
 26 * The nsIDOMHTMLTextAreaElement interface is the interface to a
 27 * [X]HTML textarea 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 nsIDOMHTMLTextAreaElement : public nsIDOMHTMLElement {
 35 public: 
 36
 37  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLTEXTAREAELEMENT_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  /* readonly attribute nsIDOMHTMLFormElement form; */
 44  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
 45
 46  /* attribute DOMString accessKey; */
 47  NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey) = 0;
 48  NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) = 0;
 49
 50  /* attribute long cols; */
 51  NS_SCRIPTABLE NS_IMETHOD GetCols(PRInt32 *aCols) = 0;
 52  NS_SCRIPTABLE NS_IMETHOD SetCols(PRInt32 aCols) = 0;
 53
 54  /* attribute boolean disabled; */
 55  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
 56  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
 57
 58  /* attribute DOMString name; */
 59  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
 60  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) = 0;
 61
 62  /* attribute boolean readOnly; */
 63  NS_SCRIPTABLE NS_IMETHOD GetReadOnly(PRBool *aReadOnly) = 0;
 64  NS_SCRIPTABLE NS_IMETHOD SetReadOnly(PRBool aReadOnly) = 0;
 65
 66  /* attribute long rows; */
 67  NS_SCRIPTABLE NS_IMETHOD GetRows(PRInt32 *aRows) = 0;
 68  NS_SCRIPTABLE NS_IMETHOD SetRows(PRInt32 aRows) = 0;
 69
 70  /* attribute long tabIndex; */
 71  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) = 0;
 72  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) = 0;
 73
 74  /* readonly attribute DOMString type; */
 75  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) = 0;
 76
 77  /* attribute DOMString value; */
 78  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) = 0;
 79  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) = 0;
 80
 81  /* void blur (); */
 82  NS_SCRIPTABLE NS_IMETHOD Blur(void) = 0;
 83
 84  /* void focus (); */
 85  NS_SCRIPTABLE NS_IMETHOD Focus(void) = 0;
 86
 87  /* void select (); */
 88  NS_SCRIPTABLE NS_IMETHOD Select(void) = 0;
 89
 90};
 91
 92  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLTextAreaElement, NS_IDOMHTMLTEXTAREAELEMENT_IID)
 93
 94/* Use this macro when declaring classes that implement this interface. */
 95#define NS_DECL_NSIDOMHTMLTEXTAREAELEMENT \
 96  NS_SCRIPTABLE NS_IMETHOD GetDefaultValue(nsAString & aDefaultValue); \
 97  NS_SCRIPTABLE NS_IMETHOD SetDefaultValue(const nsAString & aDefaultValue); \
 98  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \
 99  NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey); \
100  NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey); \
101  NS_SCRIPTABLE NS_IMETHOD GetCols(PRInt32 *aCols); \
102  NS_SCRIPTABLE NS_IMETHOD SetCols(PRInt32 aCols); \
103  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled); \
104  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled); \
105  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
106  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName); \
107  NS_SCRIPTABLE NS_IMETHOD GetReadOnly(PRBool *aReadOnly); \
108  NS_SCRIPTABLE NS_IMETHOD SetReadOnly(PRBool aReadOnly); \
109  NS_SCRIPTABLE NS_IMETHOD GetRows(PRInt32 *aRows); \
110  NS_SCRIPTABLE NS_IMETHOD SetRows(PRInt32 aRows); \
111  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex); \
112  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex); \
113  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType); \
114  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue); \
115  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue); \
116  NS_SCRIPTABLE NS_IMETHOD Blur(void); \
117  NS_SCRIPTABLE NS_IMETHOD Focus(void); \
118  NS_SCRIPTABLE NS_IMETHOD Select(void); 
119
120/* Use this macro to declare functions that forward the behavior of this interface to another object. */
121#define NS_FORWARD_NSIDOMHTMLTEXTAREAELEMENT(_to) \
122  NS_SCRIPTABLE NS_IMETHOD GetDefaultValue(nsAString & aDefaultValue) { return _to GetDefaultValue(aDefaultValue); } \
123  NS_SCRIPTABLE NS_IMETHOD SetDefaultValue(const nsAString & aDefaultValue) { return _to SetDefaultValue(aDefaultValue); } \
124  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm); } \
125  NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return _to GetAccessKey(aAccessKey); } \
126  NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return _to SetAccessKey(aAccessKey); } \
127  NS_SCRIPTABLE NS_IMETHOD GetCols(PRInt32 *aCols) { return _to GetCols(aCols); } \
128  NS_SCRIPTABLE NS_IMETHOD SetCols(PRInt32 aCols) { return _to SetCols(aCols); } \
129  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
130  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
131  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
132  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \
133  NS_SCRIPTABLE NS_IMETHOD GetReadOnly(PRBool *aReadOnly) { return _to GetReadOnly(aReadOnly); } \
134  NS_SCRIPTABLE NS_IMETHOD SetReadOnly(PRBool aReadOnly) { return _to SetReadOnly(aReadOnly); } \
135  NS_SCRIPTABLE NS_IMETHOD GetRows(PRInt32 *aRows) { return _to GetRows(aRows); } \
136  NS_SCRIPTABLE NS_IMETHOD SetRows(PRInt32 aRows) { return _to SetRows(aRows); } \
137  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return _to GetTabIndex(aTabIndex); } \
138  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return _to SetTabIndex(aTabIndex); } \
139  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
140  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
141  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); } \
142  NS_SCRIPTABLE NS_IMETHOD Blur(void) { return _to Blur(); } \
143  NS_SCRIPTABLE NS_IMETHOD Focus(void) { return _to Focus(); } \
144  NS_SCRIPTABLE NS_IMETHOD Select(void) { return _to Select(); } 
145
146/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
147#define NS_FORWARD_SAFE_NSIDOMHTMLTEXTAREAELEMENT(_to) \
148  NS_SCRIPTABLE NS_IMETHOD GetDefaultValue(nsAString & aDefaultValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultValue(aDefaultValue); } \
149  NS_SCRIPTABLE NS_IMETHOD SetDefaultValue(const nsAString & aDefaultValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultValue(aDefaultValue); } \
150  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
151  NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessKey(aAccessKey); } \
152  NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAccessKey(aAccessKey); } \
153  NS_SCRIPTABLE NS_IMETHOD GetCols(PRInt32 *aCols) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCols(aCols); } \
154  NS_SCRIPTABLE NS_IMETHOD SetCols(PRInt32 aCols) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCols(aCols); } \
155  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
156  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
157  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
158  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
159  NS_SCRIPTABLE NS_IMETHOD GetReadOnly(PRBool *aReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadOnly(aReadOnly); } \
160  NS_SCRIPTABLE NS_IMETHOD SetReadOnly(PRBool aReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReadOnly(aReadOnly); } \
161  NS_SCRIPTABLE NS_IMETHOD GetRows(PRInt32 *aRows) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRows(aRows); } \
162  NS_SCRIPTABLE NS_IMETHOD SetRows(PRInt32 aRows) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRows(aRows); } \
163  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabIndex(aTabIndex); } \
164  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTabIndex(aTabIndex); } \
165  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
166  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
167  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
168  NS_SCRIPTABLE NS_IMETHOD Blur(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Blur(); } \
169  NS_SCRIPTABLE NS_IMETHOD Focus(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Focus(); } \
170  NS_SCRIPTABLE NS_IMETHOD Select(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Select(); } 
171
172#if 0
173/* Use the code below as a template for the implementation class for this interface. */
174
175/* Header file */
176class nsDOMHTMLTextAreaElement : public nsIDOMHTMLTextAreaElement
177{
178public:
179  NS_DECL_ISUPPORTS
180  NS_DECL_NSIDOMHTMLTEXTAREAELEMENT
181
182  nsDOMHTMLTextAreaElement();
183
184private:
185  ~nsDOMHTMLTextAreaElement();
186
187protected:
188  /* additional members */
189};
190
191/* Implementation file */
192NS_IMPL_ISUPPORTS1(nsDOMHTMLTextAreaElement, nsIDOMHTMLTextAreaElement)
193
194nsDOMHTMLTextAreaElement::nsDOMHTMLTextAreaElement()
195{
196  /* member initializers and constructor code */
197}
198
199nsDOMHTMLTextAreaElement::~nsDOMHTMLTextAreaElement()
200{
201  /* destructor code */
202}
203
204/* attribute DOMString defaultValue; */
205NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetDefaultValue(nsAString & aDefaultValue)
206{
207    return NS_ERROR_NOT_IMPLEMENTED;
208}
209NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetDefaultValue(const nsAString & aDefaultValue)
210{
211    return NS_ERROR_NOT_IMPLEMENTED;
212}
213
214/* readonly attribute nsIDOMHTMLFormElement form; */
215NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetForm(nsIDOMHTMLFormElement * *aForm)
216{
217    return NS_ERROR_NOT_IMPLEMENTED;
218}
219
220/* attribute DOMString accessKey; */
221NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetAccessKey(nsAString & aAccessKey)
222{
223    return NS_ERROR_NOT_IMPLEMENTED;
224}
225NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetAccessKey(const nsAString & aAccessKey)
226{
227    return NS_ERROR_NOT_IMPLEMENTED;
228}
229
230/* attribute long cols; */
231NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetCols(PRInt32 *aCols)
232{
233    return NS_ERROR_NOT_IMPLEMENTED;
234}
235NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetCols(PRInt32 aCols)
236{
237    return NS_ERROR_NOT_IMPLEMENTED;
238}
239
240/* attribute boolean disabled; */
241NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetDisabled(PRBool *aDisabled)
242{
243    return NS_ERROR_NOT_IMPLEMENTED;
244}
245NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetDisabled(PRBool aDisabled)
246{
247    return NS_ERROR_NOT_IMPLEMENTED;
248}
249
250/* attribute DOMString name; */
251NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetName(nsAString & aName)
252{
253    return NS_ERROR_NOT_IMPLEMENTED;
254}
255NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetName(const nsAString & aName)
256{
257    return NS_ERROR_NOT_IMPLEMENTED;
258}
259
260/* attribute boolean readOnly; */
261NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetReadOnly(PRBool *aReadOnly)
262{
263    return NS_ERROR_NOT_IMPLEMENTED;
264}
265NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetReadOnly(PRBool aReadOnly)
266{
267    return NS_ERROR_NOT_IMPLEMENTED;
268}
269
270/* attribute long rows; */
271NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetRows(PRInt32 *aRows)
272{
273    return NS_ERROR_NOT_IMPLEMENTED;
274}
275NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetRows(PRInt32 aRows)
276{
277    return NS_ERROR_NOT_IMPLEMENTED;
278}
279
280/* attribute long tabIndex; */
281NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetTabIndex(PRInt32 *aTabIndex)
282{
283    return NS_ERROR_NOT_IMPLEMENTED;
284}
285NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetTabIndex(PRInt32 aTabIndex)
286{
287    return NS_ERROR_NOT_IMPLEMENTED;
288}
289
290/* readonly attribute DOMString type; */
291NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetType(nsAString & aType)
292{
293    return NS_ERROR_NOT_IMPLEMENTED;
294}
295
296/* attribute DOMString value; */
297NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetValue(nsAString & aValue)
298{
299    return NS_ERROR_NOT_IMPLEMENTED;
300}
301NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetValue(const nsAString & aValue)
302{
303    return NS_ERROR_NOT_IMPLEMENTED;
304}
305
306/* void blur (); */
307NS_IMETHODIMP nsDOMHTMLTextAreaElement::Blur()
308{
309    return NS_ERROR_NOT_IMPLEMENTED;
310}
311
312/* void focus (); */
313NS_IMETHODIMP nsDOMHTMLTextAreaElement::Focus()
314{
315    return NS_ERROR_NOT_IMPLEMENTED;
316}
317
318/* void select (); */
319NS_IMETHODIMP nsDOMHTMLTextAreaElement::Select()
320{
321    return NS_ERROR_NOT_IMPLEMENTED;
322}
323
324/* End of implementation class template. */
325#endif
326
327
328#endif /* __gen_nsIDOMHTMLTextAreaElement_h__ */