summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-02-26 22:28:45 +0100
committerJulien Nabet <serval2412@yahoo.fr>2014-02-26 22:31:14 +0100
commit97d4f7e07462cbc33e8ebf0bc2bbf8a17c232d50 (patch)
tree3d5e206227c597746b09edd914be646c3f5df0bd /accessibility
parente4f6ba5e3ced6ff2ef28d71d406b5b6a6cdd90c5 (diff)
Let's use RADIO_BUTTON and CHECK_BUTTON roles
Thank you Caolán and Niklas for your support! Change-Id: Ied978b36cc309b2668889d878a309d1a1400633a
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/standard/vclxaccessibletoolboxitem.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
index 97b2ea1df433..a2aa1919f30c 100644
--- a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
+++ b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
@@ -88,12 +88,14 @@ VCLXAccessibleToolBoxItem::VCLXAccessibleToolBoxItem( ToolBox* _pToolBox, sal_In
(( nBits & TIB_DROPDOWNONLY ) == TIB_DROPDOWNONLY)
)
m_nRole = AccessibleRole::BUTTON_DROPDOWN;
- else if (
- ( ( nBits & TIB_CHECKABLE ) == TIB_CHECKABLE ) ||
+ else if (( nBits & TIB_CHECKABLE ) == TIB_CHECKABLE )
+ m_nRole = AccessibleRole::CHECK_BUTTON;
+ else if
+ (
( ( nBits & TIB_RADIOCHECK ) == TIB_RADIOCHECK ) ||
( ( nBits & TIB_AUTOCHECK ) == TIB_AUTOCHECK )
- )
- m_nRole = AccessibleRole::TOGGLE_BUTTON;
+ )
+ m_nRole = AccessibleRole::RADIO_BUTTON;
else if ( m_pToolBox->GetItemWindow( m_nItemId ) )
m_nRole = AccessibleRole::PANEL;
break;