LibreOffice Module basic (master) 1
|
#include <runtime.hxx>
Public Member Functions | |
void | SetVBAEnabled (bool bEnabled) |
bool | IsImageFlag (SbiImageFlags n) const |
sal_uInt16 | GetBase () const |
SbiRuntime (SbModule *, SbMethod *, sal_uInt32) | |
~SbiRuntime () | |
void | Error (ErrCode, bool bVBATranslationAlreadyDone=false) |
void | Error (ErrCode, const OUString &) |
void | FatalError (ErrCode) |
void | FatalError (ErrCode, const OUString &) |
bool | Step () |
void | Stop () |
void | block () |
void | unblock () |
SbModule * | GetModule () |
BasicDebugFlags | GetDebugFlags () const |
void | SetDebugFlags (BasicDebugFlags nFl) |
SbMethod * | GetCaller () |
SbxVariable * | GetExternalCaller () |
SbiForStack * | FindForStackItemForCollection (class BasicCollection const *pCollection) |
SbxBase * | FindElementExtern (const OUString &rName) |
Static Public Member Functions | |
static void | SetIsMissing (SbxVariable *) |
static bool | IsMissing (SbxVariable *, sal_uInt16) |
static sal_Int32 | translateErrorToVba (ErrCode nError, OUString &rMsg) |
static bool | isVBAEnabled () |
Public Attributes | |
sal_Int32 | nLine = 0 |
sal_Int32 | nCol1 = 0 |
sal_Int32 | nCol2 = 0 |
SbiRuntime * | pNext = nullptr |
Private Types | |
typedef void(SbiRuntime::* | pStep0) () |
typedef void(SbiRuntime::* | pStep1) (sal_uInt32 nOp1) |
typedef void(SbiRuntime::* | pStep2) (sal_uInt32 nOp1, sal_uInt32 nOp2) |
Private Member Functions | |
SbxVariable * | FindElement (SbxObject *pObj, sal_uInt32 nOp1, sal_uInt32 nOp2, ErrCode, bool bLocal, bool bStatic=false) |
void | SetupArgs (SbxVariable *, sal_uInt32) |
SbxVariable * | CheckArray (SbxVariable *) |
void | PushVar (SbxVariable *) |
SbxVariableRef | PopVar () |
SbxVariable * | GetTOS () |
void | TOSMakeTemp () |
void | ClearExprStack () |
void | PushGosub (const sal_uInt8 *) |
void | PopGosub () |
void | PushArgv () |
void | PopArgv () |
void | ClearArgvStack () |
void | PushFor () |
void | PushForEach () |
void | PopFor () |
void | ClearForStack () |
void | StepArith (SbxOperator) |
void | StepUnary (SbxOperator) |
void | StepCompare (SbxOperator) |
void | SetParameters (SbxArray *) |
void | DllCall (std::u16string_view, std::u16string_view, SbxArray *, SbxDataType, bool) |
void | DimImpl (const SbxVariableRef &refVar) |
bool | EvaluateTopOfStackAsBool () |
void | StepSETCLASS_impl (sal_uInt32 nOp1, bool bHandleDflt) |
void | StepNOP () |
void | StepEXP () |
void | StepMUL () |
void | StepDIV () |
void | StepMOD () |
void | StepPLUS () |
void | StepMINUS () |
void | StepNEG () |
void | StepEQ () |
void | StepNE () |
void | StepLT () |
void | StepGT () |
void | StepLE () |
void | StepGE () |
void | StepIDIV () |
void | StepAND () |
void | StepOR () |
void | StepXOR () |
void | StepEQV () |
void | StepIMP () |
void | StepNOT () |
void | StepCAT () |
void | StepLIKE () |
void | StepIS () |
void | StepARGC () |
void | StepARGV () |
void | StepINPUT () |
void | StepLINPUT () |
void | StepSTOP () |
void | StepGET () |
void | StepSET () |
void | StepVBASET () |
void | StepPUT () |
void | StepPUTC () |
void | StepSET_Impl (SbxVariableRef &refVal, SbxVariableRef &refVar, bool bDefaultHandling=false) |
void | StepDIM () |
void | StepREDIM () |
void | StepREDIMP () |
void | StepERASE () |
void | StepINITFOR () |
void | StepNEXT () |
void | StepERROR () |
void | StepINITFOREACH () |
void | StepCASE () |
void | StepENDCASE () |
void | StepSTDERROR () |
void | StepNOERROR () |
void | StepCHANNEL () |
void | StepCHANNEL0 () |
void | StepPRINT () |
void | StepPRINTF () |
void | StepWRITE () |
void | StepRENAME () |
void | StepPROMPT () |
void | StepRESTART () |
void | StepEMPTY () |
void | StepLEAVE () |
void | StepLSET () |
void | StepRSET () |
void | StepREDIMP_ERASE () |
void | StepERASE_CLEAR () |
void | StepARRAYACCESS () |
void | StepBYVAL () |
void | StepLOADNC (sal_uInt32) |
void | StepLOADSC (sal_uInt32) |
void | StepLOADI (sal_uInt32) |
void | StepARGN (sal_uInt32) |
void | StepBASED (sal_uInt32) |
void | StepPAD (sal_uInt32) |
void | StepJUMP (sal_uInt32) |
void | StepJUMPT (sal_uInt32) |
void | StepJUMPF (sal_uInt32) |
void | StepONJUMP (sal_uInt32) |
void | StepGOSUB (sal_uInt32) |
void | StepRETURN (sal_uInt32) |
void | StepTESTFOR (sal_uInt32) |
void | StepCASETO (sal_uInt32) |
void | StepERRHDL (sal_uInt32) |
void | StepRESUME (sal_uInt32) |
void | StepSETCLASS (sal_uInt32) |
void | StepVBASETCLASS (sal_uInt32) |
void | StepTESTCLASS (sal_uInt32) |
void | StepLIB (sal_uInt32) |
bool | checkClass_Impl (const SbxVariableRef &refVal, const OUString &aClass, bool bRaiseErrors, bool bDefault) |
void | StepCLOSE (sal_uInt32) |
void | StepPRCHAR (sal_uInt32) |
void | StepARGTYP (sal_uInt32) |
void | StepRTL (sal_uInt32, sal_uInt32) |
void | StepPUBLIC (sal_uInt32, sal_uInt32) |
void | StepPUBLIC_P (sal_uInt32, sal_uInt32) |
void | StepPUBLIC_Impl (sal_uInt32, sal_uInt32, bool bUsedForClassModule) |
void | StepFIND_Impl (SbxObject *pObj, sal_uInt32 nOp1, sal_uInt32 nOp2, ErrCode, bool bStatic=false) |
void | StepFIND (sal_uInt32, sal_uInt32) |
void | StepELEM (sal_uInt32, sal_uInt32) |
void | StepGLOBAL (sal_uInt32, sal_uInt32) |
void | StepLOCAL (sal_uInt32, sal_uInt32) |
void | StepPARAM (sal_uInt32, sal_uInt32) |
Loading of a parameter (+offset+type) If the data type is wrong, create a copy and search for optionals including the default value. More... | |
void | StepCREATE (sal_uInt32, sal_uInt32) |
void | StepCALL (sal_uInt32, sal_uInt32) |
void | StepCALLC (sal_uInt32, sal_uInt32) |
void | StepCASEIS (sal_uInt32, sal_uInt32) |
void | StepSTMNT (sal_uInt32, sal_uInt32) |
SbxVariable * | StepSTATIC_Impl (OUString const &aName, SbxDataType t, sal_uInt32 nOp2) |
void | StepOPEN (sal_uInt32, sal_uInt32) |
void | StepSTATIC (sal_uInt32, sal_uInt32) |
void | StepTCREATE (sal_uInt32, sal_uInt32) |
void | StepDCREATE (sal_uInt32, sal_uInt32) |
void | StepGLOBAL_P (sal_uInt32, sal_uInt32) |
void | StepFIND_G (sal_uInt32, sal_uInt32) |
void | StepDCREATE_REDIMP (sal_uInt32, sal_uInt32) |
void | StepDCREATE_IMPL (sal_uInt32, sal_uInt32) |
void | StepFIND_CM (sal_uInt32, sal_uInt32) |
void | StepFIND_STATIC (sal_uInt32, sal_uInt32) |
Static Private Member Functions | |
static bool | implIsClass (SbxObject const *pObj, const OUString &aClass) |
static void | implHandleSbxFlags (SbxVariable *pVar, SbxDataType t, sal_uInt32 nOp2) |
Private Attributes | |
StarBASIC & | rBasic |
SbiInstance * | pInst |
SbModule * | pMod |
SbMethod * | pMeth |
SbiIoSystem * | pIosys |
const SbiImage * | pImg |
SbxArrayRef | refExprStk |
SbxArrayRef | refCaseStk |
SbxArrayRef | refRedimpArray |
SbxVariableRef | refRedim |
SbxVariableRef | xDummyVar |
SbxVariable * | mpExtCaller = nullptr |
SbiForStack * | pForStk = nullptr |
sal_uInt16 | nExprLvl = 0 |
sal_uInt16 | nForLvl = 0 |
const sal_uInt8 * | pCode |
const sal_uInt8 * | pStmnt |
const sal_uInt8 * | pError = nullptr |
const sal_uInt8 * | pRestart = nullptr |
const sal_uInt8 * | pErrCode = nullptr |
const sal_uInt8 * | pErrStmnt = nullptr |
OUString | aLibName |
SbxArrayRef | refParams |
SbxArrayRef | refLocals |
SbxArrayRef | refArgv |
short | nArgc = 0 |
bool | bRun = true |
bool | bError = true |
bool | bInError = false |
bool | bBlocked = false |
bool | bVBAEnabled |
BasicDebugFlags | nFlags |
ErrCode | nError = ERRCODE_NONE |
sal_uInt16 | nOps = 0 |
std::vector< SbxVariableRef > | aRefSaved |
std::vector< SbiGosub > | pGosubStk |
std::vector< SbiArgv > | pArgvStk |
Static Private Attributes | |
static const pStep0 | aStep0 [] |
static const pStep1 | aStep1 [] |
static const pStep2 | aStep2 [] |
Friends | |
void | SbRtl_CallByName (StarBASIC *pBasic, SbxArray &rPar, bool bWrite) |
Definition at line 207 of file runtime.hxx.
|
private |
Definition at line 211 of file runtime.hxx.
|
private |
Definition at line 212 of file runtime.hxx.
|
private |
Definition at line 213 of file runtime.hxx.
Definition at line 591 of file runtime.cxx.
References get(), SbiImage::GetCode(), SbMethod::GetDebugFlags(), SbiInstance::GetIoSystem(), SbxVariable::GetParameters(), SbModule::IsVBASupport(), nFlags, NONE, pCode, pImg, pInst, pIosys, pMod, pStmnt, refExprStk, SetParameters(), and SetVBAEnabled().
SbiRuntime::~SbiRuntime | ( | ) |
Definition at line 604 of file runtime.cxx.
References ClearArgvStack(), and ClearForStack().
|
inline |
Definition at line 368 of file runtime.hxx.
References bBlocked.
|
private |
Definition at line 3944 of file runtime.cxx.
References Any, SbxVariable::Broadcast(), bVBAEnabled, SbxArray::Count(), ERRCODE_BASIC_BAD_ARGUMENT, ERRCODE_BASIC_NO_OBJECT, ERRCODE_BASIC_OUT_OF_RANGE, Error(), StarBASIC::Error(), tools::SvRef< typename T >::get(), SbxArray::Get(), SbxDimArray::Get(), getDefaultProp(), SbxValue::GetInteger(), SbxValue::GetLong(), SbxValue::GetObject(), SbxVariable::GetParameters(), SbxVariable::GetType(), tools::SvRef< typename T >::is(), SbxBase::IsSet(), Method, nIndex, SbxArray::Put(), SbxValue::PutObject(), refRedim, SbxARRAY, SbxOBJECT, SbxVARIANT, SbxVariable::SetParameters(), VarToDim, and x.
Referenced by FindElement(), StepARRAYACCESS(), and StepPARAM().
|
private |
Definition at line 3360 of file runtime.cxx.
References bVBAEnabled, checkUnoObjectType(), ERRCODE_BASIC_INVALID_USAGE_OBJECT, ERRCODE_BASIC_NEEDS_OBJECT, Error(), tools::SvRef< typename T >::get(), implIsClass(), CodeCompleteOptions::IsExtendedTypeDeclaration(), SbxEMPTY, SbxOBJECT, and t.
Referenced by StepSETCLASS_impl(), and StepTESTCLASS().
|
private |
Definition at line 1111 of file runtime.cxx.
References pArgvStk, and PopArgv().
Referenced by FindElement(), and ~SbiRuntime().
|
private |
Definition at line 1012 of file runtime.cxx.
References nExprLvl, PopVar(), and refExprStk.
Referenced by Step(), and StepSTMNT().
|
private |
Definition at line 1233 of file runtime.cxx.
References pForStk, and PopFor().
Referenced by ~SbiRuntime().
|
private |
Definition at line 2136 of file runtime.cxx.
References SbxDimArray::AddDim(), bVBAEnabled, SbxArray::Count(), ERRCODE_BASIC_INTERNAL_ERROR, ERRCODE_BASIC_OUT_OF_RANGE, Error(), eType, StarBASIC::FatalError(), Fixed, SbxArray::Get(), SbxValue::GetLong(), i, tools::SvRef< typename T >::is(), lcl_clearImpl(), lcl_eraseImpl(), refRedim, refRedimpArray, SbxVARIANT, SbxDimArray::setHasFixedSize(), SbxDimArray::unoAddDim(), and VarToDim.
Referenced by StepDCREATE_IMPL(), StepDIM(), and StepREDIMP().
|
private |
Definition at line 1260 of file runtime.cxx.
References SbiDllMgr::Call(), Error(), SbiInstance::GetDllMgr(), pInst, and PushVar().
Referenced by StepCALL(), and StepCALLC().
void SbiRuntime::Error | ( | ErrCode | n, |
bool | bVBATranslationAlreadyDone = false |
||
) |
Definition at line 913 of file runtime.cxx.
References SbiInstance::aErrorMsg, ERRCODE_BASIC_COMPAT, tools::SvRef< typename T >::get(), SbxErrObject::getErrObject(), SbiInstance::GetErrorMsg(), isVBAEnabled(), n, nError, pInst, SbxErrObject::setNumberAndDescription(), and translateErrorToVba().
Referenced by CheckArray(), checkClass_Impl(), DimImpl(), DllCall(), SbiInstance::Error(), SbiInstance::ErrorVB(), EvaluateTopOfStackAsBool(), FatalError(), FindElement(), PopGosub(), SetParameters(), SetupArgs(), Step(), StepARGTYP(), StepArith(), StepCHANNEL(), StepCLOSE(), StepCREATE(), StepDCREATE_IMPL(), StepERROR(), StepINPUT(), StepIS(), StepLINPUT(), StepLSET(), StepOPEN(), StepPARAM(), StepPRCHAR(), StepPRINT(), StepPRINTF(), StepRESUME(), StepRSET(), StepSET_Impl(), StepTESTFOR(), StepUnary(), and StepWRITE().
void SbiRuntime::Error | ( | ErrCode | _errCode, |
const OUString & | _details | ||
) |
Definition at line 934 of file runtime.cxx.
References SbiInstance::Error(), nError, pInst, and SbiInstance::pRun.
|
private |
Definition at line 3002 of file runtime.cxx.
References bVBAEnabled, ERRCODE_BASIC_NOT_OPTIONAL, Error(), tools::SvRef< typename T >::get(), IsMissing(), PopVar(), and SbxERROR.
Referenced by StepJUMPF(), and StepJUMPT().
void SbiRuntime::FatalError | ( | ErrCode | n | ) |
Definition at line 952 of file runtime.cxx.
References Error(), n, and StepSTDERROR().
Referenced by SbiInstance::FatalError().
void SbiRuntime::FatalError | ( | ErrCode | _errCode, |
const OUString & | _details | ||
) |
Definition at line 958 of file runtime.cxx.
References Error(), and StepSTDERROR().
|
private |
Definition at line 3488 of file runtime.cxx.
References aName, StarBASIC::bNoRtl, bVBAEnabled, CheckArray(), ClearArgvStack(), DontCare, DontStore, ERRCODE_BASIC_NO_OBJECT, ERRCODE_BASIC_PROC_UNDEFINED, ERRCODE_BASIC_VAR_UNDEFINED, Error(), EXPLICIT, ExtSearch, SbxArray::Find(), SbxObject::Find(), findUnoClass(), Fixed, tools::SvRef< typename T >::get(), SbxBase::GetFlags(), SbxVariable::GetParameters(), SbxVariable::GetParent(), GetSbData(), SbMethod::GetStatics(), SbiImage::GetString(), SbxVariable::GetType(), VBAConstantHelper::getVBAConstant(), VBAConstantHelper::instance(), tools::SvRef< typename T >::is(), SbiInstance::IsCompatibility(), SbiImage::IsFlag(), SbxBase::IsSet(), isVBAEnabled(), NoBroadcast, NoModify, NONE, p, pImg, SbiGlobals::pInst, pMeth, SbiGlobals::pMSOMacroRuntimLib, SbxValues::pObj, Private, PushVar(), rBasic, ReadWrite, refLocals, SbxBase::ResetFlag(), SbxINTEGER, SbxOBJECT, SbxSTRING, SbxVARIANT, SbxBase::SetFlag(), SbxBase::SetFlags(), SbxVariable::SetName(), SbxVariable::SetParameters(), SbxValue::SetType(), SetupArgs(), StepARGC(), StepARGV(), StepSTATIC_Impl(), t, StarBASIC::VBAFind(), and xDummyVar.
Referenced by StepELEM(), StepFIND_Impl(), and StepRTL().
SbxBase * SbiRuntime::FindElementExtern | ( | const OUString & | rName | ) |
Definition at line 3732 of file runtime.cxx.
References SbxParamInfo::aName, StarBASIC::bNoRtl, DontCare, SbModule::Find(), SbMethod::GetInfo(), SbxVariable::GetName(), tools::SvRef< typename T >::is(), pMeth, pMod, SbxValue::PutString(), rBasic, refLocals, refParams, and SbxSTRING.
Referenced by StarBASIC::FindSBXInCurrentScope().
SbiForStack * SbiRuntime::FindForStackItemForCollection | ( | class BasicCollection const * | pCollection | ) |
Definition at line 1241 of file runtime.cxx.
References EachCollection, p, and pForStk.
Referenced by BasicCollection::CollRemove().
sal_uInt16 SbiRuntime::GetBase | ( | ) | const |
Definition at line 1282 of file runtime.cxx.
References SbiImage::GetBase(), and pImg.
|
inline |
Definition at line 373 of file runtime.hxx.
References pMeth.
|
inline |
Definition at line 371 of file runtime.hxx.
References nFlags.
|
inline |
Definition at line 374 of file runtime.hxx.
References mpExtCaller.
|
inline |
Definition at line 370 of file runtime.hxx.
References pMod.
Referenced by SbiInstance::GetActiveModule().
|
private |
Definition at line 1025 of file runtime.cxx.
References ERRCODE_BASIC_INTERNAL_ERROR, StarBASIC::FatalError(), n, nExprLvl, and refExprStk.
Referenced by StepArith(), StepGET(), StepINPUT(), StepPAD(), and StepUnary().
|
staticprivate |
Definition at line 4565 of file runtime.cxx.
References aBuf, DimAsNew, nCount, comphelper::string::padToLength(), SbxValue::PutString(), SBX_FIXED_LEN_STRING_FLAG, SBX_TYPE_DIM_AS_NEW_FLAG, SBX_TYPE_VAR_TO_DIM_FLAG, SBX_TYPE_WITH_EVENTS_FLAG, SbxOBJECT, SbxSTRING, SbxBase::SetFlag(), t, VarToDim, and WithEvents.
Referenced by StepLOCAL(), StepPUBLIC_Impl(), and StepSTATIC_Impl().
|
staticprivate |
Definition at line 3333 of file runtime.cxx.
References DontCare, SbxObject::GetClassName(), GetSbData(), SbxObject::IsClass(), SbClassData::mxIfaces, and SbModule::pClassData.
Referenced by checkClass_Impl().
bool SbiRuntime::IsImageFlag | ( | SbiImageFlags | n | ) | const |
Definition at line 1277 of file runtime.cxx.
References SbiImage::IsFlag(), n, and pImg.
Referenced by StepLIKE().
|
static |
Definition at line 635 of file runtime.cxx.
References SbxVariable::GetInfo(), and SbxMISSING.
Referenced by checkUnoStructCopy(), EvaluateTopOfStackAsBool(), SetParameters(), StepArith(), StepCompare(), StepPARAM(), and StepUnary().
|
static |
Definition at line 115 of file runtime.cxx.
References bVBAEnabled, GetSbData(), pInst, SbiGlobals::pInst, and SbiInstance::pRun.
Referenced by checkUnoObjectType(), SbxValue::Compare(), SbxValue::Compute(), Error(), FindElement(), StarBASIC::GetSfxFromVBError(), StarBASIC::GetVBErrorCode(), ImpGetDouble(), implDateSerial(), ImpScan(), StarBASIC::isVBAEnabled(), PushForEach(), StarBASIC::RTError(), SbRtl_Err(), StepGLOBAL(), and StepPARAM().
|
private |
Definition at line 1100 of file runtime.cxx.
References nArgc, pArgvStk, and refArgv.
Referenced by ClearArgvStack(), SetupArgs(), StepARRAYACCESS(), StepCALL(), and StepCALLC().
|
private |
Definition at line 1221 of file runtime.cxx.
References nForLvl, p, and pForStk.
Referenced by ClearForStack(), StepSTMNT(), and StepTESTFOR().
|
private |
Definition at line 1078 of file runtime.cxx.
References ERRCODE_BASIC_NO_GOSUB, Error(), pCode, and pGosubStk.
Referenced by StepRETURN().
|
private |
Definition at line 993 of file runtime.cxx.
References ERRCODE_BASIC_INTERNAL_ERROR, StarBASIC::FatalError(), tools::SvRef< typename T >::get(), nExprLvl, refExprStk, and SAL_INFO_IF.
Referenced by ClearExprStack(), EvaluateTopOfStackAsBool(), PushFor(), PushForEach(), StepARGN(), StepARGV(), StepArith(), StepARRAYACCESS(), StepBASED(), StepBYVAL(), StepCASE(), StepCASEIS(), StepCASETO(), StepCHANNEL(), StepCompare(), StepDCREATE_IMPL(), StepDIM(), StepELEM(), StepERASE(), StepERASE_CLEAR(), StepERROR(), StepINPUT(), StepIS(), StepLIKE(), StepLINPUT(), StepLSET(), StepONJUMP(), StepOPEN(), StepPRINT(), StepPRINTF(), StepPROMPT(), StepPUT(), StepPUTC(), StepREDIMP(), StepREDIMP_ERASE(), StepRENAME(), StepRSET(), StepSET(), StepSETCLASS_impl(), StepTESTCLASS(), StepVBASET(), and StepWRITE().
|
private |
Definition at line 1093 of file runtime.cxx.
References tools::SvRef< typename T >::clear(), nArgc, pArgvStk, and refArgv.
Referenced by StepARGC().
|
private |
Definition at line 1122 of file runtime.cxx.
References nForLvl, p, pForStk, pMeth, PopVar(), and To.
Referenced by StepINITFOR().
|
private |
Definition at line 1140 of file runtime.cxx.
References Any, EachArray, EachCollection, EachXEnumeration, EachXIndexAccess, i, isVBAEnabled(), nForLvl, p, pForStk, PopVar(), SbxOBJECT, SbxVARIANT, v, and xInvocation.
Referenced by StepINITFOREACH().
|
private |
Definition at line 1069 of file runtime.cxx.
References ERRCODE_BASIC_STACK_OVERFLOW, StarBASIC::FatalError(), MAXRECURSION, nForLvl, pc, and pGosubStk.
Referenced by StepGOSUB(), and StepONJUMP().
|
private |
Definition at line 985 of file runtime.cxx.
References nExprLvl, and refExprStk.
Referenced by DllCall(), FindElement(), StepARRAYACCESS(), StepBASED(), StepBYVAL(), StepCompare(), StepCREATE(), StepELEM(), StepEMPTY(), StepFIND_G(), StepFIND_Impl(), StepIS(), StepLIKE(), StepLOADI(), StepLOADNC(), StepLOADSC(), StepPARAM(), StepRTL(), StepTCREATE(), and StepTESTCLASS().
|
inline |
|
static |
Definition at line 627 of file runtime.cxx.
References SbxBase::GetFlags(), SbxVariable::GetInfo(), SbxVariable::GetName(), SbxMISSING, and SbxVariable::SetInfo().
Referenced by SetParameters(), StepEMPTY(), and StepPARAM().
|
private |
Definition at line 644 of file runtime.cxx.
References SbxArray::Count(), ERRCODE_BASIC_CONVERSION, Error(), SbxArray::Get(), SbMethod::GetInfo(), i, IsMissing(), p, PARAM_INFO_PARAMARRAY, PARAM_INFO_WITHBRACKETS, pMeth, SbxDimArray::Put(), SbxValue::PutObject(), ReadWrite, refParams, SbxARRAY, SbxBYREF, SbxOBJECT, SbxVARIANT, SbxBase::SetFlag(), SetIsMissing(), t, SbxDimArray::unoAddDim(), and v.
Referenced by SbiRuntime().
|
private |
Definition at line 3805 of file runtime.cxx.
References aName, SbxParamInfo::aName, Any, bVBAEnabled, ERRCODE_BASIC_INTERNAL_ERROR, ERRCODE_BASIC_NAMED_NOT_FOUND, ERRCODE_BASIC_NO_NAMED_ARGS, Error(), StarBASIC::FatalError(), tools::SvRef< typename T >::get(), SbxVariable::GetInfo(), AutomationNamedArgsSbxArray::getNames(), SbUnoObject::getUnoAny(), i, tools::SvRef< typename T >::is(), Method, p, PopArgv(), SbxArray::Put(), refArgv, SbxOBJECT, and xInvocation.
Referenced by FindElement(), and StepPARAM().
void SbiRuntime::SetVBAEnabled | ( | bool | bEnabled | ) |
Definition at line 610 of file runtime.cxx.
References bVBAEnabled, SbMethod::mCaller, mpExtCaller, and pMeth.
Referenced by SbiRuntime().
bool SbiRuntime::Step | ( | ) |
Definition at line 764 of file runtime.cxx.
References SbiInstance::Abort(), aStep0, aStep1, aStep2, bBlocked, bError, bInError, bRun, ClearExprStack(), err, ERRCODE_BASIC_INTERNAL_ERROR, ERRCODE_NONE, Error(), StarBASIC::FatalError(), SbxBase::GetError(), ErrCode::IgnoreWarning(), SbiInstance::IsReschedule(), SbiInstance::nErl, SbiInstance::nErr, nError, nLine, nOps, pCode, pErrCode, pError, pErrStmnt, pInst, pNext, pStmnt, Application::Reschedule(), SbxBase::ResetError(), SbOP0_END, SbOP1_END, SbOP1_START, SbOP2_END, SbOP2_START, and StepRESUME().
|
private |
Definition at line 1419 of file runtime.cxx.
References SbxAND, and StepArith().
|
private |
Definition at line 2439 of file runtime.cxx.
References nArgc, PushArgv(), and refArgv.
Referenced by FindElement().
|
private |
Definition at line 2897 of file runtime.cxx.
References bVBAEnabled, ERRCODE_BASIC_INTERNAL_ERROR, StarBASIC::FatalError(), tools::SvRef< typename T >::get(), SbiImage::GetString(), tools::SvRef< typename T >::is(), nArgc, pImg, PopVar(), refArgv, and SbxEMPTY.
|
private |
Definition at line 2924 of file runtime.cxx.
References SbxValue::Convert(), ERRCODE_BASIC_BAD_PARAMETERS, ERRCODE_BASIC_INTERNAL_ERROR, Error(), StarBASIC::FatalError(), SvRefBase::GetRefCount(), SbxVariable::GetType(), tools::SvRef< typename T >::is(), ReadWrite, refArgv, Reference, refExprStk, SbxBase::ResetFlag(), SbxVARIANT, SbxBase::SetFlag(), and t.
|
private |
Definition at line 2448 of file runtime.cxx.
References ERRCODE_BASIC_INTERNAL_ERROR, StarBASIC::FatalError(), tools::SvRef< typename T >::get(), tools::SvRef< typename T >::is(), nArgc, PopVar(), and refArgv.
Referenced by FindElement().
|
private |
Definition at line 1290 of file runtime.cxx.
References checkArithmeticOverflow(), SbxValue::Compute(), ERRCODE_BASIC_NOT_OPTIONAL, Error(), Fixed, tools::SvRef< typename T >::get(), GetTOS(), SbxVariable::GetType(), IsMissing(), PopVar(), SbxBase::ResetFlag(), SbxERROR, and TOSMakeTemp().
Referenced by StepAND(), StepCAT(), StepDIV(), StepEQV(), StepEXP(), StepIDIV(), StepIMP(), StepMINUS(), StepMOD(), StepMUL(), StepOR(), StepPLUS(), and StepXOR().
|
private |
Definition at line 2411 of file runtime.cxx.
References CheckArray(), ERRCODE_BASIC_INTERNAL_ERROR, StarBASIC::FatalError(), tools::SvRef< typename T >::get(), tools::SvRef< typename T >::is(), PopArgv(), PopVar(), PushVar(), and refArgv.
|
private |
Definition at line 3464 of file runtime.cxx.
References tools::SvRef< typename T >::get(), pMeth, PopVar(), PushVar(), SbxValue::PutInteger(), and SbxPLUS.
|
private |
Definition at line 2423 of file runtime.cxx.
References PopVar(), PushVar(), ReadWrite, SbxBase::SetFlag(), and t.
|
private |
Definition at line 4301 of file runtime.cxx.
References aLibName, aName, DllCall(), tools::SvRef< typename T >::get(), SbiImage::GetString(), pImg, PopArgv(), and refArgv.
|
private |
Definition at line 4319 of file runtime.cxx.
References aLibName, aName, DllCall(), tools::SvRef< typename T >::get(), SbiImage::GetString(), pImg, PopArgv(), and refArgv.
|
private |
Definition at line 2637 of file runtime.cxx.
References tools::SvRef< typename T >::get(), tools::SvRef< typename T >::is(), PopVar(), and refCaseStk.
|
private |
Definition at line 4281 of file runtime.cxx.
References ERRCODE_BASIC_INTERNAL_ERROR, StarBASIC::FatalError(), tools::SvRef< typename T >::is(), PopVar(), refCaseStk, and StepJUMP().
|
private |
Definition at line 3246 of file runtime.cxx.
References ERRCODE_BASIC_INTERNAL_ERROR, StarBASIC::FatalError(), tools::SvRef< typename T >::is(), PopVar(), refCaseStk, and StepJUMP().
|
private |
Definition at line 1418 of file runtime.cxx.
References SbxCAT, and StepArith().
|
private |
Definition at line 2694 of file runtime.cxx.
References Error(), SbiIoSystem::GetError(), pIosys, PopVar(), and SbiIoSystem::SetChannel().
|
private |
Definition at line 2702 of file runtime.cxx.
References pIosys, and SbiIoSystem::ResetChannel().
|
private |
Definition at line 3305 of file runtime.cxx.
References SbiIoSystem::Close(), err, Error(), SbiIoSystem::GetError(), pIosys, and SbiIoSystem::Shutdown().
|
private |
Definition at line 1323 of file runtime.cxx.
References SvRefBase::AddFirstRef(), bVBAEnabled, ERRCODE_BASIC_NOT_OPTIONAL, tools::SvRef< typename T >::get(), getDefaultProp(), IsMissing(), p, PopVar(), PushVar(), SbxValue::PutBool(), SbxEMPTY, SbxERROR, SbxOBJECT, and SbxBase::SetError().
Referenced by StepEQ(), StepGE(), StepGT(), StepLE(), StepLT(), and StepNE().
|
private |
Definition at line 4452 of file runtime.cxx.
References aName, SbxBase::CreateObject(), ERRCODE_BASIC_INVALID_OBJECT, Error(), tools::SvRef< typename T >::get(), SbiImage::GetString(), pImg, PushVar(), and rBasic.
|
private |
Definition at line 4472 of file runtime.cxx.
References StepDCREATE_IMPL().
|
private |
Definition at line 4483 of file runtime.cxx.
References aName, SbxBase::CreateObject(), DimImpl(), ERRCODE_BASIC_INVALID_OBJECT, Error(), StarBASIC::Error(), tools::SvRef< typename T >::get(), SbxDimArray::GetDim(), SbxDimArray::GetDims(), SbiImage::GetString(), i, implRestorePreservedArray(), pImg, PopVar(), rBasic, and refRedimpArray.
Referenced by StepDCREATE(), and StepDCREATE_REDIMP().
|
private |
Definition at line 4477 of file runtime.cxx.
References StepDCREATE_IMPL().
|
private |
Definition at line 2129 of file runtime.cxx.
References DimImpl(), and PopVar().
Referenced by StepREDIM().
|
private |
Definition at line 1413 of file runtime.cxx.
References SbxDIV, and StepArith().
|
private |
Definition at line 4168 of file runtime.cxx.
References aRefSaved, ERRCODE_BASIC_NO_METHOD, FindElement(), tools::SvRef< typename T >::get(), PopVar(), and PushVar().
|
private |
Definition at line 2798 of file runtime.cxx.
References tools::SvRef< typename T >::get(), PushVar(), SbxVARIANT, and SetIsMissing().
|
private |
Definition at line 2649 of file runtime.cxx.
References ERRCODE_BASIC_INTERNAL_ERROR, StarBASIC::FatalError(), tools::SvRef< typename T >::is(), and refCaseStk.
|
private |
Definition at line 1428 of file runtime.cxx.
References SbxEQ, and StepCompare().
|
private |
Definition at line 1422 of file runtime.cxx.
References SbxEQV, and StepArith().
|
private |
Definition at line 2400 of file runtime.cxx.
References bVBAEnabled, lcl_eraseImpl(), and PopVar().
|
private |
Definition at line 2406 of file runtime.cxx.
|
private |
Definition at line 3261 of file runtime.cxx.
References SbiInstance::aErrorMsg, ERRCODE_NONE, SbxErrObject::getUnoErrObject(), SbiInstance::nErl, SbiInstance::nErr, nError, p, pCode, pError, pInst, and StepJUMP().
|
private |
Definition at line 2813 of file runtime.cxx.
References bVBAEnabled, SbiInstance::Error(), Error(), StarBASIC::GetSfxFromVBError(), n, pInst, and PopVar().
|
private |
Definition at line 1411 of file runtime.cxx.
References SbxEXP, and StepArith().
|
private |
Definition at line 4138 of file runtime.cxx.
References ERRCODE_BASIC_PROC_UNDEFINED, pMod, and StepFIND_Impl().
Referenced by StepFIND_G().
|
private |
Definition at line 4144 of file runtime.cxx.
References ERRCODE_BASIC_PROC_UNDEFINED, GlobalSearch, pMod, SbxBase::ResetFlag(), SbxBase::SetFlag(), and StepFIND_Impl().
|
private |
Definition at line 4717 of file runtime.cxx.
References aName, SbiImage::GetString(), SbModule::pImage, pImg, pMod, PushVar(), SbxVariable::SetName(), StepFIND(), and t.
|
private |
Definition at line 4127 of file runtime.cxx.
References FindElement(), tools::SvRef< typename T >::is(), PushVar(), and refLocals.
Referenced by StepFIND(), StepFIND_CM(), and StepFIND_STATIC().
|
private |
Definition at line 4160 of file runtime.cxx.
References ERRCODE_BASIC_PROC_UNDEFINED, pMod, and StepFIND_Impl().
|
private |
Definition at line 1433 of file runtime.cxx.
References SbxGE, and StepCompare().
|
private |
Definition at line 1606 of file runtime.cxx.
|
private |
Definition at line 4662 of file runtime.cxx.
References SbModule::AddVarName(), aName, CLASSMODULE, DontStore, SbxObject::Find(), SbiImage::GetString(), SbiImage::IsFlag(), SbxBase::IsSet(), isVBAEnabled(), SbxObject::Make(), NoModify, p, pImg, pMod, Property, rBasic, SbxObject::Remove(), SbxBase::ResetFlag(), SbxBase::SetFlag(), StepPUBLIC_Impl(), and t.
Referenced by StepGLOBAL_P().
|
private |
Definition at line 4705 of file runtime.cxx.
References SbModule::pImage, pMod, and StepGLOBAL().
|
private |
Definition at line 3077 of file runtime.cxx.
References ERRCODE_BASIC_INTERNAL_ERROR, StarBASIC::FatalError(), SbiImage::GetCode(), SbiImage::GetCodeSize(), pCode, pImg, and PushGosub().
|
private |
Definition at line 1431 of file runtime.cxx.
References SbxGT, and StepCompare().
|
private |
Definition at line 1414 of file runtime.cxx.
References SbxIDIV, and StepArith().
|
private |
Definition at line 1423 of file runtime.cxx.
References SbxIMP, and StepArith().
|
private |
Definition at line 2603 of file runtime.cxx.
References PushFor().
|
private |
Definition at line 2608 of file runtime.cxx.
References PushForEach().
|
private |
Definition at line 2473 of file runtime.cxx.
References ch, err, ERRCODE_BASIC_CONVERSION, ERRCODE_BASIC_USER_ABORT, ERRCODE_NONE, Error(), SbiIoSystem::GetChannel(), SbiIoSystem::GetError(), SbxBase::GetError(), GetTOS(), pCode, pIosys, PopVar(), pRestart, SbiIoSystem::Read(), and SbxBase::ResetError().
|
private |
Definition at line 1575 of file runtime.cxx.
References bVBAEnabled, ERRCODE_BASIC_INVALID_USAGE_OBJECT, Error(), PopVar(), PushVar(), SbxValue::PutBool(), SbxEMPTY, and SbxOBJECT.
|
private |
Definition at line 2991 of file runtime.cxx.
References ERRCODE_BASIC_INTERNAL_ERROR, StarBASIC::FatalError(), SbiImage::GetCode(), SbiImage::GetCodeSize(), pCode, and pImg.
Referenced by StepCASEIS(), StepCASETO(), StepERRHDL(), StepJUMPF(), StepJUMPT(), StepONJUMP(), StepRESUME(), StepRETURN(), and StepTESTFOR().
|
private |
Definition at line 3044 of file runtime.cxx.
References EvaluateTopOfStackAsBool(), and StepJUMP().
|
private |
Definition at line 3034 of file runtime.cxx.
References EvaluateTopOfStackAsBool(), and StepJUMP().
|
private |
Definition at line 1432 of file runtime.cxx.
References SbxLE, and StepCompare().
|
private |
Definition at line 2684 of file runtime.cxx.
References bInError, bRun, SbxErrObject::getUnoErrObject(), and pError.
|
private |
Definition at line 3455 of file runtime.cxx.
References aLibName, SbiImage::GetString(), and pImg.
|
private |
Definition at line 1539 of file runtime.cxx.
References i18nutil::SearchOptions2::AlgorithmType2, COMPARETEXT, AllSettings::GetLanguageTag(), LanguageTag::getLocale(), GetSbData(), Application::GetSettings(), SbiInstance::IsCompatibility(), IsImageFlag(), i18nutil::SearchOptions2::Locale, SbiGlobals::pInst, PopVar(), PushVar(), SbxValue::PutBool(), utl::TextSearch::SearchForward(), i18nutil::SearchOptions2::searchString, i18nutil::SearchOptions2::transliterateFlags, and value.
|
private |
Definition at line 2586 of file runtime.cxx.
References Error(), SbiIoSystem::GetError(), p, pIosys, PopVar(), and SbiIoSystem::Read().
|
private |
Definition at line 2888 of file runtime.cxx.
|
private |
Definition at line 2830 of file runtime.cxx.
References aStr, eType, Fixed, SbiImage::GetString(), n, p, pImg, PushVar(), SbxCURRENCY, SbxDOUBLE, SbxINTEGER, SbxLONG, SbxSINGLE, SbxSTRING, and u.
|
private |
Definition at line 2878 of file runtime.cxx.
References SbiImage::GetString(), p, pImg, and PushVar().
|
private |
Definition at line 4595 of file runtime.cxx.
References aName, DontCare, SbiImage::GetString(), implHandleSbxFlags(), tools::SvRef< typename T >::is(), p, pImg, refLocals, and t.
|
private |
Definition at line 2040 of file runtime.cxx.
References ERRCODE_BASIC_INVALID_USAGE_OBJECT, Error(), tools::SvRef< typename T >::get(), n, comphelper::string::padToLength(), pMeth, PopVar(), SbxSTRING, and Write.
|
private |
Definition at line 1430 of file runtime.cxx.
References SbxLT, and StepCompare().
|
private |
Definition at line 1417 of file runtime.cxx.
References SbxMINUS, and StepArith().
|
private |
Definition at line 1415 of file runtime.cxx.
References SbxMOD, and StepArith().
|
private |
Definition at line 1412 of file runtime.cxx.
References SbxMUL, and StepArith().
|
private |
Definition at line 1429 of file runtime.cxx.
References SbxNE, and StepCompare().
|
private |
Definition at line 1425 of file runtime.cxx.
References SbxNEG, and StepUnary().
|
private |
Definition at line 2615 of file runtime.cxx.
References SbiForStack::eForType, ERRCODE_BASIC_INTERNAL_ERROR, StarBASIC::FatalError(), tools::SvRef< typename T >::get(), pForStk, pMeth, SbiForStack::refInc, SbiForStack::refVar, SbxPLUS, and To.
|
private |
Definition at line 2672 of file runtime.cxx.
References SbiInstance::aErrorMsg, bError, ERRCODE_NONE, SbxErrObject::getUnoErrObject(), SbiInstance::nErl, SbiInstance::nErr, nError, and pInst.
|
private |
Definition at line 1287 of file runtime.cxx.
|
private |
Definition at line 1426 of file runtime.cxx.
References SbxNOT, and StepUnary().
|
private |
Definition at line 3060 of file runtime.cxx.
References SbiImage::GetCode(), o3tl::make_unsigned(), n, p, pCode, pImg, PopVar(), PushGosub(), and StepJUMP().
|
private |
Definition at line 4437 of file runtime.cxx.
References aName, Error(), SbiIoSystem::GetError(), SbiIoSystem::Open(), OUStringToOString(), pIosys, pName, and PopVar().
|
private |
Definition at line 1420 of file runtime.cxx.
References SbxOR, and StepArith().
|
private |
Definition at line 2969 of file runtime.cxx.
References aBuf, GetTOS(), p, comphelper::string::padToLength(), and comphelper::string::truncateToLength().
|
private |
Loading of a parameter (+offset+type) If the data type is wrong, create a copy and search for optionals including the default value.
The data type SbxEMPTY shows that no parameters are given. Get( 0 ) may be EMPTY
nOp1 | the index of the current parameter being processed, where the entry of the index 0 is for the return value. |
nOp2 | the data type of the parameter. |
Definition at line 4202 of file runtime.cxx.
References CheckArray(), SbxValue::Convert(), ERRCODE_BASIC_NOT_OPTIONAL, Error(), eType, SbxParamInfo::eType, Fixed, SbMethod::GetInfo(), SbiImage::GetString(), SbxVariable::GetType(), IsMissing(), isVBAEnabled(), SbxParamInfo::nFlags, SbxParamInfo::nUserData, Optional, pImg, pMeth, PushVar(), SbxValue::PutErr(), SbxValue::PutString(), refParams, SbxBase::ResetFlag(), SbxERROR, SbxSTRING, SbxVARIANT, SetIsMissing(), and SetupArgs().
|
private |
Definition at line 1416 of file runtime.cxx.
References SbxPLUS, and StepArith().
|
private |
Definition at line 3324 of file runtime.cxx.
References Error(), SbiIoSystem::GetError(), pIosys, and SbiIoSystem::Write().
|
private |
Definition at line 2707 of file runtime.cxx.
References Error(), SbiIoSystem::GetError(), p, pIosys, PopVar(), SbxDOUBLE, SbxINTEGER, and SbiIoSystem::Write().
|
private |
Definition at line 2721 of file runtime.cxx.
References Error(), SbiIoSystem::GetError(), p, comphelper::string::padToLength(), pIosys, PopVar(), SbxDOUBLE, SbxINTEGER, and SbiIoSystem::Write().
|
private |
Definition at line 2782 of file runtime.cxx.
References aStr, OUStringToOString(), p, pIosys, PopVar(), and SbiIoSystem::SetPrompt().
|
private |
Definition at line 4644 of file runtime.cxx.
References StepPUBLIC_Impl().
|
private |
Definition at line 4614 of file runtime.cxx.
References aName, DontStore, SbModule::Find(), SbModule::GetProperty(), SbiImage::GetString(), implHandleSbxFlags(), SbxBase::IsSet(), NoModify, p, pImg, pMod, Private, Property, SbxObject::Remove(), SbxBase::ResetFlag(), SbxBase::SetFlag(), and t.
Referenced by StepGLOBAL(), StepPUBLIC(), and StepPUBLIC_P().
|
private |
Definition at line 4649 of file runtime.cxx.
References CLASSMODULE, SbiImage::IsFlag(), SbModule::pImage, pImg, pMod, and StepPUBLIC_Impl().
|
private |
Definition at line 1692 of file runtime.cxx.
References bVBAEnabled, checkUnoStructCopy(), tools::SvRef< typename T >::get(), getDefaultProp(), n, NONE, pMeth, PopVar(), SbxEMPTY, SbxOBJECT, and Write.
|
private |
Definition at line 2116 of file runtime.cxx.
|
private |
Definition at line 2201 of file runtime.cxx.
References StepDIM().
|
private |
Definition at line 2296 of file runtime.cxx.
References DimImpl(), implRestorePreservedArray(), tools::SvRef< typename T >::is(), PopVar(), and refRedimpArray.
|
private |
Definition at line 2313 of file runtime.cxx.
References eType, PopVar(), refRedim, refRedimpArray, SbxARRAY, and SbxEMPTY.
|
private |
Definition at line 2763 of file runtime.cxx.
References hasUno(), implStepRenameOSL(), implStepRenameUCB(), and PopVar().
|
private |
Definition at line 2791 of file runtime.cxx.
|
private |
Definition at line 3276 of file runtime.cxx.
References SbiInstance::aErrorMsg, bInError, ERRCODE_BASIC_BAD_RESUME, ERRCODE_NONE, Error(), SbModule::FindNextStmnt(), SbxErrObject::getUnoErrObject(), n1, n2, SbiInstance::nErl, SbiInstance::nErr, nError, pCode, pErrCode, pError, pErrStmnt, pImg, pInst, pMod, and StepJUMP().
Referenced by Step().
|
private |
Definition at line 3087 of file runtime.cxx.
References PopGosub(), and StepJUMP().
|
private |
Definition at line 2078 of file runtime.cxx.
References ERRCODE_BASIC_INVALID_USAGE_OBJECT, Error(), tools::SvRef< typename T >::get(), n, comphelper::string::padToLength(), pMeth, PopVar(), SbxSTRING, and Write.
|
private |
Definition at line 4122 of file runtime.cxx.
References ERRCODE_BASIC_PROC_UNDEFINED, FindElement(), tools::SvRef< typename T >::get(), StarBASIC::pRtl, PushVar(), and rBasic.
|
private |
Definition at line 2024 of file runtime.cxx.
References bVBAEnabled, PopVar(), and StepSET_Impl().
|
private |
Definition at line 1805 of file runtime.cxx.
References Any, bVBAEnabled, checkUnoStructCopy(), createComListener(), DimAsNew, ERRCODE_BASIC_INVALID_USAGE_OBJECT, Error(), tools::SvRef< typename T >::get(), SbxObject::GetClassName(), getDefaultProp(), SbxVariable::GetName(), SbxVariable::GetParent(), SbUnoObject::getUnoAny(), tools::SvRef< typename T >::is(), n, NONE, pCollectionStr, pMeth, rBasic, SbxARRAY, SbxOBJECT, SbxVariable::SetName(), SbxVariable::SetParent(), SbProcedureProperty::setSet(), WithEvents, and Write.
Referenced by StepSET(), StepSETCLASS_impl(), and StepVBASET().
|
private |
Definition at line 3436 of file runtime.cxx.
References StepSETCLASS_impl().
|
private |
Definition at line 3418 of file runtime.cxx.
References checkClass_Impl(), SbiImage::GetString(), pImg, PopVar(), and StepSET_Impl().
Referenced by StepSETCLASS(), and StepVBASETCLASS().
|
private |
Definition at line 4759 of file runtime.cxx.
References aName, SbiImage::GetString(), pImg, StepSTATIC_Impl(), and t.
|
private |
Definition at line 4737 of file runtime.cxx.
References aName, SbxArray::Count(), DontCare, SbxArray::Find(), Fixed, SbMethod::GetStatics(), implHandleSbxFlags(), p, pMeth, SbxArray::Put(), SbxVARIANT, and t.
Referenced by FindElement(), and StepSTATIC().
|
private |
Definition at line 2662 of file runtime.cxx.
References SbiInstance::aErrorMsg, bError, ERRCODE_NONE, SbxErrObject::getUnoErrObject(), SbiInstance::nErl, SbiInstance::nErr, nError, pError, and pInst.
Referenced by FatalError().
|
private |
Definition at line 4338 of file runtime.cxx.
References aRefSaved, bInError, Break, StarBASIC::BreakPoint(), SbiInstance::CalcBreakCallLevel(), ClearExprStack(), ERRCODE_BASIC_NO_METHOD, StarBASIC::FatalError(), SbModule::FindNextStmnt(), GetCurrentBasic(), tools::SvRef< typename T >::is(), SbModule::IsBP(), n1, n2, SbiInstance::nBreakCallLvl, SbiInstance::nCallLvl, nCol1, nCol2, nExprLvl, nFlags, nForLvl, nLine, p, pCode, pGosubStk, pInst, pMod, PopFor(), pStmnt, rBasic, refExprStk, refLocals, and StarBASIC::StepPoint().
|
private |
Definition at line 2597 of file runtime.cxx.
References pInst, and SbiInstance::Stop().
|
private |
Definition at line 4549 of file runtime.cxx.
References aName, createUserTypeImpl(), tools::SvRef< typename T >::get(), SbiImage::GetString(), pImg, and PushVar().
|
private |
Definition at line 3441 of file runtime.cxx.
References bVBAEnabled, checkClass_Impl(), SbiImage::GetString(), pImg, PopVar(), PushVar(), and SbxValue::PutBool().
|
private |
Definition at line 3096 of file runtime.cxx.
References Any, EachArray, EachCollection, EachXEnumeration, EachXIndexAccess, SbiForStack::eForType, ERRCODE_BASIC_BAD_PARAMETER, ERRCODE_BASIC_CONVERSION, ERRCODE_BASIC_INTERNAL_ERROR, Error, Error(), StarBASIC::FatalError(), tools::SvRef< typename T >::get(), SbxDimArray::Get(), SbxDimArray::GetDims(), i, SbxBase::IsError(), nCount, SbiForStack::nCurCollectionIndex, p, pForStk, PopFor(), SbiForStack::refEnd, SbiForStack::refInc, SbiForStack::refVar, SbxGT, SbxLT, SbxVARIANT, SbxBase::SetError(), StepJUMP(), To, unoToSbxValue(), and BasicCollection::xItemArray.
|
private |
Definition at line 1310 of file runtime.cxx.
References ERRCODE_BASIC_NOT_OPTIONAL, Error(), GetTOS(), IsMissing(), p, SbxERROR, and TOSMakeTemp().
|
private |
Definition at line 2031 of file runtime.cxx.
References PopVar(), and StepSET_Impl().
|
private |
Definition at line 3431 of file runtime.cxx.
References StepSETCLASS_impl().
|
private |
Definition at line 2736 of file runtime.cxx.
References ch, Error(), SbiIoSystem::GetError(), p, pIosys, PopVar(), SbxCURRENCY, SbxDATE, SbxSTRING, and SbiIoSystem::Write().
|
private |
Definition at line 1421 of file runtime.cxx.
References SbxXOR, and StepArith().
|
inline |
Definition at line 367 of file runtime.hxx.
References bRun.
|
private |
Definition at line 1039 of file runtime.cxx.
References SbxVariable::Broadcast(), bVBAEnabled, getDefaultProp(), nExprLvl, p, ReadWrite, refExprStk, SbxEMPTY, SbxOBJECT, SbxVARIANT, SbxBase::SetFlag(), and SbxVariable::SetParent().
Referenced by StepArith(), and StepUnary().
|
static |
Definition at line 964 of file runtime.cxx.
References StarBASIC::GetErrorText(), StarBASIC::GetVBErrorCode(), StarBASIC::MakeErrorText(), and nError.
Referenced by Error(), SbiInstance::ErrorVB(), and SbiInstance::setErrorVB().
|
inline |
Definition at line 369 of file runtime.hxx.
References bBlocked.
|
private |
Definition at line 239 of file runtime.hxx.
Referenced by StepCALL(), StepCALLC(), and StepLIB().
|
private |
Definition at line 254 of file runtime.hxx.
Referenced by StepELEM(), and StepSTMNT().
|
staticprivate |
Definition at line 214 of file runtime.hxx.
Referenced by Step().
|
staticprivate |
|
staticprivate |
Definition at line 216 of file runtime.hxx.
Referenced by Step().
|
private |
Definition at line 248 of file runtime.hxx.
|
private |
Definition at line 246 of file runtime.hxx.
Referenced by Step(), StepNOERROR(), and StepSTDERROR().
|
private |
Definition at line 247 of file runtime.hxx.
Referenced by Step(), StepLEAVE(), StepRESUME(), and StepSTMNT().
|
private |
Definition at line 245 of file runtime.hxx.
Referenced by Step(), StepLEAVE(), and Stop().
|
private |
Definition at line 249 of file runtime.hxx.
Referenced by CheckArray(), checkClass_Impl(), DimImpl(), EvaluateTopOfStackAsBool(), FindElement(), isVBAEnabled(), SetupArgs(), SetVBAEnabled(), StepARGN(), StepCompare(), StepERASE(), StepERROR(), StepIS(), StepPUT(), StepSET(), StepSET_Impl(), StepTESTCLASS(), and TOSMakeTemp().
|
private |
Definition at line 229 of file runtime.hxx.
Referenced by GetExternalCaller(), and SetVBAEnabled().
|
private |
Definition at line 244 of file runtime.hxx.
Referenced by PopArgv(), PushArgv(), StepARGC(), StepARGN(), and StepARGV().
sal_Int32 SbiRuntime::nCol1 = 0 |
Definition at line 351 of file runtime.hxx.
Referenced by SbiInstance::Abort(), and StepSTMNT().
sal_Int32 SbiRuntime::nCol2 = 0 |
Definition at line 351 of file runtime.hxx.
Referenced by SbiInstance::Abort(), and StepSTMNT().
|
private |
Definition at line 251 of file runtime.hxx.
Referenced by Error(), Step(), StepERRHDL(), StepNOERROR(), StepRESUME(), StepSTDERROR(), and translateErrorToVba().
|
private |
Definition at line 231 of file runtime.hxx.
Referenced by ClearExprStack(), GetTOS(), PopVar(), PushVar(), StepSTMNT(), and TOSMakeTemp().
|
private |
Definition at line 250 of file runtime.hxx.
Referenced by GetDebugFlags(), SbiRuntime(), SetDebugFlags(), and StepSTMNT().
|
private |
Definition at line 232 of file runtime.hxx.
Referenced by PopFor(), PushFor(), PushForEach(), PushGosub(), and StepSTMNT().
sal_Int32 SbiRuntime::nLine = 0 |
Definition at line 351 of file runtime.hxx.
Referenced by SbiInstance::Abort(), Step(), and StepSTMNT().
|
private |
Definition at line 252 of file runtime.hxx.
Referenced by Step().
|
private |
Definition at line 256 of file runtime.hxx.
Referenced by ClearArgvStack(), PopArgv(), and PushArgv().
|
private |
Definition at line 233 of file runtime.hxx.
Referenced by PopGosub(), SbiRuntime(), Step(), StepERRHDL(), StepGOSUB(), StepINPUT(), StepJUMP(), StepONJUMP(), StepRESTART(), StepRESUME(), and StepSTMNT().
|
private |
Definition at line 237 of file runtime.hxx.
Referenced by Step(), and StepRESUME().
|
private |
Definition at line 235 of file runtime.hxx.
Referenced by Step(), StepERRHDL(), StepLEAVE(), StepRESUME(), and StepSTDERROR().
|
private |
Definition at line 238 of file runtime.hxx.
Referenced by Step(), and StepRESUME().
|
private |
Definition at line 230 of file runtime.hxx.
Referenced by ClearForStack(), FindForStackItemForCollection(), PopFor(), PushFor(), PushForEach(), StepNEXT(), and StepTESTFOR().
|
private |
Definition at line 255 of file runtime.hxx.
Referenced by PopGosub(), PushGosub(), and StepSTMNT().
|
private |
Definition at line 223 of file runtime.hxx.
Referenced by FindElement(), GetBase(), IsImageFlag(), SbiRuntime(), StepARGN(), StepCALL(), StepCALLC(), StepCREATE(), StepDCREATE_IMPL(), StepFIND_G(), StepGLOBAL(), StepGOSUB(), StepJUMP(), StepLIB(), StepLOADNC(), StepLOADSC(), StepLOCAL(), StepONJUMP(), StepPARAM(), StepPUBLIC_Impl(), StepPUBLIC_P(), StepRESUME(), StepSETCLASS_impl(), StepSTATIC(), StepTCREATE(), and StepTESTCLASS().
|
private |
Definition at line 219 of file runtime.hxx.
Referenced by DllCall(), Error(), isVBAEnabled(), SbiRuntime(), Step(), StepERRHDL(), StepERROR(), StepNOERROR(), StepRESUME(), StepSTDERROR(), StepSTMNT(), and StepSTOP().
|
private |
Definition at line 222 of file runtime.hxx.
Referenced by SbiRuntime(), StepCHANNEL(), StepCHANNEL0(), StepCLOSE(), StepINPUT(), StepLINPUT(), StepOPEN(), StepPRCHAR(), StepPRINT(), StepPRINTF(), StepPROMPT(), and StepWRITE().
|
private |
Definition at line 221 of file runtime.hxx.
Referenced by FindElement(), FindElementExtern(), GetCaller(), PushFor(), SetParameters(), SetVBAEnabled(), StepBASED(), StepLSET(), StepNEXT(), StepPARAM(), StepPUT(), StepRSET(), StepSET_Impl(), and StepSTATIC_Impl().
|
private |
Definition at line 220 of file runtime.hxx.
Referenced by FindElementExtern(), GetModule(), SbiRuntime(), StepFIND(), StepFIND_CM(), StepFIND_G(), StepFIND_STATIC(), StepGLOBAL(), StepGLOBAL_P(), StepPUBLIC_Impl(), StepPUBLIC_P(), StepRESUME(), and StepSTMNT().
SbiRuntime* SbiRuntime::pNext = nullptr |
Definition at line 352 of file runtime.hxx.
Referenced by Step(), and SbiInstance::~SbiInstance().
|
private |
Definition at line 236 of file runtime.hxx.
Referenced by StepINPUT(), and StepRESTART().
|
private |
Definition at line 234 of file runtime.hxx.
Referenced by SbiRuntime(), Step(), and StepSTMNT().
|
private |
Definition at line 218 of file runtime.hxx.
Referenced by FindElement(), FindElementExtern(), StepCREATE(), StepDCREATE_IMPL(), StepGLOBAL(), StepRTL(), StepSET_Impl(), and StepSTMNT().
|
private |
Definition at line 242 of file runtime.hxx.
Referenced by PopArgv(), PushArgv(), SetupArgs(), StepARGC(), StepARGN(), StepARGTYP(), StepARGV(), StepARRAYACCESS(), StepCALL(), and StepCALLC().
|
private |
Definition at line 225 of file runtime.hxx.
Referenced by StepCASE(), StepCASEIS(), StepCASETO(), and StepENDCASE().
|
private |
Definition at line 224 of file runtime.hxx.
Referenced by ClearExprStack(), GetTOS(), PopVar(), PushVar(), SbiRuntime(), StepARGTYP(), StepSTMNT(), and TOSMakeTemp().
|
private |
Definition at line 241 of file runtime.hxx.
Referenced by FindElement(), FindElementExtern(), StepFIND_Impl(), StepLOCAL(), and StepSTMNT().
|
private |
Definition at line 240 of file runtime.hxx.
Referenced by FindElementExtern(), SetParameters(), and StepPARAM().
|
private |
Definition at line 227 of file runtime.hxx.
Referenced by CheckArray(), DimImpl(), StepERASE_CLEAR(), and StepREDIMP_ERASE().
|
private |
Definition at line 226 of file runtime.hxx.
Referenced by DimImpl(), StepDCREATE_IMPL(), StepREDIMP(), and StepREDIMP_ERASE().
|
private |
Definition at line 228 of file runtime.hxx.
Referenced by FindElement().