Apache OpenOffice (AOO) Bugzilla – Issue 109584
Full-screen presentation triggered via API doesn't work
Last modified: 2013-02-07 22:42:02 UTC
On Mac OS X (Snow Leopard, 10.6.2) I cannot correctly start a presentation in full-screen mode via API when using OOo 3.2/SDK 3.2. All I get is a white full-screen window with scrollbars at the right and at the bottom. I have to click into this window first to actually start the presentation. Everything works fine though when I start a presentation in window-only mode via API or generally when a full-screen presentation is started manually from with Impress. To reproduce this problem you can for instance simply take the OOo SDK example 'DocumentLoader' from the cpp examples and slightly modify it. Load an impress presentation and try to start it via API. I have tried it both ways using 'XPresentation->start()' or 'XPresentation2->startWithArguments(...)' using several different combination of arguments e.g.: ... Sequence<PropertyValue> presProps(2); PropertyValue p1; p1.Name = OUString::createFromAscii("IsFullScreen"); p1.Value <<= false; PropertyValue p2; p2.Name = OUString::createFromAscii("IsAlwaysOnTop"); p2.Value <<= true; presProps[0] = p1; presProps[1] = p2; //xPresentation->start(); xPresentation2->startWithArguments(presProps); Neither way worked correctly.
@tra: The presentation is internally started via the start() method as well. As this works quite well I need more information about what happens in your code before or after this call. A more complete code sample would be helpful.
Created attachment 68023 [details] A complete test program to reproduce the issue
@af: Ok, I've attached a complete test program now. It's derived from the OOo cpp SDK example 'DocumentLoader'. In an OOo SDK env you simple 'make' it and run it via 'make PresentationLoader.run' but you probably know that better than me. ;)