diff options
author | sb <sb@openoffice.org> | 2010-03-19 16:50:36 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-03-19 16:50:36 +0100 |
commit | 8e5a36c9718accfb883cc674e364ecf08f768aed (patch) | |
tree | 4b5d7485a1f5d7de84a30bda946c64ec89e7e503 /configmgr | |
parent | ad9699488ff66d8f8a90253ce06d2f1a8ee63297 (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.cxx | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/configmgr/source/writemodfile.cxx b/configmgr/source/writemodfile.cxx index a8e0f77cbd2e..c6a23d5bc8ef 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=\"")); |