Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index


Hi all,

to make a unit test for tdf#129898 (https://gerrit.libreoffice.org/c/core/+/92502), I would need a running slideshow in full screen mode, and then use mouse to paint something.

How do I get a running slideshow? I have not found any test, which uses a running slideshow.

I have tried this in sd\qa\unit\misc-tests.cxx:

const OUString sURL("/sd/qa/unit/data/tdf129898_MousePointerAsPen.odp");
sd::DrawDocShellRef xDocShRef = Load(m_directories.getURLFromSrc(sURL), ODP); sd::DrawViewShell* pDrawViewShell = static_cast<sd::DrawViewShell*>(xDocShRef -> GetViewShell()); uno::Reference<presentation::XPresentation2> xPresentation2 = xDocShRef->GetDoc()->getPresentation();
xPresentation2->start();
CPPUNIT_ASSERT(xPresentation2->isRunning());

But the assertion fails.

In debugger I see, mbIsInStartup=true and mxController empty.

Kind regards
Regina

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.