[Libreoffice-commits] core.git: xmloff/source
Eike Rathke
erack at redhat.com
Fri Dec 13 14:23:09 PST 2013
xmloff/source/text/txtflde.cxx | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
New commits:
commit 5f8476c00f482ab5c8707de2ebdcd41faa4057fc
Author: Eike Rathke <erack at redhat.com>
Date: Fri Dec 13 23:21:46 2013 +0100
fdo#72697 write <loext:sender-initials>
Change-Id: I032bd79aa3ab73889a3ca723fba56ec371a28231
diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx
index 0d43008..63f5cc9 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);
More information about the Libreoffice-commits
mailing list