1 #include <cspi/spi-private.h>
4 * AccessibleEditableText_ref:
5 * @obj: a pointer to the #AccessibleEditableText object on which to operate.
7 * Increment the reference count for an #AccessibleEditableText object.
8 * Since AccessibleEditableText is derived from AccessibleText,
9 * this is the same as AccessibleText_ref().
11 * Returns: (no return code implemented yet).
15 AccessibleEditableText_ref (AccessibleEditableText *obj)
17 Accessibility_EditableText_ref (*obj, spi_ev ());
24 * AccessibleEditableText_unref:
25 * @obj: a pointer to the #AccessibleEditableText object on which to operate.
27 * Decrement the reference count for an #AccessibleEdiitableText object.
28 * Since AccessibleEditableText is derived from AccessibleText,
29 * this is the same as AccessibleText_unref().
31 * Returns: (no return code implemented yet).
35 AccessibleEditableText_unref (AccessibleEditableText *obj)
37 Accessibility_EditableText_unref (*obj, spi_ev ());
44 * AccessibleEditableText_setAttributes:
45 * @obj: a pointer to the #AccessibleEditableText object to modify.
46 * @attributes: a character string indicating the attributes to apply to the range,
48 * @startOffset: a #long indicating the start of the desired text range.
49 * @endOffset: a #long indicating the first character past the desired range.
51 * Set the attributes applied to a range of text from an #AccessibleEditableText
52 * object, and the bounds of the range.
54 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
58 AccessibleEditableText_setAttributes (AccessibleEditableText *obj,
59 const char *attributes,
64 Accessibility_EditableText_setAttributes (*obj,
65 (CORBA_char *) attributes,
66 (CORBA_long) startPos,
67 (CORBA_long) endPos, spi_ev ());
73 * AccessibleEditableText_setTextContents:
74 * @obj: a pointer to the #AccessibleEditableText object to modify.
75 * @newContents: a character string, encoded in UTF-8, which is to
76 * become the new text contents of the #AccessibleEditableText object.
78 * Replace the entire text contents of an #AccessibleEditableText object.
80 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
84 AccessibleEditableText_setTextContents (AccessibleEditableText *obj,
85 const char *newContents)
87 Accessibility_EditableText_setTextContents (*obj,
88 (CORBA_char *) newContents, spi_ev ());
89 return TRUE; /* TODO: make bonobo method return a boolean */
95 * AccessibleEditableText_insertText:
96 * @obj: a pointer to the #AccessibleEditableText object to modify.
97 * @position: an integer indicating the character offset at which to insert
99 * @text: a char* pointer to the text to insert, in UTF-8 encoding.
100 * @length: (frankly I'm not sure this parameter should be here)
102 * Insert text into an #AccessibleEditableText object.
103 * As with all character offsets, the specified @position may not be the
104 * same as the resulting byte offset, since the text is in a
105 * variable-width encoding.
107 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
111 AccessibleEditableText_insertText (AccessibleEditableText *obj,
116 Accessibility_EditableText_insertText (*obj,
117 (CORBA_long) position, (CORBA_char *) text,
118 (CORBA_long) length, spi_ev ());
125 * AccessibleEditableText_copyText:
126 * @obj: a pointer to the #AccessibleEditableText object to modify.
127 * @startPos: an integer indicating the starting character offset
128 * of the text to copy.
129 * @endPos: an integer indicating the offset of the first character
130 * past the end of the text section to be copied.
132 * Copy text from an #AccessibleEditableText object into the clipboard.
134 * @see: AccessibleEditableText_pasteText
136 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
140 AccessibleEditableText_copyText (AccessibleText *obj,
144 Accessibility_EditableText_copyText (*obj,
145 (CORBA_long) startPos, (CORBA_long) endPos, spi_ev ());
151 * AccessibleEditableText_cutText:
152 * @obj: a pointer to the #AccessibleEditableText object to modify.
153 * @startPos: an integer indicating the starting character offset
154 * of the text to cut.
155 * @endPos: an integer indicating the offset of the first character
156 * past the end of the text section to be cut.
158 * Delete text from an #AccessibleEditableText object, copying the
159 * excised portion into the clipboard.
161 * @see: AccessibleEditableText_pasteText
163 * Returns: #TRUE if operation was successful, #FALSE otherwise.
167 AccessibleEditableText_cutText (AccessibleEditableText *obj,
171 Accessibility_EditableText_cutText (*obj,
172 (CORBA_long) startPos, (CORBA_long) endPos, spi_ev ());
179 * AccessibleEditableText_deleteText:
180 * @obj: a pointer to the #AccessibleEditableText object to modify.
181 * @startPos: an integer indicating the starting character offset
182 * of the text to delete.
183 * @endPos: an integer indicating the offset of the first character
184 * past the end of the text section to be deleted.
186 * Delete text from an #AccessibleEditableText object, without copying the
187 * excised portion into the clipboard.
189 * @see: AccessibleEditableText_cutText
191 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
195 AccessibleEditableText_deleteText (AccessibleEditableText *obj,
199 Accessibility_EditableText_deleteText (*obj,
200 (CORBA_long) startPos, (CORBA_long) endPos, spi_ev ());
207 * AccessibleEditableText_pasteText:
208 * @obj: a pointer to the #AccessibleEditableText object to modify.
209 * @position: an integer indicating the character offset at which to insert
212 * Insert text from the clipboard into an #AccessibleEditableText object.
213 * As with all character offsets, the specified @position may not be the
214 * same as the resulting byte offset, since the text is in a
215 * variable-width encoding.
217 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
221 AccessibleEditableText_pasteText (AccessibleEditableText *obj,
224 Accessibility_EditableText_pasteText (*obj,
225 (CORBA_long) position, spi_ev ());