diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-12-17 19:39:22 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-12-18 17:55:30 +0100 |
commit | 5bc7fb209c0e6d7c6a46499d8c2e4d7abaa87bd7 (patch) | |
tree | bc2dcc00170946da1fbd2b8d502cf1e8191603fe /sw/source/filter/xml/xmlexp.cxx | |
parent | 68d77adb2d8242588b416240e6f7d47940099aaa (diff) |
sw_redlinehide_4b: export flag to flat-ODF
Change-Id: Ief227f3f5b03ec186178f4d68c3a415969d65507
Diffstat (limited to 'sw/source/filter/xml/xmlexp.cxx')
-rw-r--r-- | sw/source/filter/xml/xmlexp.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmlexp.cxx b/sw/source/filter/xml/xmlexp.cxx index 4887e14075fb..0fd2296e97e8 100644 --- a/sw/source/filter/xml/xmlexp.cxx +++ b/sw/source/filter/xml/xmlexp.cxx @@ -26,6 +26,7 @@ #include <com/sun/star/xforms/XFormsSupplier.hpp> #include <o3tl/any.hxx> +#include <officecfg/Office/Common.hxx> #include <sax/tools/converter.hxx> #include <svx/svdmodel.hxx> #include <svx/svdpage.hxx> @@ -46,6 +47,7 @@ #include <swmodule.hxx> #include <docsh.hxx> #include <viewsh.hxx> +#include <rootfrm.hxx> #include <docstat.hxx> #include <swerror.h> #include <unotext.hxx> @@ -276,7 +278,15 @@ ErrCode SwXMLExport::exportDoc( enum XMLTokenEnum eClass ) } } RedlineFlags nRedlineFlags = RedlineFlags::NONE; - m_bSavedShowChanges = IDocumentRedlineAccess::IsShowChanges( pDoc->getIDocumentRedlineAccess().GetRedlineFlags() ); + if (officecfg::Office::Common::Misc::ExperimentalMode::get(getComponentContext())) + { + SwRootFrame const*const pLayout(m_pDoc->getIDocumentLayoutAccess().GetCurrentLayout()); + m_bSavedShowChanges = pLayout == nullptr || !pLayout->IsHideRedlines(); + } + else + { + m_bSavedShowChanges = IDocumentRedlineAccess::IsShowChanges( pDoc->getIDocumentRedlineAccess().GetRedlineFlags() ); + } if( bSaveRedline ) { // now save and switch redline mode |