Difference between revisions of "Documentation/DevGuide/Extensions/Adding Several Leaves"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (1 revision(s))
m
Line 7: Line 7:
 
{{DISPLAYTITLE:Adding Several Leaves}}
 
{{DISPLAYTITLE:Adding Several Leaves}}
 
It may be necessary to add more then one leaf. This is easily done by just writing the next leaf definition after the previous:  
 
It may be necessary to add more then one leaf. This is easily done by just writing the next leaf definition after the previous:  
 
+
<source lang="xml">
  <nowiki><node oor:name="Nodes">
+
  <node oor:name="Nodes">
 
     <node oor:name="Writer" oor:op="fuse">
 
     <node oor:name="Writer" oor:op="fuse">
 
       <node oor:name="Leaves">
 
       <node oor:name="Leaves">
Line 40: Line 40:
 
       </node>
 
       </node>
 
     </node>
 
     </node>
   </node></nowiki>
+
   </node>
 
+
</source>
 
In the example we have also added three other Leafs to the Calc Node.
 
In the example we have also added three other Leafs to the Calc Node.
  

Revision as of 15:56, 23 March 2008



It may be necessary to add more then one leaf. This is easily done by just writing the next leaf definition after the previous:

  <node oor:name="Nodes">
    <node oor:name="Writer" oor:op="fuse">
      <node oor:name="Leaves">
        <node oor:name="oorg.openoffice.framework.desktop.test.deployment.options.leaves3.Writer.3" 
oor:op="fuse">
          <!-- leaving out the properties for the sake of brevity -->
        </node>
        <node oor:name="org.openoffice.framework.desktop.test.deployment.options.leaves3.Writer.1" 
oor:op="fuse">
          <!-- leaving out the properties for the sake of brevity -->
        </node>
        <node oor:name="org.openoffice.framework.desktop.test.deployment.options.leaves3.Writer.2"
oor:op="fuse">
        </node>
      </node>
    </node>
    <node oor:name="Calc" oor:op="fuse">
      <node oor:name="Leaves">
        <node oor:name="org.openoffice.framework.desktop.test.deployment.options.leaves3.Calc.3" 
oor:op="fuse">
          <!-- leaving out the properties for the sake of brevity -->
        </node>
        <node oor:name="org.openoffice.framework.desktop.test.deployment.options.leaves3.Calc.1" 
oor:op="fuse">
          <!-- leaving out the properties for the sake of brevity -->
        </node>
        <node oor:name="org.openoffice.framework.desktop.test.deployment.options.leaves3.Calc.2" 
oor:op="fuse">
          <!-- leaving out the properties for the sake of brevity -->
        </node>
      </node>
    </node>
  </node>

In the example we have also added three other Leafs to the Calc Node.

Documentation caution.png One Leaf can only be assigned to exactly one Node. If there is no suitable existing Node which is displayed in all options dialogs where one needs to display the own Leaf, then one should define a Node oneself and assign the Leaf to it.
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools