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

preventing actions

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





PostPosted: Thu Sep 11, 2003 7:03 am    Post subject: preventing actions Reply with quote

Hi,
is it possible to catch events like saving or printing and do only the own actions without executing the main functions? i can catch events but i don't know how to stop the actions the perform.

greetings

pueppchen
Back to top
DannyB
Moderator
Moderator


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

PostPosted: Wed Oct 08, 2003 7:57 pm    Post subject: Reply with quote

Now that I've learned more about the dispatcher, I would say "yes, it is possible".

Instead of listening for events (event listeners) think in terms of modifying the dispatcher.

I'm not saying I know how to do this. But the dispatcher is something that I've recently read some about again.

It seems like there is a mechanism to intercept dispatch events whereby you could catch certian actions done in the UI and stop them from going to the OOo back end to be carried out.

Does this make sense?
_________________
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
Pueppchen
General User
General User


Joined: 15 Sep 2003
Posts: 14

PostPosted: Tue Oct 14, 2003 4:19 am    Post subject: Reply with quote

Yes, it is possible!
And yes, with the dispatcher framework. It just works fine and you can decide if you just want to intercept actions or if you want to implement your own actions.

Thanks

Ingo
Back to top
View user's profile Send private message
DannyB
Moderator
Moderator


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

PostPosted: Tue Oct 14, 2003 1:38 pm    Post subject: Reply with quote

Pueppchen wrote:
Yes, it is possible!
And yes, with the dispatcher framework. It just works fine and you can decide if you just want to intercept actions or if you want to implement your own actions.


Thanks for the info. That's cool.

It would be even more cold if you could provide more info, such as a short example of intercepting an event? (Whatever language you're working in.)
_________________
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
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