2 * AccessibleEditableText_ref:
3 * @obj: a pointer to the #AccessibleEditableText object on which to operate.
5 * Increment the reference count for an #AccessibleEditableText object.
6 * Since AccessibleEditableText is derived from AccessibleText,
7 * this is the same as AccessibleText_ref().
9 * Returns: (no return code implemented yet).
13 AccessibleEditableText_ref (AccessibleEditableText *obj)
15 Accessibility_EditableText_ref (*obj, &ev);
22 * AccessibleEditableText_unref:
23 * @obj: a pointer to the #AccessibleEditableText object on which to operate.
25 * Decrement the reference count for an #AccessibleEdiitableText object.
26 * Since AccessibleEditableText is derived from AccessibleText,
27 * this is the same as AccessibleText_unref().
29 * Returns: (no return code implemented yet).
33 AccessibleEditableText_unref (AccessibleEditableText *obj)
35 Accessibility_EditableText_unref (*obj, &ev);
42 * AccessibleEditableText_setAttributes:
43 * @obj: a pointer to the #AccessibleEditableText object to modify.
44 * @startOffset: a #long indicating the start of the desired text range.
45 * @endOffset: a #long indicating the first character past the desired range.
47 * Set the attributes applied to a range of text from an #AccessibleEditableText
48 * object, and the bounds of the range.
50 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
54 AccessibleEditableText_setAttributes (AccessibleEditableText *obj,
55 const char *attributes,
60 Accessibility_EditableText_setAttributes (*obj,
61 (CORBA_char *) attributes,
62 (CORBA_long) startPos,
63 (CORBA_long) endPos, &ev);
69 * AccessibleEditableText_setTextContents:
70 * @obj: a pointer to the #AccessibleEditableText object to modify.
71 * @newContents: a character string, encoded in UTF-8, which is to
72 * become the new text contents of the #AccessibleEditableText object.
74 * Replace the entire text contents of an #AccessibleEditableText object.
76 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
80 AccessibleEditableText_setTextContents (AccessibleEditableText *obj,
81 const char *newContents)
83 Accessibility_EditableText_setTextContents (*obj,
84 (CORBA_char *) newContents, &ev);
85 return TRUE; /* TODO: make bonobo method return a boolean */
91 * AccessibleEditableText_insertText:
92 * @obj: a pointer to the #AccessibleEditableText object to modify.
93 * @position: an integer indicating the character offset at which to insert
95 * @text: a char* pointer to the text to insert, in UTF-8 encoding.
96 * @length: (frankly I'm not sure this parameter should be here)
98 * Insert text into an #AccessibleEditableText object.
99 * As with all character offsets, the specified @position may not be the
100 * same as the resulting byte offset, since the text is in a
101 * variable-width encoding.
103 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
107 AccessibleEditableText_insertText (AccessibleEditableText *obj,
112 Accessibility_EditableText_insertText (*obj,
113 (CORBA_long) position, (CORBA_char *) text,
114 (CORBA_long) length, &ev);
121 * AccessibleEditableText_copyText:
122 * @obj: a pointer to the #AccessibleEditableText object to modify.
123 * @startPos: an integer indicating the starting character offset
124 * of the text to copy.
125 * @endPos: an integer indicating the offset of the first character
126 * past the end of the text section to be copied.
128 * Copy text from an #AccessibleEditableText object into the clipboard.
130 * @see: AccessibleEditableText_pasteText
132 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
136 AccessibleEditableText_copyText (AccessibleText *obj,
140 Accessibility_EditableText_copyText (*obj,
141 (CORBA_long) startPos, (CORBA_long) endPos, &ev);
147 * AccessibleEditableText_cutText:
148 * @obj: a pointer to the #AccessibleEditableText object to modify.
149 * @startPos: an integer indicating the starting character offset
150 * of the text to cut.
151 * @endPos: an integer indicating the offset of the first character
152 * past the end of the text section to be cut.
154 * Delete text from an #AccessibleEditableText object, copying the
155 * excised portion into the clipboard.
157 * @see: AccessibleEditableText_pasteText
159 * Returns: #TRUE if operation was successful, #FALSE otherwise.
163 AccessibleEditableText_cutText (AccessibleEditableText *obj,
167 Accessibility_EditableText_cutText (*obj,
168 (CORBA_long) startPos, (CORBA_long) endPos, &ev);
175 * AccessibleEditableText_deleteText:
176 * @obj: a pointer to the #AccessibleEditableText object to modify.
177 * @startPos: an integer indicating the starting character offset
178 * of the text to delete.
179 * @endPos: an integer indicating the offset of the first character
180 * past the end of the text section to be deleted.
182 * Delete text from an #AccessibleEditableText object, without copying the
183 * excised portion into the clipboard.
185 * @see: AccessibleEditableText_cutText
187 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
191 AccessibleEditableText_deleteText (AccessibleEditableText *obj,
195 Accessibility_EditableText_deleteText (*obj,
196 (CORBA_long) startPos, (CORBA_long) endPos, &ev);
203 * AccessibleEditableText_pasteText:
204 * @obj: a pointer to the #AccessibleEditableText object to modify.
205 * @position: an integer indicating the character offset at which to insert
208 * Insert text from the clipboard into an #AccessibleEditableText object.
209 * As with all character offsets, the specified @position may not be the
210 * same as the resulting byte offset, since the text is in a
211 * variable-width encoding.
213 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
217 AccessibleEditableText_pasteText (AccessibleEditableText *obj,
220 Accessibility_EditableText_pasteText (*obj,
221 (CORBA_long) position, &ev);