diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-07-25 21:35:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-26 14:25:35 +0200 |
commit | 6ed8c5a0f19901ab413c6610649326b2475c3a8c (patch) | |
tree | 948037d1a61f9e88547b88e107ba6e8a306c3833 /sw/source/filter/ww8/docxattributeoutput.cxx | |
parent | a23b44fd9f0119f7ea3523e32875f55c1a07c1cd (diff) |
use officecfg for security options
Change-Id: I9d91fd5b260b82e05aac6567143386742953ecf6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119486
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/docxattributeoutput.cxx')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index f5978957635c..514e42f0da99 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -3147,8 +3147,7 @@ void DocxAttributeOutput::Redline( const SwRedlineData* pRedlineData) if ( !pRedlineData ) return; - SvtSecurityOptions aSecOpt; - bool bRemovePersonalInfo = aSecOpt.IsOptionSet( + bool bRemovePersonalInfo = SvtSecurityOptions::IsOptionSet( SvtSecurityOptions::EOption::DocWarnRemovePersonalInfo ); OString aId( OString::number( pRedlineData->GetSeqNo() ) ); @@ -3255,8 +3254,7 @@ void DocxAttributeOutput::StartRedline( const SwRedlineData * pRedlineData ) OString aId( OString::number( m_nRedlineId++ ) ); - SvtSecurityOptions aSecOpt; - bool bRemovePersonalInfo = aSecOpt.IsOptionSet( + bool bRemovePersonalInfo = SvtSecurityOptions::IsOptionSet( SvtSecurityOptions::EOption::DocWarnRemovePersonalInfo ); const OUString &rAuthor( SW_MOD()->GetRedlineAuthor( pRedlineData->GetAuthor() ) ); @@ -4378,8 +4376,7 @@ void DocxAttributeOutput::TableRowRedline( ww8::WW8TableNodeInfoInner::Pointer_t const SvxPrintItem *pHasTextChangesOnlyProp = pTabLine->GetFrameFormat()->GetAttrSet().GetItem<SvxPrintItem>(RES_PRINT); - SvtSecurityOptions aSecOpt; - bool bRemovePersonalInfo = aSecOpt.IsOptionSet( + bool bRemovePersonalInfo = SvtSecurityOptions::IsOptionSet( SvtSecurityOptions::EOption::DocWarnRemovePersonalInfo ); if ( !aRedlineTable.empty() && pHasTextChangesOnlyProp && !pHasTextChangesOnlyProp->GetValue() ) @@ -4486,8 +4483,7 @@ void DocxAttributeOutput::TableCellRedline( ww8::WW8TableNodeInfoInner::Pointer_ { const SwTableBox * pTabBox = pTableTextNodeInfoInner->getTableBox(); - SvtSecurityOptions aSecOpt; - bool bRemovePersonalInfo = aSecOpt.IsOptionSet( + bool bRemovePersonalInfo = SvtSecurityOptions::IsOptionSet( SvtSecurityOptions::EOption::DocWarnRemovePersonalInfo ); // search next Redline @@ -8179,8 +8175,7 @@ void DocxAttributeOutput::WritePostitFieldReference() DocxAttributeOutput::hasResolved DocxAttributeOutput::WritePostitFields() { - SvtSecurityOptions aSecOpt; - bool bRemovePersonalInfo = aSecOpt.IsOptionSet( + bool bRemovePersonalInfo = SvtSecurityOptions::IsOptionSet( SvtSecurityOptions::EOption::DocWarnRemovePersonalInfo ); hasResolved eResult = hasResolved::no; |