LibreOffice Module basic (master) 1
|
#include <runtime.hxx>
Public Member Functions | |
void | CalcBreakCallLevel (BasicDebugFlags nFlags) |
SbiInstance (StarBASIC *) | |
~SbiInstance () | |
void | Error (ErrCode) |
void | Error (ErrCode, const OUString &rMsg) |
void | ErrorVB (sal_Int32 nVBNumber, const OUString &rMsg) |
void | setErrorVB (sal_Int32 nVBNumber) |
void | FatalError (ErrCode) |
void | FatalError (ErrCode, const OUString &) |
void | Abort () |
void | Stop () |
ErrCode const & | GetErr () const |
const OUString & | GetErrorMsg () const |
sal_Int32 | GetErl () const |
void | EnableReschedule (bool bEnable) |
bool | IsReschedule () const |
void | EnableCompatibility (bool bEnable) |
bool | IsCompatibility () const |
ComponentVector_t & | getComponentVector () |
SbMethod * | GetCaller (sal_uInt16) |
SbModule * | GetActiveModule () |
SbiIoSystem * | GetIoSystem () |
SbiDdeControl * | GetDdeControl () |
StarBASIC * | GetBasic () |
SbiDllMgr * | GetDllMgr () |
SbiRTLData & | GetRTLData () |
std::shared_ptr< SvNumberFormatter > const & | GetNumberFormatter () |
sal_uInt32 | GetStdDateIdx () const |
sal_uInt32 | GetStdTimeIdx () const |
sal_uInt32 | GetStdDateTimeIdx () const |
Static Public Member Functions | |
static std::shared_ptr< SvNumberFormatter > | PrepareNumberFormatter (sal_uInt32 &rnStdDateIdx, sal_uInt32 &rnStdTimeIdx, sal_uInt32 &rnStdDateTimeIdx, LanguageType const *peFormatterLangType=nullptr, DateOrder const *peFormatterDateOrder=nullptr) |
Public Attributes | |
SbiRuntime * | pRun |
sal_uInt16 | nCallLvl |
sal_uInt16 | nBreakCallLvl |
Private Attributes | |
SbiRTLData | aRTLData |
std::unique_ptr< SbiIoSystem, o3tl::default_delete< SbiIoSystem > > | pIosys |
std::unique_ptr< SbiDdeControl > | pDdeCtrl |
std::unique_ptr< SbiDllMgr > | pDllMgr |
std::shared_ptr< SvNumberFormatter > | pNumberFormatter |
StarBASIC * | pBasic |
LanguageType | meFormatterLangType |
DateOrder | meFormatterDateOrder |
sal_uInt32 | nStdDateIdx |
sal_uInt32 | nStdTimeIdx |
sal_uInt32 | nStdDateTimeIdx |
ErrCode | nErr |
OUString | aErrorMsg |
sal_Int32 | nErl |
bool | bReschedule |
bool | bCompatibility |
ComponentVector_t | ComponentVector |
Friends | |
class | SbiRuntime |
Definition at line 128 of file runtime.hxx.
SbiInstance::SbiInstance | ( | StarBASIC * | p | ) |
Definition at line 323 of file runtime.cxx.
References LANGUAGE_DONTKNOW, p, and YMD.
SbiInstance::~SbiInstance | ( | ) |
Definition at line 342 of file runtime.cxx.
References ComponentVector, Exception, i, p, SbiRuntime::pNext, pRun, and TOOLS_WARN_EXCEPTION.
void SbiInstance::Abort | ( | ) |
Definition at line 544 of file runtime.cxx.
References aErrorMsg, GetCurrentBasic(), SbiRuntime::nCol1, SbiRuntime::nCol2, nErr, SbiRuntime::nLine, pBasic, pRun, StarBASIC::RTError(), and StarBASIC::Stop().
Referenced by SbiRuntime::Step().
void SbiInstance::CalcBreakCallLevel | ( | BasicDebugFlags | nFlags | ) |
Definition at line 304 of file runtime.cxx.
References nBreakCallLvl, nCallLvl, StepInto, StepOut, and StepOver.
Referenced by SbModule::Run(), and SbiRuntime::StepSTMNT().
|
inline |
Definition at line 179 of file runtime.hxx.
References bCompatibility.
Referenced by SbModule::Run().
|
inline |
Definition at line 177 of file runtime.hxx.
References bReschedule.
void SbiInstance::Error | ( | ErrCode | n | ) |
Definition at line 490 of file runtime.cxx.
Referenced by Error(), SbiRuntime::Error(), StarBASIC::Error(), and SbiRuntime::StepERROR().
void SbiInstance::Error | ( | ErrCode | n, |
const OUString & | rMsg | ||
) |
Definition at line 495 of file runtime.cxx.
References aErrorMsg, bWatchMode, SbiRuntime::Error(), n, and pRun.
void SbiInstance::ErrorVB | ( | sal_Int32 | nVBNumber, |
const OUString & | rMsg | ||
) |
Definition at line 504 of file runtime.cxx.
References aErrorMsg, bWatchMode, ERRCODE_BASIC_COMPAT, SbiRuntime::Error(), StarBASIC::GetSfxFromVBError(), n, pRun, and SbiRuntime::translateErrorToVba().
Referenced by ErrObject::Raise().
void SbiInstance::FatalError | ( | ErrCode | n | ) |
Definition at line 534 of file runtime.cxx.
References SbiRuntime::FatalError(), n, and pRun.
Referenced by StarBASIC::FatalError().
void SbiInstance::FatalError | ( | ErrCode | _errCode, |
const OUString & | _details | ||
) |
Definition at line 539 of file runtime.cxx.
References SbiRuntime::FatalError(), and pRun.
SbModule * SbiInstance::GetActiveModule | ( | ) |
Definition at line 565 of file runtime.cxx.
References SbiRuntime::GetModule(), and pRun.
Referenced by StarBASIC::GetActiveModule().
|
inline |
SbMethod * SbiInstance::GetCaller | ( | sal_uInt16 | nLevel | ) |
Definition at line 577 of file runtime.cxx.
Referenced by StarBASIC::GetActiveMethod().
|
inline |
Definition at line 182 of file runtime.hxx.
References ComponentVector.
Referenced by RTL_Impl_CreateUnoDialog().
|
inline |
Definition at line 188 of file runtime.hxx.
References pDdeCtrl.
SbiDllMgr * SbiInstance::GetDllMgr | ( | ) |
Definition at line 370 of file runtime.cxx.
References pDllMgr.
Referenced by SbiRuntime::DllCall().
|
inline |
|
inline |
Definition at line 174 of file runtime.hxx.
References nErr.
Referenced by StarBASIC::GetErrBasic().
|
inline |
Definition at line 175 of file runtime.hxx.
References aErrorMsg.
Referenced by SbiRuntime::Error(), StarBASIC::GetErrorMsg(), and ErrObject::setNumber().
|
inline |
Definition at line 187 of file runtime.hxx.
References pIosys.
Referenced by SbiRuntime::SbiRuntime().
std::shared_ptr< SvNumberFormatter > const & SbiInstance::GetNumberFormatter | ( | ) |
Definition at line 380 of file runtime.cxx.
References LocaleDataWrapper::getDateOrder(), AllSettings::GetLanguageTag(), LanguageTag::getLanguageType(), SvtSysLocale::GetLocaleData(), Application::GetSettings(), meFormatterDateOrder, meFormatterLangType, nStdDateIdx, nStdDateTimeIdx, nStdTimeIdx, pNumberFormatter, and PrepareNumberFormatter().
Referenced by SbxValue::Format(), ImpGetDate(), ImpPutDate(), and SbiScanner::NextSym().
|
inline |
Definition at line 191 of file runtime.hxx.
References aRTLData.
|
inline |
Definition at line 194 of file runtime.hxx.
References nStdDateIdx.
|
inline |
Definition at line 196 of file runtime.hxx.
References nStdDateTimeIdx.
|
inline |
Definition at line 195 of file runtime.hxx.
References nStdTimeIdx.
|
inline |
Definition at line 180 of file runtime.hxx.
References bCompatibility.
Referenced by SbiStdObject::Find(), SbModule::Find(), SbiRuntime::FindElement(), SbUnoMethod::GetInfo(), getUnoTypeForSbxBaseType(), SbUnoObject::Notify(), processAutomationParams(), sbxToUnoValue(), SbiRuntime::StepLIKE(), and unoToSbxValue().
|
inline |
Definition at line 178 of file runtime.hxx.
References bReschedule.
Referenced by SbiRuntime::Step().
|
static |
Definition at line 404 of file runtime.cxx.
References aStr, LocaleDataWrapper::getDateOrder(), AllSettings::GetLanguageTag(), LanguageTag::getLanguageType(), SvtSysLocale::GetLocaleData(), comphelper::getProcessComponentContext(), Application::GetSettings(), LANGUAGE_ENGLISH_US, NF_EVALDATEFORMAT_FORMAT, nType, and pNumberFormatter.
Referenced by SbxValue::Format(), GetNumberFormatter(), ImpGetDate(), ImpPutDate(), and SbiScanner::NextSym().
void SbiInstance::setErrorVB | ( | sal_Int32 | nVBNumber | ) |
Definition at line 520 of file runtime.cxx.
References aErrorMsg, StarBASIC::GetSfxFromVBError(), n, nErr, and SbiRuntime::translateErrorToVba().
Referenced by ErrObject::setNumber().
void SbiInstance::Stop | ( | ) |
Definition at line 474 of file runtime.cxx.
Referenced by SbiRuntime::StepSTOP().
|
friend |
Definition at line 130 of file runtime.hxx.
|
private |
Definition at line 147 of file runtime.hxx.
Referenced by Abort(), SbiRuntime::Error(), Error(), ErrorVB(), GetErrorMsg(), setErrorVB(), SbiRuntime::StepERRHDL(), SbiRuntime::StepNOERROR(), SbiRuntime::StepRESUME(), and SbiRuntime::StepSTDERROR().
|
private |
Definition at line 132 of file runtime.hxx.
Referenced by GetRTLData().
|
private |
Definition at line 150 of file runtime.hxx.
Referenced by EnableCompatibility(), and IsCompatibility().
|
private |
Definition at line 149 of file runtime.hxx.
Referenced by EnableReschedule(), and IsReschedule().
|
private |
Definition at line 152 of file runtime.hxx.
Referenced by getComponentVector(), and ~SbiInstance().
|
private |
Definition at line 143 of file runtime.hxx.
Referenced by GetNumberFormatter().
|
private |
Definition at line 142 of file runtime.hxx.
Referenced by GetNumberFormatter().
sal_uInt16 SbiInstance::nBreakCallLvl |
Definition at line 159 of file runtime.hxx.
Referenced by CalcBreakCallLevel(), and SbiRuntime::StepSTMNT().
sal_uInt16 SbiInstance::nCallLvl |
Definition at line 158 of file runtime.hxx.
Referenced by CalcBreakCallLevel(), SbModule::Run(), and SbiRuntime::StepSTMNT().
|
private |
Definition at line 148 of file runtime.hxx.
Referenced by GetErl(), SbiRuntime::Step(), SbiRuntime::StepERRHDL(), SbiRuntime::StepNOERROR(), SbiRuntime::StepRESUME(), and SbiRuntime::StepSTDERROR().
|
private |
Definition at line 146 of file runtime.hxx.
Referenced by Abort(), GetErr(), setErrorVB(), SbiRuntime::Step(), SbiRuntime::StepERRHDL(), SbiRuntime::StepNOERROR(), SbiRuntime::StepRESUME(), and SbiRuntime::StepSTDERROR().
|
private |
Definition at line 144 of file runtime.hxx.
Referenced by GetNumberFormatter(), and GetStdDateIdx().
|
private |
Definition at line 144 of file runtime.hxx.
Referenced by GetNumberFormatter(), and GetStdDateTimeIdx().
|
private |
Definition at line 144 of file runtime.hxx.
Referenced by GetNumberFormatter(), and GetStdTimeIdx().
|
private |
Definition at line 141 of file runtime.hxx.
Referenced by Abort(), and GetBasic().
|
private |
Definition at line 137 of file runtime.hxx.
Referenced by GetDdeControl().
|
private |
Definition at line 139 of file runtime.hxx.
Referenced by GetDllMgr().
|
private |
Definition at line 135 of file runtime.hxx.
Referenced by GetIoSystem().
|
private |
Definition at line 140 of file runtime.hxx.
Referenced by GetNumberFormatter(), and PrepareNumberFormatter().
SbiRuntime* SbiInstance::pRun |
Definition at line 154 of file runtime.hxx.
Referenced by Abort(), BasicCollection::CollRemove(), SbiRuntime::Error(), Error(), ErrorVB(), FatalError(), StarBASIC::FindSBXInCurrentScope(), GetActiveModule(), GetCaller(), SbiRuntime::isVBAEnabled(), SbModule::SetBP(), Stop(), and ~SbiInstance().