Author: af
Date: Thu May 16 08:49:36 2013
New Revision: 1483251

URL: http://svn.apache.org/r1483251
Log:
122271: Provide accessible for panels that includes the panel title.

Modified:
    openoffice/trunk/main/sfx2/source/sidebar/PanelTitleBar.cxx
    openoffice/trunk/main/sfx2/source/sidebar/Sidebar.hrc
    openoffice/trunk/main/sfx2/source/sidebar/Sidebar.src

Modified: openoffice/trunk/main/sfx2/source/sidebar/PanelTitleBar.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sfx2/source/sidebar/PanelTitleBar.cxx?rev=1483251&r1=1483250&r2=1483251&view=diff
==============================================================================
--- openoffice/trunk/main/sfx2/source/sidebar/PanelTitleBar.cxx (original)
+++ openoffice/trunk/main/sfx2/source/sidebar/PanelTitleBar.cxx Thu May 16 
08:49:36 2013
@@ -48,7 +48,7 @@ static const sal_Int32 gaRightIconPaddin
 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

Modified: openoffice/trunk/main/sfx2/source/sidebar/Sidebar.hrc
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sfx2/source/sidebar/Sidebar.hrc?rev=1483251&r1=1483250&r2=1483251&view=diff
==============================================================================
--- openoffice/trunk/main/sfx2/source/sidebar/Sidebar.hrc (original)
+++ openoffice/trunk/main/sfx2/source/sidebar/Sidebar.hrc Thu May 16 08:49:36 
2013
@@ -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)

Modified: openoffice/trunk/main/sfx2/source/sidebar/Sidebar.src
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sfx2/source/sidebar/Sidebar.src?rev=1483251&r1=1483250&r2=1483251&view=diff
==============================================================================
--- openoffice/trunk/main/sfx2/source/sidebar/Sidebar.src (original)
+++ openoffice/trunk/main/sfx2/source/sidebar/Sidebar.src Thu May 16 08:49:36 
2013
@@ -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: ";
+};
+


Reply via email to