diff options
author | Eike Rathke <erack@redhat.com> | 2013-12-13 23:21:46 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-12-13 23:22:35 +0100 |
commit | 5f8476c00f482ab5c8707de2ebdcd41faa4057fc (patch) | |
tree | 358f2646da73c6f8f3511ebc4be557c6dc8fd0c9 /xmloff | |
parent | 1379294741ff85d4c09d9ded7579ad50dea88fb7 (diff) |
fdo#72697 write <loext:sender-initials>
Change-Id: I032bd79aa3ab73889a3ca723fba56ec371a28231
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/txtflde.cxx | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx index 0d43008030a1..63f5cc9bd6c3 100644 --- a/xmloff/source/text/txtflde.cxx +++ b/xmloff/source/text/txtflde.cxx @@ -1756,7 +1756,7 @@ void XMLTextFieldExport::ExportFieldHelper( OUString aInitials( GetStringProperty(sPropertyInitials, rPropSet) ); if( !aInitials.isEmpty() ) { - SvXMLElementExport aCreatorElem( GetExport(), XML_NAMESPACE_TEXT, + SvXMLElementExport aCreatorElem( GetExport(), XML_NAMESPACE_LO_EXT, XML_SENDER_INITIALS, sal_True, sal_False ); GetExport().Characters(aInitials); @@ -2226,10 +2226,20 @@ void XMLTextFieldExport::ExportElement(enum XMLTokenEnum eElementName, if (eElementName != XML_TOKEN_INVALID) { // Element - SvXMLElementExport aElem( GetExport(), XML_NAMESPACE_TEXT, - eElementName, bAddSpace, bAddSpace ); - // export content - GetExport().Characters(sContent); + if (eElementName == XML_SENDER_INITIALS) + { + SvXMLElementExport aElem( GetExport(), XML_NAMESPACE_LO_EXT, + eElementName, bAddSpace, bAddSpace ); + // export content + GetExport().Characters(sContent); + } + else + { + SvXMLElementExport aElem( GetExport(), XML_NAMESPACE_TEXT, + eElementName, bAddSpace, bAddSpace ); + // export content + GetExport().Characters(sContent); + } } else { // always export content GetExport().Characters(sContent); |