Link to home
Start Free TrialLog in
Avatar of zizi21
zizi21

asked on

getPresentation().start() timer

Hi all,

I am stuck and have been spent a long time. Any help to get me started is appreciated.
I have created some presentation slides using :

oDoc1 = StarDesktop.loadComponentFromURL( ....document 1... )
oDoc1.getPresentation().start()

But, I can't put a timer between the slides. I am trying to do a pause of a couple of seconds before the slide advances to the next slide. And then, when the presentation finishes, it starts from the first slide again.

I think, i need a timer. Could please direct to any function to get me started , i would appreciate it very much.
Avatar of ltlbearand3
ltlbearand3
Flag of United States of America image

The pause between slides needs to be added to the presentation itself.  In OOo Impress or LIbreOffice Impress in the right pane under tasks Click on Slide Transition.  Then in the section for Advance slide click on automatically after and add in your time delay.  then Click Apply to All slides.

Then to Loop the slide Show, click on Slide Show >> Slide Show Settings and set the type to Auto.  Put in your delay between shows and save.

-Bear
Avatar of zizi21
zizi21

ASKER

I know how to do it in the presentation but I am trying to use a macro for it. Like, have a for loop and just continue looping the slides with some pauses..Is that possible..?
The only way I know to make this work is to add the setting through the interface.  Once they are set properly there, then the start method will do what you want.  What are the limitations that keep you from setting them in the presenation?

There are several properties that look like they may do what you need, but I can get none of them to work.

http://www.openoffice.org/api/docs/common/ref/com/sun/star/presentation/DrawPage.html
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Drawings/Presentation_Settings
ASKER CERTIFIED SOLUTION
Avatar of ltlbearand3
ltlbearand3
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zizi21

ASKER

Sorry for the late reply as something happened...Thanks a lot...I am studying and doing it now...
Avatar of zizi21

ASKER

Thanks a lot.