Bugzilla – Attachment 152096 Details for
Bug 89991
Save ODT as DOCX turns on Show Changes when Record Changes also on
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
hideTrackChanges.patch: proof of concept patch for using revisionView insDel for import
hideTrackChanges.patch (text/plain), 2.31 KB, created by
Justin L
on 2019-06-11 10:25:27 UTC
(
hide
)
Description:
hideTrackChanges.patch: proof of concept patch for using revisionView insDel for import
Filename:
MIME Type:
Creator:
Justin L
Created:
2019-06-11 10:25:27 UTC
Size:
2.31 KB
patch
obsolete
>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["<<sStringValue<<"]["<<nIntValue<<"]"); >+ m_pImpl->m_bShowChanges = static_cast<bool>(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<text::XTextDocument> 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, <w:suppressAutoHyphens/> may still disable it at a paragraph level. > // Situation is similar for RTF_WIDOWCTRL, which turns on widow / orphan control by default.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 89991
:
114078
| 152096 |
152097
|
152149