diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-08-31 19:17:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-02 09:37:08 +0200 |
commit | 7541fac2c0d5341f4d362779594ae236f05ff9a6 (patch) | |
tree | 73aefef941dd91b562b84689d50625858da2d15e /accessibility/source | |
parent | 8ce0c756e64242431361059566d41495e3550d99 (diff) |
tdf#136331 implement applying atk properties to tab pages
Change-Id: I2ee57dbdb3d743fe1dd3d505a3aa2f479ffa62b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101765
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'accessibility/source')
-rw-r--r-- | accessibility/source/standard/vclxaccessibletabpage.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/accessibility/source/standard/vclxaccessibletabpage.cxx b/accessibility/source/standard/vclxaccessibletabpage.cxx index fb0936f2f360..ab981634a7db 100644 --- a/accessibility/source/standard/vclxaccessibletabpage.cxx +++ b/accessibility/source/standard/vclxaccessibletabpage.cxx @@ -339,34 +339,34 @@ sal_Int32 VCLXAccessibleTabPage::getAccessibleIndexInParent( ) return nIndexInParent; } - -sal_Int16 VCLXAccessibleTabPage::getAccessibleRole( ) +sal_Int16 VCLXAccessibleTabPage::getAccessibleRole() { OExternalLockGuard aGuard( this ); return AccessibleRole::PAGE_TAB; } - -OUString VCLXAccessibleTabPage::getAccessibleDescription( ) +OUString VCLXAccessibleTabPage::getAccessibleDescription() { OExternalLockGuard aGuard( this ); OUString sDescription; if ( m_pTabControl ) - sDescription = m_pTabControl->GetHelpText( m_nPageId ); + sDescription = m_pTabControl->GetAccessibleDescription( m_nPageId ); return sDescription; } - -OUString VCLXAccessibleTabPage::getAccessibleName( ) +OUString VCLXAccessibleTabPage::getAccessibleName() { OExternalLockGuard aGuard( this ); - return GetPageText(); -} + OUString sName; + if ( m_pTabControl ) + sName = m_pTabControl->GetAccessibleName( m_nPageId ); + return sName; +} Reference< XAccessibleRelationSet > VCLXAccessibleTabPage::getAccessibleRelationSet( ) { |