Carlos Rocha wrote:
Hi,
I'm embbeding OOo in a Win32 application and I need to catch some user
intentions, like Save or Close the Document.
I'm unable to use XMenuListener (issue #94057) and don't know when (or
if) XMenuExtended2 interface proposed by Ariel Constenla Haile will be
available. And I'm not sure if this new interface would solve my needs.
Hi Carlos,
Please never ever use low-level UNO AWT APIs on user interface elements
which are CONTROLLED by OpenOffice.org. The framework implementation
uses the same APIs to provide its services: E.g. command execution with
dispatch, image support, status updates. If you use the same low-level
APIs you can create severe damage and strange effects. It's definitely a
non-supported way to manipulate user interface elements! There are only
some documented exceptions: E.g. popup menu controller or using your own
toolbar control. If you create your own user interface elements it's
safe to use UNO AWT.
Anyway, I think the safer way is to catch URL commands (.uno.xxx...)
using Interception, but after a few days googling and searching I
couldn't find out how to implement it.
I think I need a small pseudo-code or Basic sample with the required
steps :(
Interception is the correct solution for your purpose. You should find
an example in the Developer's Guide. Please look into the PDF-Version of
the Developer's Guide.
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]