sd/source/ui/unoidl/unomodel.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit a2a7e98c2f8d6462897b6dd97ad90b284da09c77
Author:     Pranam Lashkari <[email protected]>
AuthorDate: Sat Oct 11 00:13:02 2025 +0530
Commit:     Caolán McNamara <[email protected]>
CommitDate: Mon Oct 13 13:36:47 2025 +0200

    LOK: send slide unique id in presentationInfo
    
    Change-Id: I56df8ec5fb75a958defddd254a28ee4d187b27b6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192181
    Tested-by: Caolán McNamara <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index caf855221649..c200773c38b6 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -4657,6 +4657,8 @@ OString SdXImpressDocument::getPresentationInfo(bool 
bAllyState) const
             SdGenericDrawPage* pSlide(xDrawPages->getDrawPageByIndex(i));
             bool bIsVisible = true; // default visible
             pSlide->getPropertyValue("Visible") >>= bIsVisible;
+
+            SdPage* pPage = SdPage::getImplementation(pSlide);
             if (!bIsVisible)
             {
                 auto aSlideNode = aJsonWriter.startStruct();
@@ -4664,15 +4666,15 @@ OString SdXImpressDocument::getPresentationInfo(bool 
bAllyState) const
                 aJsonWriter.put("hash", sSlideHash);
                 aJsonWriter.put("index", i);
                 aJsonWriter.put("hidden", true);
+                aJsonWriter.put("uniqueID", pPage->GetUniqueID());
             }
             else
             {
-                SdPage* pPage = SdPage::getImplementation(pSlide);
-
                 auto aSlideNode = aJsonWriter.startStruct();
                 std::string sSlideHash = 
GetInterfaceHash(cppu::getXWeak(pSlide));
                 aJsonWriter.put("hash", sSlideHash);
                 aJsonWriter.put("index", i);
+                aJsonWriter.put("uniqueID", pPage->GetUniqueID());
 
                 if (pPage)
                 {

Reply via email to