summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Johansson <sleeping.pillow@gmail.com>2015-05-05 22:28:04 +0200
committerCaolán McNamara <caolanm@redhat.com>2015-05-07 13:57:43 +0000
commit0fc79344ce5e057f7c2258a0fe16374fe510745f (patch)
treeb2d1adba3cef2e5014304361ce911c41af94d5ac
parent65088fc4702300201997d7148897a20047bae414 (diff)
tdf#90994 Sidebar tab bar buttons should should have accessible names
The tab bar buttons (Properties, Styles and formatting, Gallery ...) should expose their name to accessibility tools. Change-Id: I5292ca848688cf93a046c3f5d8906ac35cee1cfe Reviewed-on: https://gerrit.libreoffice.org/15639 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sfx2/source/sidebar/TabBar.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx
index 8a474c7d1220..d40d3cbe630e 100644
--- a/sfx2/source/sidebar/TabBar.cxx
+++ b/sfx2/source/sidebar/TabBar.cxx
@@ -262,6 +262,8 @@ bool TabBar::Notify (NotifyEvent&)
VclPtr<RadioButton> TabBar::CreateTabItem (const DeckDescriptor& rDeckDescriptor)
{
VclPtr<RadioButton> pItem = ControlFactory::CreateTabItem(this);
+ pItem->SetAccessibleName(rDeckDescriptor.msTitle);
+ pItem->SetAccessibleDescription(rDeckDescriptor.msHelpText);
pItem->SetHelpText(rDeckDescriptor.msHelpText);
pItem->SetQuickHelpText(rDeckDescriptor.msHelpText);
return pItem;