Kaydet (Commit) ed5a8df7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Demonstrate that (extension) .xcu can contain <item> with nested <node>s

This sprang from an IRC conversation with uniscript about allowing .xcd in
extensions, so that an extension with (localization) data for many packages
would not need one .xcu file per package, but rather only a single file.  That
is possible with a single .xcu file using the <item> syntax, as shown here.  (I
had thought that originally only registrymodifications.xcu supported the <item>
syntax, but can't find any traces of that; so looks like an extension with an
.xcu file using <item> syntax should be supported by OOo and derivates "since
ages".)

Change-Id: I1101793e6b14ba9c1e7647edab76927d4d31a81c
üst 2a5e7c6e
......@@ -17,42 +17,43 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<o:component-data xmlns:o="http://openoffice.org/2001/registry"
o:package="org.openoffice.Office" o:name="Addons">
<node o:name="AddonUI">
<node o:name="OfficeMenuBar">
<node o:name="org.openoffice.test.desktop.deployment.passive"
o:op="replace">
<prop o:name="Title" xml:lang="en-US">
<value>passive</value>
</prop>
<node o:name="Submenu">
<node o:name="1" o:op="replace">
<prop o:name="URL">
<value>vnd.org.openoffice.test.desktop.deployment.passive_native:</value>
</prop>
<prop o:name="Title" xml:lang="en-US">
<value>native</value>
</prop>
</node>
<node o:name="2" o:op="replace">
<prop o:name="URL">
<value>vnd.org.openoffice.test.desktop.deployment.passive_java:</value>
</prop>
<prop o:name="Title" xml:lang="en-US">
<value>java</value>
</prop>
</node>
<node o:name="3" o:op="replace">
<prop o:name="URL">
<value>vnd.org.openoffice.test.desktop.deployment.passive_python:</value>
</prop>
<prop o:name="Title" xml:lang="en-US">
<value>python</value>
</prop>
<o:items xmlns:o="http://openoffice.org/2001/registry">
<item o:path="/org.openoffice.Office.Addons">
<node o:name="AddonUI">
<node o:name="OfficeMenuBar">
<node o:name="org.openoffice.test.desktop.deployment.passive"
o:op="replace">
<prop o:name="Title" xml:lang="en-US">
<value>passive</value>
</prop>
<node o:name="Submenu">
<node o:name="1" o:op="replace">
<prop o:name="URL">
<value>vnd.org.openoffice.test.desktop.deployment.passive_native:</value>
</prop>
<prop o:name="Title" xml:lang="en-US">
<value>native</value>
</prop>
</node>
<node o:name="2" o:op="replace">
<prop o:name="URL">
<value>vnd.org.openoffice.test.desktop.deployment.passive_java:</value>
</prop>
<prop o:name="Title" xml:lang="en-US">
<value>java</value>
</prop>
</node>
<node o:name="3" o:op="replace">
<prop o:name="URL">
<value>vnd.org.openoffice.test.desktop.deployment.passive_python:</value>
</prop>
<prop o:name="Title" xml:lang="en-US">
<value>python</value>
</prop>
</node>
</node>
</node>
</node>
</node>
</node>
</o:component-data>
</item>
</o:items>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment