Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMHTMLOptionElement.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMHTMLOptionElement_h__
6 : #define __gen_nsIDOMHTMLOptionElement_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: nsIDOMHTMLOptionElement */
19 : #define NS_IDOMHTMLOPTIONELEMENT_IID_STR "c2b3e9ff-6b36-4158-ace3-05a9c5b8e1c1"
20 :
21 : #define NS_IDOMHTMLOPTIONELEMENT_IID \
22 : {0xc2b3e9ff, 0x6b36, 0x4158, \
23 : { 0xac, 0xe3, 0x05, 0xa9, 0xc5, 0xb8, 0xe1, 0xc1 }}
24 :
25 0 : class NS_NO_VTABLE nsIDOMHTMLOptionElement : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLOPTIONELEMENT_IID)
29 :
30 : /* attribute boolean disabled; */
31 : NS_IMETHOD GetDisabled(bool *aDisabled) = 0;
32 : NS_IMETHOD SetDisabled(bool aDisabled) = 0;
33 :
34 : /* readonly attribute nsIDOMHTMLFormElement form; */
35 : NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
36 :
37 : /* attribute DOMString label; */
38 : NS_IMETHOD GetLabel(nsAString & aLabel) = 0;
39 : NS_IMETHOD SetLabel(const nsAString & aLabel) = 0;
40 :
41 : /* attribute boolean defaultSelected; */
42 : NS_IMETHOD GetDefaultSelected(bool *aDefaultSelected) = 0;
43 : NS_IMETHOD SetDefaultSelected(bool aDefaultSelected) = 0;
44 :
45 : /* attribute boolean selected; */
46 : NS_IMETHOD GetSelected(bool *aSelected) = 0;
47 : NS_IMETHOD SetSelected(bool aSelected) = 0;
48 :
49 : /* attribute DOMString value; */
50 : NS_IMETHOD GetValue(nsAString & aValue) = 0;
51 : NS_IMETHOD SetValue(const nsAString & aValue) = 0;
52 :
53 : /* attribute DOMString text; */
54 : NS_IMETHOD GetText(nsAString & aText) = 0;
55 : NS_IMETHOD SetText(const nsAString & aText) = 0;
56 :
57 : /* readonly attribute long index; */
58 : NS_IMETHOD GetIndex(int32_t *aIndex) = 0;
59 :
60 : };
61 :
62 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLOptionElement, NS_IDOMHTMLOPTIONELEMENT_IID)
63 :
64 : /* Use this macro when declaring classes that implement this interface. */
65 : #define NS_DECL_NSIDOMHTMLOPTIONELEMENT \
66 : NS_IMETHOD GetDisabled(bool *aDisabled) override; \
67 : NS_IMETHOD SetDisabled(bool aDisabled) override; \
68 : NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) override; \
69 : NS_IMETHOD GetLabel(nsAString & aLabel) override; \
70 : NS_IMETHOD SetLabel(const nsAString & aLabel) override; \
71 : NS_IMETHOD GetDefaultSelected(bool *aDefaultSelected) override; \
72 : NS_IMETHOD SetDefaultSelected(bool aDefaultSelected) override; \
73 : NS_IMETHOD GetSelected(bool *aSelected) override; \
74 : NS_IMETHOD SetSelected(bool aSelected) override; \
75 : NS_IMETHOD GetValue(nsAString & aValue) override; \
76 : NS_IMETHOD SetValue(const nsAString & aValue) override; \
77 : NS_IMETHOD GetText(nsAString & aText) override; \
78 : NS_IMETHOD SetText(const nsAString & aText) override; \
79 : NS_IMETHOD GetIndex(int32_t *aIndex) override;
80 :
81 : /* Use this macro when declaring the members of this interface when the
82 : class doesn't implement the interface. This is useful for forwarding. */
83 : #define NS_DECL_NON_VIRTUAL_NSIDOMHTMLOPTIONELEMENT \
84 : nsresult GetDisabled(bool *aDisabled); \
85 : nsresult SetDisabled(bool aDisabled); \
86 : nsresult GetForm(nsIDOMHTMLFormElement * *aForm); \
87 : nsresult GetLabel(nsAString & aLabel); \
88 : nsresult SetLabel(const nsAString & aLabel); \
89 : nsresult GetDefaultSelected(bool *aDefaultSelected); \
90 : nsresult SetDefaultSelected(bool aDefaultSelected); \
91 : nsresult GetSelected(bool *aSelected); \
92 : nsresult SetSelected(bool aSelected); \
93 : nsresult GetValue(nsAString & aValue); \
94 : nsresult SetValue(const nsAString & aValue); \
95 : nsresult GetText(nsAString & aText); \
96 : nsresult SetText(const nsAString & aText); \
97 : nsresult GetIndex(int32_t *aIndex);
98 :
99 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
100 : #define NS_FORWARD_NSIDOMHTMLOPTIONELEMENT(_to) \
101 : NS_IMETHOD GetDisabled(bool *aDisabled) override { return _to GetDisabled(aDisabled); } \
102 : NS_IMETHOD SetDisabled(bool aDisabled) override { return _to SetDisabled(aDisabled); } \
103 : NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) override { return _to GetForm(aForm); } \
104 : NS_IMETHOD GetLabel(nsAString & aLabel) override { return _to GetLabel(aLabel); } \
105 : NS_IMETHOD SetLabel(const nsAString & aLabel) override { return _to SetLabel(aLabel); } \
106 : NS_IMETHOD GetDefaultSelected(bool *aDefaultSelected) override { return _to GetDefaultSelected(aDefaultSelected); } \
107 : NS_IMETHOD SetDefaultSelected(bool aDefaultSelected) override { return _to SetDefaultSelected(aDefaultSelected); } \
108 : NS_IMETHOD GetSelected(bool *aSelected) override { return _to GetSelected(aSelected); } \
109 : NS_IMETHOD SetSelected(bool aSelected) override { return _to SetSelected(aSelected); } \
110 : NS_IMETHOD GetValue(nsAString & aValue) override { return _to GetValue(aValue); } \
111 : NS_IMETHOD SetValue(const nsAString & aValue) override { return _to SetValue(aValue); } \
112 : NS_IMETHOD GetText(nsAString & aText) override { return _to GetText(aText); } \
113 : NS_IMETHOD SetText(const nsAString & aText) override { return _to SetText(aText); } \
114 : NS_IMETHOD GetIndex(int32_t *aIndex) override { return _to GetIndex(aIndex); }
115 :
116 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
117 : #define NS_FORWARD_SAFE_NSIDOMHTMLOPTIONELEMENT(_to) \
118 : NS_IMETHOD GetDisabled(bool *aDisabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
119 : NS_IMETHOD SetDisabled(bool aDisabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
120 : NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
121 : NS_IMETHOD GetLabel(nsAString & aLabel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLabel(aLabel); } \
122 : NS_IMETHOD SetLabel(const nsAString & aLabel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLabel(aLabel); } \
123 : NS_IMETHOD GetDefaultSelected(bool *aDefaultSelected) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultSelected(aDefaultSelected); } \
124 : NS_IMETHOD SetDefaultSelected(bool aDefaultSelected) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultSelected(aDefaultSelected); } \
125 : NS_IMETHOD GetSelected(bool *aSelected) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelected(aSelected); } \
126 : NS_IMETHOD SetSelected(bool aSelected) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelected(aSelected); } \
127 : NS_IMETHOD GetValue(nsAString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
128 : NS_IMETHOD SetValue(const nsAString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
129 : NS_IMETHOD GetText(nsAString & aText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetText(aText); } \
130 : NS_IMETHOD SetText(const nsAString & aText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetText(aText); } \
131 : NS_IMETHOD GetIndex(int32_t *aIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndex(aIndex); }
132 :
133 : #if 0
134 : /* Use the code below as a template for the implementation class for this interface. */
135 :
136 : /* Header file */
137 : class nsDOMHTMLOptionElement : public nsIDOMHTMLOptionElement
138 : {
139 : public:
140 : NS_DECL_ISUPPORTS
141 : NS_DECL_NSIDOMHTMLOPTIONELEMENT
142 :
143 : nsDOMHTMLOptionElement();
144 :
145 : private:
146 : ~nsDOMHTMLOptionElement();
147 :
148 : protected:
149 : /* additional members */
150 : };
151 :
152 : /* Implementation file */
153 : NS_IMPL_ISUPPORTS(nsDOMHTMLOptionElement, nsIDOMHTMLOptionElement)
154 :
155 : nsDOMHTMLOptionElement::nsDOMHTMLOptionElement()
156 : {
157 : /* member initializers and constructor code */
158 : }
159 :
160 : nsDOMHTMLOptionElement::~nsDOMHTMLOptionElement()
161 : {
162 : /* destructor code */
163 : }
164 :
165 : /* attribute boolean disabled; */
166 : NS_IMETHODIMP nsDOMHTMLOptionElement::GetDisabled(bool *aDisabled)
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 : NS_IMETHODIMP nsDOMHTMLOptionElement::SetDisabled(bool aDisabled)
171 : {
172 : return NS_ERROR_NOT_IMPLEMENTED;
173 : }
174 :
175 : /* readonly attribute nsIDOMHTMLFormElement form; */
176 : NS_IMETHODIMP nsDOMHTMLOptionElement::GetForm(nsIDOMHTMLFormElement * *aForm)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* attribute DOMString label; */
182 : NS_IMETHODIMP nsDOMHTMLOptionElement::GetLabel(nsAString & aLabel)
183 : {
184 : return NS_ERROR_NOT_IMPLEMENTED;
185 : }
186 : NS_IMETHODIMP nsDOMHTMLOptionElement::SetLabel(const nsAString & aLabel)
187 : {
188 : return NS_ERROR_NOT_IMPLEMENTED;
189 : }
190 :
191 : /* attribute boolean defaultSelected; */
192 : NS_IMETHODIMP nsDOMHTMLOptionElement::GetDefaultSelected(bool *aDefaultSelected)
193 : {
194 : return NS_ERROR_NOT_IMPLEMENTED;
195 : }
196 : NS_IMETHODIMP nsDOMHTMLOptionElement::SetDefaultSelected(bool aDefaultSelected)
197 : {
198 : return NS_ERROR_NOT_IMPLEMENTED;
199 : }
200 :
201 : /* attribute boolean selected; */
202 : NS_IMETHODIMP nsDOMHTMLOptionElement::GetSelected(bool *aSelected)
203 : {
204 : return NS_ERROR_NOT_IMPLEMENTED;
205 : }
206 : NS_IMETHODIMP nsDOMHTMLOptionElement::SetSelected(bool aSelected)
207 : {
208 : return NS_ERROR_NOT_IMPLEMENTED;
209 : }
210 :
211 : /* attribute DOMString value; */
212 : NS_IMETHODIMP nsDOMHTMLOptionElement::GetValue(nsAString & aValue)
213 : {
214 : return NS_ERROR_NOT_IMPLEMENTED;
215 : }
216 : NS_IMETHODIMP nsDOMHTMLOptionElement::SetValue(const nsAString & aValue)
217 : {
218 : return NS_ERROR_NOT_IMPLEMENTED;
219 : }
220 :
221 : /* attribute DOMString text; */
222 : NS_IMETHODIMP nsDOMHTMLOptionElement::GetText(nsAString & aText)
223 : {
224 : return NS_ERROR_NOT_IMPLEMENTED;
225 : }
226 : NS_IMETHODIMP nsDOMHTMLOptionElement::SetText(const nsAString & aText)
227 : {
228 : return NS_ERROR_NOT_IMPLEMENTED;
229 : }
230 :
231 : /* readonly attribute long index; */
232 : NS_IMETHODIMP nsDOMHTMLOptionElement::GetIndex(int32_t *aIndex)
233 : {
234 : return NS_ERROR_NOT_IMPLEMENTED;
235 : }
236 :
237 : /* End of implementation class template. */
238 : #endif
239 :
240 :
241 : #endif /* __gen_nsIDOMHTMLOptionElement_h__ */
|