diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2006-11-01 13:10:00 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2006-11-01 13:10:00 +0000 |
commit | 236458934f8644b549d9a647c76ba12127fd69cc (patch) | |
tree | 6cb2b7b7299cf3727928754f958e7f38670ab7f9 /vcl/unx/gtk | |
parent | c7f85fa824438434abf713eae62526b8930166de (diff) |
INTEGRATION: CWS atkbridge4 (1.2.162); FILE MERGED
2006/10/24 07:45:02 obr 1.2.162.3: #i68213# removed >>Test me<< warning
2006/10/06 09:22:03 obr 1.2.162.2: RESYNC: (1.2-1.3); FILE MERGED
2006/08/24 13:19:38 obr 1.2.162.1: #137437# remember deleted character
Diffstat (limited to 'vcl/unx/gtk')
-rw-r--r-- | vcl/unx/gtk/a11y/atklistener.cxx | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/vcl/unx/gtk/a11y/atklistener.cxx b/vcl/unx/gtk/a11y/atklistener.cxx index 0a08f26f5410..926eba5ffefa 100644 --- a/vcl/unx/gtk/a11y/atklistener.cxx +++ b/vcl/unx/gtk/a11y/atklistener.cxx @@ -4,9 +4,9 @@ * * $RCSfile: atklistener.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: obo $ $Date: 2006-09-17 12:27:09 $ + * last change: $Author: vg $ $Date: 2006-11-01 14:10:00 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -358,9 +358,22 @@ void AtkListener::notifyEvent( const accessibility::AccessibleEventObject& aEven // TODO: when GNOME starts to send "update" kind of events, change // we need to re-think this implementation as well if( aEvent.OldValue >>= aDeletedText ) + { + /* Remember the text segment here to be able to return removed text in get_text(). + * This is clearly a hack to be used until appropriate API exists in atk to pass + * the string value directly or we find a compelling reason to start caching the + * UTF-8 converted strings in the atk wrapper object. + */ + + g_object_set_data( G_OBJECT(mpAccessible), "ooo::text_changed::delete", &aDeletedText); + g_signal_emit_by_name( mpAccessible, "text_changed::delete", (gint) aDeletedText.SegmentStart, (gint)( aDeletedText.SegmentEnd - aDeletedText.SegmentStart ) ); + + g_object_steal_data( G_OBJECT(mpAccessible), "ooo::text_changed::delete" ); + } + if( aEvent.NewValue >>= aInsertedText ) g_signal_emit_by_name( mpAccessible, "text_changed::insert", (gint) aInsertedText.SegmentStart, @@ -400,7 +413,6 @@ void AtkListener::notifyEvent( const accessibility::AccessibleEventObject& aEven accessibility::AccessibleTableModelChange aChange; aEvent.NewValue >>= aChange; - g_warning( "Test me: table model change event" ); sal_Int32 nRowsChanged = aChange.LastRow - aChange.FirstRow + 1; sal_Int32 nColumnsChanged = aChange.LastColumn - aChange.FirstColumn + 1; |