Ask Your Question

Revision history [back]

Save this as an .xcd into <lo_instdir>/share/registry on your workstations:

<?xml version="1.0"?> 
<oor:data xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:oor="http://openoffice.org/2001/registry">
  <dependency file="main" />
  <oor:component-data oor:name="Linguistic" oor:package="org.openoffice.Office">
    <node oor:name="General">
      <prop oor:name="UILocale"  oor:op="fuse" oor:type="xs:string">
        <value>zh-TW</value>
      </prop>
    </node>
  </oor:component-data>
</oor:data>

See post deployment configuration.

Save this as an .xcd into <lo_instdir>/share/registry on your workstations:

<?xml version="1.0"?> 
<oor:data xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:oor="http://openoffice.org/2001/registry">
  <dependency file="main" />
  <oor:component-data oor:name="Linguistic" oor:package="org.openoffice.Office">
    <node oor:name="General">
      <prop oor:name="UILocale"  oor:op="fuse" oor:type="xs:string">
        <value>zh-TW</value>
      </prop>
    </node>
  </oor:component-data>
</oor:data>

See post deployment configuration.

Steps to create an own .xcd file for a random property (on the UILocale taken as an example):

  • Find the relevant setting in the registrymodifications.xcu. To do that, first backup the registrymodifications.xcu; then launch LibreOffice and make necessary configuration changes in UI; close LibreOffice and compare the new registrymodifications.xcu with its backup.

In this example, it's

<item oor:path="/org.openoffice.Office.Linguistic/General"><prop oor:name="UILocale" oor:op="fuse"><value>en-US</value></prop></item>
  • Find an existing .xcd in <lo_instdir>/share/registry, where the schema for the setting is defined.

In this example, it's main.xcd, where the setting is defined like this:

<?xml version="1.0"?>
<oor:data xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oor="http://openoffice.org/2001/registry">
    ...
    <oor:component-schema oor:package="org.openoffice.Office" oor:name="Linguistic" xml:lang="en-US">
        ...
        <component>
            ...
            <group oor:name="General">
                <prop oor:name="UILocale" oor:type="xs:string" oor:nillable="false">
                    <value/>
                </prop>
                ...
            </group>
            ...
        </component>
        ...
    </oor:component-schema>
    ...
</oor:data>
  • Create a new .xcd XML file with oor:data top-level element. Add the file with schema (main.xcd in this example) as the dependency for the newly created file by specifying <dependency file="main" /> as direct child of the top-level element.

  • For the oor:component-schema element from the schema file above, add relevant oor:component-data element there, with oor:name and oor:package attributes as in the schema. For each nested group element in schema, add a node element as a direct child of oor:component-data or higher-level node. Add the prop element, with relevant oor:name and oor:type attributes; it should also have oor:op attribute, which typically has fuse value; other possible values are modify, replace and remove. Add the desired value as the text of value element under the prop element.