On Tue, 2025-07-29 at 16:41 +0200, Michael Stahl wrote:
> drawdoc.hxx has this:
>      SAL_DLLPRIVATE const css::uno::Reference< 
> css::presentation::XPresentation2 >& getPresentation() const;
> 
> > What to do?
> 
> remove SAL_DLLPRIVATE from this declaration

Maybe staying within uno to avoid the need to access the hidden symbol
works in this case. The attached seems to compile at least.
diff --git a/sd/qa/unit/uiimpress.cxx b/sd/qa/unit/uiimpress.cxx
index f83f428b1a9e..b3400cb2c74b 100644
--- a/sd/qa/unit/uiimpress.cxx
+++ b/sd/qa/unit/uiimpress.cxx
@@ -1437,10 +1437,10 @@ CPPUNIT_TEST_FIXTURE(SdUiImpressTest, testTdf166647_userpaint)
     CPPUNIT_ASSERT(pXImpressDocument);
 
     // Go in slideshow mode and back to edit mode
-    SdDrawDocument* pDoc = pXImpressDocument->GetDoc();
-    CPPUNIT_ASSERT(pDoc);
-    uno::Reference<presentation::XPresentation2> xPresentation(pDoc->getPresentation(),
-                                                               uno::UNO_QUERY);
+    uno::Reference<presentation::XPresentationSupplier> xPresentationSupplier(mxComponent, uno::UNO_QUERY);
+    CPPUNIT_ASSERT(xPresentationSupplier);
+    uno::Reference<presentation::XPresentation2> xPresentation(xPresentationSupplier->getPresentation(), uno::UNO_QUERY);
+    CPPUNIT_ASSERT(xPresentation);
     xPresentation->start();
     CPPUNIT_ASSERT(xPresentation->isRunning());
     // xPresentation->end() would finish slideshow, but would not trigger method

Reply via email to