On Friday 22 of July 2011, Troy Rollo wrote:
Prior to this patch, fields were being exported to docx file with the
field value being the name of the field. This patch changes it to
export the field value as the field value.
---
sw/source/filter/ww8/docxattributeoutput.cxx | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx
b/sw/source/filter/ww8/docxattributeoutput.cxx index 6086213..390bd60
100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -806,8 +806,10 @@ void DocxAttributeOutput::EndField_Impl( FieldInfos&
rInfos ) // Write the Field latest value
m_pSerializer->startElementNS( XML_w, XML_r, FSEND );
- // Find another way for hyperlinks
- RunText( rInfos.pField->GetFieldName() );
+ String sExpand( rInfos.pField->ExpandField( true ) );
+ sExpand.SearchAndReplaceAll( 0x0A, 0x0B );
This line looks strange. What is the reason for this?
+ RunText( sExpand );
+
m_pSerializer->endElementNS( XML_w, XML_r );
}
--
Lubos Lunak
l.lunak@suse.cz
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.