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

Undoing macro changes with only one undo

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
jeffrey_horner@yahoo.com
Newbie
Newbie


Joined: 30 Sep 2004
Posts: 2

PostPosted: Thu Sep 30, 2004 1:51 pm    Post subject: Undoing macro changes with only one undo Reply with quote

Essentially I'd like to back-out all changes that a macro made by clicking the undo button once. This behavior is similar to the "Find & Replace" feature. Is there a programmatic way to do this? Can a macro be programmed to do this?

jeff
Back to top
View user's profile Send private message Send e-mail
pitonyak
Administrator
Administrator


Joined: 09 Mar 2004
Posts: 3655
Location: Columbus, Ohio, USA

PostPosted: Mon Oct 04, 2004 6:57 pm    Post subject: Reply with quote

If your macro makes changes using the API in multiple steps then I think that in general you can not.
_________________
--
Andrew Pitonyak
http://www.pitonyak.org/oo.php
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
jeffrey_horner@yahoo.com
Newbie
Newbie


Joined: 30 Sep 2004
Posts: 2

PostPosted: Tue Oct 05, 2004 7:23 am    Post subject: Reply with quote

Interesting. I presume I'm using all API calls since my macro is written entirely in Basic. Is this the case?
Back to top
View user's profile Send private message Send e-mail
DannyB
Moderator
Moderator


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

PostPosted: Tue Oct 05, 2004 7:31 am    Post subject: Reply with quote

My experience with Draw is that when a macro makes numerous alterations to a document (drawing a bazillion lines to look like the colored flower at the left), each change is a seperate Undo step.
_________________
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
Cybb20
Super User
Super User


Joined: 02 Mar 2004
Posts: 1569
Location: Frankfurt, Germany

PostPosted: Tue Oct 05, 2004 8:04 am    Post subject: Reply with quote

I think it all depends on the dispatches that are run with the certain macro.
number of dispatches = number of possible "Undo"-button clicks

You can translate API calls to UNO dispatches on your own, but it will take you some time to find it out. So I don't think there is a way to rewing your macro by clicking the Undo button only one time.

Christian
_________________
- Knowledge is Power -
Back to top
View user's profile Send private message Send e-mail
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