diff options
Diffstat (limited to 'basic/source/classes/sbxmod.cxx')
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index c5608a877fc7..7f85be207f14 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -1781,12 +1781,10 @@ IMPL_LINK( ErrorHdlResetter, BasicErrorHdl, StarBASIC *, /*pBasic*/) std::vector< CodeCompleteData > SbModule::GetCodeCompleteDataFromParse() { ErrorHdlResetter aErrHdl; - StarBASIC* pBasic = PTR_CAST(StarBASIC,GetParent()); SbxBase::ResetError(); - SbModule* pOld = GetSbData()->pCompMod; - GetSbData()->pCompMod = this; SbiParser* pParser = new SbiParser( (StarBASIC*) GetParent(), this ); + pParser->SetCodeCompleting(true); while( pParser->Parse() ) {} SbiSymPool* pPool = pParser->pPool; @@ -1823,6 +1821,11 @@ std::vector< CodeCompleteData > SbModule::GetCodeCompleteDataFromParse() return aRet; } +SbxArrayRef SbModule::GetMethods() +{ + return pMethods; +} + bool SbModule::HasExeCode() { // And empty Image always has the Global Chain set up |