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]

Reply via email to