Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsISelectionController.idl
3 : */
4 :
5 : #ifndef __gen_nsISelectionController_h__
6 : #define __gen_nsISelectionController_h__
7 :
8 :
9 : #ifndef __gen_nsISelectionDisplay_h__
10 : #include "nsISelectionDisplay.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 : typedef short SelectionRegion;
18 : class nsIContent; /* forward declaration */
19 :
20 : class nsIDOMNode; /* forward declaration */
21 :
22 : class nsISelection; /* forward declaration */
23 :
24 : class nsISelectionDisplay; /* forward declaration */
25 :
26 :
27 : /* starting interface: nsISelectionController */
28 : #define NS_ISELECTIONCONTROLLER_IID_STR "3801c9d4-8e69-4bfc-9edb-b58278621f8f"
29 :
30 : #define NS_ISELECTIONCONTROLLER_IID \
31 : {0x3801c9d4, 0x8e69, 0x4bfc, \
32 : { 0x9e, 0xdb, 0xb5, 0x82, 0x78, 0x62, 0x1f, 0x8f }}
33 :
34 32 : class NS_NO_VTABLE nsISelectionController : public nsISelectionDisplay {
35 : public:
36 :
37 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISELECTIONCONTROLLER_IID)
38 :
39 : enum {
40 : SELECTION_NONE = 0,
41 : SELECTION_NORMAL = 1,
42 : SELECTION_SPELLCHECK = 2,
43 : SELECTION_IME_RAWINPUT = 4,
44 : SELECTION_IME_SELECTEDRAWTEXT = 8,
45 : SELECTION_IME_CONVERTEDTEXT = 16,
46 : SELECTION_IME_SELECTEDCONVERTEDTEXT = 32,
47 : SELECTION_ACCESSIBILITY = 64,
48 : SELECTION_FIND = 128,
49 : SELECTION_URLSECONDARY = 256,
50 : SELECTION_URLSTRIKEOUT = 512,
51 : NUM_SELECTIONTYPES = 11,
52 : SELECTION_ANCHOR_REGION = 0,
53 : SELECTION_FOCUS_REGION = 1,
54 : SELECTION_WHOLE_SELECTION = 2,
55 : NUM_SELECTION_REGIONS = 3,
56 : SELECTION_OFF = 0,
57 : SELECTION_HIDDEN = 1,
58 : SELECTION_ON = 2,
59 : SELECTION_DISABLED = 3,
60 : SELECTION_ATTENTION = 4
61 : };
62 :
63 : /* void setDisplaySelection (in short toggle); */
64 : NS_IMETHOD SetDisplaySelection(int16_t toggle) = 0;
65 :
66 : /* short getDisplaySelection (); */
67 : NS_IMETHOD GetDisplaySelection(int16_t *_retval) = 0;
68 :
69 : /* nsISelection getSelection (in short type); */
70 : NS_IMETHOD GetSelection(int16_t type, nsISelection * *_retval) = 0;
71 :
72 : enum {
73 : SCROLL_SYNCHRONOUS = 2,
74 : SCROLL_FIRST_ANCESTOR_ONLY = 4,
75 : SCROLL_CENTER_VERTICALLY = 16,
76 : SCROLL_OVERFLOW_HIDDEN = 32,
77 : SCROLL_FOR_CARET_MOVE = 64
78 : };
79 :
80 : /* void scrollSelectionIntoView (in short type, in short region, in short flags); */
81 : NS_IMETHOD ScrollSelectionIntoView(int16_t type, int16_t region, int16_t flags) = 0;
82 :
83 : /* void repaintSelection (in short type); */
84 : NS_IMETHOD RepaintSelection(int16_t type) = 0;
85 :
86 : /* void setCaretEnabled (in boolean enabled); */
87 : NS_IMETHOD SetCaretEnabled(bool enabled) = 0;
88 :
89 : /* void setCaretReadOnly (in boolean readOnly); */
90 : NS_IMETHOD SetCaretReadOnly(bool readOnly) = 0;
91 :
92 : /* boolean getCaretEnabled (); */
93 : NS_IMETHOD GetCaretEnabled(bool *_retval) = 0;
94 :
95 : /* readonly attribute boolean caretVisible; */
96 : NS_IMETHOD GetCaretVisible(bool *aCaretVisible) = 0;
97 :
98 : /* void setCaretVisibilityDuringSelection (in boolean visibility); */
99 : NS_IMETHOD SetCaretVisibilityDuringSelection(bool visibility) = 0;
100 :
101 : /* void characterMove (in boolean forward, in boolean extend); */
102 : NS_IMETHOD CharacterMove(bool forward, bool extend) = 0;
103 :
104 : /* void physicalMove (in short direction, in short amount, in boolean extend); */
105 : NS_IMETHOD PhysicalMove(int16_t direction, int16_t amount, bool extend) = 0;
106 :
107 : enum {
108 : MOVE_LEFT = 0,
109 : MOVE_RIGHT = 1,
110 : MOVE_UP = 2,
111 : MOVE_DOWN = 3
112 : };
113 :
114 : /* [noscript] void characterExtendForDelete (); */
115 : NS_IMETHOD CharacterExtendForDelete(void) = 0;
116 :
117 : /* [noscript] void characterExtendForBackspace (); */
118 : NS_IMETHOD CharacterExtendForBackspace(void) = 0;
119 :
120 : /* void wordMove (in boolean forward, in boolean extend); */
121 : NS_IMETHOD WordMove(bool forward, bool extend) = 0;
122 :
123 : /* [noscript] void wordExtendForDelete (in boolean forward); */
124 : NS_IMETHOD WordExtendForDelete(bool forward) = 0;
125 :
126 : /* void lineMove (in boolean forward, in boolean extend); */
127 : NS_IMETHOD LineMove(bool forward, bool extend) = 0;
128 :
129 : /* void intraLineMove (in boolean forward, in boolean extend); */
130 : NS_IMETHOD IntraLineMove(bool forward, bool extend) = 0;
131 :
132 : /* void pageMove (in boolean forward, in boolean extend); */
133 : NS_IMETHOD PageMove(bool forward, bool extend) = 0;
134 :
135 : /* void completeScroll (in boolean forward); */
136 : NS_IMETHOD CompleteScroll(bool forward) = 0;
137 :
138 : /* void completeMove (in boolean forward, in boolean extend); */
139 : NS_IMETHOD CompleteMove(bool forward, bool extend) = 0;
140 :
141 : /* void scrollPage (in boolean forward); */
142 : NS_IMETHOD ScrollPage(bool forward) = 0;
143 :
144 : /* void scrollLine (in boolean forward); */
145 : NS_IMETHOD ScrollLine(bool forward) = 0;
146 :
147 : /* void scrollCharacter (in boolean right); */
148 : NS_IMETHOD ScrollCharacter(bool right) = 0;
149 :
150 : /* void selectAll (); */
151 : NS_IMETHOD SelectAll(void) = 0;
152 :
153 : /* boolean checkVisibility (in nsIDOMNode node, in short startOffset, in short endOffset); */
154 : NS_IMETHOD CheckVisibility(nsIDOMNode *node, int16_t startOffset, int16_t endOffset, bool *_retval) = 0;
155 :
156 : /* [noscript,nostdcall] boolean checkVisibilityContent (in nsIContent node, in short startOffset, in short endOffset); */
157 : virtual nsresult CheckVisibilityContent(nsIContent *node, int16_t startOffset, int16_t endOffset, bool *_retval) = 0;
158 :
159 : };
160 :
161 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISelectionController, NS_ISELECTIONCONTROLLER_IID)
162 :
163 : /* Use this macro when declaring classes that implement this interface. */
164 : #define NS_DECL_NSISELECTIONCONTROLLER \
165 : NS_IMETHOD SetDisplaySelection(int16_t toggle) override; \
166 : NS_IMETHOD GetDisplaySelection(int16_t *_retval) override; \
167 : NS_IMETHOD GetSelection(int16_t type, nsISelection * *_retval) override; \
168 : NS_IMETHOD ScrollSelectionIntoView(int16_t type, int16_t region, int16_t flags) override; \
169 : NS_IMETHOD RepaintSelection(int16_t type) override; \
170 : NS_IMETHOD SetCaretEnabled(bool enabled) override; \
171 : NS_IMETHOD SetCaretReadOnly(bool readOnly) override; \
172 : NS_IMETHOD GetCaretEnabled(bool *_retval) override; \
173 : NS_IMETHOD GetCaretVisible(bool *aCaretVisible) override; \
174 : NS_IMETHOD SetCaretVisibilityDuringSelection(bool visibility) override; \
175 : NS_IMETHOD CharacterMove(bool forward, bool extend) override; \
176 : NS_IMETHOD PhysicalMove(int16_t direction, int16_t amount, bool extend) override; \
177 : NS_IMETHOD CharacterExtendForDelete(void) override; \
178 : NS_IMETHOD CharacterExtendForBackspace(void) override; \
179 : NS_IMETHOD WordMove(bool forward, bool extend) override; \
180 : NS_IMETHOD WordExtendForDelete(bool forward) override; \
181 : NS_IMETHOD LineMove(bool forward, bool extend) override; \
182 : NS_IMETHOD IntraLineMove(bool forward, bool extend) override; \
183 : NS_IMETHOD PageMove(bool forward, bool extend) override; \
184 : NS_IMETHOD CompleteScroll(bool forward) override; \
185 : NS_IMETHOD CompleteMove(bool forward, bool extend) override; \
186 : NS_IMETHOD ScrollPage(bool forward) override; \
187 : NS_IMETHOD ScrollLine(bool forward) override; \
188 : NS_IMETHOD ScrollCharacter(bool right) override; \
189 : NS_IMETHOD SelectAll(void) override; \
190 : NS_IMETHOD CheckVisibility(nsIDOMNode *node, int16_t startOffset, int16_t endOffset, bool *_retval) override; \
191 : virtual nsresult CheckVisibilityContent(nsIContent *node, int16_t startOffset, int16_t endOffset, bool *_retval) override;
192 :
193 : /* Use this macro when declaring the members of this interface when the
194 : class doesn't implement the interface. This is useful for forwarding. */
195 : #define NS_DECL_NON_VIRTUAL_NSISELECTIONCONTROLLER \
196 : nsresult SetDisplaySelection(int16_t toggle); \
197 : nsresult GetDisplaySelection(int16_t *_retval); \
198 : nsresult GetSelection(int16_t type, nsISelection * *_retval); \
199 : nsresult ScrollSelectionIntoView(int16_t type, int16_t region, int16_t flags); \
200 : nsresult RepaintSelection(int16_t type); \
201 : nsresult SetCaretEnabled(bool enabled); \
202 : nsresult SetCaretReadOnly(bool readOnly); \
203 : nsresult GetCaretEnabled(bool *_retval); \
204 : nsresult GetCaretVisible(bool *aCaretVisible); \
205 : nsresult SetCaretVisibilityDuringSelection(bool visibility); \
206 : nsresult CharacterMove(bool forward, bool extend); \
207 : nsresult PhysicalMove(int16_t direction, int16_t amount, bool extend); \
208 : nsresult CharacterExtendForDelete(void); \
209 : nsresult CharacterExtendForBackspace(void); \
210 : nsresult WordMove(bool forward, bool extend); \
211 : nsresult WordExtendForDelete(bool forward); \
212 : nsresult LineMove(bool forward, bool extend); \
213 : nsresult IntraLineMove(bool forward, bool extend); \
214 : nsresult PageMove(bool forward, bool extend); \
215 : nsresult CompleteScroll(bool forward); \
216 : nsresult CompleteMove(bool forward, bool extend); \
217 : nsresult ScrollPage(bool forward); \
218 : nsresult ScrollLine(bool forward); \
219 : nsresult ScrollCharacter(bool right); \
220 : nsresult SelectAll(void); \
221 : nsresult CheckVisibility(nsIDOMNode *node, int16_t startOffset, int16_t endOffset, bool *_retval); \
222 : nsresult CheckVisibilityContent(nsIContent *node, int16_t startOffset, int16_t endOffset, bool *_retval);
223 :
224 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
225 : #define NS_FORWARD_NSISELECTIONCONTROLLER(_to) \
226 : NS_IMETHOD SetDisplaySelection(int16_t toggle) override { return _to SetDisplaySelection(toggle); } \
227 : NS_IMETHOD GetDisplaySelection(int16_t *_retval) override { return _to GetDisplaySelection(_retval); } \
228 : NS_IMETHOD GetSelection(int16_t type, nsISelection * *_retval) override { return _to GetSelection(type, _retval); } \
229 : NS_IMETHOD ScrollSelectionIntoView(int16_t type, int16_t region, int16_t flags) override { return _to ScrollSelectionIntoView(type, region, flags); } \
230 : NS_IMETHOD RepaintSelection(int16_t type) override { return _to RepaintSelection(type); } \
231 : NS_IMETHOD SetCaretEnabled(bool enabled) override { return _to SetCaretEnabled(enabled); } \
232 : NS_IMETHOD SetCaretReadOnly(bool readOnly) override { return _to SetCaretReadOnly(readOnly); } \
233 : NS_IMETHOD GetCaretEnabled(bool *_retval) override { return _to GetCaretEnabled(_retval); } \
234 : NS_IMETHOD GetCaretVisible(bool *aCaretVisible) override { return _to GetCaretVisible(aCaretVisible); } \
235 : NS_IMETHOD SetCaretVisibilityDuringSelection(bool visibility) override { return _to SetCaretVisibilityDuringSelection(visibility); } \
236 : NS_IMETHOD CharacterMove(bool forward, bool extend) override { return _to CharacterMove(forward, extend); } \
237 : NS_IMETHOD PhysicalMove(int16_t direction, int16_t amount, bool extend) override { return _to PhysicalMove(direction, amount, extend); } \
238 : NS_IMETHOD CharacterExtendForDelete(void) override { return _to CharacterExtendForDelete(); } \
239 : NS_IMETHOD CharacterExtendForBackspace(void) override { return _to CharacterExtendForBackspace(); } \
240 : NS_IMETHOD WordMove(bool forward, bool extend) override { return _to WordMove(forward, extend); } \
241 : NS_IMETHOD WordExtendForDelete(bool forward) override { return _to WordExtendForDelete(forward); } \
242 : NS_IMETHOD LineMove(bool forward, bool extend) override { return _to LineMove(forward, extend); } \
243 : NS_IMETHOD IntraLineMove(bool forward, bool extend) override { return _to IntraLineMove(forward, extend); } \
244 : NS_IMETHOD PageMove(bool forward, bool extend) override { return _to PageMove(forward, extend); } \
245 : NS_IMETHOD CompleteScroll(bool forward) override { return _to CompleteScroll(forward); } \
246 : NS_IMETHOD CompleteMove(bool forward, bool extend) override { return _to CompleteMove(forward, extend); } \
247 : NS_IMETHOD ScrollPage(bool forward) override { return _to ScrollPage(forward); } \
248 : NS_IMETHOD ScrollLine(bool forward) override { return _to ScrollLine(forward); } \
249 : NS_IMETHOD ScrollCharacter(bool right) override { return _to ScrollCharacter(right); } \
250 : NS_IMETHOD SelectAll(void) override { return _to SelectAll(); } \
251 : NS_IMETHOD CheckVisibility(nsIDOMNode *node, int16_t startOffset, int16_t endOffset, bool *_retval) override { return _to CheckVisibility(node, startOffset, endOffset, _retval); } \
252 : virtual nsresult CheckVisibilityContent(nsIContent *node, int16_t startOffset, int16_t endOffset, bool *_retval) override { return _to CheckVisibilityContent(node, startOffset, endOffset, _retval); }
253 :
254 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
255 : #define NS_FORWARD_SAFE_NSISELECTIONCONTROLLER(_to) \
256 : NS_IMETHOD SetDisplaySelection(int16_t toggle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplaySelection(toggle); } \
257 : NS_IMETHOD GetDisplaySelection(int16_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplaySelection(_retval); } \
258 : NS_IMETHOD GetSelection(int16_t type, nsISelection * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelection(type, _retval); } \
259 : NS_IMETHOD ScrollSelectionIntoView(int16_t type, int16_t region, int16_t flags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollSelectionIntoView(type, region, flags); } \
260 : NS_IMETHOD RepaintSelection(int16_t type) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RepaintSelection(type); } \
261 : NS_IMETHOD SetCaretEnabled(bool enabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCaretEnabled(enabled); } \
262 : NS_IMETHOD SetCaretReadOnly(bool readOnly) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCaretReadOnly(readOnly); } \
263 : NS_IMETHOD GetCaretEnabled(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCaretEnabled(_retval); } \
264 : NS_IMETHOD GetCaretVisible(bool *aCaretVisible) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCaretVisible(aCaretVisible); } \
265 : NS_IMETHOD SetCaretVisibilityDuringSelection(bool visibility) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCaretVisibilityDuringSelection(visibility); } \
266 : NS_IMETHOD CharacterMove(bool forward, bool extend) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CharacterMove(forward, extend); } \
267 : NS_IMETHOD PhysicalMove(int16_t direction, int16_t amount, bool extend) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PhysicalMove(direction, amount, extend); } \
268 : NS_IMETHOD CharacterExtendForDelete(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CharacterExtendForDelete(); } \
269 : NS_IMETHOD CharacterExtendForBackspace(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CharacterExtendForBackspace(); } \
270 : NS_IMETHOD WordMove(bool forward, bool extend) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WordMove(forward, extend); } \
271 : NS_IMETHOD WordExtendForDelete(bool forward) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WordExtendForDelete(forward); } \
272 : NS_IMETHOD LineMove(bool forward, bool extend) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LineMove(forward, extend); } \
273 : NS_IMETHOD IntraLineMove(bool forward, bool extend) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IntraLineMove(forward, extend); } \
274 : NS_IMETHOD PageMove(bool forward, bool extend) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PageMove(forward, extend); } \
275 : NS_IMETHOD CompleteScroll(bool forward) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CompleteScroll(forward); } \
276 : NS_IMETHOD CompleteMove(bool forward, bool extend) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CompleteMove(forward, extend); } \
277 : NS_IMETHOD ScrollPage(bool forward) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollPage(forward); } \
278 : NS_IMETHOD ScrollLine(bool forward) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollLine(forward); } \
279 : NS_IMETHOD ScrollCharacter(bool right) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollCharacter(right); } \
280 : NS_IMETHOD SelectAll(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectAll(); } \
281 : NS_IMETHOD CheckVisibility(nsIDOMNode *node, int16_t startOffset, int16_t endOffset, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckVisibility(node, startOffset, endOffset, _retval); } \
282 : virtual nsresult CheckVisibilityContent(nsIContent *node, int16_t startOffset, int16_t endOffset, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckVisibilityContent(node, startOffset, endOffset, _retval); }
283 :
284 : #if 0
285 : /* Use the code below as a template for the implementation class for this interface. */
286 :
287 : /* Header file */
288 : class nsSelectionController : public nsISelectionController
289 : {
290 : public:
291 : NS_DECL_ISUPPORTS
292 : NS_DECL_NSISELECTIONCONTROLLER
293 :
294 : nsSelectionController();
295 :
296 : private:
297 : ~nsSelectionController();
298 :
299 : protected:
300 : /* additional members */
301 : };
302 :
303 : /* Implementation file */
304 : NS_IMPL_ISUPPORTS(nsSelectionController, nsISelectionController)
305 :
306 : nsSelectionController::nsSelectionController()
307 : {
308 : /* member initializers and constructor code */
309 : }
310 :
311 : nsSelectionController::~nsSelectionController()
312 : {
313 : /* destructor code */
314 : }
315 :
316 : /* void setDisplaySelection (in short toggle); */
317 : NS_IMETHODIMP nsSelectionController::SetDisplaySelection(int16_t toggle)
318 : {
319 : return NS_ERROR_NOT_IMPLEMENTED;
320 : }
321 :
322 : /* short getDisplaySelection (); */
323 : NS_IMETHODIMP nsSelectionController::GetDisplaySelection(int16_t *_retval)
324 : {
325 : return NS_ERROR_NOT_IMPLEMENTED;
326 : }
327 :
328 : /* nsISelection getSelection (in short type); */
329 : NS_IMETHODIMP nsSelectionController::GetSelection(int16_t type, nsISelection * *_retval)
330 : {
331 : return NS_ERROR_NOT_IMPLEMENTED;
332 : }
333 :
334 : /* void scrollSelectionIntoView (in short type, in short region, in short flags); */
335 : NS_IMETHODIMP nsSelectionController::ScrollSelectionIntoView(int16_t type, int16_t region, int16_t flags)
336 : {
337 : return NS_ERROR_NOT_IMPLEMENTED;
338 : }
339 :
340 : /* void repaintSelection (in short type); */
341 : NS_IMETHODIMP nsSelectionController::RepaintSelection(int16_t type)
342 : {
343 : return NS_ERROR_NOT_IMPLEMENTED;
344 : }
345 :
346 : /* void setCaretEnabled (in boolean enabled); */
347 : NS_IMETHODIMP nsSelectionController::SetCaretEnabled(bool enabled)
348 : {
349 : return NS_ERROR_NOT_IMPLEMENTED;
350 : }
351 :
352 : /* void setCaretReadOnly (in boolean readOnly); */
353 : NS_IMETHODIMP nsSelectionController::SetCaretReadOnly(bool readOnly)
354 : {
355 : return NS_ERROR_NOT_IMPLEMENTED;
356 : }
357 :
358 : /* boolean getCaretEnabled (); */
359 : NS_IMETHODIMP nsSelectionController::GetCaretEnabled(bool *_retval)
360 : {
361 : return NS_ERROR_NOT_IMPLEMENTED;
362 : }
363 :
364 : /* readonly attribute boolean caretVisible; */
365 : NS_IMETHODIMP nsSelectionController::GetCaretVisible(bool *aCaretVisible)
366 : {
367 : return NS_ERROR_NOT_IMPLEMENTED;
368 : }
369 :
370 : /* void setCaretVisibilityDuringSelection (in boolean visibility); */
371 : NS_IMETHODIMP nsSelectionController::SetCaretVisibilityDuringSelection(bool visibility)
372 : {
373 : return NS_ERROR_NOT_IMPLEMENTED;
374 : }
375 :
376 : /* void characterMove (in boolean forward, in boolean extend); */
377 : NS_IMETHODIMP nsSelectionController::CharacterMove(bool forward, bool extend)
378 : {
379 : return NS_ERROR_NOT_IMPLEMENTED;
380 : }
381 :
382 : /* void physicalMove (in short direction, in short amount, in boolean extend); */
383 : NS_IMETHODIMP nsSelectionController::PhysicalMove(int16_t direction, int16_t amount, bool extend)
384 : {
385 : return NS_ERROR_NOT_IMPLEMENTED;
386 : }
387 :
388 : /* [noscript] void characterExtendForDelete (); */
389 : NS_IMETHODIMP nsSelectionController::CharacterExtendForDelete()
390 : {
391 : return NS_ERROR_NOT_IMPLEMENTED;
392 : }
393 :
394 : /* [noscript] void characterExtendForBackspace (); */
395 : NS_IMETHODIMP nsSelectionController::CharacterExtendForBackspace()
396 : {
397 : return NS_ERROR_NOT_IMPLEMENTED;
398 : }
399 :
400 : /* void wordMove (in boolean forward, in boolean extend); */
401 : NS_IMETHODIMP nsSelectionController::WordMove(bool forward, bool extend)
402 : {
403 : return NS_ERROR_NOT_IMPLEMENTED;
404 : }
405 :
406 : /* [noscript] void wordExtendForDelete (in boolean forward); */
407 : NS_IMETHODIMP nsSelectionController::WordExtendForDelete(bool forward)
408 : {
409 : return NS_ERROR_NOT_IMPLEMENTED;
410 : }
411 :
412 : /* void lineMove (in boolean forward, in boolean extend); */
413 : NS_IMETHODIMP nsSelectionController::LineMove(bool forward, bool extend)
414 : {
415 : return NS_ERROR_NOT_IMPLEMENTED;
416 : }
417 :
418 : /* void intraLineMove (in boolean forward, in boolean extend); */
419 : NS_IMETHODIMP nsSelectionController::IntraLineMove(bool forward, bool extend)
420 : {
421 : return NS_ERROR_NOT_IMPLEMENTED;
422 : }
423 :
424 : /* void pageMove (in boolean forward, in boolean extend); */
425 : NS_IMETHODIMP nsSelectionController::PageMove(bool forward, bool extend)
426 : {
427 : return NS_ERROR_NOT_IMPLEMENTED;
428 : }
429 :
430 : /* void completeScroll (in boolean forward); */
431 : NS_IMETHODIMP nsSelectionController::CompleteScroll(bool forward)
432 : {
433 : return NS_ERROR_NOT_IMPLEMENTED;
434 : }
435 :
436 : /* void completeMove (in boolean forward, in boolean extend); */
437 : NS_IMETHODIMP nsSelectionController::CompleteMove(bool forward, bool extend)
438 : {
439 : return NS_ERROR_NOT_IMPLEMENTED;
440 : }
441 :
442 : /* void scrollPage (in boolean forward); */
443 : NS_IMETHODIMP nsSelectionController::ScrollPage(bool forward)
444 : {
445 : return NS_ERROR_NOT_IMPLEMENTED;
446 : }
447 :
448 : /* void scrollLine (in boolean forward); */
449 : NS_IMETHODIMP nsSelectionController::ScrollLine(bool forward)
450 : {
451 : return NS_ERROR_NOT_IMPLEMENTED;
452 : }
453 :
454 : /* void scrollCharacter (in boolean right); */
455 : NS_IMETHODIMP nsSelectionController::ScrollCharacter(bool right)
456 : {
457 : return NS_ERROR_NOT_IMPLEMENTED;
458 : }
459 :
460 : /* void selectAll (); */
461 : NS_IMETHODIMP nsSelectionController::SelectAll()
462 : {
463 : return NS_ERROR_NOT_IMPLEMENTED;
464 : }
465 :
466 : /* boolean checkVisibility (in nsIDOMNode node, in short startOffset, in short endOffset); */
467 : NS_IMETHODIMP nsSelectionController::CheckVisibility(nsIDOMNode *node, int16_t startOffset, int16_t endOffset, bool *_retval)
468 : {
469 : return NS_ERROR_NOT_IMPLEMENTED;
470 : }
471 :
472 : /* [noscript,nostdcall] boolean checkVisibilityContent (in nsIContent node, in short startOffset, in short endOffset); */
473 : nsresult nsSelectionController::CheckVisibilityContent(nsIContent *node, int16_t startOffset, int16_t endOffset, bool *_retval)
474 : {
475 : return NS_ERROR_NOT_IMPLEMENTED;
476 : }
477 :
478 : /* End of implementation class template. */
479 : #endif
480 :
481 : #define NS_ISELECTIONCONTROLLER_CID \
482 : { 0x513b9460, 0xd56a, 0x4c4e, \
483 : { 0xb6, 0xf9, 0x0b, 0x8a, 0xe4, 0x37, 0x2a, 0x3b }}
484 : namespace mozilla {
485 : typedef short RawSelectionType;
486 : enum class SelectionType : RawSelectionType
487 : {
488 : eInvalid = -1,
489 : eNone = nsISelectionController::SELECTION_NONE,
490 : eNormal = nsISelectionController::SELECTION_NORMAL,
491 : eSpellCheck = nsISelectionController::SELECTION_SPELLCHECK,
492 : eIMERawClause = nsISelectionController::SELECTION_IME_RAWINPUT,
493 : eIMESelectedRawClause = nsISelectionController::SELECTION_IME_SELECTEDRAWTEXT,
494 : eIMEConvertedClause = nsISelectionController::SELECTION_IME_CONVERTEDTEXT,
495 : eIMESelectedClause =
496 : nsISelectionController::SELECTION_IME_SELECTEDCONVERTEDTEXT,
497 : eAccessibility = nsISelectionController::SELECTION_ACCESSIBILITY,
498 : eFind = nsISelectionController::SELECTION_FIND,
499 : eURLSecondary = nsISelectionController::SELECTION_URLSECONDARY,
500 : eURLStrikeout = nsISelectionController::SELECTION_URLSTRIKEOUT,
501 : };
502 : // Using anonymous enum to define constants because these constants may be
503 : // used at defining fixed size array in some header files (e.g.,
504 : // nsFrameSelection.h). So, the values needs to be defined here, but we cannot
505 : // use static/const even with extern since it causes failing to link or
506 : // initializes them after such headers.
507 : enum : size_t
508 : {
509 : // kSelectionTypeCount is number of SelectionType.
510 : kSelectionTypeCount = nsISelectionController::NUM_SELECTIONTYPES,
511 : // kPresentSelectionTypeCount is number of SelectionType except "none".
512 : kPresentSelectionTypeCount = kSelectionTypeCount - 1
513 : };
514 : const char* ToChar(SelectionType aSelectionType);
515 : SelectionType ToSelectionType(RawSelectionType aRawSelectionType);
516 : RawSelectionType ToRawSelectionType(SelectionType aSelectionType);
517 : bool operator &(SelectionType aSelectionType,
518 : RawSelectionType aRawSelectionTypes);
519 : } // namespace mozilla
520 :
521 : #endif /* __gen_nsISelectionController_h__ */
|