ia2AccessibleEditableText.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* vim:expandtab:shiftwidth=2:tabstop=2:
  3. */
  4. /* This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  7. #ifndef _ACCESSIBLE_EDITABLETEXT_H
  8. #define _ACCESSIBLE_EDITABLETEXT_H
  9. #include "nsISupports.h"
  10. #include "AccessibleEditableText.h"
  11. namespace mozilla {
  12. namespace a11y {
  13. class ia2AccessibleEditableText: public IAccessibleEditableText
  14. {
  15. public:
  16. // IAccessibleEditableText
  17. virtual HRESULT STDMETHODCALLTYPE copyText(
  18. /* [in] */ long startOffset,
  19. /* [in] */ long endOffset);
  20. virtual HRESULT STDMETHODCALLTYPE deleteText(
  21. /* [in] */ long startOffset,
  22. /* [in] */ long endOffset);
  23. virtual HRESULT STDMETHODCALLTYPE insertText(
  24. /* [in] */ long offset,
  25. /* [in] */ BSTR *text);
  26. virtual HRESULT STDMETHODCALLTYPE cutText(
  27. /* [in] */ long startOffset,
  28. /* [in] */ long endOffset);
  29. virtual HRESULT STDMETHODCALLTYPE pasteText(
  30. /* [in] */ long offset);
  31. virtual HRESULT STDMETHODCALLTYPE replaceText(
  32. /* [in] */ long startOffset,
  33. /* [in] */ long endOffset,
  34. /* [in] */ BSTR *text);
  35. virtual HRESULT STDMETHODCALLTYPE setAttributes(
  36. /* [in] */ long startOffset,
  37. /* [in] */ long endOffset,
  38. /* [in] */ BSTR *attributes);
  39. };
  40. } // namespace a11y
  41. } // namespace mozilla
  42. #endif