List Info

Thread: How to select a slide while Impress is in presentation mode ?




How to select a slide while Impress is in presentation mode ?
user name
2007-08-09 15:14:02
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: dev-unsubscribegraphics.openoffice.org
For additional commands, e-mail: dev-helpgraphics.openoffice.org


Re: How to select a slide while Impress is in presentation mode ?
user name
2007-08-10 05:13:06
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: dev-unsubscribegraphics.openoffice.org
> For additional commands, e-mail: dev-helpgraphics.openoffice.org
>


-- 
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: dev-unsubscribegraphics.openoffice.org
For additional commands, e-mail: dev-helpgraphics.openoffice.org


Re: How to select a slide while Impress is in presentation mode ?
user name
2007-08-10 12:57:23
Hi Christian,

thanks to your response.

> currently this is not possible.
:-(

> But we are working on an API for the slideshow engine


> Our current plan is to have it finished for OOo 2.4.
What is the planned release date? spring08 ?

> 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.
Is there some documentation for the new API available? Will
the new API also be supported by the Java interface of OO?
Are there already nightly builds of OO2.4 available, which
include the feature (Unfortunately I'm not able to build OO
by myself)?

What do you think: Is it possible to hack around the missing
API by appending 1-slide-XCustomPresentationSupplier-powered
presentations without leaving the full screen mode? This
would allow me to implement at least full screen learning
(although without fancy slide transitions for cool
memorization modes)?

Is it possible to skip a slide using the old API?
Is there a "next slide"/"last
slide"-functionality available in the current OO?

Best regards,
Holger

-- 
OpenCards - A free flashcard learning extension for
OpenOffice Impress
http://www.opencards.info

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribegraphics.openoffice.org
For additional commands, e-mail: dev-helpgraphics.openoffice.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )