diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-09-17 12:01:46 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-09-19 10:18:33 +0200 |
commit | ae3150b1e1863e854224c2e41c7e50991f945dad (patch) | |
tree | 6bb9f6d6a5e48435c5051ccfc14bb08a3d6ef17a /sw/source/filter/xml/wrtxml.cxx | |
parent | 7e8b4756d95057f069467b34e7849f9354856578 (diff) |
sw_redlinehide_2: replace SW_REDLINEHIDE with ExperimentalMode config
So we can get more testing & many bug reports.
Change-Id: I34fe456a58670baecf4fdf1a87da77aceab43891
Diffstat (limited to 'sw/source/filter/xml/wrtxml.cxx')
-rw-r--r-- | sw/source/filter/xml/wrtxml.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/filter/xml/wrtxml.cxx b/sw/source/filter/xml/wrtxml.cxx index 26a16a31ce29..87ecd70566fb 100644 --- a/sw/source/filter/xml/wrtxml.cxx +++ b/sw/source/filter/xml/wrtxml.cxx @@ -26,6 +26,8 @@ #include <com/sun/star/document/XFilter.hpp> #include <com/sun/star/frame/XModule.hpp> +#include <officecfg/Office/Common.hxx> + #include <comphelper/fileformat.h> #include <comphelper/processfactory.hxx> #include <comphelper/genericpropertyset.hxx> @@ -184,7 +186,7 @@ ErrCode SwXMLWriter::Write_( const uno::Reference < task::XStatusIndicator >& xS const OUString sShowChanges("ShowChanges"); RedlineFlags nRedlineFlags = m_pDoc->getIDocumentRedlineAccess().GetRedlineFlags(); bool isShowChanges; - if (getenv("SW_REDLINEHIDE")) + if (officecfg::Office::Common::Misc::ExperimentalMode::get(xContext)) { // TODO: ideally this would be stored per-view... isShowChanges = !m_pDoc->getIDocumentLayoutAccess().GetCurrentLayout()->IsHideRedlines(); } @@ -414,7 +416,7 @@ ErrCode SwXMLWriter::Write_( const uno::Reference < task::XStatusIndicator >& xS nRedlineFlags = m_pDoc->getIDocumentRedlineAccess().GetRedlineFlags(); nRedlineFlags &= ~RedlineFlags::ShowMask; nRedlineFlags |= RedlineFlags::ShowInsert; - if (getenv("SW_REDLINEHIDE")) + if (officecfg::Office::Common::Misc::ExperimentalMode::get(xContext)) { nRedlineFlags |= RedlineFlags::ShowDelete; } |