[Libreoffice-commits] core.git: writerfilter/source
László Németh (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jun 13 14:47:40 UTC 2019
writerfilter/source/dmapper/SettingsTable.cxx | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
New commits:
commit 8b3c861c46ae12d21b7b3a550e2daa21d2006b77
Author: László Németh <nemeth at numbertext.org>
AuthorDate: Thu Jun 13 08:44:04 2019 +0200
Commit: László Németh <nemeth at numbertext.org>
CommitDate: Thu Jun 13 16:46:53 2019 +0200
tdf#89991 DOCX: import Show changes from older formats
w:formatting is optional, w:markup can be instead of w:insDel, too.
Change-Id: Ic689499a880dcc7c97497e4381dff31610f745bf
Reviewed-on: https://gerrit.libreoffice.org/73943
Reviewed-by: Justin Luth <justin_luth at sil.org>
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth at numbertext.org>
diff --git a/writerfilter/source/dmapper/SettingsTable.cxx b/writerfilter/source/dmapper/SettingsTable.cxx
index 609173eefd0b..8be0c6c0f114 100644
--- a/writerfilter/source/dmapper/SettingsTable.cxx
+++ b/writerfilter/source/dmapper/SettingsTable.cxx
@@ -236,6 +236,7 @@ struct SettingsTable_Impl
bool m_bRecordChanges;
bool m_bShowInsDelChanges;
bool m_bShowFormattingChanges;
+ bool m_bShowMarkupChanges;
bool m_bLinkStyles;
sal_Int16 m_nZoomFactor;
sal_Int16 m_nZoomType = 0;
@@ -266,7 +267,8 @@ struct SettingsTable_Impl
m_nDefaultTabStop( 720 ) //default is 1/2 in
, m_bRecordChanges(false)
, m_bShowInsDelChanges(true)
- , m_bShowFormattingChanges(true)
+ , m_bShowFormattingChanges(false)
+ , m_bShowMarkupChanges(true)
, m_bLinkStyles(false)
, m_nZoomFactor(0)
, m_nView(0)
@@ -383,6 +385,9 @@ void SettingsTable::lcl_attribute(Id nName, Value & val)
case NS_ooxml::LN_CT_TrackChangesView_formatting:
m_pImpl->m_bShowFormattingChanges = (nIntValue != 0);
break;
+ case NS_ooxml::LN_CT_TrackChangesView_markup:
+ m_pImpl->m_bShowMarkupChanges = (nIntValue != 0);
+ break;
default:
{
#ifdef DBG_UTIL
@@ -648,7 +653,10 @@ void SettingsTable::ApplyProperties(uno::Reference<text::XTextDocument> const& x
// Show changes value
if (xDocProps.is())
- xDocProps->setPropertyValue("ShowChanges", uno::makeAny( m_pImpl->m_bShowInsDelChanges || m_pImpl->m_bShowFormattingChanges ) );
+ {
+ bool bHideChanges = !m_pImpl->m_bShowInsDelChanges || !m_pImpl->m_bShowMarkupChanges;
+ xDocProps->setPropertyValue("ShowChanges", uno::makeAny( !bHideChanges || m_pImpl->m_bShowFormattingChanges ) );
+ }
// Record changes value
if (xDocProps.is())
More information about the Libreoffice-commits
mailing list