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

New commits:
commit 10ef0f03bb6a9efc0dcabe8710b59bd7b41a2fcf
Author:     Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk>
AuthorDate: Tue May 21 14:25:21 2024 +0900
Commit:     Michael Meeks <michael.me...@collabora.com>
CommitDate: Tue May 21 13:12: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>

diff --git a/sw/source/uibase/sidebar/A11yCheckIssuesPanel.cxx 
b/sw/source/uibase/sidebar/A11yCheckIssuesPanel.cxx
index c29574a84933..fab35b1b04b2 100644
--- a/sw/source/uibase/sidebar/A11yCheckIssuesPanel.cxx
+++ b/sw/source/uibase/sidebar/A11yCheckIssuesPanel.cxx
@@ -19,6 +19,7 @@
 
 #include <officecfg/Office/Common.hxx>
 #include <sfx2/bindings.hxx>
+#include <sfx2/viewsh.hxx>
 #include <sfx2/AccessibilityIssue.hxx>
 #include <unotools/configmgr.hxx>
 #include <vcl/svapp.hxx>
@@ -227,6 +228,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();
@@ -313,6 +320,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