-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Fernand,

> -can the place of the new Menu's been altered by the API

have never tried to build a menu via api ...
but it's possible to create menu's via an Addons.xcu ...
you will have a "MergePoint" and "MergeCommand" to place the menu

http://wiki.services.openoffice.org/wiki/Framework/WorkInProgress/Addon_Menu_Toolbar_Merging

<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data oor:name="Addons" oor:package="org.openoffice.Office"
xmlns:install="http://openoffice.org/2004/installation";
xmlns:oor="http://openoffice.org/2001/registry"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
        <node oor:name="AddonUI">
                <node oor:name="OfficeMenuBarMerging">
                        <node oor:name="org.test.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>Test</value>
                                                        </prop>
                                                        <prop oor:name="URL" 
oor:type="xs:string">
                                                                
<value>macro:///LibrarieName.ModuleName.sub1</value>
                                                        </prop>
                                                        <prop 
oor:name="Context" oor:type="xs:string">
                                                                
<value>com.sun.star.text.TextDocument,com.sun.star.sheet.SpreadsheetDocument</value>
                                                        </prop>
                                                        <prop oor:name="Target" 
oor:type="xs:string">
                                                                
<value>_self</value>
                                                        </prop>
                                                        
                                                        <node 
oor:name="Submenu">
                                                                
                                                                <node 
oor:name="m001" oor:op="replace">
                                                                        <prop 
oor:name="URL" oor:type="xs:string">
                                                                                
<value>private:separator</value>
                                                                        </prop>
                                                                </node>
                                                                
                                                                <node 
oor:name="m002" oor:op="replace">
                                                                        <prop 
oor:name="Title" oor:type="xs:string">
                                                                                
<value>Test ...</value>
                                                                        </prop>
                                                                        <prop 
oor:name="URL" oor:type="xs:string">
                                                                                
<value>macro:///LibrarieName.ModuleName.sub2</value>
                                                                        </prop>
                                                                        <prop 
oor:name="Target" oor:type="xs:string">
                                                                                
<value>_self</value>
                                                                        </prop>
                                                                </node>
                                                                
                                                        </node>
                                                </node>
                                        </node>
                                        
                                </node>
                        </node>
                </node>
        </node>
</oor:component-data>


Oliver
- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHSwdeTiyrQM/QSkURAg1PAJ43kwAmRhkP7k3yP4lofzPLHNP/twCgwYLb
qsBAi9vri1B0jJWnLCFyrnU=
=iOSR
-----END PGP SIGNATURE-----

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

Reply via email to