From 44ad6aca0dee29841ec7cd15c6d0ad9b3dcaedbe Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 11 Dec 2015 08:25:33 +0100 Subject: DOC export: register the smart tag offsets/locations in the FIB With this, a reader can actually find them in the table stream. Mark as experimental till all the related structures are written, so Word doesn't consider the file corrupted. Change-Id: I3f997dcdb14557b1f8eed78bd873b121068d9712 --- sw/source/filter/ww8/ww8scan.cxx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'sw/source') diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index da3950480005..144013d72561 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -44,6 +44,7 @@ #include #include +#include #ifdef DEBUGSPRMREADER #include @@ -6240,7 +6241,22 @@ bool WW8Fib::Write(SvStream& rStrm) Set_UInt32( pData, fcAtrdExtra ); Set_UInt32( pData, lcbAtrdExtra ); - pData += 0x4DA - 0x422; + SvtMiscOptions aMiscOptions; + if (aMiscOptions.IsExperimentalMode()) + { + pData += 0x432 - 0x422; + Set_UInt32(pData, fcPlcfBkfFactoid); + Set_UInt32(pData, lcbPlcfBkfFactoid); + + pData += 0x442 - 0x43A; + Set_UInt32(pData, fcPlcfBklFactoid); + Set_UInt32(pData, lcbPlcfBklFactoid); + + pData += 0x4DA - 0x44A; + } + else + pData += 0x4DA - 0x422; + Set_UInt32( pData, fcHplxsdr ); Set_UInt32( pData, 0); } -- cgit v1.2.1