OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

impress events

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
chrishumphrey
Guest





PostPosted: Mon May 05, 2003 9:31 pm    Post subject: impress events Reply with quote

Hi all,

I am looking for an example on sending events to an impress document (go to next page, prev page, last page). I have looked through the docs and havent found much for impress, is there other docs out there, or does anyone have any examples I can use?

thanks,
chris
Back to top
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 3991
Location: Lawrence, Kansas, USA

PostPosted: Tue May 06, 2003 1:30 pm    Post subject: Re: Post subject: impress events Reply with quote

I do most of my playing with Draw not Impress. Here is how I switch pages in Draw. The following code is running from *within* the draw document. That is why it can use ThisComponent to obtain the draw document. (There are other ways. For instance, you coudl look at all open windows, fine a certian one that is a draw document, etc.)

' Get a drawing document from somewhere.
' In this case, the document that this macro is running from within.
Dim oDrawDoc As Object
oDrawDoc = ThisComponent


Dim oController As Object
oController = oDrawDoc.getCurrentController()

' Tell me whether the window is in "master page" display mode.
' Print oController.IsMasterPageMode

' Switch to page 2
oController.CurrentPage = oDrawDoc.drawPages( 1 )


Note the code to tell me whether the window is in "master page" mode is just a comment.
Back to top
View user's profile Send private message
chrishumphrey
Guest





PostPosted: Sun May 18, 2003 11:56 am    Post subject: Reply with quote

Thanks for the reply,

The problem with directly setting a page as the current one, is, if there are transitions from one screen to the next (it fades the first one out before bringing up the second), this solution wont show those.

-chris
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group