tdf#90994 The accessible name should not contain the accessible role
The accessible role (PANEL) is added as a prefix to the title bar in the sidebar. That is redundant and can even make things confusing for the users of screen-readers. Change-Id: I743defa0b1b9f3f278d0cabc7196054796fb3c47 Reviewed-on: https://gerrit.libreoffice.org/15636 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
committed by
Caolán McNamara
parent
0fc79344ce
commit
b4d7f82484
@@ -48,8 +48,7 @@ PanelTitleBar::PanelTitleBar (
|
||||
mpPanel(pPanel),
|
||||
mnMenuItemIndex(1),
|
||||
mxFrame(),
|
||||
msMoreOptionsCommand(),
|
||||
msAccessibleNamePrefix(SFX2_RESSTR(SFX_STR_SIDEBAR_ACCESSIBILITY_PANEL_PREFIX))
|
||||
msMoreOptionsCommand()
|
||||
{
|
||||
OSL_ASSERT(mpPanel != nullptr);
|
||||
|
||||
@@ -168,9 +167,8 @@ void PanelTitleBar::HandleToolBoxItemClick (const sal_uInt16 nItemIndex)
|
||||
|
||||
Reference<accessibility::XAccessible> PanelTitleBar::CreateAccessible()
|
||||
{
|
||||
const ::rtl::OUString sAccessibleName(msAccessibleNamePrefix + msTitle);
|
||||
SetAccessibleName(sAccessibleName);
|
||||
SetAccessibleDescription(sAccessibleName);
|
||||
SetAccessibleName(msTitle);
|
||||
SetAccessibleDescription(msTitle);
|
||||
return TitleBar::CreateAccessible();
|
||||
}
|
||||
|
||||
|
@@ -61,7 +61,6 @@ private:
|
||||
const sal_uInt16 mnMenuItemIndex;
|
||||
css::uno::Reference<css::frame::XFrame> mxFrame;
|
||||
::rtl::OUString msMoreOptionsCommand;
|
||||
::rtl::OUString msAccessibleNamePrefix;
|
||||
};
|
||||
|
||||
} } // end of namespace sfx2::sidebar
|
||||
|
@@ -56,6 +56,5 @@
|
||||
|
||||
#define SFX_STR_SIDEBAR_MORE_OPTIONS (RID_SFX_SIDEBAR_START + 1)
|
||||
#define SFX_STR_SIDEBAR_CLOSE_DECK (RID_SFX_SIDEBAR_START + 2)
|
||||
#define SFX_STR_SIDEBAR_ACCESSIBILITY_PANEL_PREFIX (RID_SFX_SIDEBAR_START + 3)
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@@ -170,9 +170,5 @@ String SFX_STR_SIDEBAR_CLOSE_DECK
|
||||
Text [en-US] = "Close Sidebar Deck";
|
||||
};
|
||||
|
||||
String SFX_STR_SIDEBAR_ACCESSIBILITY_PANEL_PREFIX
|
||||
{
|
||||
Text [en-US] = "Panel: ";
|
||||
};
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
Reference in New Issue
Block a user