| 1 |
xcu files are made from several sections, the main ones are: Properties and Features |
| 2 |
|
| 3 |
Property: actual setting with its underlying type and its default value |
| 4 |
|
| 5 |
Feature: a boolean that says "let the user change that setting in the Advanced Settings UI" |
| 6 |
|
| 7 |
This is checked by using officecfg/registry/schema/org/openoffice/Office/DataAccess/Drivers.xcs |
| 8 |
and configmgr mechanism |
| 9 |
There are two kinds of properties named "Value": |
| 10 |
- first one is in "Property" groups and has a static oor:type="any" (can take on boolean, int and other types of values) |
| 11 |
- second one is in "Feature" groups and has a static oor:type="boolean" so can take on only boolean values. |
| 12 |
|
| 13 |
Each node in Feature section must have an equivalent in Property section |
| 14 |
Most of the time the node name of both sections should be equal, |
| 15 |
however there are 5 known exceptions (more?): |
| 16 |
- "UseBracketedOuterJoinSyntax" feature => "EnableOuterJoinEscape" property |
| 17 |
- "UseDOSLineEnds" feature => "PreferDosLikeLineEnds" property |
| 18 |
- "UseSQL92NamingConstraints" feature => "EnableSQL92Check" property |
| 19 |
- "AppendTableAliasInSelect" feature => "AppendTableAliasName" property |
| 20 |
- "UseKeywordAsBeforeAlias" feature => "GenerateASBeforeCorrelationName" |
| 21 |
|
| 22 |
See dbaccess/source/ui/dlg/DbAdminImpl.cxx, ODbDataSourceAdministrationHelper constructor, eg: |
| 23 |
m_aIndirectPropTranslator.emplace( <ID>, <property> ) |
| 24 |
and dbaccess/source/ui/misc/dsmeta.cxx, lcl_getFeatureMappings() function, eg: |
| 25 |
{ <ID>, <feature> } |