accessible/src/windows/ia2/ia2AccessibleEditableText.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/src/windows/ia2/ia2AccessibleEditableText.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,57 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim:expandtab:shiftwidth=2:tabstop=2:
     1.6 + */
     1.7 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
    1.10 +
    1.11 +#ifndef _ACCESSIBLE_EDITABLETEXT_H
    1.12 +#define _ACCESSIBLE_EDITABLETEXT_H
    1.13 +
    1.14 +#include "nsISupports.h"
    1.15 +#include "nsIAccessibleEditableText.h"
    1.16 +
    1.17 +#include "AccessibleEditableText.h"
    1.18 +
    1.19 +namespace mozilla {
    1.20 +namespace a11y {
    1.21 +
    1.22 +class ia2AccessibleEditableText: public IAccessibleEditableText
    1.23 +{
    1.24 +public:
    1.25 +
    1.26 +  // IAccessibleEditableText
    1.27 +  virtual HRESULT STDMETHODCALLTYPE copyText(
    1.28 +      /* [in] */ long startOffset,
    1.29 +      /* [in] */ long endOffset);
    1.30 +
    1.31 +  virtual HRESULT STDMETHODCALLTYPE deleteText(
    1.32 +      /* [in] */ long startOffset,
    1.33 +      /* [in] */ long endOffset);
    1.34 +
    1.35 +  virtual HRESULT STDMETHODCALLTYPE insertText(
    1.36 +      /* [in] */ long offset,
    1.37 +      /* [in] */ BSTR *text);
    1.38 +
    1.39 +  virtual HRESULT STDMETHODCALLTYPE cutText(
    1.40 +      /* [in] */ long startOffset,
    1.41 +      /* [in] */ long endOffset);
    1.42 +
    1.43 +  virtual HRESULT STDMETHODCALLTYPE pasteText(
    1.44 +      /* [in] */ long offset);
    1.45 +
    1.46 +  virtual HRESULT STDMETHODCALLTYPE replaceText(
    1.47 +      /* [in] */ long startOffset,
    1.48 +      /* [in] */ long endOffset,
    1.49 +      /* [in] */ BSTR *text);
    1.50 +
    1.51 +  virtual HRESULT STDMETHODCALLTYPE setAttributes(
    1.52 +      /* [in] */ long startOffset,
    1.53 +      /* [in] */ long endOffset,
    1.54 +      /* [in] */ BSTR *attributes);
    1.55 +};
    1.56 +
    1.57 +} // namespace a11y
    1.58 +} // namespace mozilla
    1.59 +
    1.60 +#endif

mercurial