[Libreoffice-commits] core.git: Branch 'feature/sidebar' - sfx2/source
Andre Fischer
af at apache.org
Fri May 17 11:44:31 PDT 2013
sfx2/source/sidebar/PanelTitleBar.cxx | 8 +++++++-
sfx2/source/sidebar/Sidebar.hrc | 5 +++--
sfx2/source/sidebar/Sidebar.src | 5 +++++
3 files changed, 15 insertions(+), 3 deletions(-)
New commits:
commit 35c18dc890a8883b974ff73c585033fc3ee3b73e
Author: Andre Fischer <af at apache.org>
Date: Thu May 16 08:49:36 2013 +0000
Resolves: #i122271# Provide accessible for panels that...
includes the panel title.
(cherry picked from commit e785c5125994bbfdb4e69108b5a73a184b3ced49)
Change-Id: I97cf9f5f78382dfbd69dcff33b7066380d47313d
diff --git a/sfx2/source/sidebar/PanelTitleBar.cxx b/sfx2/source/sidebar/PanelTitleBar.cxx
index 9b67e3c..3446aca 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 c9c4d79..ac3500b 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 6ec57c1..a5d8a03 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: ";
+};
+
More information about the Libreoffice-commits
mailing list