Hi again,

ok, here it is, a Addons.xcu file for a menu structure with two commands in a sub menu. I used NetBeans and the mentioned plugin to create this - took about 2 minutes. I added a separator between the commands as a benefit ;-).

Regards, Steffen

<?xml version='1.0' encoding='UTF-8'?>

<oor:component-data xmlns:oor="http://openoffice.org/2001/registry"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; oor:name="Addons" oor:package="org.openoffice.Office">
  <node oor:name="AddonUI">
    <node oor:name="OfficeMenuBar">
      <node oor:name="com.example.addon1" oor:op="replace">
        <prop oor:name="Title" oor:type="xs:string">
          <value/>
          <value xml:lang="en">AddOn Menu</value>
        </prop>
        <prop oor:name="Target" oor:type="xs:string">
          <value>_self</value>
        </prop>
        <prop oor:name="ImageIdentifier" oor:type="xs:string">
          <value/>
        </prop>
        <node oor:name="Submenu">
          <node oor:name="m1" oor:op="replace">
            <prop oor:name="URL" oor:type="xs:string">
              <value/>
            </prop>
            <prop oor:name="ImageIdentifier" oor:type="xs:string">
              <value/>
            </prop>
            <prop oor:name="Target" oor:type="xs:string">
              <value>_self</value>
            </prop>
            <prop oor:name="Title" oor:type="xs:string">
              <value/>
              <value xml:lang="en">Menu1</value>
            </prop>
              <node oor:name="Submenu">
                <node oor:name="m2" oor:op="replace">
                  <prop oor:name="URL" oor:type="xs:string">
                    <value>com.example.addon1:Command0</value>
                  </prop>
                  <prop oor:name="ImageIdentifier" oor:type="xs:string">
                    <value/>
                  </prop>
                  <prop oor:name="Target" oor:type="xs:string">
                    <value>_self</value>
                  </prop>
                  <prop oor:name="Context" oor:type="xs:string">
                    <value/>
                  </prop>
                  <prop oor:name="Title" oor:type="xs:string">
                    <value/>
                    <value xml:lang="en">Command0</value>
                  </prop>
                </node>
                <node oor:name="m3" oor:op="replace">
                  <prop oor:name="URL" oor:type="xs:string">
                    <value>private:separator</value>
                  </prop>
                </node>
                <node oor:name="m4" oor:op="replace">
                  <prop oor:name="URL" oor:type="xs:string">
                    <value>com.example.addon1:Command1</value>
                  </prop>
                  <prop oor:name="ImageIdentifier" oor:type="xs:string">
                    <value/>
                  </prop>
                  <prop oor:name="Target" oor:type="xs:string">
                    <value>_self</value>
                  </prop>
                  <prop oor:name="Context" oor:type="xs:string">
                    <value/>
                  </prop>
                  <prop oor:name="Title" oor:type="xs:string">
                    <value/>
                    <value xml:lang="en">Command1</value>
                  </prop>
                </node>
              </node>
          </node>
        </node>
      </node>
    </node>

    <node oor:name="Images">
      <node oor:name="com.example.addon1.command0.images" oor:op="replace">
        <prop oor:name="URL" oor:type="xs:string">
          <value>com.example.addon1:Command0</value>
        </prop>
        <node oor:name="UserDefinedImages">
          <prop oor:name="ImageSmallURL">
            <value/>
          </prop>
        </node>
      </node>
      <node oor:name="com.example.addon1.command1.images" oor:op="replace">
        <prop oor:name="URL" oor:type="xs:string">
          <value>com.example.addon1:Command1</value>
        </prop>
        <node oor:name="UserDefinedImages">
          <prop oor:name="ImageSmallURL">
            <value/>
          </prop>
        </node>
      </node>
      </node>
  </node>
</oor:component-data>

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

Reply via email to