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

New commits:
commit 6fb8d0b7d696e0bc8e53ad5bcd8aee429e1294af
Author:     Hubert Figuière <h...@collabora.com>
AuthorDate: Wed Sep 18 17:22:14 2024 -0400
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Thu Dec 12 15:58:24 2024 +0100

    lok: getSlideShowInfo: return the slide names
    
    This allow finding slides by bookmark
    
    Change-Id: Ia951aebdd04b67f4138138f7c0e1404078cc23ac
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178345
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index d456ef494dd8..70fbbd52c2a4 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -4337,13 +4337,19 @@ OString SdXImpressDocument::getPresentationInfo() const
             }
             else
             {
-                SdrPage* pPage = pSlide->GetSdrPage();
+                SdPage* pPage = SdPage::getImplementation(pSlide);
 
                 auto aSlideNode = aJsonWriter.startStruct();
                 std::string sSlideHash = 
GetInterfaceHash(cppu::getXWeak(pSlide));
                 aJsonWriter.put("hash", sSlideHash);
                 aJsonWriter.put("index", i);
 
+                if (pPage)
+                {
+                    auto aName = 
SdDrawPage::getPageApiNameFromUiName(pPage->GetName());
+                    aJsonWriter.put("name", aName);
+                }
+
                 bool bIsDrawPageEmpty = pSlide->getCount() == 0;
                 aJsonWriter.put("empty", bIsDrawPageEmpty);
 

Reply via email to