sd/source/ui/unoidl/unomodel.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit 258618e4e22dce2774fbb88820ffd02f667be4f1 Author: Pranam Lashkari <[email protected]> AuthorDate: Sat Oct 11 00:13:02 2025 +0530 Commit: Caolán McNamara <[email protected]> CommitDate: Tue Oct 14 15:13:19 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]> (cherry picked from commit a2a7e98c2f8d6462897b6dd97ad90b284da09c77) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192285 Tested-by: Jenkins diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 66ef740a83b4..8ba74363d3d5 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -4631,6 +4631,8 @@ OString SdXImpressDocument::getPresentationInfo() 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(); @@ -4638,15 +4640,15 @@ OString SdXImpressDocument::getPresentationInfo() 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) {
