Issue 21941 - Additional event required for jobs
Summary: Additional event required for jobs
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: thorsten.martens
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-31 00:55 UTC by Unknown
Modified: 2013-02-24 21:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-10-31 00:55:04 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.
Comment 1 ooo 2003-10-31 11:51:51 UTC
forwarding to responsible developer
Comment 2 Mathias_Bauer 2003-10-31 13:02:22 UTC
"OnStartApp" should work, are you sure that your configuration is correct?
Comment 3 Unknown 2003-10-31 15:12:08 UTC
Are there examples of OnStartApp use?  I modified the AsyncJob 
example to use this event and I don't see the event happen.
Comment 4 Mathias_Bauer 2003-11-03 09:30:37 UTC
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.
Comment 5 andreas.schluens 2003-11-14 14:12:19 UTC
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.
Comment 6 andreas.schluens 2003-11-14 14:12:48 UTC
.
Comment 7 thorsten.martens 2004-01-14 09:31:11 UTC
.
Comment 8 thorsten.martens 2004-01-14 09:32:36 UTC
.
Comment 9 thorsten.martens 2004-03-19 10:08:02 UTC
.