Hi oo-devs,

I'm working on an extension for OpenOffice Impress. Doing so, I would
like to to use the Java-UNO-API to control an Impress presentation while
it's running. 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 ). Unfortuneatly XPresentation
does not provide any API to select a specific slide. Nevertheless, it is
possible to do such a thing, because the context-menu of a running
full-screen presentation allows to select arbitrary slides.

Any help is help is welcome. :-)

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.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to