sw/source/uibase/sidebar/A11yCheckIssuesPanel.cxx |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit 3e4e9f3d37c8ffbed15f9bc604075ab9e41d36f5
Author:     Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk>
AuthorDate: Tue May 21 14:25:21 2024 +0900
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Jun 17 10:44:30 2024 +0200

    sw: show "wait" pointer while accessibility check is running
    
    Change-Id: I234af45560db7940d07669be9abd1b1ec50a74cd
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167880
    Tested-by: Michael Meeks <michael.me...@collabora.com>
    Reviewed-by: Michael Meeks <michael.me...@collabora.com>
    (cherry picked from commit 10ef0f03bb6a9efc0dcabe8710b59bd7b41a2fcf)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168783
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins
    (cherry picked from commit 37422f16fe56ca10cda549af03b165bf28c9e099)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168875
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/source/uibase/sidebar/A11yCheckIssuesPanel.cxx 
b/sw/source/uibase/sidebar/A11yCheckIssuesPanel.cxx
index 8bcaa97b7174..dc91eaebfca9 100644
--- a/sw/source/uibase/sidebar/A11yCheckIssuesPanel.cxx
+++ b/sw/source/uibase/sidebar/A11yCheckIssuesPanel.cxx
@@ -19,8 +19,10 @@
 
 #include <officecfg/Office/Common.hxx>
 #include <sfx2/bindings.hxx>
+#include <sfx2/viewsh.hxx>
 #include <sfx2/AccessibilityIssue.hxx>
 #include <unotools/configmgr.hxx>
+#include <vcl/ptrstyle.hxx>
 #include <vcl/svapp.hxx>
 #include <o3tl/enumrange.hxx>
 #include <comphelper/lok.hxx>
@@ -229,6 +231,12 @@ void A11yCheckIssuesPanel::populateIssues()
     if (!mpDoc || !mxAccessibilityBox->is_visible())
         return;
 
+    SfxViewShell* pViewShell = SfxViewShell::Current();
+    auto* pWindow = pViewShell ? pViewShell->GetWindow() : nullptr;
+
+    if (pWindow)
+        pWindow->SetPointer(PointerStyle::Wait);
+
     sw::AccessibilityCheck aCheck(mpDoc);
     aCheck.check();
     m_aIssueCollection = aCheck.getIssueCollection();
@@ -315,6 +323,9 @@ void A11yCheckIssuesPanel::populateIssues()
             m_xExpanders[nGroupIndex]->hide();
         nGroupIndex++;
     }
+
+    if (pWindow)
+        pWindow->SetPointer(PointerStyle::Arrow);
 }
 
 void A11yCheckIssuesPanel::NotifyItemUpdate(const sal_uInt16 nSid, const 
SfxItemState /* eState */,

Reply via email to