diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-10-05 13:41:25 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-10-05 18:51:36 -0500 |
commit | 18f9397f2411e4144f2beb5bc10bda84b10bd191 (patch) | |
tree | 69965af28ac91986de2455754446eb5a8475e075 | |
parent | 044c1043c05f4acba031ddb90ba1a4890b31ae9a (diff) |
If the button has a poppup menu,it should has the state EXPANDABLE
-rw-r--r-- | accessibility/source/standard/vclxaccessiblebutton.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/accessibility/source/standard/vclxaccessiblebutton.cxx b/accessibility/source/standard/vclxaccessiblebutton.cxx index 11e7f5497da9..7f287a9964ae 100644 --- a/accessibility/source/standard/vclxaccessiblebutton.cxx +++ b/accessibility/source/standard/vclxaccessiblebutton.cxx @@ -104,10 +104,22 @@ void VCLXAccessibleButton::FillAccessibleStateSet( utl::AccessibleStateSetHelper rStateSet.AddState( AccessibleStateType::FOCUSABLE ); if ( pButton->GetState() == STATE_CHECK ) + { rStateSet.AddState( AccessibleStateType::CHECKED ); + } if ( pButton->IsPressed() ) + { rStateSet.AddState( AccessibleStateType::PRESSED ); + } + if( pButton->GetType() == WINDOW_MENUBUTTON ) + { + rStateSet.AddState( AccessibleStateType::EXPANDABLE ); + } + if( pButton->GetStyle() & WB_DEFBUTTON ) + { + rStateSet.AddState( AccessibleStateType::DEFAULT ); + } } } |