/usr/include/thunderbird/nsIAccessibleText.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAccessibleText.idl
*/
#ifndef __gen_nsIAccessibleText_h__
#define __gen_nsIAccessibleText_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
typedef int32_t AccessibleTextBoundary;
class nsIAccessible; /* forward declaration */
class nsIArray; /* forward declaration */
class nsIPersistentProperties; /* forward declaration */
class nsIAccessibleTextRange; /* forward declaration */
/* starting interface: nsIAccessibleText */
#define NS_IACCESSIBLETEXT_IID_STR "93ad2ca1-f12b-4ab9-a793-95d9fa9d1774"
#define NS_IACCESSIBLETEXT_IID \
{0x93ad2ca1, 0xf12b, 0x4ab9, \
{ 0xa7, 0x93, 0x95, 0xd9, 0xfa, 0x9d, 0x17, 0x74 }}
class NS_NO_VTABLE nsIAccessibleText : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLETEXT_IID)
enum {
TEXT_OFFSET_END_OF_TEXT = -1,
TEXT_OFFSET_CARET = -2,
BOUNDARY_CHAR = 0,
BOUNDARY_WORD_START = 1,
BOUNDARY_WORD_END = 2,
BOUNDARY_SENTENCE_START = 3,
BOUNDARY_SENTENCE_END = 4,
BOUNDARY_LINE_START = 5,
BOUNDARY_LINE_END = 6
};
/* attribute long caretOffset; */
NS_IMETHOD GetCaretOffset(int32_t *aCaretOffset) = 0;
NS_IMETHOD SetCaretOffset(int32_t aCaretOffset) = 0;
/* readonly attribute long characterCount; */
NS_IMETHOD GetCharacterCount(int32_t *aCharacterCount) = 0;
/* readonly attribute long selectionCount; */
NS_IMETHOD GetSelectionCount(int32_t *aSelectionCount) = 0;
/* AString getText (in long startOffset, in long endOffset); */
NS_IMETHOD GetText(int32_t startOffset, int32_t endOffset, nsAString & _retval) = 0;
/* AString getTextAfterOffset (in long offset, in AccessibleTextBoundary boundaryType, out long startOffset, out long endOffset); */
NS_IMETHOD GetTextAfterOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval) = 0;
/* AString getTextAtOffset (in long offset, in AccessibleTextBoundary boundaryType, out long startOffset, out long endOffset); */
NS_IMETHOD GetTextAtOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval) = 0;
/* AString getTextBeforeOffset (in long offset, in AccessibleTextBoundary boundaryType, out long startOffset, out long endOffset); */
NS_IMETHOD GetTextBeforeOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval) = 0;
/* wchar getCharacterAtOffset (in long offset); */
NS_IMETHOD GetCharacterAtOffset(int32_t offset, char16_t *_retval) = 0;
/* nsIPersistentProperties getTextAttributes (in boolean includeDefAttrs, in long offset, out long rangeStartOffset, out long rangeEndOffset); */
NS_IMETHOD GetTextAttributes(bool includeDefAttrs, int32_t offset, int32_t *rangeStartOffset, int32_t *rangeEndOffset, nsIPersistentProperties * *_retval) = 0;
/* readonly attribute nsIPersistentProperties defaultTextAttributes; */
NS_IMETHOD GetDefaultTextAttributes(nsIPersistentProperties * *aDefaultTextAttributes) = 0;
/* void getCharacterExtents (in long offset, out long x, out long y, out long width, out long height, in unsigned long coordType); */
NS_IMETHOD GetCharacterExtents(int32_t offset, int32_t *x, int32_t *y, int32_t *width, int32_t *height, uint32_t coordType) = 0;
/* void getRangeExtents (in long startOffset, in long endOffset, out long x, out long y, out long width, out long height, in unsigned long coordType); */
NS_IMETHOD GetRangeExtents(int32_t startOffset, int32_t endOffset, int32_t *x, int32_t *y, int32_t *width, int32_t *height, uint32_t coordType) = 0;
/* long getOffsetAtPoint (in long x, in long y, in unsigned long coordType); */
NS_IMETHOD GetOffsetAtPoint(int32_t x, int32_t y, uint32_t coordType, int32_t *_retval) = 0;
/* void getSelectionBounds (in long selectionNum, out long startOffset, out long endOffset); */
NS_IMETHOD GetSelectionBounds(int32_t selectionNum, int32_t *startOffset, int32_t *endOffset) = 0;
/* void setSelectionBounds (in long selectionNum, in long startOffset, in long endOffset); */
NS_IMETHOD SetSelectionBounds(int32_t selectionNum, int32_t startOffset, int32_t endOffset) = 0;
/* void addSelection (in long startOffset, in long endOffset); */
NS_IMETHOD AddSelection(int32_t startOffset, int32_t endOffset) = 0;
/* void removeSelection (in long selectionNum); */
NS_IMETHOD RemoveSelection(int32_t selectionNum) = 0;
/* void scrollSubstringTo (in long startIndex, in long endIndex, in unsigned long scrollType); */
NS_IMETHOD ScrollSubstringTo(int32_t startIndex, int32_t endIndex, uint32_t scrollType) = 0;
/* void scrollSubstringToPoint (in long startIndex, in long endIndex, in unsigned long coordinateType, in long x, in long y); */
NS_IMETHOD ScrollSubstringToPoint(int32_t startIndex, int32_t endIndex, uint32_t coordinateType, int32_t x, int32_t y) = 0;
/* readonly attribute nsIAccessibleTextRange enclosingRange; */
NS_IMETHOD GetEnclosingRange(nsIAccessibleTextRange * *aEnclosingRange) = 0;
/* readonly attribute nsIArray selectionRanges; */
NS_IMETHOD GetSelectionRanges(nsIArray * *aSelectionRanges) = 0;
/* readonly attribute nsIArray visibleRanges; */
NS_IMETHOD GetVisibleRanges(nsIArray * *aVisibleRanges) = 0;
/* nsIAccessibleTextRange getRangeByChild (in nsIAccessible child); */
NS_IMETHOD GetRangeByChild(nsIAccessible *child, nsIAccessibleTextRange * *_retval) = 0;
/* nsIAccessibleTextRange getRangeAtPoint (in long x, in long y); */
NS_IMETHOD GetRangeAtPoint(int32_t x, int32_t y, nsIAccessibleTextRange * *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleText, NS_IACCESSIBLETEXT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACCESSIBLETEXT \
NS_IMETHOD GetCaretOffset(int32_t *aCaretOffset) override; \
NS_IMETHOD SetCaretOffset(int32_t aCaretOffset) override; \
NS_IMETHOD GetCharacterCount(int32_t *aCharacterCount) override; \
NS_IMETHOD GetSelectionCount(int32_t *aSelectionCount) override; \
NS_IMETHOD GetText(int32_t startOffset, int32_t endOffset, nsAString & _retval) override; \
NS_IMETHOD GetTextAfterOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval) override; \
NS_IMETHOD GetTextAtOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval) override; \
NS_IMETHOD GetTextBeforeOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval) override; \
NS_IMETHOD GetCharacterAtOffset(int32_t offset, char16_t *_retval) override; \
NS_IMETHOD GetTextAttributes(bool includeDefAttrs, int32_t offset, int32_t *rangeStartOffset, int32_t *rangeEndOffset, nsIPersistentProperties * *_retval) override; \
NS_IMETHOD GetDefaultTextAttributes(nsIPersistentProperties * *aDefaultTextAttributes) override; \
NS_IMETHOD GetCharacterExtents(int32_t offset, int32_t *x, int32_t *y, int32_t *width, int32_t *height, uint32_t coordType) override; \
NS_IMETHOD GetRangeExtents(int32_t startOffset, int32_t endOffset, int32_t *x, int32_t *y, int32_t *width, int32_t *height, uint32_t coordType) override; \
NS_IMETHOD GetOffsetAtPoint(int32_t x, int32_t y, uint32_t coordType, int32_t *_retval) override; \
NS_IMETHOD GetSelectionBounds(int32_t selectionNum, int32_t *startOffset, int32_t *endOffset) override; \
NS_IMETHOD SetSelectionBounds(int32_t selectionNum, int32_t startOffset, int32_t endOffset) override; \
NS_IMETHOD AddSelection(int32_t startOffset, int32_t endOffset) override; \
NS_IMETHOD RemoveSelection(int32_t selectionNum) override; \
NS_IMETHOD ScrollSubstringTo(int32_t startIndex, int32_t endIndex, uint32_t scrollType) override; \
NS_IMETHOD ScrollSubstringToPoint(int32_t startIndex, int32_t endIndex, uint32_t coordinateType, int32_t x, int32_t y) override; \
NS_IMETHOD GetEnclosingRange(nsIAccessibleTextRange * *aEnclosingRange) override; \
NS_IMETHOD GetSelectionRanges(nsIArray * *aSelectionRanges) override; \
NS_IMETHOD GetVisibleRanges(nsIArray * *aVisibleRanges) override; \
NS_IMETHOD GetRangeByChild(nsIAccessible *child, nsIAccessibleTextRange * *_retval) override; \
NS_IMETHOD GetRangeAtPoint(int32_t x, int32_t y, nsIAccessibleTextRange * *_retval) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIACCESSIBLETEXT \
NS_METHOD GetCaretOffset(int32_t *aCaretOffset); \
NS_METHOD SetCaretOffset(int32_t aCaretOffset); \
NS_METHOD GetCharacterCount(int32_t *aCharacterCount); \
NS_METHOD GetSelectionCount(int32_t *aSelectionCount); \
NS_METHOD GetText(int32_t startOffset, int32_t endOffset, nsAString & _retval); \
NS_METHOD GetTextAfterOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval); \
NS_METHOD GetTextAtOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval); \
NS_METHOD GetTextBeforeOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval); \
NS_METHOD GetCharacterAtOffset(int32_t offset, char16_t *_retval); \
NS_METHOD GetTextAttributes(bool includeDefAttrs, int32_t offset, int32_t *rangeStartOffset, int32_t *rangeEndOffset, nsIPersistentProperties * *_retval); \
NS_METHOD GetDefaultTextAttributes(nsIPersistentProperties * *aDefaultTextAttributes); \
NS_METHOD GetCharacterExtents(int32_t offset, int32_t *x, int32_t *y, int32_t *width, int32_t *height, uint32_t coordType); \
NS_METHOD GetRangeExtents(int32_t startOffset, int32_t endOffset, int32_t *x, int32_t *y, int32_t *width, int32_t *height, uint32_t coordType); \
NS_METHOD GetOffsetAtPoint(int32_t x, int32_t y, uint32_t coordType, int32_t *_retval); \
NS_METHOD GetSelectionBounds(int32_t selectionNum, int32_t *startOffset, int32_t *endOffset); \
NS_METHOD SetSelectionBounds(int32_t selectionNum, int32_t startOffset, int32_t endOffset); \
NS_METHOD AddSelection(int32_t startOffset, int32_t endOffset); \
NS_METHOD RemoveSelection(int32_t selectionNum); \
NS_METHOD ScrollSubstringTo(int32_t startIndex, int32_t endIndex, uint32_t scrollType); \
NS_METHOD ScrollSubstringToPoint(int32_t startIndex, int32_t endIndex, uint32_t coordinateType, int32_t x, int32_t y); \
NS_METHOD GetEnclosingRange(nsIAccessibleTextRange * *aEnclosingRange); \
NS_METHOD GetSelectionRanges(nsIArray * *aSelectionRanges); \
NS_METHOD GetVisibleRanges(nsIArray * *aVisibleRanges); \
NS_METHOD GetRangeByChild(nsIAccessible *child, nsIAccessibleTextRange * *_retval); \
NS_METHOD GetRangeAtPoint(int32_t x, int32_t y, nsIAccessibleTextRange * *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACCESSIBLETEXT(_to) \
NS_IMETHOD GetCaretOffset(int32_t *aCaretOffset) override { return _to GetCaretOffset(aCaretOffset); } \
NS_IMETHOD SetCaretOffset(int32_t aCaretOffset) override { return _to SetCaretOffset(aCaretOffset); } \
NS_IMETHOD GetCharacterCount(int32_t *aCharacterCount) override { return _to GetCharacterCount(aCharacterCount); } \
NS_IMETHOD GetSelectionCount(int32_t *aSelectionCount) override { return _to GetSelectionCount(aSelectionCount); } \
NS_IMETHOD GetText(int32_t startOffset, int32_t endOffset, nsAString & _retval) override { return _to GetText(startOffset, endOffset, _retval); } \
NS_IMETHOD GetTextAfterOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval) override { return _to GetTextAfterOffset(offset, boundaryType, startOffset, endOffset, _retval); } \
NS_IMETHOD GetTextAtOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval) override { return _to GetTextAtOffset(offset, boundaryType, startOffset, endOffset, _retval); } \
NS_IMETHOD GetTextBeforeOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval) override { return _to GetTextBeforeOffset(offset, boundaryType, startOffset, endOffset, _retval); } \
NS_IMETHOD GetCharacterAtOffset(int32_t offset, char16_t *_retval) override { return _to GetCharacterAtOffset(offset, _retval); } \
NS_IMETHOD GetTextAttributes(bool includeDefAttrs, int32_t offset, int32_t *rangeStartOffset, int32_t *rangeEndOffset, nsIPersistentProperties * *_retval) override { return _to GetTextAttributes(includeDefAttrs, offset, rangeStartOffset, rangeEndOffset, _retval); } \
NS_IMETHOD GetDefaultTextAttributes(nsIPersistentProperties * *aDefaultTextAttributes) override { return _to GetDefaultTextAttributes(aDefaultTextAttributes); } \
NS_IMETHOD GetCharacterExtents(int32_t offset, int32_t *x, int32_t *y, int32_t *width, int32_t *height, uint32_t coordType) override { return _to GetCharacterExtents(offset, x, y, width, height, coordType); } \
NS_IMETHOD GetRangeExtents(int32_t startOffset, int32_t endOffset, int32_t *x, int32_t *y, int32_t *width, int32_t *height, uint32_t coordType) override { return _to GetRangeExtents(startOffset, endOffset, x, y, width, height, coordType); } \
NS_IMETHOD GetOffsetAtPoint(int32_t x, int32_t y, uint32_t coordType, int32_t *_retval) override { return _to GetOffsetAtPoint(x, y, coordType, _retval); } \
NS_IMETHOD GetSelectionBounds(int32_t selectionNum, int32_t *startOffset, int32_t *endOffset) override { return _to GetSelectionBounds(selectionNum, startOffset, endOffset); } \
NS_IMETHOD SetSelectionBounds(int32_t selectionNum, int32_t startOffset, int32_t endOffset) override { return _to SetSelectionBounds(selectionNum, startOffset, endOffset); } \
NS_IMETHOD AddSelection(int32_t startOffset, int32_t endOffset) override { return _to AddSelection(startOffset, endOffset); } \
NS_IMETHOD RemoveSelection(int32_t selectionNum) override { return _to RemoveSelection(selectionNum); } \
NS_IMETHOD ScrollSubstringTo(int32_t startIndex, int32_t endIndex, uint32_t scrollType) override { return _to ScrollSubstringTo(startIndex, endIndex, scrollType); } \
NS_IMETHOD ScrollSubstringToPoint(int32_t startIndex, int32_t endIndex, uint32_t coordinateType, int32_t x, int32_t y) override { return _to ScrollSubstringToPoint(startIndex, endIndex, coordinateType, x, y); } \
NS_IMETHOD GetEnclosingRange(nsIAccessibleTextRange * *aEnclosingRange) override { return _to GetEnclosingRange(aEnclosingRange); } \
NS_IMETHOD GetSelectionRanges(nsIArray * *aSelectionRanges) override { return _to GetSelectionRanges(aSelectionRanges); } \
NS_IMETHOD GetVisibleRanges(nsIArray * *aVisibleRanges) override { return _to GetVisibleRanges(aVisibleRanges); } \
NS_IMETHOD GetRangeByChild(nsIAccessible *child, nsIAccessibleTextRange * *_retval) override { return _to GetRangeByChild(child, _retval); } \
NS_IMETHOD GetRangeAtPoint(int32_t x, int32_t y, nsIAccessibleTextRange * *_retval) override { return _to GetRangeAtPoint(x, y, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIACCESSIBLETEXT(_to) \
NS_IMETHOD GetCaretOffset(int32_t *aCaretOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCaretOffset(aCaretOffset); } \
NS_IMETHOD SetCaretOffset(int32_t aCaretOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCaretOffset(aCaretOffset); } \
NS_IMETHOD GetCharacterCount(int32_t *aCharacterCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharacterCount(aCharacterCount); } \
NS_IMETHOD GetSelectionCount(int32_t *aSelectionCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionCount(aSelectionCount); } \
NS_IMETHOD GetText(int32_t startOffset, int32_t endOffset, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetText(startOffset, endOffset, _retval); } \
NS_IMETHOD GetTextAfterOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextAfterOffset(offset, boundaryType, startOffset, endOffset, _retval); } \
NS_IMETHOD GetTextAtOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextAtOffset(offset, boundaryType, startOffset, endOffset, _retval); } \
NS_IMETHOD GetTextBeforeOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextBeforeOffset(offset, boundaryType, startOffset, endOffset, _retval); } \
NS_IMETHOD GetCharacterAtOffset(int32_t offset, char16_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharacterAtOffset(offset, _retval); } \
NS_IMETHOD GetTextAttributes(bool includeDefAttrs, int32_t offset, int32_t *rangeStartOffset, int32_t *rangeEndOffset, nsIPersistentProperties * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextAttributes(includeDefAttrs, offset, rangeStartOffset, rangeEndOffset, _retval); } \
NS_IMETHOD GetDefaultTextAttributes(nsIPersistentProperties * *aDefaultTextAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultTextAttributes(aDefaultTextAttributes); } \
NS_IMETHOD GetCharacterExtents(int32_t offset, int32_t *x, int32_t *y, int32_t *width, int32_t *height, uint32_t coordType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharacterExtents(offset, x, y, width, height, coordType); } \
NS_IMETHOD GetRangeExtents(int32_t startOffset, int32_t endOffset, int32_t *x, int32_t *y, int32_t *width, int32_t *height, uint32_t coordType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRangeExtents(startOffset, endOffset, x, y, width, height, coordType); } \
NS_IMETHOD GetOffsetAtPoint(int32_t x, int32_t y, uint32_t coordType, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOffsetAtPoint(x, y, coordType, _retval); } \
NS_IMETHOD GetSelectionBounds(int32_t selectionNum, int32_t *startOffset, int32_t *endOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionBounds(selectionNum, startOffset, endOffset); } \
NS_IMETHOD SetSelectionBounds(int32_t selectionNum, int32_t startOffset, int32_t endOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionBounds(selectionNum, startOffset, endOffset); } \
NS_IMETHOD AddSelection(int32_t startOffset, int32_t endOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSelection(startOffset, endOffset); } \
NS_IMETHOD RemoveSelection(int32_t selectionNum) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveSelection(selectionNum); } \
NS_IMETHOD ScrollSubstringTo(int32_t startIndex, int32_t endIndex, uint32_t scrollType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollSubstringTo(startIndex, endIndex, scrollType); } \
NS_IMETHOD ScrollSubstringToPoint(int32_t startIndex, int32_t endIndex, uint32_t coordinateType, int32_t x, int32_t y) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollSubstringToPoint(startIndex, endIndex, coordinateType, x, y); } \
NS_IMETHOD GetEnclosingRange(nsIAccessibleTextRange * *aEnclosingRange) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnclosingRange(aEnclosingRange); } \
NS_IMETHOD GetSelectionRanges(nsIArray * *aSelectionRanges) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionRanges(aSelectionRanges); } \
NS_IMETHOD GetVisibleRanges(nsIArray * *aVisibleRanges) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisibleRanges(aVisibleRanges); } \
NS_IMETHOD GetRangeByChild(nsIAccessible *child, nsIAccessibleTextRange * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRangeByChild(child, _retval); } \
NS_IMETHOD GetRangeAtPoint(int32_t x, int32_t y, nsIAccessibleTextRange * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRangeAtPoint(x, y, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsAccessibleText : public nsIAccessibleText
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIACCESSIBLETEXT
nsAccessibleText();
private:
~nsAccessibleText();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsAccessibleText, nsIAccessibleText)
nsAccessibleText::nsAccessibleText()
{
/* member initializers and constructor code */
}
nsAccessibleText::~nsAccessibleText()
{
/* destructor code */
}
/* attribute long caretOffset; */
NS_IMETHODIMP nsAccessibleText::GetCaretOffset(int32_t *aCaretOffset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAccessibleText::SetCaretOffset(int32_t aCaretOffset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long characterCount; */
NS_IMETHODIMP nsAccessibleText::GetCharacterCount(int32_t *aCharacterCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long selectionCount; */
NS_IMETHODIMP nsAccessibleText::GetSelectionCount(int32_t *aSelectionCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AString getText (in long startOffset, in long endOffset); */
NS_IMETHODIMP nsAccessibleText::GetText(int32_t startOffset, int32_t endOffset, nsAString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AString getTextAfterOffset (in long offset, in AccessibleTextBoundary boundaryType, out long startOffset, out long endOffset); */
NS_IMETHODIMP nsAccessibleText::GetTextAfterOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AString getTextAtOffset (in long offset, in AccessibleTextBoundary boundaryType, out long startOffset, out long endOffset); */
NS_IMETHODIMP nsAccessibleText::GetTextAtOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AString getTextBeforeOffset (in long offset, in AccessibleTextBoundary boundaryType, out long startOffset, out long endOffset); */
NS_IMETHODIMP nsAccessibleText::GetTextBeforeOffset(int32_t offset, AccessibleTextBoundary boundaryType, int32_t *startOffset, int32_t *endOffset, nsAString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wchar getCharacterAtOffset (in long offset); */
NS_IMETHODIMP nsAccessibleText::GetCharacterAtOffset(int32_t offset, char16_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIPersistentProperties getTextAttributes (in boolean includeDefAttrs, in long offset, out long rangeStartOffset, out long rangeEndOffset); */
NS_IMETHODIMP nsAccessibleText::GetTextAttributes(bool includeDefAttrs, int32_t offset, int32_t *rangeStartOffset, int32_t *rangeEndOffset, nsIPersistentProperties * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIPersistentProperties defaultTextAttributes; */
NS_IMETHODIMP nsAccessibleText::GetDefaultTextAttributes(nsIPersistentProperties * *aDefaultTextAttributes)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getCharacterExtents (in long offset, out long x, out long y, out long width, out long height, in unsigned long coordType); */
NS_IMETHODIMP nsAccessibleText::GetCharacterExtents(int32_t offset, int32_t *x, int32_t *y, int32_t *width, int32_t *height, uint32_t coordType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getRangeExtents (in long startOffset, in long endOffset, out long x, out long y, out long width, out long height, in unsigned long coordType); */
NS_IMETHODIMP nsAccessibleText::GetRangeExtents(int32_t startOffset, int32_t endOffset, int32_t *x, int32_t *y, int32_t *width, int32_t *height, uint32_t coordType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long getOffsetAtPoint (in long x, in long y, in unsigned long coordType); */
NS_IMETHODIMP nsAccessibleText::GetOffsetAtPoint(int32_t x, int32_t y, uint32_t coordType, int32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getSelectionBounds (in long selectionNum, out long startOffset, out long endOffset); */
NS_IMETHODIMP nsAccessibleText::GetSelectionBounds(int32_t selectionNum, int32_t *startOffset, int32_t *endOffset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setSelectionBounds (in long selectionNum, in long startOffset, in long endOffset); */
NS_IMETHODIMP nsAccessibleText::SetSelectionBounds(int32_t selectionNum, int32_t startOffset, int32_t endOffset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addSelection (in long startOffset, in long endOffset); */
NS_IMETHODIMP nsAccessibleText::AddSelection(int32_t startOffset, int32_t endOffset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeSelection (in long selectionNum); */
NS_IMETHODIMP nsAccessibleText::RemoveSelection(int32_t selectionNum)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void scrollSubstringTo (in long startIndex, in long endIndex, in unsigned long scrollType); */
NS_IMETHODIMP nsAccessibleText::ScrollSubstringTo(int32_t startIndex, int32_t endIndex, uint32_t scrollType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void scrollSubstringToPoint (in long startIndex, in long endIndex, in unsigned long coordinateType, in long x, in long y); */
NS_IMETHODIMP nsAccessibleText::ScrollSubstringToPoint(int32_t startIndex, int32_t endIndex, uint32_t coordinateType, int32_t x, int32_t y)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIAccessibleTextRange enclosingRange; */
NS_IMETHODIMP nsAccessibleText::GetEnclosingRange(nsIAccessibleTextRange * *aEnclosingRange)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIArray selectionRanges; */
NS_IMETHODIMP nsAccessibleText::GetSelectionRanges(nsIArray * *aSelectionRanges)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIArray visibleRanges; */
NS_IMETHODIMP nsAccessibleText::GetVisibleRanges(nsIArray * *aVisibleRanges)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessibleTextRange getRangeByChild (in nsIAccessible child); */
NS_IMETHODIMP nsAccessibleText::GetRangeByChild(nsIAccessible *child, nsIAccessibleTextRange * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessibleTextRange getRangeAtPoint (in long x, in long y); */
NS_IMETHODIMP nsAccessibleText::GetRangeAtPoint(int32_t x, int32_t y, nsIAccessibleTextRange * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIAccessibleText_h__ */
|