diff --git a/writerfilter/source/dmapper/SettingsTable.cxx b/writerfilter/source/dmapper/SettingsTable.cxx index beae5a4942bd..17fe2282691d 100644 --- a/writerfilter/source/dmapper/SettingsTable.cxx +++ b/writerfilter/source/dmapper/SettingsTable.cxx @@ -234,6 +234,7 @@ struct SettingsTable_Impl int m_nDefaultTabStop; bool m_bRecordChanges; + bool m_bShowChanges; bool m_bLinkStyles; sal_Int16 m_nZoomFactor; sal_Int16 m_nZoomType = 0; @@ -262,6 +263,7 @@ struct SettingsTable_Impl SettingsTable_Impl() : m_nDefaultTabStop( 720 ) //default is 1/2 in , m_bRecordChanges(false) + , m_bShowChanges(true) , m_bLinkStyles(false) , m_nZoomFactor(0) , m_nView(0) @@ -349,6 +351,10 @@ void SettingsTable::lcl_attribute(Id nName, Value & val) case NS_ooxml::LN_CT_DocProtect_formatting: // 92038 m_pImpl->m_DocumentProtection.m_bFormatting = (nIntValue != 0); break; + case NS_ooxml::LN_CT_TrackChangesView_insDel: +SAL_WARN("JCL","LN_CT_TrackChangesView_insDel found value["<m_bShowChanges = static_cast(nIntValue); + break; case NS_ooxml::LN_AG_Password_cryptProviderType: // 92025 m_pImpl->m_DocumentProtection.m_nCryptProviderType = nIntValue; break; @@ -439,6 +445,9 @@ void SettingsTable::lcl_sprm(Sprm& rSprm) m_pImpl->m_bRecordChanges = bool(rSprm.getValue( )->getInt( ) ); } break; + case NS_ooxml::LN_CT_Settings_revisionView: + resolveSprmProps(*this, rSprm); + break; case NS_ooxml::LN_CT_Settings_documentProtection: resolveSprmProps(*this, rSprm); break; @@ -606,7 +615,10 @@ void SettingsTable::ApplyProperties(uno::Reference const& x // Record changes value if (xDocProps.is()) + { + xDocProps->setPropertyValue("ShowChanges", uno::makeAny( m_pImpl->m_bShowChanges ) ); xDocProps->setPropertyValue("RecordChanges", uno::makeAny( m_pImpl->m_bRecordChanges ) ); + } // Auto hyphenation: turns on hyphenation by default, may still disable it at a paragraph level. // Situation is similar for RTF_WIDOWCTRL, which turns on widow / orphan control by default.