Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAutoCompleteInput.idl
3 : */
4 :
5 : #ifndef __gen_nsIAutoCompleteInput_h__
6 : #define __gen_nsIAutoCompleteInput_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIAutoCompleteController_h__
14 : #include "nsIAutoCompleteController.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 nsIAutoCompletePopup; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIAutoCompleteInput */
25 : #define NS_IAUTOCOMPLETEINPUT_IID_STR "b068e70f-f82c-4c12-ad87-82e271c5c180"
26 :
27 : #define NS_IAUTOCOMPLETEINPUT_IID \
28 : {0xb068e70f, 0xf82c, 0x4c12, \
29 : { 0xad, 0x87, 0x82, 0xe2, 0x71, 0xc5, 0xc1, 0x80 }}
30 :
31 3 : class NS_NO_VTABLE nsIAutoCompleteInput : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETEINPUT_IID)
35 :
36 : /* readonly attribute nsIAutoCompletePopup popup; */
37 : NS_IMETHOD GetPopup(nsIAutoCompletePopup * *aPopup) = 0;
38 :
39 : /* readonly attribute nsIAutoCompleteController controller; */
40 : NS_IMETHOD GetController(nsIAutoCompleteController * *aController) = 0;
41 :
42 : /* attribute boolean popupOpen; */
43 : NS_IMETHOD GetPopupOpen(bool *aPopupOpen) = 0;
44 : NS_IMETHOD SetPopupOpen(bool aPopupOpen) = 0;
45 :
46 : /* attribute boolean disableAutoComplete; */
47 : NS_IMETHOD GetDisableAutoComplete(bool *aDisableAutoComplete) = 0;
48 : NS_IMETHOD SetDisableAutoComplete(bool aDisableAutoComplete) = 0;
49 :
50 : /* attribute boolean completeDefaultIndex; */
51 : NS_IMETHOD GetCompleteDefaultIndex(bool *aCompleteDefaultIndex) = 0;
52 : NS_IMETHOD SetCompleteDefaultIndex(bool aCompleteDefaultIndex) = 0;
53 :
54 : /* attribute boolean completeSelectedIndex; */
55 : NS_IMETHOD GetCompleteSelectedIndex(bool *aCompleteSelectedIndex) = 0;
56 : NS_IMETHOD SetCompleteSelectedIndex(bool aCompleteSelectedIndex) = 0;
57 :
58 : /* attribute boolean forceComplete; */
59 : NS_IMETHOD GetForceComplete(bool *aForceComplete) = 0;
60 : NS_IMETHOD SetForceComplete(bool aForceComplete) = 0;
61 :
62 : /* attribute unsigned long minResultsForPopup; */
63 : NS_IMETHOD GetMinResultsForPopup(uint32_t *aMinResultsForPopup) = 0;
64 : NS_IMETHOD SetMinResultsForPopup(uint32_t aMinResultsForPopup) = 0;
65 :
66 : /* attribute unsigned long maxRows; */
67 : NS_IMETHOD GetMaxRows(uint32_t *aMaxRows) = 0;
68 : NS_IMETHOD SetMaxRows(uint32_t aMaxRows) = 0;
69 :
70 : /* attribute boolean showCommentColumn; */
71 : NS_IMETHOD GetShowCommentColumn(bool *aShowCommentColumn) = 0;
72 : NS_IMETHOD SetShowCommentColumn(bool aShowCommentColumn) = 0;
73 :
74 : /* attribute boolean showImageColumn; */
75 : NS_IMETHOD GetShowImageColumn(bool *aShowImageColumn) = 0;
76 : NS_IMETHOD SetShowImageColumn(bool aShowImageColumn) = 0;
77 :
78 : /* attribute unsigned long timeout; */
79 : NS_IMETHOD GetTimeout(uint32_t *aTimeout) = 0;
80 : NS_IMETHOD SetTimeout(uint32_t aTimeout) = 0;
81 :
82 : /* attribute AString searchParam; */
83 : NS_IMETHOD GetSearchParam(nsAString & aSearchParam) = 0;
84 : NS_IMETHOD SetSearchParam(const nsAString & aSearchParam) = 0;
85 :
86 : /* readonly attribute unsigned long searchCount; */
87 : NS_IMETHOD GetSearchCount(uint32_t *aSearchCount) = 0;
88 :
89 : /* ACString getSearchAt (in unsigned long index); */
90 : NS_IMETHOD GetSearchAt(uint32_t index, nsACString & _retval) = 0;
91 :
92 : /* attribute AString textValue; */
93 : NS_IMETHOD GetTextValue(nsAString & aTextValue) = 0;
94 : NS_IMETHOD SetTextValue(const nsAString & aTextValue) = 0;
95 :
96 : enum {
97 : TEXTVALUE_REASON_UNKNOWN = 0U,
98 : TEXTVALUE_REASON_COMPLETEDEFAULT = 1U,
99 : TEXTVALUE_REASON_COMPLETESELECTED = 2U,
100 : TEXTVALUE_REASON_REVERT = 3U,
101 : TEXTVALUE_REASON_ENTERMATCH = 4U
102 : };
103 :
104 : /* void setTextValueWithReason (in AString aValue, in unsigned short aReason); */
105 : NS_IMETHOD SetTextValueWithReason(const nsAString & aValue, uint16_t aReason) = 0;
106 :
107 : /* readonly attribute long selectionStart; */
108 : NS_IMETHOD GetSelectionStart(int32_t *aSelectionStart) = 0;
109 :
110 : /* readonly attribute long selectionEnd; */
111 : NS_IMETHOD GetSelectionEnd(int32_t *aSelectionEnd) = 0;
112 :
113 : /* void selectTextRange (in long startIndex, in long endIndex); */
114 : NS_IMETHOD SelectTextRange(int32_t startIndex, int32_t endIndex) = 0;
115 :
116 : /* void onSearchBegin (); */
117 : NS_IMETHOD OnSearchBegin(void) = 0;
118 :
119 : /* void onSearchComplete (); */
120 : NS_IMETHOD OnSearchComplete(void) = 0;
121 :
122 : /* boolean onTextEntered ([optional] in nsIDOMEvent aEvent); */
123 : NS_IMETHOD OnTextEntered(nsIDOMEvent *aEvent, bool *_retval) = 0;
124 :
125 : /* boolean onTextReverted (); */
126 : NS_IMETHOD OnTextReverted(bool *_retval) = 0;
127 :
128 : /* readonly attribute boolean consumeRollupEvent; */
129 : NS_IMETHOD GetConsumeRollupEvent(bool *aConsumeRollupEvent) = 0;
130 :
131 : /* readonly attribute boolean inPrivateContext; */
132 : NS_IMETHOD GetInPrivateContext(bool *aInPrivateContext) = 0;
133 :
134 : /* readonly attribute boolean noRollupOnCaretMove; */
135 : NS_IMETHOD GetNoRollupOnCaretMove(bool *aNoRollupOnCaretMove) = 0;
136 :
137 : /* readonly attribute unsigned long userContextId; */
138 : NS_IMETHOD GetUserContextId(uint32_t *aUserContextId) = 0;
139 :
140 : };
141 :
142 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteInput, NS_IAUTOCOMPLETEINPUT_IID)
143 :
144 : /* Use this macro when declaring classes that implement this interface. */
145 : #define NS_DECL_NSIAUTOCOMPLETEINPUT \
146 : NS_IMETHOD GetPopup(nsIAutoCompletePopup * *aPopup) override; \
147 : NS_IMETHOD GetController(nsIAutoCompleteController * *aController) override; \
148 : NS_IMETHOD GetPopupOpen(bool *aPopupOpen) override; \
149 : NS_IMETHOD SetPopupOpen(bool aPopupOpen) override; \
150 : NS_IMETHOD GetDisableAutoComplete(bool *aDisableAutoComplete) override; \
151 : NS_IMETHOD SetDisableAutoComplete(bool aDisableAutoComplete) override; \
152 : NS_IMETHOD GetCompleteDefaultIndex(bool *aCompleteDefaultIndex) override; \
153 : NS_IMETHOD SetCompleteDefaultIndex(bool aCompleteDefaultIndex) override; \
154 : NS_IMETHOD GetCompleteSelectedIndex(bool *aCompleteSelectedIndex) override; \
155 : NS_IMETHOD SetCompleteSelectedIndex(bool aCompleteSelectedIndex) override; \
156 : NS_IMETHOD GetForceComplete(bool *aForceComplete) override; \
157 : NS_IMETHOD SetForceComplete(bool aForceComplete) override; \
158 : NS_IMETHOD GetMinResultsForPopup(uint32_t *aMinResultsForPopup) override; \
159 : NS_IMETHOD SetMinResultsForPopup(uint32_t aMinResultsForPopup) override; \
160 : NS_IMETHOD GetMaxRows(uint32_t *aMaxRows) override; \
161 : NS_IMETHOD SetMaxRows(uint32_t aMaxRows) override; \
162 : NS_IMETHOD GetShowCommentColumn(bool *aShowCommentColumn) override; \
163 : NS_IMETHOD SetShowCommentColumn(bool aShowCommentColumn) override; \
164 : NS_IMETHOD GetShowImageColumn(bool *aShowImageColumn) override; \
165 : NS_IMETHOD SetShowImageColumn(bool aShowImageColumn) override; \
166 : NS_IMETHOD GetTimeout(uint32_t *aTimeout) override; \
167 : NS_IMETHOD SetTimeout(uint32_t aTimeout) override; \
168 : NS_IMETHOD GetSearchParam(nsAString & aSearchParam) override; \
169 : NS_IMETHOD SetSearchParam(const nsAString & aSearchParam) override; \
170 : NS_IMETHOD GetSearchCount(uint32_t *aSearchCount) override; \
171 : NS_IMETHOD GetSearchAt(uint32_t index, nsACString & _retval) override; \
172 : NS_IMETHOD GetTextValue(nsAString & aTextValue) override; \
173 : NS_IMETHOD SetTextValue(const nsAString & aTextValue) override; \
174 : NS_IMETHOD SetTextValueWithReason(const nsAString & aValue, uint16_t aReason) override; \
175 : NS_IMETHOD GetSelectionStart(int32_t *aSelectionStart) override; \
176 : NS_IMETHOD GetSelectionEnd(int32_t *aSelectionEnd) override; \
177 : NS_IMETHOD SelectTextRange(int32_t startIndex, int32_t endIndex) override; \
178 : NS_IMETHOD OnSearchBegin(void) override; \
179 : NS_IMETHOD OnSearchComplete(void) override; \
180 : NS_IMETHOD OnTextEntered(nsIDOMEvent *aEvent, bool *_retval) override; \
181 : NS_IMETHOD OnTextReverted(bool *_retval) override; \
182 : NS_IMETHOD GetConsumeRollupEvent(bool *aConsumeRollupEvent) override; \
183 : NS_IMETHOD GetInPrivateContext(bool *aInPrivateContext) override; \
184 : NS_IMETHOD GetNoRollupOnCaretMove(bool *aNoRollupOnCaretMove) override; \
185 : NS_IMETHOD GetUserContextId(uint32_t *aUserContextId) override;
186 :
187 : /* Use this macro when declaring the members of this interface when the
188 : class doesn't implement the interface. This is useful for forwarding. */
189 : #define NS_DECL_NON_VIRTUAL_NSIAUTOCOMPLETEINPUT \
190 : nsresult GetPopup(nsIAutoCompletePopup * *aPopup); \
191 : nsresult GetController(nsIAutoCompleteController * *aController); \
192 : nsresult GetPopupOpen(bool *aPopupOpen); \
193 : nsresult SetPopupOpen(bool aPopupOpen); \
194 : nsresult GetDisableAutoComplete(bool *aDisableAutoComplete); \
195 : nsresult SetDisableAutoComplete(bool aDisableAutoComplete); \
196 : nsresult GetCompleteDefaultIndex(bool *aCompleteDefaultIndex); \
197 : nsresult SetCompleteDefaultIndex(bool aCompleteDefaultIndex); \
198 : nsresult GetCompleteSelectedIndex(bool *aCompleteSelectedIndex); \
199 : nsresult SetCompleteSelectedIndex(bool aCompleteSelectedIndex); \
200 : nsresult GetForceComplete(bool *aForceComplete); \
201 : nsresult SetForceComplete(bool aForceComplete); \
202 : nsresult GetMinResultsForPopup(uint32_t *aMinResultsForPopup); \
203 : nsresult SetMinResultsForPopup(uint32_t aMinResultsForPopup); \
204 : nsresult GetMaxRows(uint32_t *aMaxRows); \
205 : nsresult SetMaxRows(uint32_t aMaxRows); \
206 : nsresult GetShowCommentColumn(bool *aShowCommentColumn); \
207 : nsresult SetShowCommentColumn(bool aShowCommentColumn); \
208 : nsresult GetShowImageColumn(bool *aShowImageColumn); \
209 : nsresult SetShowImageColumn(bool aShowImageColumn); \
210 : nsresult GetTimeout(uint32_t *aTimeout); \
211 : nsresult SetTimeout(uint32_t aTimeout); \
212 : nsresult GetSearchParam(nsAString & aSearchParam); \
213 : nsresult SetSearchParam(const nsAString & aSearchParam); \
214 : nsresult GetSearchCount(uint32_t *aSearchCount); \
215 : nsresult GetSearchAt(uint32_t index, nsACString & _retval); \
216 : nsresult GetTextValue(nsAString & aTextValue); \
217 : nsresult SetTextValue(const nsAString & aTextValue); \
218 : nsresult SetTextValueWithReason(const nsAString & aValue, uint16_t aReason); \
219 : nsresult GetSelectionStart(int32_t *aSelectionStart); \
220 : nsresult GetSelectionEnd(int32_t *aSelectionEnd); \
221 : nsresult SelectTextRange(int32_t startIndex, int32_t endIndex); \
222 : nsresult OnSearchBegin(void); \
223 : nsresult OnSearchComplete(void); \
224 : nsresult OnTextEntered(nsIDOMEvent *aEvent, bool *_retval); \
225 : nsresult OnTextReverted(bool *_retval); \
226 : nsresult GetConsumeRollupEvent(bool *aConsumeRollupEvent); \
227 : nsresult GetInPrivateContext(bool *aInPrivateContext); \
228 : nsresult GetNoRollupOnCaretMove(bool *aNoRollupOnCaretMove); \
229 : nsresult GetUserContextId(uint32_t *aUserContextId);
230 :
231 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
232 : #define NS_FORWARD_NSIAUTOCOMPLETEINPUT(_to) \
233 : NS_IMETHOD GetPopup(nsIAutoCompletePopup * *aPopup) override { return _to GetPopup(aPopup); } \
234 : NS_IMETHOD GetController(nsIAutoCompleteController * *aController) override { return _to GetController(aController); } \
235 : NS_IMETHOD GetPopupOpen(bool *aPopupOpen) override { return _to GetPopupOpen(aPopupOpen); } \
236 : NS_IMETHOD SetPopupOpen(bool aPopupOpen) override { return _to SetPopupOpen(aPopupOpen); } \
237 : NS_IMETHOD GetDisableAutoComplete(bool *aDisableAutoComplete) override { return _to GetDisableAutoComplete(aDisableAutoComplete); } \
238 : NS_IMETHOD SetDisableAutoComplete(bool aDisableAutoComplete) override { return _to SetDisableAutoComplete(aDisableAutoComplete); } \
239 : NS_IMETHOD GetCompleteDefaultIndex(bool *aCompleteDefaultIndex) override { return _to GetCompleteDefaultIndex(aCompleteDefaultIndex); } \
240 : NS_IMETHOD SetCompleteDefaultIndex(bool aCompleteDefaultIndex) override { return _to SetCompleteDefaultIndex(aCompleteDefaultIndex); } \
241 : NS_IMETHOD GetCompleteSelectedIndex(bool *aCompleteSelectedIndex) override { return _to GetCompleteSelectedIndex(aCompleteSelectedIndex); } \
242 : NS_IMETHOD SetCompleteSelectedIndex(bool aCompleteSelectedIndex) override { return _to SetCompleteSelectedIndex(aCompleteSelectedIndex); } \
243 : NS_IMETHOD GetForceComplete(bool *aForceComplete) override { return _to GetForceComplete(aForceComplete); } \
244 : NS_IMETHOD SetForceComplete(bool aForceComplete) override { return _to SetForceComplete(aForceComplete); } \
245 : NS_IMETHOD GetMinResultsForPopup(uint32_t *aMinResultsForPopup) override { return _to GetMinResultsForPopup(aMinResultsForPopup); } \
246 : NS_IMETHOD SetMinResultsForPopup(uint32_t aMinResultsForPopup) override { return _to SetMinResultsForPopup(aMinResultsForPopup); } \
247 : NS_IMETHOD GetMaxRows(uint32_t *aMaxRows) override { return _to GetMaxRows(aMaxRows); } \
248 : NS_IMETHOD SetMaxRows(uint32_t aMaxRows) override { return _to SetMaxRows(aMaxRows); } \
249 : NS_IMETHOD GetShowCommentColumn(bool *aShowCommentColumn) override { return _to GetShowCommentColumn(aShowCommentColumn); } \
250 : NS_IMETHOD SetShowCommentColumn(bool aShowCommentColumn) override { return _to SetShowCommentColumn(aShowCommentColumn); } \
251 : NS_IMETHOD GetShowImageColumn(bool *aShowImageColumn) override { return _to GetShowImageColumn(aShowImageColumn); } \
252 : NS_IMETHOD SetShowImageColumn(bool aShowImageColumn) override { return _to SetShowImageColumn(aShowImageColumn); } \
253 : NS_IMETHOD GetTimeout(uint32_t *aTimeout) override { return _to GetTimeout(aTimeout); } \
254 : NS_IMETHOD SetTimeout(uint32_t aTimeout) override { return _to SetTimeout(aTimeout); } \
255 : NS_IMETHOD GetSearchParam(nsAString & aSearchParam) override { return _to GetSearchParam(aSearchParam); } \
256 : NS_IMETHOD SetSearchParam(const nsAString & aSearchParam) override { return _to SetSearchParam(aSearchParam); } \
257 : NS_IMETHOD GetSearchCount(uint32_t *aSearchCount) override { return _to GetSearchCount(aSearchCount); } \
258 : NS_IMETHOD GetSearchAt(uint32_t index, nsACString & _retval) override { return _to GetSearchAt(index, _retval); } \
259 : NS_IMETHOD GetTextValue(nsAString & aTextValue) override { return _to GetTextValue(aTextValue); } \
260 : NS_IMETHOD SetTextValue(const nsAString & aTextValue) override { return _to SetTextValue(aTextValue); } \
261 : NS_IMETHOD SetTextValueWithReason(const nsAString & aValue, uint16_t aReason) override { return _to SetTextValueWithReason(aValue, aReason); } \
262 : NS_IMETHOD GetSelectionStart(int32_t *aSelectionStart) override { return _to GetSelectionStart(aSelectionStart); } \
263 : NS_IMETHOD GetSelectionEnd(int32_t *aSelectionEnd) override { return _to GetSelectionEnd(aSelectionEnd); } \
264 : NS_IMETHOD SelectTextRange(int32_t startIndex, int32_t endIndex) override { return _to SelectTextRange(startIndex, endIndex); } \
265 : NS_IMETHOD OnSearchBegin(void) override { return _to OnSearchBegin(); } \
266 : NS_IMETHOD OnSearchComplete(void) override { return _to OnSearchComplete(); } \
267 : NS_IMETHOD OnTextEntered(nsIDOMEvent *aEvent, bool *_retval) override { return _to OnTextEntered(aEvent, _retval); } \
268 : NS_IMETHOD OnTextReverted(bool *_retval) override { return _to OnTextReverted(_retval); } \
269 : NS_IMETHOD GetConsumeRollupEvent(bool *aConsumeRollupEvent) override { return _to GetConsumeRollupEvent(aConsumeRollupEvent); } \
270 : NS_IMETHOD GetInPrivateContext(bool *aInPrivateContext) override { return _to GetInPrivateContext(aInPrivateContext); } \
271 : NS_IMETHOD GetNoRollupOnCaretMove(bool *aNoRollupOnCaretMove) override { return _to GetNoRollupOnCaretMove(aNoRollupOnCaretMove); } \
272 : NS_IMETHOD GetUserContextId(uint32_t *aUserContextId) override { return _to GetUserContextId(aUserContextId); }
273 :
274 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
275 : #define NS_FORWARD_SAFE_NSIAUTOCOMPLETEINPUT(_to) \
276 : NS_IMETHOD GetPopup(nsIAutoCompletePopup * *aPopup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPopup(aPopup); } \
277 : NS_IMETHOD GetController(nsIAutoCompleteController * *aController) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetController(aController); } \
278 : NS_IMETHOD GetPopupOpen(bool *aPopupOpen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPopupOpen(aPopupOpen); } \
279 : NS_IMETHOD SetPopupOpen(bool aPopupOpen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPopupOpen(aPopupOpen); } \
280 : NS_IMETHOD GetDisableAutoComplete(bool *aDisableAutoComplete) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisableAutoComplete(aDisableAutoComplete); } \
281 : NS_IMETHOD SetDisableAutoComplete(bool aDisableAutoComplete) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisableAutoComplete(aDisableAutoComplete); } \
282 : NS_IMETHOD GetCompleteDefaultIndex(bool *aCompleteDefaultIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCompleteDefaultIndex(aCompleteDefaultIndex); } \
283 : NS_IMETHOD SetCompleteDefaultIndex(bool aCompleteDefaultIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCompleteDefaultIndex(aCompleteDefaultIndex); } \
284 : NS_IMETHOD GetCompleteSelectedIndex(bool *aCompleteSelectedIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCompleteSelectedIndex(aCompleteSelectedIndex); } \
285 : NS_IMETHOD SetCompleteSelectedIndex(bool aCompleteSelectedIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCompleteSelectedIndex(aCompleteSelectedIndex); } \
286 : NS_IMETHOD GetForceComplete(bool *aForceComplete) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForceComplete(aForceComplete); } \
287 : NS_IMETHOD SetForceComplete(bool aForceComplete) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetForceComplete(aForceComplete); } \
288 : NS_IMETHOD GetMinResultsForPopup(uint32_t *aMinResultsForPopup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMinResultsForPopup(aMinResultsForPopup); } \
289 : NS_IMETHOD SetMinResultsForPopup(uint32_t aMinResultsForPopup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMinResultsForPopup(aMinResultsForPopup); } \
290 : NS_IMETHOD GetMaxRows(uint32_t *aMaxRows) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxRows(aMaxRows); } \
291 : NS_IMETHOD SetMaxRows(uint32_t aMaxRows) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxRows(aMaxRows); } \
292 : NS_IMETHOD GetShowCommentColumn(bool *aShowCommentColumn) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShowCommentColumn(aShowCommentColumn); } \
293 : NS_IMETHOD SetShowCommentColumn(bool aShowCommentColumn) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShowCommentColumn(aShowCommentColumn); } \
294 : NS_IMETHOD GetShowImageColumn(bool *aShowImageColumn) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShowImageColumn(aShowImageColumn); } \
295 : NS_IMETHOD SetShowImageColumn(bool aShowImageColumn) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShowImageColumn(aShowImageColumn); } \
296 : NS_IMETHOD GetTimeout(uint32_t *aTimeout) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimeout(aTimeout); } \
297 : NS_IMETHOD SetTimeout(uint32_t aTimeout) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTimeout(aTimeout); } \
298 : NS_IMETHOD GetSearchParam(nsAString & aSearchParam) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchParam(aSearchParam); } \
299 : NS_IMETHOD SetSearchParam(const nsAString & aSearchParam) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchParam(aSearchParam); } \
300 : NS_IMETHOD GetSearchCount(uint32_t *aSearchCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchCount(aSearchCount); } \
301 : NS_IMETHOD GetSearchAt(uint32_t index, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchAt(index, _retval); } \
302 : NS_IMETHOD GetTextValue(nsAString & aTextValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextValue(aTextValue); } \
303 : NS_IMETHOD SetTextValue(const nsAString & aTextValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextValue(aTextValue); } \
304 : NS_IMETHOD SetTextValueWithReason(const nsAString & aValue, uint16_t aReason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextValueWithReason(aValue, aReason); } \
305 : NS_IMETHOD GetSelectionStart(int32_t *aSelectionStart) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionStart(aSelectionStart); } \
306 : NS_IMETHOD GetSelectionEnd(int32_t *aSelectionEnd) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionEnd(aSelectionEnd); } \
307 : NS_IMETHOD SelectTextRange(int32_t startIndex, int32_t endIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectTextRange(startIndex, endIndex); } \
308 : NS_IMETHOD OnSearchBegin(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSearchBegin(); } \
309 : NS_IMETHOD OnSearchComplete(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSearchComplete(); } \
310 : NS_IMETHOD OnTextEntered(nsIDOMEvent *aEvent, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnTextEntered(aEvent, _retval); } \
311 : NS_IMETHOD OnTextReverted(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnTextReverted(_retval); } \
312 : NS_IMETHOD GetConsumeRollupEvent(bool *aConsumeRollupEvent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConsumeRollupEvent(aConsumeRollupEvent); } \
313 : NS_IMETHOD GetInPrivateContext(bool *aInPrivateContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInPrivateContext(aInPrivateContext); } \
314 : NS_IMETHOD GetNoRollupOnCaretMove(bool *aNoRollupOnCaretMove) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNoRollupOnCaretMove(aNoRollupOnCaretMove); } \
315 : NS_IMETHOD GetUserContextId(uint32_t *aUserContextId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserContextId(aUserContextId); }
316 :
317 : #if 0
318 : /* Use the code below as a template for the implementation class for this interface. */
319 :
320 : /* Header file */
321 : class nsAutoCompleteInput : public nsIAutoCompleteInput
322 : {
323 : public:
324 : NS_DECL_ISUPPORTS
325 : NS_DECL_NSIAUTOCOMPLETEINPUT
326 :
327 : nsAutoCompleteInput();
328 :
329 : private:
330 : ~nsAutoCompleteInput();
331 :
332 : protected:
333 : /* additional members */
334 : };
335 :
336 : /* Implementation file */
337 : NS_IMPL_ISUPPORTS(nsAutoCompleteInput, nsIAutoCompleteInput)
338 :
339 : nsAutoCompleteInput::nsAutoCompleteInput()
340 : {
341 : /* member initializers and constructor code */
342 : }
343 :
344 : nsAutoCompleteInput::~nsAutoCompleteInput()
345 : {
346 : /* destructor code */
347 : }
348 :
349 : /* readonly attribute nsIAutoCompletePopup popup; */
350 : NS_IMETHODIMP nsAutoCompleteInput::GetPopup(nsIAutoCompletePopup * *aPopup)
351 : {
352 : return NS_ERROR_NOT_IMPLEMENTED;
353 : }
354 :
355 : /* readonly attribute nsIAutoCompleteController controller; */
356 : NS_IMETHODIMP nsAutoCompleteInput::GetController(nsIAutoCompleteController * *aController)
357 : {
358 : return NS_ERROR_NOT_IMPLEMENTED;
359 : }
360 :
361 : /* attribute boolean popupOpen; */
362 : NS_IMETHODIMP nsAutoCompleteInput::GetPopupOpen(bool *aPopupOpen)
363 : {
364 : return NS_ERROR_NOT_IMPLEMENTED;
365 : }
366 : NS_IMETHODIMP nsAutoCompleteInput::SetPopupOpen(bool aPopupOpen)
367 : {
368 : return NS_ERROR_NOT_IMPLEMENTED;
369 : }
370 :
371 : /* attribute boolean disableAutoComplete; */
372 : NS_IMETHODIMP nsAutoCompleteInput::GetDisableAutoComplete(bool *aDisableAutoComplete)
373 : {
374 : return NS_ERROR_NOT_IMPLEMENTED;
375 : }
376 : NS_IMETHODIMP nsAutoCompleteInput::SetDisableAutoComplete(bool aDisableAutoComplete)
377 : {
378 : return NS_ERROR_NOT_IMPLEMENTED;
379 : }
380 :
381 : /* attribute boolean completeDefaultIndex; */
382 : NS_IMETHODIMP nsAutoCompleteInput::GetCompleteDefaultIndex(bool *aCompleteDefaultIndex)
383 : {
384 : return NS_ERROR_NOT_IMPLEMENTED;
385 : }
386 : NS_IMETHODIMP nsAutoCompleteInput::SetCompleteDefaultIndex(bool aCompleteDefaultIndex)
387 : {
388 : return NS_ERROR_NOT_IMPLEMENTED;
389 : }
390 :
391 : /* attribute boolean completeSelectedIndex; */
392 : NS_IMETHODIMP nsAutoCompleteInput::GetCompleteSelectedIndex(bool *aCompleteSelectedIndex)
393 : {
394 : return NS_ERROR_NOT_IMPLEMENTED;
395 : }
396 : NS_IMETHODIMP nsAutoCompleteInput::SetCompleteSelectedIndex(bool aCompleteSelectedIndex)
397 : {
398 : return NS_ERROR_NOT_IMPLEMENTED;
399 : }
400 :
401 : /* attribute boolean forceComplete; */
402 : NS_IMETHODIMP nsAutoCompleteInput::GetForceComplete(bool *aForceComplete)
403 : {
404 : return NS_ERROR_NOT_IMPLEMENTED;
405 : }
406 : NS_IMETHODIMP nsAutoCompleteInput::SetForceComplete(bool aForceComplete)
407 : {
408 : return NS_ERROR_NOT_IMPLEMENTED;
409 : }
410 :
411 : /* attribute unsigned long minResultsForPopup; */
412 : NS_IMETHODIMP nsAutoCompleteInput::GetMinResultsForPopup(uint32_t *aMinResultsForPopup)
413 : {
414 : return NS_ERROR_NOT_IMPLEMENTED;
415 : }
416 : NS_IMETHODIMP nsAutoCompleteInput::SetMinResultsForPopup(uint32_t aMinResultsForPopup)
417 : {
418 : return NS_ERROR_NOT_IMPLEMENTED;
419 : }
420 :
421 : /* attribute unsigned long maxRows; */
422 : NS_IMETHODIMP nsAutoCompleteInput::GetMaxRows(uint32_t *aMaxRows)
423 : {
424 : return NS_ERROR_NOT_IMPLEMENTED;
425 : }
426 : NS_IMETHODIMP nsAutoCompleteInput::SetMaxRows(uint32_t aMaxRows)
427 : {
428 : return NS_ERROR_NOT_IMPLEMENTED;
429 : }
430 :
431 : /* attribute boolean showCommentColumn; */
432 : NS_IMETHODIMP nsAutoCompleteInput::GetShowCommentColumn(bool *aShowCommentColumn)
433 : {
434 : return NS_ERROR_NOT_IMPLEMENTED;
435 : }
436 : NS_IMETHODIMP nsAutoCompleteInput::SetShowCommentColumn(bool aShowCommentColumn)
437 : {
438 : return NS_ERROR_NOT_IMPLEMENTED;
439 : }
440 :
441 : /* attribute boolean showImageColumn; */
442 : NS_IMETHODIMP nsAutoCompleteInput::GetShowImageColumn(bool *aShowImageColumn)
443 : {
444 : return NS_ERROR_NOT_IMPLEMENTED;
445 : }
446 : NS_IMETHODIMP nsAutoCompleteInput::SetShowImageColumn(bool aShowImageColumn)
447 : {
448 : return NS_ERROR_NOT_IMPLEMENTED;
449 : }
450 :
451 : /* attribute unsigned long timeout; */
452 : NS_IMETHODIMP nsAutoCompleteInput::GetTimeout(uint32_t *aTimeout)
453 : {
454 : return NS_ERROR_NOT_IMPLEMENTED;
455 : }
456 : NS_IMETHODIMP nsAutoCompleteInput::SetTimeout(uint32_t aTimeout)
457 : {
458 : return NS_ERROR_NOT_IMPLEMENTED;
459 : }
460 :
461 : /* attribute AString searchParam; */
462 : NS_IMETHODIMP nsAutoCompleteInput::GetSearchParam(nsAString & aSearchParam)
463 : {
464 : return NS_ERROR_NOT_IMPLEMENTED;
465 : }
466 : NS_IMETHODIMP nsAutoCompleteInput::SetSearchParam(const nsAString & aSearchParam)
467 : {
468 : return NS_ERROR_NOT_IMPLEMENTED;
469 : }
470 :
471 : /* readonly attribute unsigned long searchCount; */
472 : NS_IMETHODIMP nsAutoCompleteInput::GetSearchCount(uint32_t *aSearchCount)
473 : {
474 : return NS_ERROR_NOT_IMPLEMENTED;
475 : }
476 :
477 : /* ACString getSearchAt (in unsigned long index); */
478 : NS_IMETHODIMP nsAutoCompleteInput::GetSearchAt(uint32_t index, nsACString & _retval)
479 : {
480 : return NS_ERROR_NOT_IMPLEMENTED;
481 : }
482 :
483 : /* attribute AString textValue; */
484 : NS_IMETHODIMP nsAutoCompleteInput::GetTextValue(nsAString & aTextValue)
485 : {
486 : return NS_ERROR_NOT_IMPLEMENTED;
487 : }
488 : NS_IMETHODIMP nsAutoCompleteInput::SetTextValue(const nsAString & aTextValue)
489 : {
490 : return NS_ERROR_NOT_IMPLEMENTED;
491 : }
492 :
493 : /* void setTextValueWithReason (in AString aValue, in unsigned short aReason); */
494 : NS_IMETHODIMP nsAutoCompleteInput::SetTextValueWithReason(const nsAString & aValue, uint16_t aReason)
495 : {
496 : return NS_ERROR_NOT_IMPLEMENTED;
497 : }
498 :
499 : /* readonly attribute long selectionStart; */
500 : NS_IMETHODIMP nsAutoCompleteInput::GetSelectionStart(int32_t *aSelectionStart)
501 : {
502 : return NS_ERROR_NOT_IMPLEMENTED;
503 : }
504 :
505 : /* readonly attribute long selectionEnd; */
506 : NS_IMETHODIMP nsAutoCompleteInput::GetSelectionEnd(int32_t *aSelectionEnd)
507 : {
508 : return NS_ERROR_NOT_IMPLEMENTED;
509 : }
510 :
511 : /* void selectTextRange (in long startIndex, in long endIndex); */
512 : NS_IMETHODIMP nsAutoCompleteInput::SelectTextRange(int32_t startIndex, int32_t endIndex)
513 : {
514 : return NS_ERROR_NOT_IMPLEMENTED;
515 : }
516 :
517 : /* void onSearchBegin (); */
518 : NS_IMETHODIMP nsAutoCompleteInput::OnSearchBegin()
519 : {
520 : return NS_ERROR_NOT_IMPLEMENTED;
521 : }
522 :
523 : /* void onSearchComplete (); */
524 : NS_IMETHODIMP nsAutoCompleteInput::OnSearchComplete()
525 : {
526 : return NS_ERROR_NOT_IMPLEMENTED;
527 : }
528 :
529 : /* boolean onTextEntered ([optional] in nsIDOMEvent aEvent); */
530 : NS_IMETHODIMP nsAutoCompleteInput::OnTextEntered(nsIDOMEvent *aEvent, bool *_retval)
531 : {
532 : return NS_ERROR_NOT_IMPLEMENTED;
533 : }
534 :
535 : /* boolean onTextReverted (); */
536 : NS_IMETHODIMP nsAutoCompleteInput::OnTextReverted(bool *_retval)
537 : {
538 : return NS_ERROR_NOT_IMPLEMENTED;
539 : }
540 :
541 : /* readonly attribute boolean consumeRollupEvent; */
542 : NS_IMETHODIMP nsAutoCompleteInput::GetConsumeRollupEvent(bool *aConsumeRollupEvent)
543 : {
544 : return NS_ERROR_NOT_IMPLEMENTED;
545 : }
546 :
547 : /* readonly attribute boolean inPrivateContext; */
548 : NS_IMETHODIMP nsAutoCompleteInput::GetInPrivateContext(bool *aInPrivateContext)
549 : {
550 : return NS_ERROR_NOT_IMPLEMENTED;
551 : }
552 :
553 : /* readonly attribute boolean noRollupOnCaretMove; */
554 : NS_IMETHODIMP nsAutoCompleteInput::GetNoRollupOnCaretMove(bool *aNoRollupOnCaretMove)
555 : {
556 : return NS_ERROR_NOT_IMPLEMENTED;
557 : }
558 :
559 : /* readonly attribute unsigned long userContextId; */
560 : NS_IMETHODIMP nsAutoCompleteInput::GetUserContextId(uint32_t *aUserContextId)
561 : {
562 : return NS_ERROR_NOT_IMPLEMENTED;
563 : }
564 :
565 : /* End of implementation class template. */
566 : #endif
567 :
568 :
569 : #endif /* __gen_nsIAutoCompleteInput_h__ */
|