Hi Carlos,

Carlos Rocha escribió:
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.

I've finished working on this (it has to be reviewed, accepted and
integrated by a core developer; I'm just waiting for my telephone
company to fix my ADSL Internet connexion - today Friday it's 2 weeks
I'm without ADSL! - and download the latest svn tag [I'm working on an
old DEV300_m29] in order to test some changes I've made that may affect
other code - basically, I also fixed that when querying interfaces you
get only the proper types [now a PopupMenu "seems" to implement also
MenuBar interfaces and vice versa, what is IMO a non-sense ]).

I hope the extended menu API will be included in OOo 3.1, but any way
the menu API is *NOT* for manipulating OOo menus, but PopupMenus and
MenuBar you create yourself (or the application framework explicitly
gives you to work with, as in the case of PopupMenuControllers).



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.

what you need is an css.frame.XDispatchProviderInterceptor
See
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Using_the_Dispatch_Framework


http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Dispatch_Interception

and the example in
http://svn.services.openoffice.org/ooo/trunk/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java
[that is, in SDK/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/]

I think I need a small pseudo-code

IIRC Oliver Brinzing had a nice Java sample component.
Are you there Oliver?
I think I've got it in my PC...I'll have to search. But it's better if
he reads this and answers you.

or Basic sample with the required
steps :(

mmm... I'm not sure if there is a way to achieve this with OOo Basic, as
it can not implement UNO components.


Regards
Ariel.


--
Ariel Constenla-Haile
La Plata, Argentina


"Aus der Kriegsschule des Lebens
                - Was mich nicht umbringt,
        macht mich härter."
                Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.



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

Reply via email to