Hello Julien,

What about my other proposed solution? Use a job and register your service before any UI is visible.


I will remember this solution. I have set it aside for the time being, because a job must be registered again in some OO configuration file (typically in the .xcu of a package), and that is precisely the kind of thing we try to avoid. We want to register everything dynamically.

They only way to get a notification about the first opened visible document is using of the job mechanism. OK - you can register any UNO listener on the gloabl css.document.GlobalEventBroadcaster instance (such broadcaster provides any notification about loading/storing/changing office documents) ... but how you will trigger your own listener registration ? Hardly coded inside main() ?

But there exists a direct binding between the GlobalEventBroadcaster and the job execution. Jobs can be registered for events (e.g. OnStartApp). Of course registration of such jobs can be done using the configuration only.

You said (some postings before) you dont install an AddOn .. you wish to patch the office "dynamicly at runtime". How do you do that ?


Julien Galand


Regards
Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to