From 31fedbe9f782976b6aa4615b6fd171ed52137c94 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Tue, 2 Apr 2013 23:20:15 +0200 Subject: Remove SvtInternalOptions * only Get/SetCurrentTempURL were used, but only for compatibility reasons, to remove old temporary directories (before 2001). Those should be gone today. * MailUIEnabled was false in the xcu file. * SID_MAIL_SENDDOC* are handled some lines further. Change-Id: I482719b0de9df0a77c2fef0bf25ae1fb68926375 Reviewed-on: https://gerrit.libreoffice.org/3180 Reviewed-by: Miklos Vajna Tested-by: Miklos Vajna --- sfx2/source/appl/app.cxx | 1 - sfx2/source/appl/appmisc.cxx | 1 - sfx2/source/view/viewsh.cxx | 19 +------------------ 3 files changed, 1 insertion(+), 20 deletions(-) (limited to 'sfx2/source') diff --git a/sfx2/source/appl/app.cxx b/sfx2/source/appl/app.cxx index 49ee2b1699c6..479f9d4479a3 100644 --- a/sfx2/source/appl/app.cxx +++ b/sfx2/source/appl/app.cxx @@ -113,7 +113,6 @@ #include #include #include -#include #include #include #include diff --git a/sfx2/source/appl/appmisc.cxx b/sfx2/source/appl/appmisc.cxx index 2cd13360c83f..8008e9071605 100644 --- a/sfx2/source/appl/appmisc.cxx +++ b/sfx2/source/appl/appmisc.cxx @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index 4760de15ad6a..d5c778e56aa6 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -43,7 +43,6 @@ #include #include #include -#include #include #include @@ -296,7 +295,6 @@ SfxViewShell_Impl::SfxViewShell_Impl(sal_uInt16 const nFlags) //========================================================================= SFX_IMPL_INTERFACE(SfxViewShell,SfxShell,SfxResId(0)) { - SFX_CHILDWINDOW_REGISTRATION( SID_MAIL_CHILDWIN ); } TYPEINIT2(SfxViewShell,SfxShell,SfxListener); @@ -518,11 +516,7 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq ) WhenSaving, &GetViewFrame()->GetWindow() ) != RET_YES ) break; - if ( SvtInternalOptions().MailUIEnabled() ) - { - GetViewFrame()->SetChildWindow( SID_MAIL_CHILDWIN, sal_True ); - } - else + { SfxMailModel aModel; rtl::OUString aDocType; @@ -837,17 +831,6 @@ void SfxViewShell::GetState_Impl( SfxItemSet &rSet ) break; } - // Mail functions - case SID_MAIL_SENDDOCASPDF: - case SID_MAIL_SENDDOC: - case SID_MAIL_SENDDOCASFORMAT: - { - sal_Bool bEnable = !GetViewFrame()->HasChildWindow( SID_MAIL_CHILDWIN ); - if ( !bEnable ) - rSet.DisableItem( nSID ); - break; - } - // PlugIns running case SID_PLUGINS_ACTIVE: { -- cgit