Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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 "4173cc53-30f6-4d12-a770-981ba53164e2"
28 :
29 : #define NS_IDOMHTMLOPTIONSCOLLECTION_IID \
30 : {0x4173cc53, 0x30f6, 0x4d12, \
31 : { 0xa7, 0x70, 0x98, 0x1b, 0xa5, 0x31, 0x64, 0xe2 }}
32 :
33 0 : class NS_NO_VTABLE nsIDOMHTMLOptionsCollection : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLOPTIONSCOLLECTION_IID)
37 :
38 : /* attribute unsigned long length; */
39 : NS_IMETHOD GetLength(uint32_t *aLength) = 0;
40 : NS_IMETHOD SetLength(uint32_t aLength) = 0;
41 :
42 : /* nsIDOMNode item (in unsigned long index); */
43 : NS_IMETHOD Item(uint32_t index, nsIDOMNode * *_retval) = 0;
44 :
45 : /* nsIDOMNode namedItem (in DOMString name); */
46 : NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode * *_retval) = 0;
47 :
48 : /* attribute long selectedIndex; */
49 : NS_IMETHOD GetSelectedIndex(int32_t *aSelectedIndex) = 0;
50 : NS_IMETHOD SetSelectedIndex(int32_t aSelectedIndex) = 0;
51 :
52 : /* [noscript] readonly attribute nsIDOMHTMLSelectElement select; */
53 : NS_IMETHOD GetSelect(nsIDOMHTMLSelectElement * *aSelect) = 0;
54 :
55 : /* void add (in nsIDOMHTMLOptionElement option, [optional] in nsIVariant before); */
56 : NS_IMETHOD Add(nsIDOMHTMLOptionElement *option, nsIVariant *before) = 0;
57 :
58 : /* void remove (in long index); */
59 : NS_IMETHOD Remove(int32_t index) = 0;
60 :
61 : };
62 :
63 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLOptionsCollection, NS_IDOMHTMLOPTIONSCOLLECTION_IID)
64 :
65 : /* Use this macro when declaring classes that implement this interface. */
66 : #define NS_DECL_NSIDOMHTMLOPTIONSCOLLECTION \
67 : NS_IMETHOD GetLength(uint32_t *aLength) override; \
68 : NS_IMETHOD SetLength(uint32_t aLength) override; \
69 : NS_IMETHOD Item(uint32_t index, nsIDOMNode * *_retval) override; \
70 : NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode * *_retval) override; \
71 : NS_IMETHOD GetSelectedIndex(int32_t *aSelectedIndex) override; \
72 : NS_IMETHOD SetSelectedIndex(int32_t aSelectedIndex) override; \
73 : NS_IMETHOD GetSelect(nsIDOMHTMLSelectElement * *aSelect) override; \
74 : NS_IMETHOD Add(nsIDOMHTMLOptionElement *option, nsIVariant *before) override; \
75 : NS_IMETHOD Remove(int32_t index) override;
76 :
77 : /* Use this macro when declaring the members of this interface when the
78 : class doesn't implement the interface. This is useful for forwarding. */
79 : #define NS_DECL_NON_VIRTUAL_NSIDOMHTMLOPTIONSCOLLECTION \
80 : nsresult GetLength(uint32_t *aLength); \
81 : nsresult SetLength(uint32_t aLength); \
82 : nsresult Item(uint32_t index, nsIDOMNode * *_retval); \
83 : nsresult NamedItem(const nsAString & name, nsIDOMNode * *_retval); \
84 : nsresult GetSelectedIndex(int32_t *aSelectedIndex); \
85 : nsresult SetSelectedIndex(int32_t aSelectedIndex); \
86 : nsresult GetSelect(nsIDOMHTMLSelectElement * *aSelect); \
87 : nsresult Add(nsIDOMHTMLOptionElement *option, nsIVariant *before); \
88 : nsresult Remove(int32_t index);
89 :
90 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
91 : #define NS_FORWARD_NSIDOMHTMLOPTIONSCOLLECTION(_to) \
92 : NS_IMETHOD GetLength(uint32_t *aLength) override { return _to GetLength(aLength); } \
93 : NS_IMETHOD SetLength(uint32_t aLength) override { return _to SetLength(aLength); } \
94 : NS_IMETHOD Item(uint32_t index, nsIDOMNode * *_retval) override { return _to Item(index, _retval); } \
95 : NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode * *_retval) override { return _to NamedItem(name, _retval); } \
96 : NS_IMETHOD GetSelectedIndex(int32_t *aSelectedIndex) override { return _to GetSelectedIndex(aSelectedIndex); } \
97 : NS_IMETHOD SetSelectedIndex(int32_t aSelectedIndex) override { return _to SetSelectedIndex(aSelectedIndex); } \
98 : NS_IMETHOD GetSelect(nsIDOMHTMLSelectElement * *aSelect) override { return _to GetSelect(aSelect); } \
99 : NS_IMETHOD Add(nsIDOMHTMLOptionElement *option, nsIVariant *before) override { return _to Add(option, before); } \
100 : NS_IMETHOD Remove(int32_t index) override { return _to Remove(index); }
101 :
102 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
103 : #define NS_FORWARD_SAFE_NSIDOMHTMLOPTIONSCOLLECTION(_to) \
104 : NS_IMETHOD GetLength(uint32_t *aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
105 : NS_IMETHOD SetLength(uint32_t aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLength(aLength); } \
106 : NS_IMETHOD Item(uint32_t index, nsIDOMNode * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
107 : NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NamedItem(name, _retval); } \
108 : NS_IMETHOD GetSelectedIndex(int32_t *aSelectedIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedIndex(aSelectedIndex); } \
109 : NS_IMETHOD SetSelectedIndex(int32_t aSelectedIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectedIndex(aSelectedIndex); } \
110 : NS_IMETHOD GetSelect(nsIDOMHTMLSelectElement * *aSelect) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelect(aSelect); } \
111 : NS_IMETHOD Add(nsIDOMHTMLOptionElement *option, nsIVariant *before) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Add(option, before); } \
112 : NS_IMETHOD Remove(int32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(index); }
113 :
114 : #if 0
115 : /* Use the code below as a template for the implementation class for this interface. */
116 :
117 : /* Header file */
118 : class nsDOMHTMLOptionsCollection : public nsIDOMHTMLOptionsCollection
119 : {
120 : public:
121 : NS_DECL_ISUPPORTS
122 : NS_DECL_NSIDOMHTMLOPTIONSCOLLECTION
123 :
124 : nsDOMHTMLOptionsCollection();
125 :
126 : private:
127 : ~nsDOMHTMLOptionsCollection();
128 :
129 : protected:
130 : /* additional members */
131 : };
132 :
133 : /* Implementation file */
134 : NS_IMPL_ISUPPORTS(nsDOMHTMLOptionsCollection, nsIDOMHTMLOptionsCollection)
135 :
136 : nsDOMHTMLOptionsCollection::nsDOMHTMLOptionsCollection()
137 : {
138 : /* member initializers and constructor code */
139 : }
140 :
141 : nsDOMHTMLOptionsCollection::~nsDOMHTMLOptionsCollection()
142 : {
143 : /* destructor code */
144 : }
145 :
146 : /* attribute unsigned long length; */
147 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::GetLength(uint32_t *aLength)
148 : {
149 : return NS_ERROR_NOT_IMPLEMENTED;
150 : }
151 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::SetLength(uint32_t aLength)
152 : {
153 : return NS_ERROR_NOT_IMPLEMENTED;
154 : }
155 :
156 : /* nsIDOMNode item (in unsigned long index); */
157 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::Item(uint32_t index, nsIDOMNode * *_retval)
158 : {
159 : return NS_ERROR_NOT_IMPLEMENTED;
160 : }
161 :
162 : /* nsIDOMNode namedItem (in DOMString name); */
163 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::NamedItem(const nsAString & name, nsIDOMNode * *_retval)
164 : {
165 : return NS_ERROR_NOT_IMPLEMENTED;
166 : }
167 :
168 : /* attribute long selectedIndex; */
169 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::GetSelectedIndex(int32_t *aSelectedIndex)
170 : {
171 : return NS_ERROR_NOT_IMPLEMENTED;
172 : }
173 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::SetSelectedIndex(int32_t aSelectedIndex)
174 : {
175 : return NS_ERROR_NOT_IMPLEMENTED;
176 : }
177 :
178 : /* [noscript] readonly attribute nsIDOMHTMLSelectElement select; */
179 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::GetSelect(nsIDOMHTMLSelectElement * *aSelect)
180 : {
181 : return NS_ERROR_NOT_IMPLEMENTED;
182 : }
183 :
184 : /* void add (in nsIDOMHTMLOptionElement option, [optional] in nsIVariant before); */
185 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::Add(nsIDOMHTMLOptionElement *option, nsIVariant *before)
186 : {
187 : return NS_ERROR_NOT_IMPLEMENTED;
188 : }
189 :
190 : /* void remove (in long index); */
191 : NS_IMETHODIMP nsDOMHTMLOptionsCollection::Remove(int32_t index)
192 : {
193 : return NS_ERROR_NOT_IMPLEMENTED;
194 : }
195 :
196 : /* End of implementation class template. */
197 : #endif
198 :
199 :
200 : #endif /* __gen_nsIDOMHTMLOptionsCollection_h__ */
|