sd/source/ui/dlg/titledockwin.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 025ae65c20d2c89ca05ce3ab5c9eb7fb185bfdfc
Author:     Michael Weghorn <[email protected]>
AuthorDate: Mon Jun 30 12:16:21 2025 +0200
Commit:     Adolfo Jayme Barrientos <[email protected]>
CommitDate: Tue Jul 1 05:06:13 2025 +0200

    tdf#100876 sd a11y: Use pane title as a11y name
    
    TitledDockingWindow::m_sTitle is used for
    the title to display for that docking window. Also
    set it as an accessible name, so it is also available
    to assistive technologies.
    
    This e.g. makes clear when the "Slides" pane gets reached (its close
    button receives focus) in Impress when cycling through panes using
    the F6 key.
    
    Change-Id: I5e6221cdf5ee9365372c639db59b0156d278d4ec
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187183
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <[email protected]>
    (cherry picked from commit 0e46139d181279be80774051b01f1c268de738de)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187214
    Reviewed-by: Adolfo Jayme Barrientos <[email protected]>

diff --git a/sd/source/ui/dlg/titledockwin.cxx 
b/sd/source/ui/dlg/titledockwin.cxx
index d545170da688..c01a36252004 100644
--- a/sd/source/ui/dlg/titledockwin.cxx
+++ b/sd/source/ui/dlg/titledockwin.cxx
@@ -51,8 +51,7 @@ namespace sd
 
         m_aContentWindow->Show();
 
-        m_sTitle = rsTitle;
-        Invalidate();
+        SetTitle(rsTitle);
         SetSizePixel(LogicToPixel(Size(80,200), MapMode(MapUnit::MapAppFont)));
     }
 
@@ -71,6 +70,7 @@ namespace sd
     void TitledDockingWindow::SetTitle(const OUString& i_rText)
     {
         m_sTitle = i_rText;
+        SetAccessibleName(m_sTitle);
         Invalidate();
     }
 

Reply via email to