Create a config extension to change a string-list value

Juan C. Sanz jcsanz at libreoffice.org
Mon May 6 21:19:02 UTC 2024


Hello.

There is a document in the wiki 
<https://wiki.documentfoundation.org/images/b/b0/LibreOffice_config_extension_writing.pdf> 
explaining how to create a configuration extensions.

In this document it is said that the valid property values are string, 
boolean, int, short, long, double, binary.

Also in the Chapter 15 - Configuration Management 
<https://wiki.documentfoundation.org/Documentation/DevGuide/Configuration_Management> 
of the Developers Guide that the same types are supported.

But if you search for some config values in Expert configuration, the 
type may be different of the supported types, for example you con see 
string-list (or depend on version []string).

I’m not able to change any of the string-list configurations with a 
Configuration extension, don’t mind what of the supported types I use, 
always fails.

How should I change a string-list value?

I use something like this, but changing oor:type="xs:string-list" for 
every of the valid types, and with or without <it> label:

<?xml version="1.0" encoding="UTF-8"?><oor:component-data 
oor:name="Common" oor:package="org.openoffice.Office" 
xmlns:oor="http://openoffice.org/2001/registry" 
xmlns:xs="http://www.w3.org/2001/XMLSchema"><node 
oor:name="Security"><node oor:name="Scripting"><prop 
oor:name="SecureURL" oor:type="xs:string-list" 
oor:finalized="false"><value><it>"$(work)/BD"</it></value></prop></node></node></oor:component-data>


Regards
-- 
*Juan C. Sanz*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20240506/37d3b9f3/attachment.htm>


More information about the LibreOffice mailing list