summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-12-14 10:14:41 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-12-14 10:45:11 +0100
commite1fa0eab7d73bd1bd57f8f47821430bb6b68af99 (patch)
tree7b765fdedb033cfec82d02d24f791ab40d048f47
parent6381fe554aec600d13d0359903216811d644dd36 (diff)
DOC export: embed factoids when writing factoid bookmarks
Change-Id: Ibefc4b908c752a6256b168b4045afb400ba8b17a
-rw-r--r--sw/source/filter/ww8/wrtww8.cxx3
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx2
2 files changed, 5 insertions, 0 deletions
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