diff options
author | Kurt Zenker <kz@openoffice.org> | 2004-10-04 18:40:05 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2004-10-04 18:40:05 +0000 |
commit | 0155496373463a0a14090c397a89285e05ce62af (patch) | |
tree | 83fbceeca437e6fc236b2804ad04daf3e113edb9 /basctl | |
parent | 833c01280c286736f1f725af12e53ccc529fa032 (diff) |
INTEGRATION: CWS mav09 (1.27.52); FILE MERGED
2004/08/09 17:29:29 mav 1.27.52.4: RESYNC: (1.29-1.30); FILE MERGED
2004/07/07 19:27:06 mav 1.27.52.3: RESYNC: (1.28-1.29); FILE MERGED
2004/05/17 20:21:09 mav 1.27.52.2: RESYNC: (1.27-1.28); FILE MERGED
2004/04/14 13:56:08 mba 1.27.52.1: #i27773#: remove so3; new storage API
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/macrodlg.cxx | 62 |
1 files changed, 18 insertions, 44 deletions
diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx index 5d2682fffec0..052e8c3a55a5 100644 --- a/basctl/source/basicide/macrodlg.cxx +++ b/basctl/source/basicide/macrodlg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: macrodlg.cxx,v $ * - * $Revision: 1.30 $ + * $Revision: 1.31 $ * - * last change: $Author: kz $ $Date: 2004-07-23 12:05:26 $ + * last change: $Author: kz $ $Date: 2004-10-04 19:40:05 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,10 +61,6 @@ #include <memory> -#ifndef _SFX_IPFRM_HXX -#include <sfx2/ipfrm.hxx> -#endif - #include <ide_pch.hxx> #pragma hdrstop @@ -707,9 +703,6 @@ IMPL_LINK( MacroChooser, ButtonHdl, Button *, pButton ) // ausser bei New/Record wird die Description durch LoseFocus uebernommen. SfxViewFrame* pViewFrame = SfxViewFrame::Current(); - // #108283# check if view frame is a SfxInPlaceFrame - SfxDispatcher* pDispatcher = ( pViewFrame && !pViewFrame->ISA( SfxInPlaceFrame ) ) ? pViewFrame->GetDispatcher() : NULL; - if ( pButton == &aRunButton ) { StoreMacroDescription(); @@ -783,19 +776,13 @@ IMPL_LINK( MacroChooser, ButtonHdl, Button *, pButton ) if ( pEntry ) aInfoItem.SetMethod( aMacroBox.GetEntryText( pEntry ) ); StoreMacroDescription(); - if( pDispatcher ) - { - pDispatcher->Execute( SID_BASICIDE_APPEAR, SFX_CALLMODE_SYNCHRON ); - } - else - { - SfxAllItemSet aArgs( SFX_APP()->GetPool() ); - SfxRequest aRequest( SID_BASICIDE_APPEAR, SFX_CALLMODE_SYNCHRON, aArgs ); - SFX_APP()->ExecuteSlot( aRequest ); - } + SfxAllItemSet aArgs( SFX_APP()->GetPool() ); + SfxRequest aRequest( SID_BASICIDE_APPEAR, SFX_CALLMODE_SYNCHRON, aArgs ); + SFX_APP()->ExecuteSlot( aRequest ); + BasicIDEShell* pIDEShell = IDE_DLL()->GetShell(); pViewFrame = pIDEShell ? pIDEShell->GetViewFrame() : NULL; - pDispatcher = pViewFrame ? pViewFrame->GetDispatcher() : NULL; + SfxDispatcher* pDispatcher = pViewFrame ? pViewFrame->GetDispatcher() : NULL; if( pDispatcher ) pDispatcher->Execute( SID_BASICIDE_EDITMACRO, SFX_CALLMODE_ASYNCHRON, &aInfoItem, 0L ); EndDialog( MACRO_EDIT ); @@ -807,7 +794,7 @@ IMPL_LINK( MacroChooser, ButtonHdl, Button *, pButton ) DeleteMacro(); BasicIDEShell* pIDEShell = IDE_DLL()->GetShell(); pViewFrame = pIDEShell ? pIDEShell->GetViewFrame() : NULL; - pDispatcher = pViewFrame ? pViewFrame->GetDispatcher() : NULL; + SfxDispatcher* pDispatcher = pViewFrame ? pViewFrame->GetDispatcher() : NULL; if( pDispatcher ) { pDispatcher->Execute( SID_BASICIDE_UPDATEMODULESOURCE, @@ -834,19 +821,13 @@ IMPL_LINK( MacroChooser, ButtonHdl, Button *, pButton ) aInfoItem.SetMethod( pMethod->GetName() ); aInfoItem.SetModule( pMethod->GetModule()->GetName() ); aInfoItem.SetLib( pMethod->GetModule()->GetParent()->GetName() ); - if ( pDispatcher ) - { - pDispatcher->Execute( SID_BASICIDE_APPEAR, SFX_CALLMODE_SYNCHRON ); - } - else - { - SfxAllItemSet aArgs( SFX_APP()->GetPool() ); - SfxRequest aRequest( SID_BASICIDE_APPEAR, SFX_CALLMODE_SYNCHRON, aArgs ); - SFX_APP()->ExecuteSlot( aRequest ); - } + SfxAllItemSet aArgs( SFX_APP()->GetPool() ); + SfxRequest aRequest( SID_BASICIDE_APPEAR, SFX_CALLMODE_SYNCHRON, aArgs ); + SFX_APP()->ExecuteSlot( aRequest ); + BasicIDEShell* pIDEShell = IDE_DLL()->GetShell(); pViewFrame = pIDEShell ? pIDEShell->GetViewFrame() : NULL; - pDispatcher = pViewFrame ? pViewFrame->GetDispatcher() : NULL; + SfxDispatcher* pDispatcher = pViewFrame ? pViewFrame->GetDispatcher() : NULL; if ( pDispatcher ) pDispatcher->Execute( SID_BASICIDE_EDITMACRO, SFX_CALLMODE_ASYNCHRON, &aInfoItem, 0L ); StoreMacroDescription(); @@ -870,18 +851,11 @@ IMPL_LINK( MacroChooser, ButtonHdl, Button *, pButton ) DBG_ASSERT( pMethod, "Method?" ); String aComment( GetInfo( pMethod ) ); SfxMacroInfoItem aItem( SID_MACROINFO, pBasMgr, aLib, aMod, aSub, aComment ); - if( pDispatcher ) - { - pDispatcher->Execute( SID_CONFIG, - SFX_CALLMODE_SYNCHRON, &aItem, 0L ); - } - else - { - SfxAllItemSet Args( SFX_APP()->GetPool() ); - SfxRequest aRequest( SID_CONFIG, SFX_CALLMODE_SYNCHRON, Args ); - aRequest.AppendItem( aItem ); - SFX_APP()->ExecuteSlot( aRequest ); - } + SfxAllItemSet Args( SFX_APP()->GetPool() ); + SfxRequest aRequest( SID_CONFIG, SFX_CALLMODE_SYNCHRON, Args ); + aRequest.AppendItem( aItem ); + SFX_APP()->ExecuteSlot( aRequest ); + // Wenn jetzt ein FloatingWindow vom Config-Dlg hochgezogen wurde, // muss dieser modale Dlg verschwinden: SfxViewFrame* pCurFrame = SfxViewFrame::Current(); |