PageRenderTime 74ms CodeModel.GetById 40ms app.highlight 10ms RepoModel.GetById 20ms app.codeStats 1ms

/gecko_api/include/nsIDOMHTMLSelectElement.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 336 lines | 227 code | 55 blank | 54 comment | 0 complexity | 64bbc6a6b4a2b6727bd5f43d75f06f7a 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/nsIDOMHTMLSelectElement.idl
  3 */
  4
  5#ifndef __gen_nsIDOMHTMLSelectElement_h__
  6#define __gen_nsIDOMHTMLSelectElement_h__
  7
  8
  9#ifndef __gen_nsIDOMHTMLElement_h__
 10#include "nsIDOMHTMLElement.h"
 11#endif
 12
 13#ifndef __gen_nsIDOMHTMLOptionsCollection_h__
 14#include "nsIDOMHTMLOptionsCollection.h"
 15#endif
 16
 17/* For IDL files that don't want to include root IDL files. */
 18#ifndef NS_NO_VTABLE
 19#define NS_NO_VTABLE
 20#endif
 21
 22/* starting interface:    nsIDOMHTMLSelectElement */
 23#define NS_IDOMHTMLSELECTELEMENT_IID_STR "a6cf9090-15b3-11d2-932e-00805f8add32"
 24
 25#define NS_IDOMHTMLSELECTELEMENT_IID \
 26  {0xa6cf9090, 0x15b3, 0x11d2, \
 27    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 28
 29/**
 30 * The nsIDOMHTMLSelectElement interface is the interface to a [X]HTML
 31 * select element.
 32 *
 33 * For more information on this interface please see
 34 * http://www.w3.org/TR/DOM-Level-2-HTML/
 35 *
 36 * @status FROZEN
 37 */
 38class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLSelectElement : public nsIDOMHTMLElement {
 39 public: 
 40
 41  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLSELECTELEMENT_IID)
 42
 43  /* readonly attribute DOMString type; */
 44  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) = 0;
 45
 46  /* attribute long selectedIndex; */
 47  NS_SCRIPTABLE NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex) = 0;
 48  NS_SCRIPTABLE NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) = 0;
 49
 50  /* attribute DOMString value; */
 51  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) = 0;
 52  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) = 0;
 53
 54  /* attribute unsigned long length; */
 55  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
 56  NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength) = 0;
 57
 58  /* readonly attribute nsIDOMHTMLFormElement form; */
 59  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
 60
 61  /* readonly attribute nsIDOMHTMLOptionsCollection options; */
 62  NS_SCRIPTABLE NS_IMETHOD GetOptions(nsIDOMHTMLOptionsCollection * *aOptions) = 0;
 63
 64  /* attribute boolean disabled; */
 65  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
 66  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
 67
 68  /* attribute boolean multiple; */
 69  NS_SCRIPTABLE NS_IMETHOD GetMultiple(PRBool *aMultiple) = 0;
 70  NS_SCRIPTABLE NS_IMETHOD SetMultiple(PRBool aMultiple) = 0;
 71
 72  /* attribute DOMString name; */
 73  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
 74  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) = 0;
 75
 76  /* attribute long size; */
 77  NS_SCRIPTABLE NS_IMETHOD GetSize(PRInt32 *aSize) = 0;
 78  NS_SCRIPTABLE NS_IMETHOD SetSize(PRInt32 aSize) = 0;
 79
 80  /* attribute long tabIndex; */
 81  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) = 0;
 82  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) = 0;
 83
 84  /* void add (in nsIDOMHTMLElement element, in nsIDOMHTMLElement before)  raises (DOMException); */
 85  NS_SCRIPTABLE NS_IMETHOD Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before) = 0;
 86
 87  /* void remove (in long index); */
 88  NS_SCRIPTABLE NS_IMETHOD Remove(PRInt32 index) = 0;
 89
 90  /* void blur (); */
 91  NS_SCRIPTABLE NS_IMETHOD Blur(void) = 0;
 92
 93  /* void focus (); */
 94  NS_SCRIPTABLE NS_IMETHOD Focus(void) = 0;
 95
 96};
 97
 98  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLSelectElement, NS_IDOMHTMLSELECTELEMENT_IID)
 99
100/* Use this macro when declaring classes that implement this interface. */
101#define NS_DECL_NSIDOMHTMLSELECTELEMENT \
102  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType); \
103  NS_SCRIPTABLE NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex); \
104  NS_SCRIPTABLE NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex); \
105  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue); \
106  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue); \
107  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
108  NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength); \
109  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \
110  NS_SCRIPTABLE NS_IMETHOD GetOptions(nsIDOMHTMLOptionsCollection * *aOptions); \
111  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled); \
112  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled); \
113  NS_SCRIPTABLE NS_IMETHOD GetMultiple(PRBool *aMultiple); \
114  NS_SCRIPTABLE NS_IMETHOD SetMultiple(PRBool aMultiple); \
115  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
116  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName); \
117  NS_SCRIPTABLE NS_IMETHOD GetSize(PRInt32 *aSize); \
118  NS_SCRIPTABLE NS_IMETHOD SetSize(PRInt32 aSize); \
119  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex); \
120  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex); \
121  NS_SCRIPTABLE NS_IMETHOD Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before); \
122  NS_SCRIPTABLE NS_IMETHOD Remove(PRInt32 index); \
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_NSIDOMHTMLSELECTELEMENT(_to) \
128  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
129  NS_SCRIPTABLE NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex) { return _to GetSelectedIndex(aSelectedIndex); } \
130  NS_SCRIPTABLE NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) { return _to SetSelectedIndex(aSelectedIndex); } \
131  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
132  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); } \
133  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
134  NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength) { return _to SetLength(aLength); } \
135  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm); } \
136  NS_SCRIPTABLE NS_IMETHOD GetOptions(nsIDOMHTMLOptionsCollection * *aOptions) { return _to GetOptions(aOptions); } \
137  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
138  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
139  NS_SCRIPTABLE NS_IMETHOD GetMultiple(PRBool *aMultiple) { return _to GetMultiple(aMultiple); } \
140  NS_SCRIPTABLE NS_IMETHOD SetMultiple(PRBool aMultiple) { return _to SetMultiple(aMultiple); } \
141  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
142  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \
143  NS_SCRIPTABLE NS_IMETHOD GetSize(PRInt32 *aSize) { return _to GetSize(aSize); } \
144  NS_SCRIPTABLE NS_IMETHOD SetSize(PRInt32 aSize) { return _to SetSize(aSize); } \
145  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return _to GetTabIndex(aTabIndex); } \
146  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return _to SetTabIndex(aTabIndex); } \
147  NS_SCRIPTABLE NS_IMETHOD Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before) { return _to Add(element, before); } \
148  NS_SCRIPTABLE NS_IMETHOD Remove(PRInt32 index) { return _to Remove(index); } \
149  NS_SCRIPTABLE NS_IMETHOD Blur(void) { return _to Blur(); } \
150  NS_SCRIPTABLE NS_IMETHOD Focus(void) { return _to Focus(); } 
151
152/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
153#define NS_FORWARD_SAFE_NSIDOMHTMLSELECTELEMENT(_to) \
154  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
155  NS_SCRIPTABLE NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedIndex(aSelectedIndex); } \
156  NS_SCRIPTABLE NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectedIndex(aSelectedIndex); } \
157  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
158  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
159  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
160  NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLength(aLength); } \
161  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
162  NS_SCRIPTABLE NS_IMETHOD GetOptions(nsIDOMHTMLOptionsCollection * *aOptions) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOptions(aOptions); } \
163  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
164  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
165  NS_SCRIPTABLE NS_IMETHOD GetMultiple(PRBool *aMultiple) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMultiple(aMultiple); } \
166  NS_SCRIPTABLE NS_IMETHOD SetMultiple(PRBool aMultiple) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMultiple(aMultiple); } \
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 GetSize(PRInt32 *aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
170  NS_SCRIPTABLE NS_IMETHOD SetSize(PRInt32 aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); } \
171  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabIndex(aTabIndex); } \
172  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTabIndex(aTabIndex); } \
173  NS_SCRIPTABLE NS_IMETHOD Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before) { return !_to ? NS_ERROR_NULL_POINTER : _to->Add(element, before); } \
174  NS_SCRIPTABLE NS_IMETHOD Remove(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(index); } \
175  NS_SCRIPTABLE NS_IMETHOD Blur(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Blur(); } \
176  NS_SCRIPTABLE NS_IMETHOD Focus(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Focus(); } 
177
178#if 0
179/* Use the code below as a template for the implementation class for this interface. */
180
181/* Header file */
182class nsDOMHTMLSelectElement : public nsIDOMHTMLSelectElement
183{
184public:
185  NS_DECL_ISUPPORTS
186  NS_DECL_NSIDOMHTMLSELECTELEMENT
187
188  nsDOMHTMLSelectElement();
189
190private:
191  ~nsDOMHTMLSelectElement();
192
193protected:
194  /* additional members */
195};
196
197/* Implementation file */
198NS_IMPL_ISUPPORTS1(nsDOMHTMLSelectElement, nsIDOMHTMLSelectElement)
199
200nsDOMHTMLSelectElement::nsDOMHTMLSelectElement()
201{
202  /* member initializers and constructor code */
203}
204
205nsDOMHTMLSelectElement::~nsDOMHTMLSelectElement()
206{
207  /* destructor code */
208}
209
210/* readonly attribute DOMString type; */
211NS_IMETHODIMP nsDOMHTMLSelectElement::GetType(nsAString & aType)
212{
213    return NS_ERROR_NOT_IMPLEMENTED;
214}
215
216/* attribute long selectedIndex; */
217NS_IMETHODIMP nsDOMHTMLSelectElement::GetSelectedIndex(PRInt32 *aSelectedIndex)
218{
219    return NS_ERROR_NOT_IMPLEMENTED;
220}
221NS_IMETHODIMP nsDOMHTMLSelectElement::SetSelectedIndex(PRInt32 aSelectedIndex)
222{
223    return NS_ERROR_NOT_IMPLEMENTED;
224}
225
226/* attribute DOMString value; */
227NS_IMETHODIMP nsDOMHTMLSelectElement::GetValue(nsAString & aValue)
228{
229    return NS_ERROR_NOT_IMPLEMENTED;
230}
231NS_IMETHODIMP nsDOMHTMLSelectElement::SetValue(const nsAString & aValue)
232{
233    return NS_ERROR_NOT_IMPLEMENTED;
234}
235
236/* attribute unsigned long length; */
237NS_IMETHODIMP nsDOMHTMLSelectElement::GetLength(PRUint32 *aLength)
238{
239    return NS_ERROR_NOT_IMPLEMENTED;
240}
241NS_IMETHODIMP nsDOMHTMLSelectElement::SetLength(PRUint32 aLength)
242{
243    return NS_ERROR_NOT_IMPLEMENTED;
244}
245
246/* readonly attribute nsIDOMHTMLFormElement form; */
247NS_IMETHODIMP nsDOMHTMLSelectElement::GetForm(nsIDOMHTMLFormElement * *aForm)
248{
249    return NS_ERROR_NOT_IMPLEMENTED;
250}
251
252/* readonly attribute nsIDOMHTMLOptionsCollection options; */
253NS_IMETHODIMP nsDOMHTMLSelectElement::GetOptions(nsIDOMHTMLOptionsCollection * *aOptions)
254{
255    return NS_ERROR_NOT_IMPLEMENTED;
256}
257
258/* attribute boolean disabled; */
259NS_IMETHODIMP nsDOMHTMLSelectElement::GetDisabled(PRBool *aDisabled)
260{
261    return NS_ERROR_NOT_IMPLEMENTED;
262}
263NS_IMETHODIMP nsDOMHTMLSelectElement::SetDisabled(PRBool aDisabled)
264{
265    return NS_ERROR_NOT_IMPLEMENTED;
266}
267
268/* attribute boolean multiple; */
269NS_IMETHODIMP nsDOMHTMLSelectElement::GetMultiple(PRBool *aMultiple)
270{
271    return NS_ERROR_NOT_IMPLEMENTED;
272}
273NS_IMETHODIMP nsDOMHTMLSelectElement::SetMultiple(PRBool aMultiple)
274{
275    return NS_ERROR_NOT_IMPLEMENTED;
276}
277
278/* attribute DOMString name; */
279NS_IMETHODIMP nsDOMHTMLSelectElement::GetName(nsAString & aName)
280{
281    return NS_ERROR_NOT_IMPLEMENTED;
282}
283NS_IMETHODIMP nsDOMHTMLSelectElement::SetName(const nsAString & aName)
284{
285    return NS_ERROR_NOT_IMPLEMENTED;
286}
287
288/* attribute long size; */
289NS_IMETHODIMP nsDOMHTMLSelectElement::GetSize(PRInt32 *aSize)
290{
291    return NS_ERROR_NOT_IMPLEMENTED;
292}
293NS_IMETHODIMP nsDOMHTMLSelectElement::SetSize(PRInt32 aSize)
294{
295    return NS_ERROR_NOT_IMPLEMENTED;
296}
297
298/* attribute long tabIndex; */
299NS_IMETHODIMP nsDOMHTMLSelectElement::GetTabIndex(PRInt32 *aTabIndex)
300{
301    return NS_ERROR_NOT_IMPLEMENTED;
302}
303NS_IMETHODIMP nsDOMHTMLSelectElement::SetTabIndex(PRInt32 aTabIndex)
304{
305    return NS_ERROR_NOT_IMPLEMENTED;
306}
307
308/* void add (in nsIDOMHTMLElement element, in nsIDOMHTMLElement before)  raises (DOMException); */
309NS_IMETHODIMP nsDOMHTMLSelectElement::Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before)
310{
311    return NS_ERROR_NOT_IMPLEMENTED;
312}
313
314/* void remove (in long index); */
315NS_IMETHODIMP nsDOMHTMLSelectElement::Remove(PRInt32 index)
316{
317    return NS_ERROR_NOT_IMPLEMENTED;
318}
319
320/* void blur (); */
321NS_IMETHODIMP nsDOMHTMLSelectElement::Blur()
322{
323    return NS_ERROR_NOT_IMPLEMENTED;
324}
325
326/* void focus (); */
327NS_IMETHODIMP nsDOMHTMLSelectElement::Focus()
328{
329    return NS_ERROR_NOT_IMPLEMENTED;
330}
331
332/* End of implementation class template. */
333#endif
334
335
336#endif /* __gen_nsIDOMHTMLSelectElement_h__ */