Hi Holger,
currently this is not possible. But we are working on an API for the
slideshow
engine right now for the presenter view feature. Our current plan is to have
it finished for OOo 2.4. Please note that this is only an estimate. If
you are
able to build an OOo release from source you can try out the childworkspace
presenterview to already play with the new API. Be warned that this is
work in progress.
Regards,
Christian
Holger Brandl wrote:
Hi oo-devs,
I'm working on an flashcard learning extension for OpenOffice Impress.
Doing so, I would like to to use the Java-UNO-API to control an Impress
presentation while it's in the full-screen presentation mode.
To start the presentation I use the following snippet
('cast' just wraps UnoRuntime.queryInterface() here):
XPresentationSupplier xPresSupplier =
cast(XPresentationSupplier.class,xComponent);
XPresentation xPresentation = xPresSupplier.getPresentation();
XPropertySet xPresPropSet =
ImpressHelper.cast(XPropertySet.class,xPresentation);
xPresentation.start();
So far anything works fine. Now I would like to select slides in an
user-defined order, which is not known a-priori before starting the
presentation. (if it would be known, I could setup a custom presentation
using the XCustomPresentationSupplier ). Unfortunately XPresentation
does not provide any API to select a specific slide. Nevertheless, it is
possible to do such a thing within Impress, because the context-menu
of a running
full-screen presentation allows to select arbitrary slides.
Any help is is welcome. :-) Currently this issue blocks the next
release of the extension. :-(
Best regards,
Holger
ps.
The solution:
XModel x = cast(XModel.class, xComponent);
XController xco = x.getCurrentController();
XDrawView xdv = cast(XDrawView.class, xco);
xdv.setCurrentPage(xDrawPageToBeShown);
does not work here, because it shows the slide in the editor only, and
not within a running presentation.
--
OpenCards - A free flashcard learning extension for OpenOffice Impress
http://www.opencards.info
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Sun Microsystems GmbH
Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]