undoapi: finally removed Enter/LeaveBasicAction

This commit is contained in:
Frank Schoenheit [fs] 2010-11-02 21:29:38 +01:00
parent 3969fb69b7
commit 7a95f49bde
3 changed files with 0 additions and 8 deletions

View file

@ -212,8 +212,6 @@ void BasicIDEShell::Init()
SetName( String( RTL_CONSTASCII_USTRINGPARAM( "BasicIDE" ) ) );
SetHelpId( SVX_INTERFACE_BASIDE_VIEWSH );
SFX_APP()->EnterBasicCall();
LibBoxControl::RegisterControl( SID_BASICIDE_LIBSELECTOR );
LanguageBoxControl::RegisterControl( SID_BASICIDE_CURRENT_LANG );
@ -291,7 +289,6 @@ __EXPORT BasicIDEShell::~BasicIDEShell()
// ObjSh loslaesst. Es wusste auch keiner mehr wozu das gut war.
// GetViewFrame()->GetObjectShell()->Broadcast( SfxSimpleHint( SFX_HINT_DYING ) );
SFX_APP()->LeaveBasicCall();
IDE_DLL()->GetExtraData()->ShellInCriticalSection() = FALSE;
GnBasicIDEShellCount--;

View file

@ -225,7 +225,6 @@ bool RenameModule( Window* pErrorParent, const ScriptDocument& rDocument, const
BasicIDEDLL::Init();
IDE_DLL()->GetExtraData()->ChoosingMacro() = TRUE;
SFX_APP()->EnterBasicCall();
String aScriptURL;
BOOL bError = FALSE;
@ -345,8 +344,6 @@ bool RenameModule( Window* pErrorParent, const ScriptDocument& rDocument, const
delete pChooser;
SFX_APP()->LeaveBasicCall();
return ::rtl::OUString( aScriptURL );
}

View file

@ -216,14 +216,12 @@ IMPL_LINK( BasicIDEData, ExecuteMacroEvent, void *, pData )
{
if ( pData )
{
SFX_APP()->EnterBasicCall();
SbMethod* pMethod = (SbMethod*)pData;
// Ist es eine StarScript-Methode? Am Parent erkennen
DBG_ASSERT( pMethod->GetParent()->GetFlags() & SBX_EXTSEARCH, "Kein EXTSEARCH!" );
BasicIDE::RunMethod( pMethod );
pMethod->ReleaseRef(); // muss vorher inkrementiert worden sein!
SFX_APP()->LeaveBasicCall();
}
return 0;
}