summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorJacobo Aragunde Pérez <jaragunde@igalia.com>2014-02-04 15:07:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-05 16:50:30 +0000
commitc1d69c0e9e3361f9dd340ac133407e1dbb1d08ca (patch)
tree760cb73e52cbce9bb91ae2db925e7eb1a9119ce4 /sw
parentfdo#69652 Default(Date|Time) is a UNO struct now (diff)
downloadcore-c1d69c0e9e3361f9dd340ac133407e1dbb1d08ca.tar.gz
core-c1d69c0e9e3361f9dd340ac133407e1dbb1d08ca.zip
fdo#35105: notify role change through a new UNO a11y event
A new UNO accessibility event called ROLE_CHANGED has been created. It should be triggered when an accessible object changes its role and every accessibility toolkit should use its own methods to make that change effective. Code to support the event in ATK has been added. Change-Id: I132e303bdb148967231334458c3cfa369c36ec8f Reviewed-on: https://gerrit.libreoffice.org/7853 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/access/accpara.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx
index e5d6b42068a5..6935f43f6911 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -437,7 +437,16 @@ void SwAccessibleParagraph::_InvalidateContent( sal_Bool bVisibleDataFired )
bIsHeading = bNewIsHeading;
}
- if( bNewIsHeading != bOldIsHeading || rText != sOldText )
+ if( bNewIsHeading != bOldIsHeading )
+ {
+ // The role has changed
+ AccessibleEventObject aEvent;
+ aEvent.EventId = AccessibleEventId::ROLE_CHANGED;
+
+ FireAccessibleEvent( aEvent );
+ }
+
+ if( rText != sOldText )
{
OUString sNewDesc( GetDescription() );
OUString sOldDesc;