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.
LibreOffice

Avatar of undefined
Last Comment
zizi21

8/22/2022 - Mon
ltlbearand3

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
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..?
ltlbearand3

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
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
ltlbearand3

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
zizi21

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

ASKER
Thanks a lot.