diff options
author | Andre Fischer <af@apache.org> | 2013-05-16 08:49:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-20 15:02:12 +0100 |
commit | 7d56c8d0772965a20d8614482bd7c2324e4be8c1 (patch) | |
tree | 22a32654d7aef3486882d79ca026d069a50dc1ca | |
parent | 82f418d2d90b65ddb474f9d7637d76a6779d60cf (diff) |
Resolves: #i122271# Provide accessible for panels that...
includes the panel title.
(cherry picked from commit e785c5125994bbfdb4e69108b5a73a184b3ced49)
Change-Id: I97cf9f5f78382dfbd69dcff33b7066380d47313d
(cherry picked from commit 35c18dc890a8883b974ff73c585033fc3ee3b73e)
-rw-r--r-- | sfx2/source/sidebar/PanelTitleBar.cxx | 8 | ||||
-rw-r--r-- | sfx2/source/sidebar/Sidebar.hrc | 5 | ||||
-rw-r--r-- | sfx2/source/sidebar/Sidebar.src | 5 |
3 files changed, 15 insertions, 3 deletions
diff --git a/sfx2/source/sidebar/PanelTitleBar.cxx b/sfx2/source/sidebar/PanelTitleBar.cxx index 9b67e3ca2e37..3446acac5b81 100644 --- a/sfx2/source/sidebar/PanelTitleBar.cxx +++ b/sfx2/source/sidebar/PanelTitleBar.cxx @@ -43,7 +43,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), @@ -52,6 +52,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 diff --git a/sfx2/source/sidebar/Sidebar.hrc b/sfx2/source/sidebar/Sidebar.hrc index c9c4d79a5401..ac3500babc91 100644 --- a/sfx2/source/sidebar/Sidebar.hrc +++ b/sfx2/source/sidebar/Sidebar.hrc @@ -52,5 +52,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) diff --git a/sfx2/source/sidebar/Sidebar.src b/sfx2/source/sidebar/Sidebar.src index 6ec57c10126f..a5d8a03e62fb 100644 --- a/sfx2/source/sidebar/Sidebar.src +++ b/sfx2/source/sidebar/Sidebar.src @@ -165,3 +165,8 @@ String SFX_STR_SIDEBAR_CLOSE_DECK Text [en-US] = "Close Sidebar Deck"; }; +String SFX_STR_SIDEBAR_ACCESSIBILITY_PANEL_PREFIX +{ + Text [en-US] = "Panel: "; +}; + |