diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appcfg.cxx | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx index eab3c7c723cc..bac9a650966f 100644 --- a/sfx2/source/appl/appcfg.cxx +++ b/sfx2/source/appl/appcfg.cxx @@ -269,36 +269,6 @@ void SfxApplication::GetOptions( SfxItemSet& rSet ) bRet = false; } break; - case SID_INET_EXE_PLUGIN : - { - bRet = true; - if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::EOption::ExecutePlugins)) - { - if ( !rSet.Put( SfxBoolItem( SID_INET_EXE_PLUGIN, aSecurityOptions.IsExecutePlugins() ) ) ) - bRet = false; - } - } - break; - case SID_MACRO_WARNING : - { - bRet = true; - if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::EOption::Warning)) - { - if ( !rSet.Put( SfxBoolItem( SID_MACRO_WARNING, aSecurityOptions.IsWarningEnabled() ) ) ) - bRet = false; - } - } - break; - case SID_MACRO_CONFIRMATION : - { - bRet = true; - if (!aSecurityOptions.IsReadOnly(SvtSecurityOptions::EOption::Confirmation)) - { - if ( !rSet.Put( SfxBoolItem( SID_MACRO_CONFIRMATION, aSecurityOptions.IsConfirmationEnabled() ) ) ) - bRet = false; - } - } - break; case SID_SECURE_URL : { bRet = true; @@ -599,13 +569,6 @@ void SfxApplication::SetOptions_Impl( const SfxItemSet& rSet ) ShutdownIcon::SetAutostart( static_cast<const SfxBoolItem*>( pItem )->GetValue() ); } - // Execute PlugIns - if ( SfxItemState::SET == rSet.GetItemState(SID_INET_EXE_PLUGIN, true, &pItem)) - { - DBG_ASSERT(dynamic_cast< const SfxBoolItem *>( pItem ) != nullptr, "SfxBoolItem expected"); - aSecurityOptions.SetExecutePlugins( static_cast<const SfxBoolItem *>( pItem )->GetValue() ); - } - if ( SfxItemState::SET == rSet.GetItemState(rPool.GetWhich(SID_INET_PROXY_TYPE), true, &pItem)) { DBG_ASSERT( dynamic_cast< const SfxUInt16Item *>( pItem ) != nullptr, "UInt16Item expected" ); @@ -653,17 +616,6 @@ void SfxApplication::SetOptions_Impl( const SfxItemSet& rSet ) aSecurityOptions.SetSecureURLs( seqURLs ); } - if ( SfxItemState::SET == rSet.GetItemState(SID_MACRO_WARNING, true, &pItem)) - { - DBG_ASSERT(dynamic_cast< const SfxBoolItem *>( pItem ) != nullptr, "SfxBoolItem expected"); - aSecurityOptions.SetWarningEnabled( static_cast<const SfxBoolItem *>(pItem)->GetValue() ); - } - if ( SfxItemState::SET == rSet.GetItemState(SID_MACRO_CONFIRMATION, true, &pItem)) - { - DBG_ASSERT(dynamic_cast< const SfxBoolItem *>( pItem ) != nullptr, "SfxBoolItem expected"); - aSecurityOptions.SetConfirmationEnabled( static_cast<const SfxBoolItem *>(pItem)->GetValue() ); - } - // Store changed data batch->commit(); } |