Oliver Brinzing wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Carsten,

thanks a lot for your help... :-) but there is still one question i have:

Hi Oliver,


One creates an extension with a top level menu using "OfficeMenuBarMerging":

<node oor:name="AddonUI">
        <node oor:name="OfficeMenuBarMerging">
                <node oor:name="org.test.oo.menu" oor:op="replace">
                        <node oor:name="S1" oor:op="replace">
                                <prop oor:name="MergePoint">
                                        <value>.uno:WindowList</value>
                                </prop>
                                <prop oor:name="MergeCommand">
                                        <value>AddBefore</value>
                                </prop>
                                <prop oor:name="MergeFallback">
                                        <value></value>
                                </prop>
                                <node oor:name="MenuItems">
                                        <node oor:name="menu" oor:op="replace">
                                                <prop oor:name="Title">
                                                        <value>mYmENU</value>
                                                </prop>
                                [...]

Is it possible to force a second extension to add it's menu entries
to the above mentioned top level menu ?
Theoretically this would be possible, but there is a problem with OpenOffice.org configuration. There is no order within a configuration set. That means it's not guaranteed that the merge commands of your "second" extension are evaluated after that from the first extension. The merging needs reference points which are not there when the merging commands are evaluated in the "wrong" order.


For example, toolsbars can be addressed using: 
"private:resource/toolbar/addon_org.test.oo.toolbar"
inside the CalcWindowState.xcu to set the "UIName".

Oliver


 > My "OfficeMenuBar" items can take advantage from this behaviour. They use 
these images ...
 > but the "OfficeToolBar" items do not :-(    Is it a bug ?

    I will try to create an example ... can take some time...

You have to create a new node within the "OfficeToolBar" set to create a new 
toolbar

  ahh, and i tried to create a second "OfficeToolBar" node ...
  But it's also possible to deploy a couple of addons.xcu's, for example 
"addons-toolbar1,xcu"
You can create a second node inside the "OfficeToolBar" set with one Addons.xcu or you can use more than one xcu file. That's depends on your taste.

Regards,
Carsten

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

Reply via email to