summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-03-19 16:50:36 +0100
committersb <sb@openoffice.org>2010-03-19 16:50:36 +0100
commit7b812dc86382ab764de436e65c2d2763339f0c70 (patch)
treef2a00b1a8179ba9e5b61ca7d05a85f13bfc511dc /configmgr
parent1881a2abb14c17030eb00157e9e910f5143ba5ef (diff)
sb121: #i110230# when writing top-level localized value changes do not omit the <prop> part from the <item><prop><value> triple
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/writemodfile.cxx26
1 files changed, 19 insertions, 7 deletions
diff --git a/configmgr/source/writemodfile.cxx b/configmgr/source/writemodfile.cxx
index a8e0f77cbd..c6a23d5bc8 100644
--- a/configmgr/source/writemodfile.cxx
+++ b/configmgr/source/writemodfile.cxx
@@ -463,13 +463,25 @@ void writeModifications(
// components themselves have no parent but must have children
if (node.is()) {
writeData(handle, RTL_CONSTASCII_STRINGPARAM("<item oor:path=\""));
- writeAttributeValue(
- handle,
- (grandparentPathRepresentation +
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/")) +
- Data::createSegment(parent->getTemplateName(), parentName)));
- writeData(handle, RTL_CONSTASCII_STRINGPARAM("\">"));
- writeNode(components, handle, parent, nodeName, node);
+ if (parent->kind() == Node::KIND_LOCALIZED_PROPERTY) {
+ writeAttributeValue(handle, grandparentPathRepresentation);
+ writeData(
+ handle, RTL_CONSTASCII_STRINGPARAM("\"><prop oor:name=\""));
+ writeAttributeValue(handle, parentName);
+ writeData(
+ handle, RTL_CONSTASCII_STRINGPARAM("\" oor:op=\"fuse\">"));
+ writeNode(components, handle, parent, nodeName, node);
+ writeData(handle, RTL_CONSTASCII_STRINGPARAM("</prop>"));
+ } else {
+ writeAttributeValue(
+ handle,
+ (grandparentPathRepresentation +
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/")) +
+ Data::createSegment(
+ parent->getTemplateName(), parentName)));
+ writeData(handle, RTL_CONSTASCII_STRINGPARAM("\">"));
+ writeNode(components, handle, parent, nodeName, node);
+ }
writeData(handle, RTL_CONSTASCII_STRINGPARAM("</item>"));
} else {
writeData(handle, RTL_CONSTASCII_STRINGPARAM("<item oor:path=\""));