office-gobmx/desktop/test/deployment/passive/Addons.xcu
Stephan Bergmann ed5a8df72a 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
2016-11-16 17:01:06 +01:00

59 lines
2.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<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>
</item>
</o:items>