Difference between revisions of "Documentation/DevGuide/Extensions/Absolute Position of Nodes"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
 
(4 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
|ShowPrevNext=block
 
|ShowPrevNext=block
 
|PrevPage=Documentation/DevGuide/Extensions/Defining a Module
 
|PrevPage=Documentation/DevGuide/Extensions/Defining a Module
|NextPage=Documentation/DevGuide/Extensions/Help Content
+
|NextPage=Documentation/DevGuide/Extensions/The Options Dialog of the Extension Manager
 
}}
 
}}
 +
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Extensions/{{SUBPAGENAME}}}}
 
{{DISPLAYTITLE:Absolute Position of Nodes}}
 
{{DISPLAYTITLE:Absolute Position of Nodes}}
 
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.
 
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.
Line 70: Line 71:
 
As you can see, every Node which is assigned to a Module can be paired with an index (property Index).
 
As you can see, every Node which is assigned to a Module can be paired with an index (property Index).
  
{{Documentation/Note|If one decides to provide an index then one should do this for all Nodes.
+
{{Note|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.}}
 
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.}}
  
 
{{PDL1}}
 
{{PDL1}}
[[Category: Extensions]]
+
 
 +
[[Category:Documentation/Developer's Guide/Extensions]]

Latest revision as of 19:56, 3 July 2018



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