sd/source/ui/unoidl/unomodel.cxx |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 983b6dea54d402560f60df6a748eecce200e0f99
Author:     Hubert Figuière <h...@collabora.com>
AuthorDate: Wed Sep 18 17:22:14 2024 -0400
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Thu Sep 19 13:31:14 2024 +0200

    lok: getSlideShowInfo: return the slide names
    
    This allow finding slides by bookmark
    
    Signed-off-by: Hubert Figuière <h...@collabora.com>
    Change-Id: Ia951aebdd04b67f4138138f7c0e1404078cc23ac
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173648
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index ed028cc90046..e60495210800 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -4311,13 +4311,19 @@ OString SdXImpressDocument::getPresentationInfo() const
                         }
                         else
                         {
-                            SdrPage* pPage = SdPage::getImplementation(xSlide);
+                            SdPage* pPage = SdPage::getImplementation(xSlide);
 
                             ::tools::ScopedJsonWriterStruct aSlideNode = 
aJsonWriter.startStruct();
                             std::string sSlideHash = GetInterfaceHash(xSlide);
                             aJsonWriter.put("hash", sSlideHash);
                             aJsonWriter.put("index", i);
 
+                            if (pPage)
+                            {
+                                auto aName = 
SdDrawPage::getPageApiNameFromUiName(pPage->GetName());
+                                aJsonWriter.put("name", aName);
+                            }
+
                             uno::Reference<drawing::XShapes> 
xSlideShapes(xSlide, uno::UNO_QUERY_THROW);
                             bool bIsDrawPageEmpty = true;
                             if (xSlideShapes.is()) {

Reply via email to