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 cspi_object_ref (obj);
21 * AccessibleEditableText_unref:
22 * @obj: a pointer to the #AccessibleEditableText object on which to operate.
24 * Decrement the reference count for an #AccessibleEdiitableText object.
25 * Since AccessibleEditableText is derived from AccessibleText,
26 * this is the same as AccessibleText_unref().
28 * Returns: (no return code implemented yet).
32 AccessibleEditableText_unref (AccessibleEditableText *obj)
34 cspi_object_unref (obj);
38 * AccessibleEditableText_setAttributes:
39 * @obj: a pointer to the #AccessibleEditableText object to modify.
40 * @attributes: a character string indicating the attributes to apply to the range,
42 * @startOffset: a #long indicating the start of the desired text range.
43 * @endOffset: a #long indicating the first character past the desired range.
45 * Set the attributes applied to a range of text from an #AccessibleEditableText
46 * object, and the bounds of the range.
48 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
52 AccessibleEditableText_setAttributes (AccessibleEditableText *obj,
53 const char *attributes,
58 Accessibility_EditableText_setAttributes (CSPI_OBJREF (obj),
59 (CORBA_char *) attributes,
60 (CORBA_long) startPos,
61 (CORBA_long) endPos, cspi_ev ());
67 * AccessibleEditableText_setTextContents:
68 * @obj: a pointer to the #AccessibleEditableText object to modify.
69 * @newContents: a character string, encoded in UTF-8, which is to
70 * become the new text contents of the #AccessibleEditableText object.
72 * Replace the entire text contents of an #AccessibleEditableText object.
74 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
78 AccessibleEditableText_setTextContents (AccessibleEditableText *obj,
79 const char *newContents)
81 Accessibility_EditableText_setTextContents (CSPI_OBJREF (obj),
82 (CORBA_char *) newContents, cspi_ev ());
83 return TRUE; /* TODO: make bonobo method return a SPIBoolean */
89 * AccessibleEditableText_insertText:
90 * @obj: a pointer to the #AccessibleEditableText object to modify.
91 * @position: an integer indicating the character offset at which to insert
93 * @text: a char* pointer to the text to insert, in UTF-8 encoding.
94 * @length: (frankly I'm not sure this parameter should be here)
96 * Insert text into an #AccessibleEditableText object.
97 * As with all character offsets, the specified @position may not be the
98 * same as the resulting byte offset, since the text is in a
99 * variable-width encoding.
101 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
105 AccessibleEditableText_insertText (AccessibleEditableText *obj,
110 Accessibility_EditableText_insertText (CSPI_OBJREF (obj),
111 (CORBA_long) position, (const CORBA_char *) text,
112 (CORBA_long) length, cspi_ev ());
119 * AccessibleEditableText_copyText:
120 * @obj: a pointer to the #AccessibleEditableText object to modify.
121 * @startPos: an integer indicating the starting character offset
122 * of the text to copy.
123 * @endPos: an integer indicating the offset of the first character
124 * past the end of the text section to be copied.
126 * Copy text from an #AccessibleEditableText object into the clipboard.
128 * @see: AccessibleEditableText_pasteText
130 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
134 AccessibleEditableText_copyText (AccessibleText *obj,
138 Accessibility_EditableText_copyText (CSPI_OBJREF (obj),
139 (CORBA_long) startPos, (CORBA_long) endPos, cspi_ev ());
145 * AccessibleEditableText_cutText:
146 * @obj: a pointer to the #AccessibleEditableText object to modify.
147 * @startPos: an integer indicating the starting character offset
148 * of the text to cut.
149 * @endPos: an integer indicating the offset of the first character
150 * past the end of the text section to be cut.
152 * Delete text from an #AccessibleEditableText object, copying the
153 * excised portion into the clipboard.
155 * @see: AccessibleEditableText_pasteText
157 * Returns: #TRUE if operation was successful, #FALSE otherwise.
161 AccessibleEditableText_cutText (AccessibleEditableText *obj,
165 Accessibility_EditableText_cutText (CSPI_OBJREF (obj),
166 (CORBA_long) startPos, (CORBA_long) endPos, cspi_ev ());
173 * AccessibleEditableText_deleteText:
174 * @obj: a pointer to the #AccessibleEditableText object to modify.
175 * @startPos: an integer indicating the starting character offset
176 * of the text to delete.
177 * @endPos: an integer indicating the offset of the first character
178 * past the end of the text section to be deleted.
180 * Delete text from an #AccessibleEditableText object, without copying the
181 * excised portion into the clipboard.
183 * @see: AccessibleEditableText_cutText
185 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
189 AccessibleEditableText_deleteText (AccessibleEditableText *obj,
193 Accessibility_EditableText_deleteText (CSPI_OBJREF (obj),
194 (CORBA_long) startPos, (CORBA_long) endPos, cspi_ev ());
201 * AccessibleEditableText_pasteText:
202 * @obj: a pointer to the #AccessibleEditableText object to modify.
203 * @position: an integer indicating the character offset at which to insert
206 * Insert text from the clipboard into an #AccessibleEditableText object.
207 * As with all character offsets, the specified @position may not be the
208 * same as the resulting byte offset, since the text is in a
209 * variable-width encoding.
211 * Returns: #TRUE if the operation was successful, otherwise #FALSE.
215 AccessibleEditableText_pasteText (AccessibleEditableText *obj,
218 Accessibility_EditableText_pasteText (CSPI_OBJREF (obj),
219 (CORBA_long) position, cspi_ev ());