Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsISelectionPrivate.idl
3 : */
4 :
5 : #ifndef __gen_nsISelectionPrivate_h__
6 : #define __gen_nsISelectionPrivate_h__
7 :
8 :
9 : #ifndef __gen_nsISelection_h__
10 : #include "nsISelection.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 : class nsRange; /* forward declaration */
18 :
19 : class nsIDOMNode; /* forward declaration */
20 :
21 : class nsISelectionListener; /* forward declaration */
22 :
23 : class nsIContent; /* forward declaration */
24 :
25 : class nsINode; /* forward declaration */
26 :
27 : class nsIFrame;
28 : struct nsPoint;
29 : struct ScrollAxis;
30 : #include "nsDirection.h"
31 : #include "nsIPresShell.h" // TODO: Remove this include
32 : #include "nsTArrayForwardDeclare.h"
33 : #include "mozilla/EventForwards.h"
34 :
35 : /* starting interface: nsISelectionPrivate */
36 : #define NS_ISELECTIONPRIVATE_IID_STR "0c9f4f74-ee7e-4fe9-be6b-0ba856368178"
37 :
38 : #define NS_ISELECTIONPRIVATE_IID \
39 : {0x0c9f4f74, 0xee7e, 0x4fe9, \
40 : { 0xbe, 0x6b, 0x0b, 0xa8, 0x56, 0x36, 0x81, 0x78 }}
41 :
42 320 : class NS_NO_VTABLE nsISelectionPrivate : public nsISelection {
43 : public:
44 :
45 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISELECTIONPRIVATE_IID)
46 :
47 : enum {
48 : ENDOFPRECEDINGLINE = 0,
49 : STARTOFNEXTLINE = 1
50 : };
51 :
52 : /* attribute boolean interlinePosition; */
53 : NS_IMETHOD GetInterlinePosition(bool *aInterlinePosition) = 0;
54 : NS_IMETHOD SetInterlinePosition(bool aInterlinePosition) = 0;
55 :
56 : /* [noscript] attribute nsIContent ancestorLimiter; */
57 : NS_IMETHOD GetAncestorLimiter(nsIContent * *aAncestorLimiter) = 0;
58 : NS_IMETHOD SetAncestorLimiter(nsIContent *aAncestorLimiter) = 0;
59 :
60 : /* [noscript] void startBatchChanges (); */
61 : NS_IMETHOD StartBatchChanges(void) = 0;
62 :
63 : /* [noscript] void endBatchChanges (); */
64 : NS_IMETHOD EndBatchChanges(void) = 0;
65 :
66 : /* DOMString toStringWithFormat (in string formatType, in unsigned long flags, in int32_t wrapColumn); */
67 : NS_IMETHOD ToStringWithFormat(const char * formatType, uint32_t flags, int32_t wrapColumn, nsAString & _retval) = 0;
68 :
69 : /* void addSelectionListener (in nsISelectionListener newListener); */
70 : NS_IMETHOD AddSelectionListener(nsISelectionListener *newListener) = 0;
71 :
72 : /* void removeSelectionListener (in nsISelectionListener listenerToRemove); */
73 : NS_IMETHOD RemoveSelectionListener(nsISelectionListener *listenerToRemove) = 0;
74 :
75 : enum {
76 : TABLESELECTION_NONE = 0,
77 : TABLESELECTION_CELL = 1,
78 : TABLESELECTION_ROW = 2,
79 : TABLESELECTION_COLUMN = 3,
80 : TABLESELECTION_TABLE = 4,
81 : TABLESELECTION_ALLCELLS = 5
82 : };
83 :
84 : /* [noscript] long getTableSelectionType (in nsIDOMRange range); */
85 : NS_IMETHOD GetTableSelectionType(nsIDOMRange *range, int32_t *_retval) = 0;
86 :
87 : /* [noscript] attribute boolean canCacheFrameOffset; */
88 : NS_IMETHOD GetCanCacheFrameOffset(bool *aCanCacheFrameOffset) = 0;
89 : NS_IMETHOD SetCanCacheFrameOffset(bool aCanCacheFrameOffset) = 0;
90 :
91 : /* [noscript] void getCachedFrameOffset (in nsIFrame aFrame, in int32_t inOffset, in nsPointRef aPoint); */
92 : NS_IMETHOD GetCachedFrameOffset(nsIFrame *aFrame, int32_t inOffset, nsPoint & aPoint) = 0;
93 :
94 : /* [noscript] void setTextRangeStyle (in nsIDOMRange range, in constTextRangeStyleRef textRangeStyle); */
95 : NS_IMETHOD SetTextRangeStyle(nsIDOMRange *range, const mozilla::TextRangeStyle & textRangeStyle) = 0;
96 :
97 : /* [noscript,notxpcom] nsDirection getSelectionDirection (); */
98 : NS_IMETHOD_(nsDirection) GetSelectionDirection(void) = 0;
99 :
100 : /* [noscript,notxpcom] void setSelectionDirection (in nsDirection aDirection); */
101 : NS_IMETHOD_(void) SetSelectionDirection(nsDirection aDirection) = 0;
102 :
103 : /* readonly attribute short type; */
104 : NS_IMETHOD GetType(int16_t *aType) = 0;
105 :
106 : /* void GetRangesForInterval (in nsIDOMNode beginNode, in int32_t beginOffset, in nsIDOMNode endNode, in int32_t endOffset, in boolean allowAdjacent, out uint32_t resultCount, [array, size_is (resultCount), retval] out nsIDOMRange results); */
107 : NS_IMETHOD GetRangesForInterval(nsIDOMNode *beginNode, int32_t beginOffset, nsIDOMNode *endNode, int32_t endOffset, bool allowAdjacent, uint32_t *resultCount, nsIDOMRange * **results) = 0;
108 :
109 : /* [noscript] void GetRangesForIntervalArray (in nsINode beginNode, in int32_t beginOffset, in nsINode endNode, in int32_t endOffset, in boolean allowAdjacent, in RangeArray results); */
110 : NS_IMETHOD GetRangesForIntervalArray(nsINode *beginNode, int32_t beginOffset, nsINode *endNode, int32_t endOffset, bool allowAdjacent, nsTArray<nsRange*> *results) = 0;
111 :
112 : /* void scrollIntoView (in short aRegion, in boolean aIsSynchronous, in int16_t aVPercent, in int16_t aHPercent); */
113 : NS_IMETHOD ScrollIntoView(int16_t aRegion, bool aIsSynchronous, int16_t aVPercent, int16_t aHPercent) = 0;
114 :
115 : /* [noscript] void scrollIntoViewInternal (in short aRegion, in boolean aIsSynchronous, in ScrollAxis aVertical, in ScrollAxis aHorizontal); */
116 : NS_IMETHOD ScrollIntoViewInternal(int16_t aRegion, bool aIsSynchronous, nsIPresShell::ScrollAxis aVertical, nsIPresShell::ScrollAxis aHorizontal) = 0;
117 :
118 : /* [noscript] void selectionLanguageChange (in boolean langRTL); */
119 : NS_IMETHOD SelectionLanguageChange(bool langRTL) = 0;
120 :
121 : /* void setColors (in DOMString aForegroundColor, in DOMString aBackgroundColor, in DOMString aAltForegroundColor, in DOMString aAltBackgroundColor); */
122 : NS_IMETHOD SetColors(const nsAString & aForegroundColor, const nsAString & aBackgroundColor, const nsAString & aAltForegroundColor, const nsAString & aAltBackgroundColor) = 0;
123 :
124 : /* void resetColors (); */
125 : NS_IMETHOD ResetColors(void) = 0;
126 :
127 : };
128 :
129 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISelectionPrivate, NS_ISELECTIONPRIVATE_IID)
130 :
131 : /* Use this macro when declaring classes that implement this interface. */
132 : #define NS_DECL_NSISELECTIONPRIVATE \
133 : NS_IMETHOD GetInterlinePosition(bool *aInterlinePosition) override; \
134 : NS_IMETHOD SetInterlinePosition(bool aInterlinePosition) override; \
135 : NS_IMETHOD GetAncestorLimiter(nsIContent * *aAncestorLimiter) override; \
136 : NS_IMETHOD SetAncestorLimiter(nsIContent *aAncestorLimiter) override; \
137 : NS_IMETHOD StartBatchChanges(void) override; \
138 : NS_IMETHOD EndBatchChanges(void) override; \
139 : NS_IMETHOD ToStringWithFormat(const char * formatType, uint32_t flags, int32_t wrapColumn, nsAString & _retval) override; \
140 : NS_IMETHOD AddSelectionListener(nsISelectionListener *newListener) override; \
141 : NS_IMETHOD RemoveSelectionListener(nsISelectionListener *listenerToRemove) override; \
142 : NS_IMETHOD GetTableSelectionType(nsIDOMRange *range, int32_t *_retval) override; \
143 : NS_IMETHOD GetCanCacheFrameOffset(bool *aCanCacheFrameOffset) override; \
144 : NS_IMETHOD SetCanCacheFrameOffset(bool aCanCacheFrameOffset) override; \
145 : NS_IMETHOD GetCachedFrameOffset(nsIFrame *aFrame, int32_t inOffset, nsPoint & aPoint) override; \
146 : NS_IMETHOD SetTextRangeStyle(nsIDOMRange *range, const mozilla::TextRangeStyle & textRangeStyle) override; \
147 : NS_IMETHOD_(nsDirection) GetSelectionDirection(void) override; \
148 : NS_IMETHOD_(void) SetSelectionDirection(nsDirection aDirection) override; \
149 : NS_IMETHOD GetType(int16_t *aType) override; \
150 : NS_IMETHOD GetRangesForInterval(nsIDOMNode *beginNode, int32_t beginOffset, nsIDOMNode *endNode, int32_t endOffset, bool allowAdjacent, uint32_t *resultCount, nsIDOMRange * **results) override; \
151 : NS_IMETHOD GetRangesForIntervalArray(nsINode *beginNode, int32_t beginOffset, nsINode *endNode, int32_t endOffset, bool allowAdjacent, nsTArray<nsRange*> *results) override; \
152 : NS_IMETHOD ScrollIntoView(int16_t aRegion, bool aIsSynchronous, int16_t aVPercent, int16_t aHPercent) override; \
153 : NS_IMETHOD ScrollIntoViewInternal(int16_t aRegion, bool aIsSynchronous, nsIPresShell::ScrollAxis aVertical, nsIPresShell::ScrollAxis aHorizontal) override; \
154 : NS_IMETHOD SelectionLanguageChange(bool langRTL) override; \
155 : NS_IMETHOD SetColors(const nsAString & aForegroundColor, const nsAString & aBackgroundColor, const nsAString & aAltForegroundColor, const nsAString & aAltBackgroundColor) override; \
156 : NS_IMETHOD ResetColors(void) override;
157 :
158 : /* Use this macro when declaring the members of this interface when the
159 : class doesn't implement the interface. This is useful for forwarding. */
160 : #define NS_DECL_NON_VIRTUAL_NSISELECTIONPRIVATE \
161 : nsresult GetInterlinePosition(bool *aInterlinePosition); \
162 : nsresult SetInterlinePosition(bool aInterlinePosition); \
163 : nsresult GetAncestorLimiter(nsIContent * *aAncestorLimiter); \
164 : nsresult SetAncestorLimiter(nsIContent *aAncestorLimiter); \
165 : nsresult StartBatchChanges(void); \
166 : nsresult EndBatchChanges(void); \
167 : nsresult ToStringWithFormat(const char * formatType, uint32_t flags, int32_t wrapColumn, nsAString & _retval); \
168 : nsresult AddSelectionListener(nsISelectionListener *newListener); \
169 : nsresult RemoveSelectionListener(nsISelectionListener *listenerToRemove); \
170 : nsresult GetTableSelectionType(nsIDOMRange *range, int32_t *_retval); \
171 : nsresult GetCanCacheFrameOffset(bool *aCanCacheFrameOffset); \
172 : nsresult SetCanCacheFrameOffset(bool aCanCacheFrameOffset); \
173 : nsresult GetCachedFrameOffset(nsIFrame *aFrame, int32_t inOffset, nsPoint & aPoint); \
174 : nsresult SetTextRangeStyle(nsIDOMRange *range, const mozilla::TextRangeStyle & textRangeStyle); \
175 : nsresult_(nsDirection) GetSelectionDirection(void); \
176 : nsresult_(void) SetSelectionDirection(nsDirection aDirection); \
177 : nsresult GetType(int16_t *aType); \
178 : nsresult GetRangesForInterval(nsIDOMNode *beginNode, int32_t beginOffset, nsIDOMNode *endNode, int32_t endOffset, bool allowAdjacent, uint32_t *resultCount, nsIDOMRange * **results); \
179 : nsresult GetRangesForIntervalArray(nsINode *beginNode, int32_t beginOffset, nsINode *endNode, int32_t endOffset, bool allowAdjacent, nsTArray<nsRange*> *results); \
180 : nsresult ScrollIntoView(int16_t aRegion, bool aIsSynchronous, int16_t aVPercent, int16_t aHPercent); \
181 : nsresult ScrollIntoViewInternal(int16_t aRegion, bool aIsSynchronous, nsIPresShell::ScrollAxis aVertical, nsIPresShell::ScrollAxis aHorizontal); \
182 : nsresult SelectionLanguageChange(bool langRTL); \
183 : nsresult SetColors(const nsAString & aForegroundColor, const nsAString & aBackgroundColor, const nsAString & aAltForegroundColor, const nsAString & aAltBackgroundColor); \
184 : nsresult ResetColors(void);
185 :
186 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
187 : #define NS_FORWARD_NSISELECTIONPRIVATE(_to) \
188 : NS_IMETHOD GetInterlinePosition(bool *aInterlinePosition) override { return _to GetInterlinePosition(aInterlinePosition); } \
189 : NS_IMETHOD SetInterlinePosition(bool aInterlinePosition) override { return _to SetInterlinePosition(aInterlinePosition); } \
190 : NS_IMETHOD GetAncestorLimiter(nsIContent * *aAncestorLimiter) override { return _to GetAncestorLimiter(aAncestorLimiter); } \
191 : NS_IMETHOD SetAncestorLimiter(nsIContent *aAncestorLimiter) override { return _to SetAncestorLimiter(aAncestorLimiter); } \
192 : NS_IMETHOD StartBatchChanges(void) override { return _to StartBatchChanges(); } \
193 : NS_IMETHOD EndBatchChanges(void) override { return _to EndBatchChanges(); } \
194 : NS_IMETHOD ToStringWithFormat(const char * formatType, uint32_t flags, int32_t wrapColumn, nsAString & _retval) override { return _to ToStringWithFormat(formatType, flags, wrapColumn, _retval); } \
195 : NS_IMETHOD AddSelectionListener(nsISelectionListener *newListener) override { return _to AddSelectionListener(newListener); } \
196 : NS_IMETHOD RemoveSelectionListener(nsISelectionListener *listenerToRemove) override { return _to RemoveSelectionListener(listenerToRemove); } \
197 : NS_IMETHOD GetTableSelectionType(nsIDOMRange *range, int32_t *_retval) override { return _to GetTableSelectionType(range, _retval); } \
198 : NS_IMETHOD GetCanCacheFrameOffset(bool *aCanCacheFrameOffset) override { return _to GetCanCacheFrameOffset(aCanCacheFrameOffset); } \
199 : NS_IMETHOD SetCanCacheFrameOffset(bool aCanCacheFrameOffset) override { return _to SetCanCacheFrameOffset(aCanCacheFrameOffset); } \
200 : NS_IMETHOD GetCachedFrameOffset(nsIFrame *aFrame, int32_t inOffset, nsPoint & aPoint) override { return _to GetCachedFrameOffset(aFrame, inOffset, aPoint); } \
201 : NS_IMETHOD SetTextRangeStyle(nsIDOMRange *range, const mozilla::TextRangeStyle & textRangeStyle) override { return _to SetTextRangeStyle(range, textRangeStyle); } \
202 : NS_IMETHOD_(nsDirection) GetSelectionDirection(void) override { return _to GetSelectionDirection(); } \
203 : NS_IMETHOD_(void) SetSelectionDirection(nsDirection aDirection) override { return _to SetSelectionDirection(aDirection); } \
204 : NS_IMETHOD GetType(int16_t *aType) override { return _to GetType(aType); } \
205 : NS_IMETHOD GetRangesForInterval(nsIDOMNode *beginNode, int32_t beginOffset, nsIDOMNode *endNode, int32_t endOffset, bool allowAdjacent, uint32_t *resultCount, nsIDOMRange * **results) override { return _to GetRangesForInterval(beginNode, beginOffset, endNode, endOffset, allowAdjacent, resultCount, results); } \
206 : NS_IMETHOD GetRangesForIntervalArray(nsINode *beginNode, int32_t beginOffset, nsINode *endNode, int32_t endOffset, bool allowAdjacent, nsTArray<nsRange*> *results) override { return _to GetRangesForIntervalArray(beginNode, beginOffset, endNode, endOffset, allowAdjacent, results); } \
207 : NS_IMETHOD ScrollIntoView(int16_t aRegion, bool aIsSynchronous, int16_t aVPercent, int16_t aHPercent) override { return _to ScrollIntoView(aRegion, aIsSynchronous, aVPercent, aHPercent); } \
208 : NS_IMETHOD ScrollIntoViewInternal(int16_t aRegion, bool aIsSynchronous, nsIPresShell::ScrollAxis aVertical, nsIPresShell::ScrollAxis aHorizontal) override { return _to ScrollIntoViewInternal(aRegion, aIsSynchronous, aVertical, aHorizontal); } \
209 : NS_IMETHOD SelectionLanguageChange(bool langRTL) override { return _to SelectionLanguageChange(langRTL); } \
210 : NS_IMETHOD SetColors(const nsAString & aForegroundColor, const nsAString & aBackgroundColor, const nsAString & aAltForegroundColor, const nsAString & aAltBackgroundColor) override { return _to SetColors(aForegroundColor, aBackgroundColor, aAltForegroundColor, aAltBackgroundColor); } \
211 : NS_IMETHOD ResetColors(void) override { return _to ResetColors(); }
212 :
213 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
214 : #define NS_FORWARD_SAFE_NSISELECTIONPRIVATE(_to) \
215 : NS_IMETHOD GetInterlinePosition(bool *aInterlinePosition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInterlinePosition(aInterlinePosition); } \
216 : NS_IMETHOD SetInterlinePosition(bool aInterlinePosition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInterlinePosition(aInterlinePosition); } \
217 : NS_IMETHOD GetAncestorLimiter(nsIContent * *aAncestorLimiter) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAncestorLimiter(aAncestorLimiter); } \
218 : NS_IMETHOD SetAncestorLimiter(nsIContent *aAncestorLimiter) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAncestorLimiter(aAncestorLimiter); } \
219 : NS_IMETHOD StartBatchChanges(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartBatchChanges(); } \
220 : NS_IMETHOD EndBatchChanges(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EndBatchChanges(); } \
221 : NS_IMETHOD ToStringWithFormat(const char * formatType, uint32_t flags, int32_t wrapColumn, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ToStringWithFormat(formatType, flags, wrapColumn, _retval); } \
222 : NS_IMETHOD AddSelectionListener(nsISelectionListener *newListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSelectionListener(newListener); } \
223 : NS_IMETHOD RemoveSelectionListener(nsISelectionListener *listenerToRemove) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveSelectionListener(listenerToRemove); } \
224 : NS_IMETHOD GetTableSelectionType(nsIDOMRange *range, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTableSelectionType(range, _retval); } \
225 : NS_IMETHOD GetCanCacheFrameOffset(bool *aCanCacheFrameOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanCacheFrameOffset(aCanCacheFrameOffset); } \
226 : NS_IMETHOD SetCanCacheFrameOffset(bool aCanCacheFrameOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCanCacheFrameOffset(aCanCacheFrameOffset); } \
227 : NS_IMETHOD GetCachedFrameOffset(nsIFrame *aFrame, int32_t inOffset, nsPoint & aPoint) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCachedFrameOffset(aFrame, inOffset, aPoint); } \
228 : NS_IMETHOD SetTextRangeStyle(nsIDOMRange *range, const mozilla::TextRangeStyle & textRangeStyle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextRangeStyle(range, textRangeStyle); } \
229 : NS_IMETHOD_(nsDirection) GetSelectionDirection(void) override; \
230 : NS_IMETHOD_(void) SetSelectionDirection(nsDirection aDirection) override; \
231 : NS_IMETHOD GetType(int16_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
232 : NS_IMETHOD GetRangesForInterval(nsIDOMNode *beginNode, int32_t beginOffset, nsIDOMNode *endNode, int32_t endOffset, bool allowAdjacent, uint32_t *resultCount, nsIDOMRange * **results) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRangesForInterval(beginNode, beginOffset, endNode, endOffset, allowAdjacent, resultCount, results); } \
233 : NS_IMETHOD GetRangesForIntervalArray(nsINode *beginNode, int32_t beginOffset, nsINode *endNode, int32_t endOffset, bool allowAdjacent, nsTArray<nsRange*> *results) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRangesForIntervalArray(beginNode, beginOffset, endNode, endOffset, allowAdjacent, results); } \
234 : NS_IMETHOD ScrollIntoView(int16_t aRegion, bool aIsSynchronous, int16_t aVPercent, int16_t aHPercent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollIntoView(aRegion, aIsSynchronous, aVPercent, aHPercent); } \
235 : NS_IMETHOD ScrollIntoViewInternal(int16_t aRegion, bool aIsSynchronous, nsIPresShell::ScrollAxis aVertical, nsIPresShell::ScrollAxis aHorizontal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollIntoViewInternal(aRegion, aIsSynchronous, aVertical, aHorizontal); } \
236 : NS_IMETHOD SelectionLanguageChange(bool langRTL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectionLanguageChange(langRTL); } \
237 : NS_IMETHOD SetColors(const nsAString & aForegroundColor, const nsAString & aBackgroundColor, const nsAString & aAltForegroundColor, const nsAString & aAltBackgroundColor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetColors(aForegroundColor, aBackgroundColor, aAltForegroundColor, aAltBackgroundColor); } \
238 : NS_IMETHOD ResetColors(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetColors(); }
239 :
240 : #if 0
241 : /* Use the code below as a template for the implementation class for this interface. */
242 :
243 : /* Header file */
244 : class nsSelectionPrivate : public nsISelectionPrivate
245 : {
246 : public:
247 : NS_DECL_ISUPPORTS
248 : NS_DECL_NSISELECTIONPRIVATE
249 :
250 : nsSelectionPrivate();
251 :
252 : private:
253 : ~nsSelectionPrivate();
254 :
255 : protected:
256 : /* additional members */
257 : };
258 :
259 : /* Implementation file */
260 : NS_IMPL_ISUPPORTS(nsSelectionPrivate, nsISelectionPrivate)
261 :
262 : nsSelectionPrivate::nsSelectionPrivate()
263 : {
264 : /* member initializers and constructor code */
265 : }
266 :
267 : nsSelectionPrivate::~nsSelectionPrivate()
268 : {
269 : /* destructor code */
270 : }
271 :
272 : /* attribute boolean interlinePosition; */
273 : NS_IMETHODIMP nsSelectionPrivate::GetInterlinePosition(bool *aInterlinePosition)
274 : {
275 : return NS_ERROR_NOT_IMPLEMENTED;
276 : }
277 : NS_IMETHODIMP nsSelectionPrivate::SetInterlinePosition(bool aInterlinePosition)
278 : {
279 : return NS_ERROR_NOT_IMPLEMENTED;
280 : }
281 :
282 : /* [noscript] attribute nsIContent ancestorLimiter; */
283 : NS_IMETHODIMP nsSelectionPrivate::GetAncestorLimiter(nsIContent * *aAncestorLimiter)
284 : {
285 : return NS_ERROR_NOT_IMPLEMENTED;
286 : }
287 : NS_IMETHODIMP nsSelectionPrivate::SetAncestorLimiter(nsIContent *aAncestorLimiter)
288 : {
289 : return NS_ERROR_NOT_IMPLEMENTED;
290 : }
291 :
292 : /* [noscript] void startBatchChanges (); */
293 : NS_IMETHODIMP nsSelectionPrivate::StartBatchChanges()
294 : {
295 : return NS_ERROR_NOT_IMPLEMENTED;
296 : }
297 :
298 : /* [noscript] void endBatchChanges (); */
299 : NS_IMETHODIMP nsSelectionPrivate::EndBatchChanges()
300 : {
301 : return NS_ERROR_NOT_IMPLEMENTED;
302 : }
303 :
304 : /* DOMString toStringWithFormat (in string formatType, in unsigned long flags, in int32_t wrapColumn); */
305 : NS_IMETHODIMP nsSelectionPrivate::ToStringWithFormat(const char * formatType, uint32_t flags, int32_t wrapColumn, nsAString & _retval)
306 : {
307 : return NS_ERROR_NOT_IMPLEMENTED;
308 : }
309 :
310 : /* void addSelectionListener (in nsISelectionListener newListener); */
311 : NS_IMETHODIMP nsSelectionPrivate::AddSelectionListener(nsISelectionListener *newListener)
312 : {
313 : return NS_ERROR_NOT_IMPLEMENTED;
314 : }
315 :
316 : /* void removeSelectionListener (in nsISelectionListener listenerToRemove); */
317 : NS_IMETHODIMP nsSelectionPrivate::RemoveSelectionListener(nsISelectionListener *listenerToRemove)
318 : {
319 : return NS_ERROR_NOT_IMPLEMENTED;
320 : }
321 :
322 : /* [noscript] long getTableSelectionType (in nsIDOMRange range); */
323 : NS_IMETHODIMP nsSelectionPrivate::GetTableSelectionType(nsIDOMRange *range, int32_t *_retval)
324 : {
325 : return NS_ERROR_NOT_IMPLEMENTED;
326 : }
327 :
328 : /* [noscript] attribute boolean canCacheFrameOffset; */
329 : NS_IMETHODIMP nsSelectionPrivate::GetCanCacheFrameOffset(bool *aCanCacheFrameOffset)
330 : {
331 : return NS_ERROR_NOT_IMPLEMENTED;
332 : }
333 : NS_IMETHODIMP nsSelectionPrivate::SetCanCacheFrameOffset(bool aCanCacheFrameOffset)
334 : {
335 : return NS_ERROR_NOT_IMPLEMENTED;
336 : }
337 :
338 : /* [noscript] void getCachedFrameOffset (in nsIFrame aFrame, in int32_t inOffset, in nsPointRef aPoint); */
339 : NS_IMETHODIMP nsSelectionPrivate::GetCachedFrameOffset(nsIFrame *aFrame, int32_t inOffset, nsPoint & aPoint)
340 : {
341 : return NS_ERROR_NOT_IMPLEMENTED;
342 : }
343 :
344 : /* [noscript] void setTextRangeStyle (in nsIDOMRange range, in constTextRangeStyleRef textRangeStyle); */
345 : NS_IMETHODIMP nsSelectionPrivate::SetTextRangeStyle(nsIDOMRange *range, const mozilla::TextRangeStyle & textRangeStyle)
346 : {
347 : return NS_ERROR_NOT_IMPLEMENTED;
348 : }
349 :
350 : /* [noscript,notxpcom] nsDirection getSelectionDirection (); */
351 : NS_IMETHODIMP_(nsDirection) nsSelectionPrivate::GetSelectionDirection()
352 : {
353 : return NS_ERROR_NOT_IMPLEMENTED;
354 : }
355 :
356 : /* [noscript,notxpcom] void setSelectionDirection (in nsDirection aDirection); */
357 : NS_IMETHODIMP_(void) nsSelectionPrivate::SetSelectionDirection(nsDirection aDirection)
358 : {
359 : return NS_ERROR_NOT_IMPLEMENTED;
360 : }
361 :
362 : /* readonly attribute short type; */
363 : NS_IMETHODIMP nsSelectionPrivate::GetType(int16_t *aType)
364 : {
365 : return NS_ERROR_NOT_IMPLEMENTED;
366 : }
367 :
368 : /* void GetRangesForInterval (in nsIDOMNode beginNode, in int32_t beginOffset, in nsIDOMNode endNode, in int32_t endOffset, in boolean allowAdjacent, out uint32_t resultCount, [array, size_is (resultCount), retval] out nsIDOMRange results); */
369 : NS_IMETHODIMP nsSelectionPrivate::GetRangesForInterval(nsIDOMNode *beginNode, int32_t beginOffset, nsIDOMNode *endNode, int32_t endOffset, bool allowAdjacent, uint32_t *resultCount, nsIDOMRange * **results)
370 : {
371 : return NS_ERROR_NOT_IMPLEMENTED;
372 : }
373 :
374 : /* [noscript] void GetRangesForIntervalArray (in nsINode beginNode, in int32_t beginOffset, in nsINode endNode, in int32_t endOffset, in boolean allowAdjacent, in RangeArray results); */
375 : NS_IMETHODIMP nsSelectionPrivate::GetRangesForIntervalArray(nsINode *beginNode, int32_t beginOffset, nsINode *endNode, int32_t endOffset, bool allowAdjacent, nsTArray<nsRange*> *results)
376 : {
377 : return NS_ERROR_NOT_IMPLEMENTED;
378 : }
379 :
380 : /* void scrollIntoView (in short aRegion, in boolean aIsSynchronous, in int16_t aVPercent, in int16_t aHPercent); */
381 : NS_IMETHODIMP nsSelectionPrivate::ScrollIntoView(int16_t aRegion, bool aIsSynchronous, int16_t aVPercent, int16_t aHPercent)
382 : {
383 : return NS_ERROR_NOT_IMPLEMENTED;
384 : }
385 :
386 : /* [noscript] void scrollIntoViewInternal (in short aRegion, in boolean aIsSynchronous, in ScrollAxis aVertical, in ScrollAxis aHorizontal); */
387 : NS_IMETHODIMP nsSelectionPrivate::ScrollIntoViewInternal(int16_t aRegion, bool aIsSynchronous, nsIPresShell::ScrollAxis aVertical, nsIPresShell::ScrollAxis aHorizontal)
388 : {
389 : return NS_ERROR_NOT_IMPLEMENTED;
390 : }
391 :
392 : /* [noscript] void selectionLanguageChange (in boolean langRTL); */
393 : NS_IMETHODIMP nsSelectionPrivate::SelectionLanguageChange(bool langRTL)
394 : {
395 : return NS_ERROR_NOT_IMPLEMENTED;
396 : }
397 :
398 : /* void setColors (in DOMString aForegroundColor, in DOMString aBackgroundColor, in DOMString aAltForegroundColor, in DOMString aAltBackgroundColor); */
399 : NS_IMETHODIMP nsSelectionPrivate::SetColors(const nsAString & aForegroundColor, const nsAString & aBackgroundColor, const nsAString & aAltForegroundColor, const nsAString & aAltBackgroundColor)
400 : {
401 : return NS_ERROR_NOT_IMPLEMENTED;
402 : }
403 :
404 : /* void resetColors (); */
405 : NS_IMETHODIMP nsSelectionPrivate::ResetColors()
406 : {
407 : return NS_ERROR_NOT_IMPLEMENTED;
408 : }
409 :
410 : /* End of implementation class template. */
411 : #endif
412 :
413 :
414 : #endif /* __gen_nsISelectionPrivate_h__ */
|