sd/source/ui/func/fusel.cxx |   21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

New commits:
commit 1c4783a98a841e5fe0ce8fc027299a1c23fba2f5
Author:     Mohit Marathe <[email protected]>
AuthorDate: Tue Dec 16 20:39:19 2025 +0530
Commit:     Mohit Marathe <[email protected]>
CommitDate: Wed Jan 14 09:02:59 2026 +0100

    sd: lok: send ReshufflePagePopup command on selecting a preview
    
    inside canvas page
    
    Signed-off-by: Mohit Marathe <[email protected]>
    Change-Id: Iad9f8b1465ba424acbbcc822209687a2bc013412
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195734
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Michael Stahl <[email protected]>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196725

diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx
index deeb3e56889a..50811e0b98f8 100644
--- a/sd/source/ui/func/fusel.cxx
+++ b/sd/source/ui/func/fusel.cxx
@@ -446,6 +446,27 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
                             pHdl=mpView->PickHandle(aMDPos);
                             if ( ! rMEvt.IsRight())
                                 mpView->BegDragObj(aMDPos, nullptr, pHdl, 
nDrgLog);
+
+                            if (comphelper::LibreOfficeKit::isActive())
+                            {
+                                if (pObj->GetObjIdentifier() == 
SdrObjKind::Page)
+                                {
+                                    SdPage* pPage = 
mrViewShell.GetActualPage();
+                                    if (pPage->IsCanvasPage())
+                                    {
+                                        ::tools::JsonWriter jsonWriter;
+                                        jsonWriter.put("commandName", 
"ReshufflePagePopup");
+                                        {
+                                            auto jsonState = 
jsonWriter.startNode("state");
+                                        }
+
+                                        OString aPayload = 
jsonWriter.finishAndGetAsOString();
+                                        if (pViewShell)
+                                            
pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_STATE_CHANGED, aPayload);
+
+                                    }
+                                }
+                            }
                         }
                         else
                         {

Reply via email to