nsIAccessibleEditableText.idl 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2. *
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  6. #include "nsISupports.idl"
  7. [scriptable, builtinclass, uuid(28915cca-3366-4034-ba1d-b7afb9b37639)]
  8. interface nsIAccessibleEditableText : nsISupports
  9. {
  10. /**
  11. * Replaces the text represented by this object by the given text.
  12. */
  13. void setTextContents (in AString text);
  14. /**
  15. * Inserts text at the specified position.
  16. *
  17. * @param text - text that is inserted.
  18. * @param position - index at which to insert the text.
  19. */
  20. void insertText(in AString text, in long position);
  21. /**
  22. * Copies the text range into the clipboard.
  23. *
  24. * @param startPos - start index of the text to moved into the clipboard.
  25. * @param endPos - end index of the text to moved into the clipboard.
  26. */
  27. void copyText(in long startPos, in long endPos);
  28. /**
  29. * Deletes a range of text and copies it to the clipboard.
  30. *
  31. * @param startPos - start index of the text to be deleted.
  32. * @param endOffset - end index of the text to be deleted.
  33. */
  34. void cutText(in long startPos, in long endPos);
  35. /**
  36. * Deletes a range of text.
  37. *
  38. * @param startPos - start index of the text to be deleted.
  39. * @param endPos - end index of the text to be deleted.
  40. */
  41. void deleteText(in long startPos, in long endPos);
  42. /**
  43. * Pastes text from the clipboard.
  44. *
  45. * @param position - index at which to insert the text from the system
  46. * clipboard into the text represented by this object.
  47. */
  48. void pasteText(in long position);
  49. };