1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 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/. */
7 #include
"nsISupports.idl"
9 [scriptable
, builtinclass
, uuid(28915cca
-3366-4034-ba1d
-b7afb9b37639
)]
10 interface nsIAccessibleEditableText
: nsISupports
13 * Replaces the text represented by this object by the given text.
15 void setTextContents
(in AString text
);
18 * Inserts text at the specified position.
20 * @param text - text that is inserted.
21 * @param position - index at which to insert the text.
23 void insertText
(in AString text
, in long position
);
26 * Copies the text range into the clipboard.
28 * @param startPos - start index of the text to moved into the clipboard.
29 * @param endPos - end index of the text to moved into the clipboard.
31 void copyText
(in long startPos
, in long endPos
);
34 * Deletes a range of text and copies it to the clipboard.
36 * @param startPos - start index of the text to be deleted.
37 * @param endOffset - end index of the text to be deleted.
39 void cutText
(in long startPos
, in long endPos
);
42 * Deletes a range of text.
44 * @param startPos - start index of the text to be deleted.
45 * @param endPos - end index of the text to be deleted.
47 void deleteText
(in long startPos
, in long endPos
);
50 * Pastes text from the clipboard.
52 * @param position - index at which to insert the text from the system
53 * clipboard into the text represented by this object.
56 void pasteText
(in long position
);