[Libreoffice-commits] .: sfx2/inc sfx2/source

August Sodora augsod at kemper.freedesktop.org
Wed Dec 21 05:37:58 PST 2011


 sfx2/inc/sfx2/dispatch.hxx       |    3 -
 sfx2/source/appl/app.cxx         |    1 
 sfx2/source/appl/appcfg.cxx      |    1 
 sfx2/source/control/dispatch.cxx |   86 ---------------------------------------
 4 files changed, 91 deletions(-)

New commits:
commit 073431d26d39216a7f5f85489ecd4eb60806ee88
Author: August Sodora <augsod at gmail.com>
Date:   Wed Dec 21 08:37:20 2011 -0500

    More removal from TTProperties

diff --git a/sfx2/inc/sfx2/dispatch.hxx b/sfx2/inc/sfx2/dispatch.hxx
index 0591d1f..de65742 100644
--- a/sfx2/inc/sfx2/dispatch.hxx
+++ b/sfx2/inc/sfx2/dispatch.hxx
@@ -125,9 +125,6 @@ public:
 
     virtual             ~SfxDispatcher();
 
-    virtual sal_uInt16      ExecuteFunction( sal_uInt16 nSID, SfxPoolItem** ppArgs=0, sal_uInt16 nMode=0 );
-    sal_uInt16              ExecuteFunction( sal_uInt16 nSID, const SfxItemSet& rArgs , sal_uInt16 nMode=0 );
-
     virtual void        SetExecuteMode( sal_uInt16 );
 
     const SfxPoolItem*  Execute( sal_uInt16 nSlot,
diff --git a/sfx2/source/appl/app.cxx b/sfx2/source/appl/app.cxx
index d611d94..81bf1f6 100644
--- a/sfx2/source/appl/app.cxx
+++ b/sfx2/source/appl/app.cxx
@@ -138,7 +138,6 @@
 #include <unotools/syslocaleoptions.hxx>
 #include <unotools/syslocale.hxx>
 #include <framework/addonsoptions.hxx>
-#include <svtools/ttprops.hxx>
 #include <unotools/extendedsecurityoptions.hxx>
 #include <rtl/instance.hxx>
 #include <rtl/strbuf.hxx>
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx
index 8fa9c07..f035e02 100644
--- a/sfx2/source/appl/appcfg.cxx
+++ b/sfx2/source/appl/appcfg.cxx
@@ -49,7 +49,6 @@
 
 #define _SVSTDARR_STRINGS
 #include <svl/svstdarr.hxx>
-#include <svtools/ttprops.hxx>
 #include <sfx2/sfxsids.hrc>
 #include <sot/exchange.hxx>
 
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index 44d0a51..a720354 100644
--- a/sfx2/source/control/dispatch.cxx
+++ b/sfx2/source/control/dispatch.cxx
@@ -36,7 +36,6 @@
 #include <svl/eitem.hxx>
 #include <svl/undo.hxx>
 #include <vcl/wrkwin.hxx>
-#include <svtools/ttprops.hxx>
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>  // due to bsearch
@@ -995,91 +994,6 @@ void MappedPut_Impl( SfxAllItemSet &rSet, const SfxPoolItem &rItem )
 #define SFX_USE_BINDINGS 0x8000
 #endif
 
-sal_uInt16 SfxDispatcher::ExecuteFunction( sal_uInt16 nSlot, SfxPoolItem **pArgs,
-                                       sal_uInt16 nMode )
-{
-    if ( !nMode )
-        nMode = pImp->nStandardMode;
-
-    // through Bindings/Interceptor? (then the return value is not exact)
-    sal_Bool bViaBindings = SFX_USE_BINDINGS == ( nMode & SFX_USE_BINDINGS );
-    nMode &= ~sal_uInt16(SFX_USE_BINDINGS);
-    if ( bViaBindings && GetBindings() )
-        return GetBindings()->Execute( nSlot, (const SfxPoolItem **) pArgs, nMode )
-                ? EXECUTE_POSSIBLE
-                : EXECUTE_NO;
-
-    // otherwise through the Dispatcher
-    if ( IsLocked(nSlot) )
-        return 0;
-    SfxShell *pShell = 0;
-    SfxCallMode eCall = SFX_CALLMODE_SYNCHRON;
-    sal_uInt16 nRet = EXECUTE_NO;
-    const SfxSlot *pSlot = 0;
-    if ( GetShellAndSlot_Impl( nSlot, &pShell, &pSlot, sal_False, sal_False ) )
-    {
-        // Feasibility test before
-        if ( pSlot->IsMode( SFX_SLOT_FASTCALL ) ||
-            pShell->CanExecuteSlot_Impl( *pSlot ) )
-                nRet = EXECUTE_POSSIBLE;
-
-        if ( nMode == EXECUTEMODE_ASYNCHRON )
-            eCall = SFX_CALLMODE_ASYNCHRON;
-        else if ( nMode == EXECUTEMODE_DIALOGASYNCHRON && pSlot->IsMode( SFX_SLOT_HASDIALOG ) )
-            eCall = SFX_CALLMODE_ASYNCHRON;
-        else if ( pSlot->GetMode() & SFX_SLOT_ASYNCHRON )
-            eCall = SFX_CALLMODE_ASYNCHRON;
-        if ( pArgs && *pArgs )
-        {
-            SfxAllItemSet aSet( pShell->GetPool() );
-            for ( SfxPoolItem **pArg = pArgs; *pArg; ++pArg )
-                MappedPut_Impl( aSet, **pArg );
-            SfxRequest aReq( nSlot, eCall, aSet );
-            _Execute( *pShell, *pSlot, aReq, eCall );
-        }
-        else
-        {
-            SfxRequest aReq( nSlot, eCall, pShell->GetPool() );
-            _Execute( *pShell, *pSlot, aReq, eCall );
-        }
-    }
-
-    return nRet;
-}
-
-sal_uInt16 SfxDispatcher::ExecuteFunction( sal_uInt16 nSlot, const SfxItemSet& rArgs,
-                                       sal_uInt16 nMode )
-{
-    if ( !nMode )
-        nMode = pImp->nStandardMode;
-
-    // otherwise through the Dispatcher
-    if ( IsLocked(nSlot) )
-        return 0;
-    SfxShell *pShell = 0;
-    SfxCallMode eCall = SFX_CALLMODE_SYNCHRON;
-    sal_uInt16 nRet = EXECUTE_NO;
-    const SfxSlot *pSlot = 0;
-    if ( GetShellAndSlot_Impl( nSlot, &pShell, &pSlot, sal_False, sal_False ) )
-    {
-        // Feasibility test before
-        if ( pSlot->IsMode( SFX_SLOT_FASTCALL ) ||
-            pShell->CanExecuteSlot_Impl( *pSlot ) )
-                nRet = EXECUTE_POSSIBLE;
-
-        if ( nMode == EXECUTEMODE_ASYNCHRON )
-            eCall = SFX_CALLMODE_ASYNCHRON;
-        else if ( nMode == EXECUTEMODE_DIALOGASYNCHRON && pSlot->IsMode( SFX_SLOT_HASDIALOG ) )
-            eCall = SFX_CALLMODE_ASYNCHRON;
-        else if ( pSlot->GetMode() & SFX_SLOT_ASYNCHRON )
-            eCall = SFX_CALLMODE_ASYNCHRON;
-        SfxRequest aReq( nSlot, eCall, rArgs );
-        _Execute( *pShell, *pSlot, aReq, eCall );
-    }
-
-    return nRet;
-}
-
 const SfxSlot* SfxDispatcher::GetSlot( const String& rCommand )
 {
     // Count the number of Shells on the linked Dispatcher


More information about the Libreoffice-commits mailing list