Hi all,

I'm struggling with context menu interception and would apreciate
your help.

This are my questions:
a) In OO-Writer the context menu "Font" has a sub menu and an icon, but
the properties of the context menu "Font" are this:
    Property name = >CommandURL<     Value= >.uno:CharFontName<
    Property name = >HelpURL<        Value= ><
    Property name = >Image<          Value= 
>Any[Type[com.sun.star.awt.XBitmap], null]<
    Property name = >SubContainer<   Value= >null<
    Property name = >Text<           Value= >Font<

    i.e. there is no SubContainer and no Image specified.
    So there must be another mechanism to specify context menues but
    the XPropertySet. Where is that documented?

b) I've noticed that the context menu of OO-Writer contains items hat are not 
visible.
In chapter 4.7.5 of the develoipers guide I read:
"It is possible to accomplish certain tasks without implementing code in a 
context menu interceptor,
such as preventing a context menu from being activated. Normally, a context 
menu is changed to
provide additional functions to the user."
My question is:
b.1) What are this certain tasks?
b.2) How are this tasks performed, such as preventing a context menu
from being activated?

c) When I introduce my own context menu items they work fine until I
add a CommandURL. Once I've add a CommandURL the item gets disabled.
Here is the item:
    Property name = >CommandURL<     Value= >BlaFasel:12346<
    Property name = >HelpURL<        Value= ><
    Property name = >Image<          Value= 
>Any[Type[com.sun.star.awt.XBitmap], null]<
    Property name = >SubContainer<   Value= >null<
    Property name = >Text<           Value= >Next entry<

I've installed a XDispatchProviderInterceptor for BlaFasel:*, which
prints out "***** url complete: BlaFasel:12346... works!" in its
queryDispatch method whenever the context menu is opened, but the
menu item is still not visible.

My question is: How do I implement a context menu item and stick my
own callback to it so that the item is still visible.

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

Reply via email to