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 /xmloff | |
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 'xmloff')
-rw-r--r-- | xmloff/source/draw/sdxmlexp.cxx | 3 | ||||
-rw-r--r-- | xmloff/source/text/XMLRedlineExport.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/text/txtflde.cxx | 3 |
3 files changed, 4 insertions, 8 deletions
diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx index cdc6a70e31dd..933a280739d5 100644 --- a/xmloff/source/draw/sdxmlexp.cxx +++ b/xmloff/source/draw/sdxmlexp.cxx @@ -2516,8 +2516,7 @@ void SdXMLExport::exportAnnotations( const Reference<XDrawPage>& xDrawPage ) Reference< XAnnotationEnumeration > xAnnotationEnumeration( xAnnotationAccess->createAnnotationEnumeration() ); if( xAnnotationEnumeration.is() && xAnnotationEnumeration->hasMoreElements() ) { - SvtSecurityOptions aSecOpt; - bool bRemovePersonalInfo = aSecOpt.IsOptionSet( + bool bRemovePersonalInfo = SvtSecurityOptions::IsOptionSet( SvtSecurityOptions::EOption::DocWarnRemovePersonalInfo ); OUStringBuffer sStringBuffer; diff --git a/xmloff/source/text/XMLRedlineExport.cxx b/xmloff/source/text/XMLRedlineExport.cxx index aa457bf2ad98..6e5d4d79550a 100644 --- a/xmloff/source/text/XMLRedlineExport.cxx +++ b/xmloff/source/text/XMLRedlineExport.cxx @@ -436,8 +436,7 @@ OUString XMLRedlineExport::GetRedlineID( void XMLRedlineExport::ExportChangeInfo( const Reference<XPropertySet> & rPropSet) { - SvtSecurityOptions aSecOpt; - bool bRemovePersonalInfo = aSecOpt.IsOptionSet( + bool bRemovePersonalInfo = SvtSecurityOptions::IsOptionSet( SvtSecurityOptions::EOption::DocWarnRemovePersonalInfo ); SvXMLElementExport aChangeInfo(rExport, XML_NAMESPACE_OFFICE, @@ -480,8 +479,7 @@ void XMLRedlineExport::ExportChangeInfo( const Sequence<PropertyValue> & rPropertyValues) { OUString sComment; - SvtSecurityOptions aSecOpt; - bool bRemovePersonalInfo = aSecOpt.IsOptionSet( + bool bRemovePersonalInfo = SvtSecurityOptions::IsOptionSet( SvtSecurityOptions::EOption::DocWarnRemovePersonalInfo ); for(const PropertyValue& rVal : rPropertyValues) diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx index 713c5aff895b..e899e083b980 100644 --- a/xmloff/source/text/txtflde.cxx +++ b/xmloff/source/text/txtflde.cxx @@ -1746,8 +1746,7 @@ void XMLTextFieldExport::ExportFieldHelper( DBG_ASSERT(sPresentation.isEmpty(), "Unexpected presentation for annotation field"); - SvtSecurityOptions aSecOpt; - bool bRemovePersonalInfo = aSecOpt.IsOptionSet( + bool bRemovePersonalInfo = SvtSecurityOptions::IsOptionSet( SvtSecurityOptions::EOption::DocWarnRemovePersonalInfo ); // annotation element + content |