| View previous topic :: View next topic |
| Author |
Message |
pueppchen Guest
|
Posted: Thu Sep 11, 2003 7:03 am Post subject: preventing actions |
|
|
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


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
Posted: Wed Oct 08, 2003 7:57 pm Post subject: |
|
|
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 |
|
 |
Pueppchen General User

Joined: 15 Sep 2003 Posts: 14
|
Posted: Tue Oct 14, 2003 4:19 am Post subject: |
|
|
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 |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
Posted: Tue Oct 14, 2003 1:38 pm Post subject: |
|
|
| 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 |
|
 |
|