diff options
author | Michael Stahl <mst@openoffice.org> | 2010-04-21 15:17:52 +0200 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2010-04-21 15:17:52 +0200 |
commit | ee14cea9dcc4fb1ec3ec261b5fca38d45c43ed09 (patch) | |
tree | fc0864a6f6268708c13abd2f624f20995ebd9266 /xmloff | |
parent | 52efbb2a0a17eacdcce9a1c034a4077f977b75d0 (diff) |
sw33bf03: #i111035#: fix ODF 1.2 export of href on form:form (patch by fs)
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/forms/elementexport.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmloff/source/forms/elementexport.cxx b/xmloff/source/forms/elementexport.cxx index f28eab48e428..93a80ad5133b 100644 --- a/xmloff/source/forms/elementexport.cxx +++ b/xmloff/source/forms/elementexport.cxx @@ -2036,6 +2036,12 @@ namespace xmloff OAttributeMetaData::getFormAttributeNamespace(eStringPropertyIds[i]), OAttributeMetaData::getFormAttributeName(eStringPropertyIds[i]), aStringPropertyNames[i]); + + // Since as per ODF 1.2, xlink:href and xlink:type need to exist either both or none, + // we need to write xlink:type, too, even if it carries no information. + // #i111035# / 2010-04-141/ frank.schoenheit@sun.com + AddAttributeASCII( XML_NAMESPACE_XLINK, "type", "simple" ); + // now export the data source name or databaselocation or connection resource ::rtl::OUString sPropValue; m_xProps->getPropertyValue( PROPERTY_DATASOURCENAME ) >>= sPropValue; |