diff --git a/sfx2/source/sidebar/PanelTitleBar.cxx b/sfx2/source/sidebar/PanelTitleBar.cxx index f526c0250055..8a4313e7cb55 100644 --- a/sfx2/source/sidebar/PanelTitleBar.cxx +++ b/sfx2/source/sidebar/PanelTitleBar.cxx @@ -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 PanelTitleBar::CreateAccessible() { - const ::rtl::OUString sAccessibleName(msAccessibleNamePrefix + msTitle); - SetAccessibleName(sAccessibleName); - SetAccessibleDescription(sAccessibleName); + SetAccessibleName(msTitle); + SetAccessibleDescription(msTitle); return TitleBar::CreateAccessible(); } diff --git a/sfx2/source/sidebar/PanelTitleBar.hxx b/sfx2/source/sidebar/PanelTitleBar.hxx index ede039f863dd..3a00cf780f1e 100644 --- a/sfx2/source/sidebar/PanelTitleBar.hxx +++ b/sfx2/source/sidebar/PanelTitleBar.hxx @@ -61,7 +61,6 @@ private: const sal_uInt16 mnMenuItemIndex; css::uno::Reference mxFrame; ::rtl::OUString msMoreOptionsCommand; - ::rtl::OUString msAccessibleNamePrefix; }; } } // end of namespace sfx2::sidebar diff --git a/sfx2/source/sidebar/Sidebar.hrc b/sfx2/source/sidebar/Sidebar.hrc index a351c1ea05e6..8f62aecbc91d 100644 --- a/sfx2/source/sidebar/Sidebar.hrc +++ b/sfx2/source/sidebar/Sidebar.hrc @@ -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: */ diff --git a/sfx2/source/sidebar/Sidebar.src b/sfx2/source/sidebar/Sidebar.src index eaa55c08d870..a929dc501ef7 100644 --- a/sfx2/source/sidebar/Sidebar.src +++ b/sfx2/source/sidebar/Sidebar.src @@ -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: */