1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/html/nsIDOMHTMLOptionsCollection.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMHTMLOptionsCollection_h__
6 : #define __gen_nsIDOMHTMLOptionsCollection_h__
7 :
8 :
9 : #ifndef __gen_nsIDOMHTMLElement_h__
10 : #include "nsIDOMHTMLElement.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIDOMHTMLCollection_h__
14 : #include "nsIDOMHTMLCollection.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 : class nsIDOMHTMLOptionElement; /* forward declaration */
22 :
23 : class nsIDOMHTMLSelectElement; /* forward declaration */
24 :
25 :
26 : /* starting interface: nsIDOMHTMLOptionsCollection */
27 : #define NS_IDOMHTMLOPTIONSCOLLECTION_IID_STR "429b041b-06df-486c-9a3a-a1d901cc76a2"
28 :
29 : #define NS_IDOMHTMLOPTIONSCOLLECTION_IID \
30 : {0x429b041b, 0x06df, 0x486c, \
31 : { 0x9a, 0x3a, 0xa1, 0xd9, 0x01, 0xcc, 0x76, 0xa2 }}
32 :
33 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLOptionsCollection : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLOPTIONSCOLLECTION_IID)
37 :
38 : /* attribute unsigned long length; */
39 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
40 : NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength) = 0;
41 :
42 : /* nsIDOMNode item (in unsigned long index); */
43 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode * *_retval NS_OUTPARAM) = 0;
44 :
45 : /* [forward(getNamedItem),getter] nsIDOMNode namedItem (in DOMString name); */
46 : NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode * *_retval NS_OUTPARAM) = 0;
47 :
48 : /* [noscript,nostdcall,notxpcom] nsISupports getNamedItem (in DOMString name, out nsWrapperCachePtr cache); */
49 : virtual nsISupports * GetNamedItem(const nsAString & name, nsWrapperCache **cache NS_OUTPARAM) = 0;
50 :
51 : /* attribute long selectedIndex; */
52 : NS_SCRIPTABLE NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex) = 0;
53 : NS_SCRIPTABLE NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) = 0;
54 :
55 : /* [noscript,setter] void setOption (in unsigned long index, in nsIDOMHTMLOptionElement option); */
56 : NS_IMETHOD SetOption(PRUint32 index, nsIDOMHTMLOptionElement *option) = 0;
57 :
58 : /* [noscript] readonly attribute nsIDOMHTMLSelectElement select; */
59 : NS_IMETHOD GetSelect(nsIDOMHTMLSelectElement * *aSelect) = 0;
60 :
61 : /* void add (in nsIDOMHTMLOptionElement option, [optional] in nsIVariant before); */
62 : NS_SCRIPTABLE NS_IMETHOD Add(nsIDOMHTMLOptionElement *option, nsIVariant *before) = 0;
63 :
64 : /* void remove (in long index); */
65 : NS_SCRIPTABLE NS_IMETHOD Remove(PRInt32 index) = 0;
66 :
67 : };
68 :
69 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLOptionsCollection, NS_IDOMHTMLOPTIONSCOLLECTION_IID)
70 :
71 : /* Use this macro when declaring classes that implement this interface. */
72 : #define NS_DECL_NSIDOMHTMLOPTIONSCOLLECTION \
73 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
74 : NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength); \
75 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode * *_retval NS_OUTPARAM); \
76 : NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode * *_retval NS_OUTPARAM); \
77 : virtual nsISupports * GetNamedItem(const nsAString & name, nsWrapperCache **cache NS_OUTPARAM); \
78 : NS_SCRIPTABLE NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex); \
79 : NS_SCRIPTABLE NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex); \
80 : NS_IMETHOD SetOption(PRUint32 index, nsIDOMHTMLOptionElement *option); \
81 : NS_IMETHOD GetSelect(nsIDOMHTMLSelectElement * *aSelect); \
82 : NS_SCRIPTABLE NS_IMETHOD Add(nsIDOMHTMLOptionElement *option, nsIVariant *before); \
83 : NS_SCRIPTABLE NS_IMETHOD Remove(PRInt32 index);
84 :
85 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
86 : #define NS_FORWARD_NSIDOMHTMLOPTIONSCOLLECTION(_to) \
87 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
88 : NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength) { return _to SetLength(aLength); } \
89 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode * *_retval NS_OUTPARAM) { return _to Item(index, _retval); } \
90 : NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode * *_retval NS_OUTPARAM) { return _to NamedItem(name, _retval); } \
91 : virtual nsISupports * GetNamedItem(const nsAString & name, nsWrapperCache **cache NS_OUTPARAM) { return _to GetNamedItem(name, cache); } \
92 : NS_SCRIPTABLE NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex) { return _to GetSelectedIndex(aSelectedIndex); } \
93 : NS_SCRIPTABLE NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) { return _to SetSelectedIndex(aSelectedIndex); } \
94 : NS_IMETHOD SetOption(PRUint32 index, nsIDOMHTMLOptionElement *option) { return _to SetOption(index, option); } \
95 : NS_IMETHOD GetSelect(nsIDOMHTMLSelectElement * *aSelect) { return _to GetSelect(aSelect); } \
96 : NS_SCRIPTABLE NS_IMETHOD Add(nsIDOMHTMLOptionElement *option, nsIVariant *before) { return _to Add(option, before); } \
97 : NS_SCRIPTABLE NS_IMETHOD Remove(PRInt32 index) { return _to Remove(index); }
98 :
99 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
100 : #define NS_FORWARD_SAFE_NSIDOMHTMLOPTIONSCOLLECTION(_to) \
101 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
102 : NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLength(aLength); } \
103 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
104 : NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NamedItem(name, _retval); } \
105 : virtual nsISupports * GetNamedItem(const nsAString & name, nsWrapperCache **cache NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNamedItem(name, cache); } \
106 : NS_SCRIPTABLE NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedIndex(aSelectedIndex); } \
107 : NS_SCRIPTABLE NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectedIndex(aSelectedIndex); } \
108 : NS_IMETHOD SetOption(PRUint32 index, nsIDOMHTMLOptionElement *option) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOption(index, option); } \
109 : NS_IMETHOD GetSelect(nsIDOMHTMLSelectElement * *aSelect) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelect(aSelect); } \
110 : NS_SCRIPTABLE NS_IMETHOD Add(nsIDOMHTMLOptionElement *option, nsIVariant *before) { return !_to ? NS_ERROR_NULL_POINTER : _to->Add(option, before); } \
111 : NS_SCRIPTABLE NS_IMETHOD Remove(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(index); }
112 :
113 : #if 0
114 : /* Use the code below as a template for the implementation class for this interface. */
115 :
116 : /* Header file */
117 : class nsDOMHTMLOptionsCollection : public nsIDOMHTMLOptionsCollection
118 : {
119 : public:
120 : NS_DECL_ISUPPORTS
121 : NS_DECL_NSIDOMHTMLOPTIONSCOLLECTION
122 :
123 : nsDOMHTMLOptionsCollection();
124 :
125 : private:
126 : ~nsDOMHTMLOptionsCollection();
127 :
128 : protected:
129 : /* additional members */
130 : };
131 :
132 : /* Implementation file */
133 : NS_IMPL_ISUPPORTS1(nsDOMHTMLOptionsCollection, nsIDOMHTMLOptionsCollection)
134 :
135 : nsDOMHTMLOptionsCollection::nsDOMHTMLOptionsCollection()
136 : {
137 : /* member initializers and constructor code */
138 : }
139 :
140 : nsDOMHTMLOptionsCollection::~nsDOMHTMLOptionsCollection()
141 : {
142 : /* destructor code */
143 : }
144 :
145 : /* attribute unsigned long length; */
146 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::GetLength(PRUint32 *aLength)
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::SetLength(PRUint32 aLength)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 :
155 : /* nsIDOMNode item (in unsigned long index); */
156 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::Item(PRUint32 index, nsIDOMNode * *_retval NS_OUTPARAM)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* [forward(getNamedItem),getter] nsIDOMNode namedItem (in DOMString name); */
162 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::NamedItem(const nsAString & name, nsIDOMNode * *_retval NS_OUTPARAM)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 :
167 : /* [noscript,nostdcall,notxpcom] nsISupports getNamedItem (in DOMString name, out nsWrapperCachePtr cache); */
168 : nsISupports * nsDOMHTMLOptionsCollection::GetNamedItem(const nsAString & name, nsWrapperCache **cache NS_OUTPARAM)
169 : {
170 : return NS_ERROR_NOT_IMPLEMENTED;
171 : }
172 :
173 : /* attribute long selectedIndex; */
174 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::GetSelectedIndex(PRInt32 *aSelectedIndex)
175 : {
176 : return NS_ERROR_NOT_IMPLEMENTED;
177 : }
178 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::SetSelectedIndex(PRInt32 aSelectedIndex)
179 : {
180 : return NS_ERROR_NOT_IMPLEMENTED;
181 : }
182 :
183 : /* [noscript,setter] void setOption (in unsigned long index, in nsIDOMHTMLOptionElement option); */
184 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::SetOption(PRUint32 index, nsIDOMHTMLOptionElement *option)
185 : {
186 : return NS_ERROR_NOT_IMPLEMENTED;
187 : }
188 :
189 : /* [noscript] readonly attribute nsIDOMHTMLSelectElement select; */
190 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::GetSelect(nsIDOMHTMLSelectElement * *aSelect)
191 : {
192 : return NS_ERROR_NOT_IMPLEMENTED;
193 : }
194 :
195 : /* void add (in nsIDOMHTMLOptionElement option, [optional] in nsIVariant before); */
196 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::Add(nsIDOMHTMLOptionElement *option, nsIVariant *before)
197 : {
198 : return NS_ERROR_NOT_IMPLEMENTED;
199 : }
200 :
201 : /* void remove (in long index); */
202 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::Remove(PRInt32 index)
203 : {
204 : return NS_ERROR_NOT_IMPLEMENTED;
205 : }
206 :
207 : /* End of implementation class template. */
208 : #endif
209 :
210 :
211 : #endif /* __gen_nsIDOMHTMLOptionsCollection_h__ */
|