Absolute Position of Nodes

From Apache OpenOffice Wiki
Jump to: navigation, search



If one defines an own Module, then it is possible to define an order for the Nodes which one assigns to it. These Nodes will be the first which are displayed in the options dialog followed by the Nodes which have been assigned by others.

For example:

 <node oor:name="Modules">
    <node oor:name="org.openoffice.framework.desktop.test.deployment.options.modules1.module1"
oor:op="fuse">
      <node oor:name="Nodes"> 
        <node oor:name="org.openoffice.framework.desktop.test.deployment.options.modules1.node 1"
oor:op="fuse">
          <prop oor:name="Index">
            <value>0</value>
          </prop>
        </node>
        <node oor:name="org.openoffice.framework.desktop.test.deployment.options.modules1.node 2"
oor:op="fuse">
          <prop oor:name="Index">
            <value>1</value>
          </prop>
        </node>
        <node oor:name="org.openoffice.framework.desktop.test.deployment.options.modules1.node 3"
oor:op="fuse">
          <prop oor:name="Index">
            <value>2</value>
          </prop>
        </node>
      </node>
    </node>
    <node oor:name="org.openoffice.framework.desktop.test.deployment.options.modules1.module2"
oor:op="fuse">
      <node oor:name="Nodes"> 
        <node oor:name="org.openoffice.framework.desktop.test.deployment.options.modules1.node 1"
oor:op="fuse">
          <prop oor:name="Index">
            <value>0</value>
          </prop>
        </node>
        <node oor:name="org.openoffice.framework.desktop.test.deployment.options.modules1.node 3"
oor:op="fuse">
          <prop oor:name="Index">
            <value>1</value>
          </prop>
        </node>
      </node>
    </node>
  </node>
 
  <node oor:name="Nodes">
    <node oor:name="org.openoffice.framework.desktop.test.deployment.options.modules1.node 3"
oor:op="fuse">
      <!-- leaving out some properties for the sake of brevity -->
    </node>
    <node oor:name="org.openoffice.framework.desktop.test.deployment.options.modules1.node 1"
oor:op="fuse">
      <!-- leaving out some properties for the sake of brevity -->
    </node>
    <node oor:name="org.openoffice.framework.desktop.test.deployment.options.modules1.node 2"
oor:op="fuse">
      <!-- leaving out some properties for the sake of brevity -->
    </node>
  </node>

As you can see, every Node which is assigned to a Module can be paired with an index (property Index).

Documentation note.png If one decides to provide an index then one should do this for all Nodes.

If a particular index is not used, for example, only index 0, 1, 5 are used, then the missing indices are left out when the nodes are displayed. That is, the tree view will not show gaps for the missing indices 2,3, and 4.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages