Absolute Position of Leaves

From Apache OpenOffice Wiki
Jump to: navigation, search



When one defines a Node and Leaf|s for this Node at the same time then one would like to specify the position of those leaves as well. This can be done be defining group of Leafs which has the same name as the Node to which they are assigned. This group is special because its Leafs are the first which appear under the corresponding node in the tree view. Otherwise the use of GroupIndex and GroupId is identical as explained in “Grouping of Leaves”.

  <node oor:name="Nodes">
    <node oor:name="org.openoffice.framework.desktop.test.deployment.options.nodes2.node 3"
oor:op="fuse">
      <!-- leaving out some properties for the sake of brevity --> 
      <node oor:name="Leaves">
        <node oor:name="org.openoffice.framework.desktop.test.deployment.options.nodes2.node 3.leaf 3"
oor:op="fuse">
          <prop oor:name="GroupId">
            <value>org.openoffice.framework.desktop.test.deployment.options.nodes2.node 3</value>
          </prop>
          <prop oor:name="GroupIndex">
            <value>2</value>
          </prop>
        </node>
        <node oor:name="org.openoffice.framework.desktop.test.deployment.options.nodes2.node 3.leaf 1" oor:op="fuse">
          <prop oor:name="GroupId">
            <value>org.openoffice.framework.desktop.test.deployment.options.nodes2.node 3</value>
          </prop>
          <prop oor:name="GroupIndex">
            <value>0</value>
          </prop>
        </node>
        <node oor:name="org.openoffice.framework.desktop.test.deployment.options.nodes2.node 3.leaf 2"
oor:op="fuse">
          <prop oor:name="GroupId">
            <value>org.openoffice.framework.desktop.test.deployment.options.nodes2.node 3</value>
          </prop>
          <prop oor:name="GroupIndex">
            <value>2</value>
          </prop>
        </node>
      </node>
    </node>
  </node>
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages