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

New commits:
commit 76ca63c3b9644d4699e075aacb1a30a481b445fc
Author:     Mohit Marathe <[email protected]>
AuthorDate: Tue Dec 16 20:39:19 2025 +0530
Commit:     Michael Stahl <[email protected]>
CommitDate: Thu Dec 18 14:50:04 2025 +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]>

diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx
index a3ff55634ec8..833b6c92c251 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 = 
mpViewShell->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