diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-09 10:41:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-10 06:05:54 +0000 |
commit | a4d0ec84dae49a6c47c38bfc6ee5bba988349721 (patch) | |
tree | df5b201ba05a8845f6a2e2b1b0750c9580375e46 /sfx2 | |
parent | 29eb1ceeae4a3108ce134b45e77a37ade7d7a4f8 (diff) |
convert SvtSecurityOptions::EOption to scoped enum
and drop unused E_MACRO_DISABLE enumerator
Change-Id: I0bd706d4d4e1d8b9004e68c9e77c11410c62a64a
Reviewed-on: https://gerrit.libreoffice.org/34067
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appcfg.cxx | 10 | ||||
-rw-r--r-- | sfx2/source/dialog/filedlghelper.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/objcont.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 8 |
4 files changed, 11 insertions, 11 deletions
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx index e17dcac6fb3b..61593bb95f52 100644 --- a/sfx2/source/appl/appcfg.cxx +++ b/sfx2/source/appl/appcfg.cxx @@ -300,7 +300,7 @@ void SfxApplication::GetOptions( SfxItemSet& rSet ) case SID_BASIC_ENABLED : { bRet = true; - if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::E_BASICMODE)) + if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::EOption::BasicMode)) { if ( !rSet.Put( SfxUInt16Item( rPool.GetWhich( SID_BASIC_ENABLED ), sal::static_int_cast< sal_uInt16 >(aSecurityOptions.GetBasicMode())))) bRet = false; @@ -310,7 +310,7 @@ void SfxApplication::GetOptions( SfxItemSet& rSet ) case SID_INET_EXE_PLUGIN : { bRet = true; - if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::E_EXECUTEPLUGINS)) + if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::EOption::ExecutePlugins)) { if ( !rSet.Put( SfxBoolItem( SID_INET_EXE_PLUGIN, aSecurityOptions.IsExecutePlugins() ) ) ) bRet = false; @@ -320,7 +320,7 @@ void SfxApplication::GetOptions( SfxItemSet& rSet ) case SID_MACRO_WARNING : { bRet = true; - if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::E_WARNING)) + if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::EOption::Warning)) { if ( !rSet.Put( SfxBoolItem( SID_MACRO_WARNING, aSecurityOptions.IsWarningEnabled() ) ) ) bRet = false; @@ -330,7 +330,7 @@ void SfxApplication::GetOptions( SfxItemSet& rSet ) case SID_MACRO_CONFIRMATION : { bRet = true; - if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::E_CONFIRMATION)) + if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::EOption::Confirmation)) { if ( !rSet.Put( SfxBoolItem( SID_MACRO_CONFIRMATION, aSecurityOptions.IsConfirmationEnabled() ) ) ) bRet = false; @@ -340,7 +340,7 @@ void SfxApplication::GetOptions( SfxItemSet& rSet ) case SID_SECURE_URL : { bRet = true; - if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::E_SECUREURLS)) + if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::EOption::SecureUrls)) { css::uno::Sequence< OUString > seqURLs = aSecurityOptions.GetSecureURLs(); std::vector<OUString> aList; diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index 8cdbd19691a7..647759ca36d2 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -1409,7 +1409,7 @@ ErrCode FileDialogHelper_Impl::execute( std::vector<OUString>& rpURLList, { SvtSecurityOptions aSecOpt; mbPwdCheckBoxState = ( - aSecOpt.IsOptionSet( SvtSecurityOptions::E_DOCWARN_RECOMMENDPASSWORD ) ); + aSecOpt.IsOptionSet( SvtSecurityOptions::EOption::DocWarnRecommendPassword ) ); } rpURLList.clear(); diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx index 859036e6015e..b301545dba1a 100644 --- a/sfx2/source/doc/objcont.cxx +++ b/sfx2/source/doc/objcont.cxx @@ -181,7 +181,7 @@ void SfxObjectShell::UpdateDocInfoForSave() // clear user data if recommend (see 'Tools - Options - Open/StarOffice - Security') if ( SvtSecurityOptions().IsOptionSet( - SvtSecurityOptions::E_DOCWARN_REMOVEPERSONALINFO ) ) + SvtSecurityOptions::EOption::DocWarnRemovePersonalInfo ) ) { xDocProps->resetUserData( OUString() ); } diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 4468b963c240..92ad92347f1e 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -2914,25 +2914,25 @@ sal_Int16 SfxObjectShell::QueryHiddenInformation( HiddenWarningFact eFact, vcl:: case HiddenWarningFact::WhenSaving : { nResId = STR_HIDDENINFO_CONTINUE_SAVING; - eOption = SvtSecurityOptions::E_DOCWARN_SAVEORSEND; + eOption = SvtSecurityOptions::EOption::DocWarnSaveOrSend; break; } case HiddenWarningFact::WhenPrinting : { nResId = STR_HIDDENINFO_CONTINUE_PRINTING; - eOption = SvtSecurityOptions::E_DOCWARN_PRINT; + eOption = SvtSecurityOptions::EOption::DocWarnPrint; break; } case HiddenWarningFact::WhenSigning : { nResId = STR_HIDDENINFO_CONTINUE_SIGNING; - eOption = SvtSecurityOptions::E_DOCWARN_SIGNING; + eOption = SvtSecurityOptions::EOption::DocWarnSigning; break; } case HiddenWarningFact::WhenCreatingPDF : { nResId = STR_HIDDENINFO_CONTINUE_CREATEPDF; - eOption = SvtSecurityOptions::E_DOCWARN_CREATEPDF; + eOption = SvtSecurityOptions::EOption::DocWarnCreatePdf; break; } default: |