Hi Mathias,
Mathias Bauer wrote:
Giuseppe Castagno wrote:
...
From what I've seen from the tests I carried out so far and from
studying the DevGuide code examples, using a
XDispatchProviderInterceptor from inside an extension doesn't seem possible.
Prompted from the response I got from another message I posted on this
ML, I first tried by implementing a job, but I need to do some user
interaction while processing the job, and again that wasn't possible
from inside it.
Besides the job can't interrupt the processing chain: something I need
depending on some user action.
The trick is how you get the interceptor attached to the frames whose
DispatchProviders they want to intercept. This will need an additional
"Job" service implemented in the extension that is registered to the
DocumentEvent "OnViewCreated". The job then can register the
DispatchInterceptor.
with the Job component implemented and configured it seems to work, thanks.
In the meantime, reading the documentation I found this sentence in the
DevGuide [1], at the beginning:
"
...
If both are available, the synchronous service AsyncJob is preferred by
the job execution environment.
"
The words "synchronous service" and "AsyncJob" seem a little out of
'sync' here.
Not sure which of the job possible type takes precedence over the other.
I'll use a XJob interface only, so I don't need that deep understanding,
but that sentence needs to be corrected, I think.
Unfortunately I don't know which way to correct it...
Or may be it's just me not understanding :-).
--
Kind Regards,
Giuseppe Castagno
Acca Esse http://www.acca-esse.eu
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[1]
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Jobs/Implementation
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]