From addb2f0ea7693e78b2a52dc8b3fbabfdcf59e92d Mon Sep 17 00:00:00 2001 From: Tim Wo Date: Tue, 2 Dec 2003 07:20:04 +0000 Subject: a11y implementations for ECellText. new functions to support corresponding 2003-12-02 Tim Wo * gal/a11y/e-table/gal-a11y-e-cell-text.c: (ect_get_text), (ect_get_character_at_offset), (ect_get_caret_offset), (ect_get_character_count), (ect_get_n_selections), (ect_get_selection), (ect_add_selection), (ect_remove_selection), (ect_set_selection), (ect_set_caret_offset), (ect_set_text_contents), (ect_insert_text), (ect_copy_text), (ect_delete_text), (ect_cut_text), (ect_paste_text), (ect_class_init): a11y implementations for ECellText. * gal/e-table/e-cell-text.c: (e_cell_text_set_selection), (e_cell_text_get_selection), (e_cell_text_copy_clipboard), (e_cell_text_paste_clipboard), (e_cell_text_delete_selection): new functions to support corresponding atk operations. * gal/e-table/e-cell-text.h: some APIs added to support atk operations. svn path=/trunk/; revision=23568 --- widgets/table/e-cell-text.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'widgets/table/e-cell-text.h') diff --git a/widgets/table/e-cell-text.h b/widgets/table/e-cell-text.h index 6c51f32fd8..5310ffc5f9 100644 --- a/widgets/table/e-cell-text.h +++ b/widgets/table/e-cell-text.h @@ -101,6 +101,21 @@ void e_cell_text_free_text (ECellText *cell, char *text); /* Sets the ETableModel value, based on the given string. */ void e_cell_text_set_value (ECellText *cell, ETableModel *model, int col, int row, const char *text); +/* Sets the selection of given text cell */ +gboolean e_cell_text_set_selection (ECellView *cell_view, gint col, gint row, gint start, gint end); + +/* Gets the selection of given text cell */ +gboolean e_cell_text_get_selection (ECellView *cell_view, gint col, gint row, gint *start, gint *end); + +/* Copys the selected text to the clipboard */ +void e_cell_text_copy_clipboard (ECellView *cell_view, gint col, gint row); + +/* Pastes the text from the clipboard */ +void e_cell_text_paste_clipboard (ECellView *cell_view, gint col, gint row); + +/* Deletes selected text */ +void e_cell_text_delete_selection (ECellView *cell_view, gint col, gint row); + G_END_DECLS #endif /* _E_CELL_TEXT_H_ */ -- cgit v1.2.3