Apache OpenOffice (AOO) Bugzilla – Issue 21941
Additional event required for jobs
Last modified: 2013-02-24 21:09:34 UTC
Currently a job can trigger on a "onFirstVisibleTask" event. This is good for most uses, but what if a component needs to attach and initialize itself when OO is started (before there is a visible task). An additional event is required (onOfficeStart??) that is triggered as soon as OO is started (including if the quickstarter is executed). The OnStartApp event implies that is can do this, but I can't seem to make it work. If this is the case, I'll gladly take an example of it's use.
forwarding to responsible developer
"OnStartApp" should work, are you sure that your configuration is correct?
Are there examples of OnStartApp use? I modified the AsyncJob example to use this event and I don't see the event happen.
Andreas, could you please check if there is a problem in the code example. The pure functionality to use "OnStartApp" for jobs should work. I checked in a debugger that the service that executes jobs is called as expected.
The event "OnStartApp" is already available. Its called on every office startup (but maybe sometimes after "onFirstVisibleTask"!). The reason: "OnStartApp" must be triggered hardly from the code ... but "onFirstVisibleTask" depends from any window shown on startup (including specialized and may be optional components too!). For testing "OnStartApp" you can do the following one: 1) Please rename the files user/registry/data/org/openoffice/Office/Common.xcu and Jobs.xcu inside the same directory 2) Edit the file share/registry/data/org/openoffice/Office/Jobs.xcu and change Registratiom of the "RegistrationRequest" from event "onFirstVisibleTask" to "OnStartApp" (please note the uppercase "O"!). 3) Start your office. The registration dialog should came up => means "OnStartApp" works.
.