From e1fa0eab7d73bd1bd57f8f47821430bb6b68af99 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 14 Dec 2015 10:14:41 +0100 Subject: DOC export: embed factoids when writing factoid bookmarks Change-Id: Ibefc4b908c752a6256b168b4045afb400ba8b17a --- sw/source/filter/ww8/wrtww8.cxx | 3 +++ sw/source/filter/ww8/ww8scan.cxx | 2 ++ 2 files changed, 5 insertions(+) diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index 0f9ab0230b62..73d6e1726e1e 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -346,6 +346,9 @@ void WW8_WrtFactoids::Write(WW8Export& rExport) if (m_aStartCPs.empty()) return; + // Smart tags are otherwise removed by Word on saving. + rExport.pDop->fEmbedFactoids = true; + SvStream& rStream = *rExport.pTableStrm; rExport.pFib->fcPlcfBkfFactoid = rStream.Tell(); diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index 842f5570bbcb..5de5ae67843e 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -7720,6 +7720,8 @@ bool WW8Dop::Write(SvStream& rStrm, WW8Fib& rFib) const pData += 32; a16Bit = 0; + if (fEmbedFactoids) + a16Bit |= 0x8; if (fAcetateShowMarkup) a16Bit |= 0x1000; //Word XP at least requires fAcetateShowMarkup to honour fAcetateShowAtn -- cgit v1.2.3