Kaydet (Commit) e785c512 authored tarafından Andre Fischer's avatar Andre Fischer

122271: Provide accessible for panels that includes the panel title.

üst 515de997
......@@ -48,7 +48,7 @@ static const sal_Int32 gaRightIconPadding (5);
PanelTitleBar::PanelTitleBar (
const ::rtl::OUString& rsTitle,
Window* pParentWindow,
Panel* pPanel )
Panel* pPanel)
: TitleBar(rsTitle, pParentWindow, GetBackgroundPaint()),
mbIsLeftButtonDown(false),
mpPanel(pPanel),
......@@ -57,6 +57,12 @@ PanelTitleBar::PanelTitleBar (
{
OSL_ASSERT(mpPanel != NULL);
const ::rtl::OUString sAccessibleName(
String(SfxResId(SFX_STR_SIDEBAR_ACCESSIBILITY_PANEL_PREFIX))
+ rsTitle);
SetAccessibleName(sAccessibleName);
SetAccessibleDescription(sAccessibleName);
#ifdef DEBUG
SetText(A2S("PanelTitleBar"));
#endif
......
......@@ -86,5 +86,6 @@
#define STRING_CUSTOMIZATION 200
#define STRING_RESTORE 201
#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_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)
......@@ -302,3 +302,8 @@ String SFX_STR_SIDEBAR_CLOSE_DECK
Text [en-US] = "Close Sidebar Deck";
};
String SFX_STR_SIDEBAR_ACCESSIBILITY_PANEL_PREFIX
{
Text [en-US] = "Panel: ";
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment