LibreOffice Module basic (master) 1
Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | Friends | List of all members
SbiInstance Class Reference

#include <runtime.hxx>

Collaboration diagram for SbiInstance:
[legend]

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_tgetComponentVector ()
 
SbMethodGetCaller (sal_uInt16)
 
SbModuleGetActiveModule ()
 
SbiIoSystemGetIoSystem ()
 
SbiDdeControlGetDdeControl ()
 
StarBASICGetBasic ()
 
SbiDllMgrGetDllMgr ()
 
SbiRTLDataGetRTLData ()
 
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< SvNumberFormatterPrepareNumberFormatter (sal_uInt32 &rnStdDateIdx, sal_uInt32 &rnStdTimeIdx, sal_uInt32 &rnStdDateTimeIdx, LanguageType const *peFormatterLangType=nullptr, DateOrder const *peFormatterDateOrder=nullptr)
 

Public Attributes

SbiRuntimepRun
 
sal_uInt16 nCallLvl
 
sal_uInt16 nBreakCallLvl
 

Private Attributes

SbiRTLData aRTLData
 
std::unique_ptr< SbiIoSystem, o3tl::default_delete< SbiIoSystem > > pIosys
 
std::unique_ptr< SbiDdeControlpDdeCtrl
 
std::unique_ptr< SbiDllMgrpDllMgr
 
std::shared_ptr< SvNumberFormatterpNumberFormatter
 
StarBASICpBasic
 
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
 

Detailed Description

Definition at line 128 of file runtime.hxx.

Constructor & Destructor Documentation

◆ SbiInstance()

SbiInstance::SbiInstance ( StarBASIC p)

Definition at line 323 of file runtime.cxx.

References LANGUAGE_DONTKNOW, p, and YMD.

◆ ~SbiInstance()

SbiInstance::~SbiInstance ( )

Definition at line 342 of file runtime.cxx.

References ComponentVector, Exception, i, p, SbiRuntime::pNext, pRun, and TOOLS_WARN_EXCEPTION.

Member Function Documentation

◆ Abort()

void SbiInstance::Abort ( )

◆ CalcBreakCallLevel()

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().

◆ EnableCompatibility()

void SbiInstance::EnableCompatibility ( bool  bEnable)
inline

Definition at line 179 of file runtime.hxx.

References bCompatibility.

Referenced by SbModule::Run().

◆ EnableReschedule()

void SbiInstance::EnableReschedule ( bool  bEnable)
inline

Definition at line 177 of file runtime.hxx.

References bReschedule.

◆ Error() [1/2]

void SbiInstance::Error ( ErrCode  n)

Definition at line 490 of file runtime.cxx.

References Error(), and n.

Referenced by Error(), SbiRuntime::Error(), StarBASIC::Error(), and SbiRuntime::StepERROR().

◆ Error() [2/2]

void SbiInstance::Error ( ErrCode  n,
const OUString &  rMsg 
)

Definition at line 495 of file runtime.cxx.

References aErrorMsg, bWatchMode, SbiRuntime::Error(), n, and pRun.

◆ ErrorVB()

void SbiInstance::ErrorVB ( sal_Int32  nVBNumber,
const OUString &  rMsg 
)

◆ FatalError() [1/2]

void SbiInstance::FatalError ( ErrCode  n)

Definition at line 534 of file runtime.cxx.

References SbiRuntime::FatalError(), n, and pRun.

Referenced by StarBASIC::FatalError().

◆ FatalError() [2/2]

void SbiInstance::FatalError ( ErrCode  _errCode,
const OUString &  _details 
)

Definition at line 539 of file runtime.cxx.

References SbiRuntime::FatalError(), and pRun.

◆ GetActiveModule()

SbModule * SbiInstance::GetActiveModule ( )

Definition at line 565 of file runtime.cxx.

References SbiRuntime::GetModule(), and pRun.

Referenced by StarBASIC::GetActiveModule().

◆ GetBasic()

StarBASIC * SbiInstance::GetBasic ( )
inline

Definition at line 189 of file runtime.hxx.

References pBasic.

Referenced by StarBASIC::CError().

◆ GetCaller()

SbMethod * SbiInstance::GetCaller ( sal_uInt16  nLevel)

Definition at line 577 of file runtime.cxx.

References p, and pRun.

Referenced by StarBASIC::GetActiveMethod().

◆ getComponentVector()

ComponentVector_t & SbiInstance::getComponentVector ( )
inline

Definition at line 182 of file runtime.hxx.

References ComponentVector.

Referenced by RTL_Impl_CreateUnoDialog().

◆ GetDdeControl()

SbiDdeControl * SbiInstance::GetDdeControl ( )
inline

Definition at line 188 of file runtime.hxx.

References pDdeCtrl.

◆ GetDllMgr()

SbiDllMgr * SbiInstance::GetDllMgr ( )

Definition at line 370 of file runtime.cxx.

References pDllMgr.

Referenced by SbiRuntime::DllCall().

◆ GetErl()

sal_Int32 SbiInstance::GetErl ( ) const
inline

Definition at line 176 of file runtime.hxx.

References nErl.

Referenced by StarBASIC::GetErl().

◆ GetErr()

ErrCode const & SbiInstance::GetErr ( ) const
inline

Definition at line 174 of file runtime.hxx.

References nErr.

Referenced by StarBASIC::GetErrBasic().

◆ GetErrorMsg()

const OUString & SbiInstance::GetErrorMsg ( ) const
inline

Definition at line 175 of file runtime.hxx.

References aErrorMsg.

Referenced by SbiRuntime::Error(), StarBASIC::GetErrorMsg(), and ErrObject::setNumber().

◆ GetIoSystem()

SbiIoSystem * SbiInstance::GetIoSystem ( )
inline

Definition at line 187 of file runtime.hxx.

References pIosys.

Referenced by SbiRuntime::SbiRuntime().

◆ GetNumberFormatter()

std::shared_ptr< SvNumberFormatter > const & SbiInstance::GetNumberFormatter ( )

◆ GetRTLData()

SbiRTLData & SbiInstance::GetRTLData ( )
inline

Definition at line 191 of file runtime.hxx.

References aRTLData.

◆ GetStdDateIdx()

sal_uInt32 SbiInstance::GetStdDateIdx ( ) const
inline

Definition at line 194 of file runtime.hxx.

References nStdDateIdx.

◆ GetStdDateTimeIdx()

sal_uInt32 SbiInstance::GetStdDateTimeIdx ( ) const
inline

Definition at line 196 of file runtime.hxx.

References nStdDateTimeIdx.

◆ GetStdTimeIdx()

sal_uInt32 SbiInstance::GetStdTimeIdx ( ) const
inline

Definition at line 195 of file runtime.hxx.

References nStdTimeIdx.

◆ IsCompatibility()

bool SbiInstance::IsCompatibility ( ) const
inline

◆ IsReschedule()

bool SbiInstance::IsReschedule ( ) const
inline

Definition at line 178 of file runtime.hxx.

References bReschedule.

Referenced by SbiRuntime::Step().

◆ PrepareNumberFormatter()

std::shared_ptr< SvNumberFormatter > SbiInstance::PrepareNumberFormatter ( sal_uInt32 &  rnStdDateIdx,
sal_uInt32 &  rnStdTimeIdx,
sal_uInt32 &  rnStdDateTimeIdx,
LanguageType const *  peFormatterLangType = nullptr,
DateOrder const *  peFormatterDateOrder = nullptr 
)
static

◆ setErrorVB()

void SbiInstance::setErrorVB ( sal_Int32  nVBNumber)

◆ Stop()

void SbiInstance::Stop ( )

Definition at line 474 of file runtime.cxx.

References p, and pRun.

Referenced by SbiRuntime::StepSTOP().

Friends And Related Function Documentation

◆ SbiRuntime

friend class SbiRuntime
friend

Definition at line 130 of file runtime.hxx.

Member Data Documentation

◆ aErrorMsg

OUString SbiInstance::aErrorMsg
private

◆ aRTLData

SbiRTLData SbiInstance::aRTLData
private

Definition at line 132 of file runtime.hxx.

Referenced by GetRTLData().

◆ bCompatibility

bool SbiInstance::bCompatibility
private

Definition at line 150 of file runtime.hxx.

Referenced by EnableCompatibility(), and IsCompatibility().

◆ bReschedule

bool SbiInstance::bReschedule
private

Definition at line 149 of file runtime.hxx.

Referenced by EnableReschedule(), and IsReschedule().

◆ ComponentVector

ComponentVector_t SbiInstance::ComponentVector
private

Definition at line 152 of file runtime.hxx.

Referenced by getComponentVector(), and ~SbiInstance().

◆ meFormatterDateOrder

DateOrder SbiInstance::meFormatterDateOrder
private

Definition at line 143 of file runtime.hxx.

Referenced by GetNumberFormatter().

◆ meFormatterLangType

LanguageType SbiInstance::meFormatterLangType
private

Definition at line 142 of file runtime.hxx.

Referenced by GetNumberFormatter().

◆ nBreakCallLvl

sal_uInt16 SbiInstance::nBreakCallLvl

Definition at line 159 of file runtime.hxx.

Referenced by CalcBreakCallLevel(), and SbiRuntime::StepSTMNT().

◆ nCallLvl

sal_uInt16 SbiInstance::nCallLvl

Definition at line 158 of file runtime.hxx.

Referenced by CalcBreakCallLevel(), SbModule::Run(), and SbiRuntime::StepSTMNT().

◆ nErl

sal_Int32 SbiInstance::nErl
private

◆ nErr

ErrCode SbiInstance::nErr
private

◆ nStdDateIdx

sal_uInt32 SbiInstance::nStdDateIdx
private

Definition at line 144 of file runtime.hxx.

Referenced by GetNumberFormatter(), and GetStdDateIdx().

◆ nStdDateTimeIdx

sal_uInt32 SbiInstance::nStdDateTimeIdx
private

Definition at line 144 of file runtime.hxx.

Referenced by GetNumberFormatter(), and GetStdDateTimeIdx().

◆ nStdTimeIdx

sal_uInt32 SbiInstance::nStdTimeIdx
private

Definition at line 144 of file runtime.hxx.

Referenced by GetNumberFormatter(), and GetStdTimeIdx().

◆ pBasic

StarBASIC* SbiInstance::pBasic
private

Definition at line 141 of file runtime.hxx.

Referenced by Abort(), and GetBasic().

◆ pDdeCtrl

std::unique_ptr<SbiDdeControl> SbiInstance::pDdeCtrl
private

Definition at line 137 of file runtime.hxx.

Referenced by GetDdeControl().

◆ pDllMgr

std::unique_ptr<SbiDllMgr> SbiInstance::pDllMgr
private

Definition at line 139 of file runtime.hxx.

Referenced by GetDllMgr().

◆ pIosys

std::unique_ptr<SbiIoSystem, o3tl::default_delete<SbiIoSystem> > SbiInstance::pIosys
private

Definition at line 135 of file runtime.hxx.

Referenced by GetIoSystem().

◆ pNumberFormatter

std::shared_ptr<SvNumberFormatter> SbiInstance::pNumberFormatter
private

Definition at line 140 of file runtime.hxx.

Referenced by GetNumberFormatter(), and PrepareNumberFormatter().

◆ pRun

SbiRuntime* SbiInstance::pRun

The documentation for this class was generated from the following files: