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

#include <sbstar.hxx>

Inheritance diagram for StarBASIC:
[legend]
Collaboration diagram for StarBASIC:
[legend]

Public Member Functions

 SBX_DECL_PERSIST_NODATA (SBXID_BASIC, 1)
 
 StarBASIC (StarBASIC *pParent=nullptr, bool bIsDocBasic=false)
 
virtual void SetModified (bool) override
 
virtual void Insert (SbxVariable *) override
 
virtual void Remove (SbxVariable *) override
 
virtual void Clear () override
 
SbModuleMakeModule (const OUString &rName, const OUString &rSrc)
 
SbModuleMakeModule (const OUString &rName, const css::script::ModuleInfo &mInfo, const OUString &rSrc)
 
virtual SbxVariableFind (const OUString &, SbxClassType) override
 
virtual bool Call (const OUString &, SbxArray *=nullptr) override
 
SbModulesGetModules ()
 
SbxObjectGetRtl ()
 
SbModuleFindModule (std::u16string_view)
 
void InitAllModules (StarBASIC const *pBasicNotToInit=nullptr)
 
void DeInitAllModules ()
 
void ClearAllModuleVars ()
 
bool IsBreak () const
 
SbxArrayRef const & getUnoListeners ()
 
void SetVBAEnabled (bool bEnabled)
 
bool isVBAEnabled () const
 
const SbxObjectRefgetRTL () const
 
bool IsDocBasic () const
 
SbxVariableVBAFind (const OUString &rName, SbxClassType t)
 
bool GetUNOConstant (const OUString &rName, css::uno::Any &aOut)
 
void QuitAndExitApplication ()
 
bool IsQuitApplication () const
 
SbxObjectgetVBAGlobals ()
 
void Remove (const OUString &, SbxClassType)
 
virtual void Remove (SbxVariable *)
 
- Public Member Functions inherited from SbxObject
 SBX_DECL_PERSIST_NODATA (SBXID_OBJECT, 1)
 
 SbxObject (const OUString &rClassname)
 
 SbxObject (const SbxObject &)
 
SbxObjectoperator= (const SbxObject &)
 
virtual SbxDataType GetType () const override
 
virtual SbxClassType GetClass () const override
 
virtual void Clear () override
 
virtual bool IsClass (const OUString &) const
 
const OUString & GetClassName () const
 
void SetClassName (const OUString &rNew)
 
SbxPropertyGetDfltProperty ()
 
void SetDfltProperty (const OUString &r)
 
virtual SbxVariableFind (const OUString &, SbxClassType)
 
SbxVariableFindQualified (const OUString &, SbxClassType)
 
virtual bool Call (const OUString &, SbxArray *=nullptr)
 
SbxVariableExecute (const OUString &)
 
SbxVariableMake (const OUString &, SbxClassType, SbxDataType, bool bIsRuntimeFunction=false)
 
virtual void Insert (SbxVariable *)
 
void QuickInsert (SbxVariable *)
 
void Remove (const OUString &, SbxClassType)
 
virtual void Remove (SbxVariable *)
 
SbxArrayGetMethods ()
 
SbxArrayGetProperties ()
 
SbxArrayGetObjects ()
 
void Dump (SvStream &, bool bDumpAll)
 
- Public Member Functions inherited from SbxVariable
 SBX_DECL_PERSIST_NODATA (SBXID_VARIABLE, 2)
 
 SbxVariable ()
 
 SbxVariable (SbxDataType)
 
 SbxVariable (const SbxVariable &)
 
SbxVariableoperator= (const SbxVariable &)
 
void Dump (SvStream &, bool bDumpAll)
 
void SetName (const OUString &)
 
const OUString & GetName (SbxNameType=SbxNameType::NONE) const
 
sal_uInt16 GetHashCode () const
 
virtual void SetModified (bool) override
 
sal_uInt32 GetUserData () const
 
void SetUserData (sal_uInt32 n)
 
virtual SbxDataType GetType () const override
 
virtual SbxClassType GetClass () const
 
virtual SbxInfo * GetInfo ()
 
void SetInfo (SbxInfo *p)
 
void SetParameters (SbxArray *p)
 
SbxArrayGetParameters () const
 
SfxBroadcasterGetBroadcaster ()
 
bool IsBroadcaster () const
 
virtual void Broadcast (SfxHintId nHintId) override
 
const SbxObjectGetParent () const
 
SbxObjectGetParent ()
 
virtual void SetParent (SbxObject *)
 
const OUString & GetDeclareClassName () const
 
void SetDeclareClassName (const OUString &)
 
void SetComListener (const css::uno::Reference< css::uno::XInterface > &xComListener, StarBASIC *pParentBasic)
 
void ClearComListener ()
 
- Public Member Functions inherited from SbxValue
 SBX_DECL_PERSIST_NODATA (SBXID_VALUE, 1)
 
 SbxValue ()
 
 SbxValue (SbxDataType)
 
 SbxValue (const SbxValue &)
 
SbxValueoperator= (const SbxValue &)
 
virtual void Clear () override
 
virtual bool IsFixed () const override
 
bool IsInteger () const
 
bool IsLong () const
 
bool IsDouble () const
 
bool IsString () const
 
bool IsCurrency () const
 
bool IsObject () const
 
bool IsBool () const
 
bool IsErr () const
 
bool IsEmpty () const
 
bool IsNull () const
 
bool IsNumeric () const
 
bool IsNumericRTL () const
 
bool ImpIsNumeric (bool bOnlyIntntl) const
 
virtual SbxDataType GetType () const override
 
SbxDataType GetFullType () const
 
bool SetType (SbxDataType)
 
bool Get (SbxValues &) const
 
const SbxValuesGetValues_Impl () const
 
bool Put (const SbxValues &)
 
SbxValuesdata ()
 
sal_Unicode GetChar () const
 
sal_Int16 GetInteger () const
 
sal_Int32 GetLong () const
 
sal_Int64 GetInt64 () const
 
sal_uInt64 GetUInt64 () const
 
sal_Int64 GetCurrency () const
 
SbxDecimalGetDecimal () const
 
float GetSingle () const
 
double GetDouble () const
 
double GetDate () const
 
bool GetBool () const
 
const OUString & GetCoreString () const
 
OUString GetOUString () const
 
SbxBaseGetObject () const
 
sal_uInt8 GetByte () const
 
sal_uInt16 GetUShort () const
 
sal_uInt32 GetULong () const
 
bool PutInteger (sal_Int16)
 
bool PutLong (sal_Int32)
 
bool PutSingle (float)
 
bool PutDouble (double)
 
void PutDate (double)
 
bool PutBool (bool)
 
void PutErr (sal_uInt16)
 
void PutStringExt (const OUString &)
 
bool PutInt64 (sal_Int64)
 
bool PutUInt64 (sal_uInt64)
 
bool PutString (const OUString &)
 
bool PutChar (sal_Unicode)
 
bool PutByte (sal_uInt8)
 
bool PutUShort (sal_uInt16)
 
bool PutULong (sal_uInt32)
 
bool PutEmpty ()
 
void PutNull ()
 
void PutDecimal (css::bridge::oleautomation::Decimal const &rAutomationDec)
 
bool PutDecimal (SbxDecimal *pDecimal)
 
void fillAutomationDecimal (css::bridge::oleautomation::Decimal &rAutomationDec) const
 
bool PutCurrency (sal_Int64)
 
bool PutObject (SbxBase *)
 
bool Convert (SbxDataType)
 
bool Compute (SbxOperator, const SbxValue &)
 
bool Compare (SbxOperator, const SbxValue &) const
 
bool Scan (const OUString &, sal_uInt16 *)
 
void Format (OUString &, const OUString *=nullptr) const
 
bool operator<= (const SbxValue &) const
 
bool operator>= (const SbxValue &) const
 
SbxValueoperator*= (const SbxValue &)
 
SbxValueoperator/= (const SbxValue &)
 
SbxValueoperator+= (const SbxValue &)
 
SbxValueoperator-= (const SbxValue &)
 
- Public Member Functions inherited from SbxBase
void SetFlags (SbxFlagBits n)
 
SbxFlagBits GetFlags () const
 
void SetFlag (SbxFlagBits n)
 
void ResetFlag (SbxFlagBits n)
 
bool IsSet (SbxFlagBits n) const
 
bool IsReset (SbxFlagBits n) const
 
bool CanRead () const
 
bool CanWrite () const
 
bool IsModified () const
 
bool IsHidden () const
 
bool IsVisible () const
 
virtual bool IsFixed () const
 
virtual void SetModified (bool)
 
virtual SbxDataType GetType () const
 
virtual void Clear ()=0
 
std::pair< bool, sal_uInt32 > Store (SvStream &)
 
virtual bool LoadCompleted ()
 
- Public Member Functions inherited from SvRefBase
 SvRefBase ()
 
 SvRefBase (const SvRefBase &)
 
SvRefBaseoperator= (const SvRefBase &)
 
void RestoreNoDelete ()
 
void AddNextRef ()
 
void AddFirstRef ()
 
void ReleaseRef ()
 
unsigned int GetRefCount () const
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Static Public Member Functions

static void Stop ()
 
static void Error (ErrCode, const OUString &rMsg={})
 
static void FatalError (ErrCode)
 
static void FatalError (ErrCode, const OUString &rMsg)
 
static bool IsRunning ()
 
static ErrCode GetErrBasic ()
 
static OUString GetErrorMsg ()
 
static sal_Int32 GetErl ()
 
static sal_uInt16 GetLine ()
 
static sal_uInt16 GetCol1 ()
 
static sal_uInt16 GetCol2 ()
 
static void SetErrorData (ErrCode nCode, sal_uInt16 nLine, sal_uInt16 nCol1, sal_uInt16 nCol2)
 
static void MakeErrorText (ErrCode, std::u16string_view aMsg)
 
static const OUString & GetErrorText ()
 
static ErrCode const & GetErrorCode ()
 
static sal_uInt16 GetVBErrorCode (ErrCode nError)
 
static ErrCode GetSfxFromVBError (sal_uInt16 nError)
 
static Link< StarBASIC *, bool > const & GetGlobalErrorHdl ()
 
static void SetGlobalErrorHdl (const Link< StarBASIC *, bool > &rNewHdl)
 
static void SetGlobalBreakHdl (const Link< StarBASIC *, BasicDebugFlags > &rNewHdl)
 
static SbxBaseFindSBXInCurrentScope (const OUString &rName)
 
static SbMethodGetActiveMethod (sal_uInt16 nLevel=0)
 
static SbModuleGetActiveModule ()
 
static css::uno::Reference< css::frame::XModel > GetModelFromBasic (SbxObject *pBasic)
 
static void DetachAllDocBasicItems ()
 
- Static Public Member Functions inherited from SbxVariable
static OUString NameToCaseInsensitiveName (const OUString &rName)
 
static constexpr sal_uInt16 MakeHashCode (std::u16string_view aName)
 
- Static Public Member Functions inherited from SbxValue
static ErrCode ScanNumIntnl (const OUString &rSrc, double &nVal, bool bSingle=false)
 
- Static Public Member Functions inherited from SbxBase
static SbxBaseRef Load (SvStream &)
 
static ErrCode const & GetError ()
 
static OUString const & GetErrorMsg ()
 
static void SetError (ErrCode)
 
static void SetError (ErrCode, const OUString &)
 
static bool IsError ()
 
static void ResetError ()
 
static void AddFactory (SbxFactory *)
 
static void RemoveFactory (SbxFactory const *)
 
static SbxBaseRef Create (sal_uInt16, sal_uInt32)
 
static SbxObjectRef CreateObject (const OUString &)
 

Private Member Functions

BASIC_DLLPRIVATE void implClearDependingVarsOnDelete (StarBASIC *pDeletedBasic)
 
bool CError (ErrCode, const OUString &, sal_Int32, sal_Int32, sal_Int32)
 
BASIC_DLLPRIVATE bool RTError (ErrCode, const OUString &rMsg, sal_Int32, sal_Int32, sal_Int32)
 
BASIC_DLLPRIVATE BasicDebugFlags BreakPoint (sal_Int32 nLine, sal_Int32 nCol1, sal_Int32 nCol2)
 
BASIC_DLLPRIVATE BasicDebugFlags StepPoint (sal_Int32 nLine, sal_Int32 nCol1, sal_Int32 nCol2)
 
virtual bool LoadData (SvStream &, sal_uInt16) override
 
virtual std::pair< bool, sal_uInt32 > StoreData (SvStream &) const override
 
bool ErrorHdl ()
 
BasicDebugFlags BreakHdl ()
 
virtual ~StarBASIC () override
 

Private Attributes

SbModules pModules
 
SbxObjectRef pRtl
 
SbxArrayRef xUnoListeners
 
Link< StarBASIC *, bool > aErrorHdl
 
Link< StarBASIC *, BasicDebugFlagsaBreakHdl
 
bool bNoRtl
 
bool bBreak
 
bool bDocBasic
 
bool bVBAEnabled
 
bool bQuit
 
SbxObjectRef pVBAGlobals
 

Friends

class SbiScanner
 
class SbiExpression
 
class SbiInstance
 
class SbiRuntime
 
class DocBasicItem
 

Additional Inherited Members

- Protected Member Functions inherited from SbxObject
virtual bool LoadData (SvStream &, sal_uInt16) override
 
virtual std::pair< bool, sal_uInt32 > StoreData (SvStream &) const override
 
virtual ~SbxObject () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
virtual bool IsOptionCompatible () const
 
- Protected Member Functions inherited from SbxVariable
virtual ~SbxVariable () override
 
virtual bool LoadData (SvStream &, sal_uInt16) override
 
virtual std::pair< bool, sal_uInt32 > StoreData (SvStream &) const override
 
- Protected Member Functions inherited from SbxValue
virtual void Broadcast (SfxHintId)
 
virtual ~SbxValue () override
 
virtual bool LoadData (SvStream &, sal_uInt16) override
 
virtual std::pair< bool, sal_uInt32 > StoreData (SvStream &) const override
 
- Protected Member Functions inherited from SbxBase
 SbxBase ()
 
 SbxBase (const SbxBase &)
 
SbxBaseoperator= (const SbxBase &)
 
virtual ~SbxBase () override
 
virtual sal_uInt16 GetVersion () const =0
 
virtual sal_uInt16 GetSbxId () const =0
 
- Protected Member Functions inherited from SvRefBase
virtual ~SvRefBase () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from SbxObject
SbxArrayRef pMethods
 
SbxArrayRef pProps
 
SbxArrayRef pObjs
 
SbxPropertypDfltProp
 
OUString aClassName
 
OUString aDfltPropName
 
- Protected Attributes inherited from SbxVariable
SbxInfoRef pInfo
 
sal_uInt32 nUserData = 0
 
SbxObjectpParent = nullptr
 
- Protected Attributes inherited from SbxValue
SbxValues aData
 
OUString aPic
 
OUString aToolString
 
- Protected Attributes inherited from SbxBase
SbxFlagBits nFlags
 

Detailed Description

Definition at line 37 of file sbstar.hxx.

Constructor & Destructor Documentation

◆ ~StarBASIC()

StarBASIC::~StarBASIC ( )
overrideprivatevirtual

◆ StarBASIC()

StarBASIC::StarBASIC ( StarBASIC pParent = nullptr,
bool  bIsDocBasic = false 
)

Member Function Documentation

◆ BreakHdl()

BasicDebugFlags StarBASIC::BreakHdl ( )
private

◆ BreakPoint()

BasicDebugFlags StarBASIC::BreakPoint ( sal_Int32  nLine,
sal_Int32  nCol1,
sal_Int32  nCol2 
)
private

◆ Call()

bool StarBASIC::Call ( const OUString &  rName,
SbxArray pParam = nullptr 
)
overridevirtual

◆ CError()

bool StarBASIC::CError ( ErrCode  code,
const OUString &  rMsg,
sal_Int32  l,
sal_Int32  c1,
sal_Int32  c2 
)
private

◆ Clear()

void StarBASIC::Clear ( )
overridevirtual

Reimplemented from SbxObject.

Definition at line 1087 of file sb.cxx.

References pModules.

◆ ClearAllModuleVars()

void StarBASIC::ClearAllModuleVars ( )

Definition at line 1373 of file sbxmod.cxx.

References pModules.

Referenced by SbModule::Compile().

◆ DeInitAllModules()

void StarBASIC::DeInitAllModules ( )

◆ DetachAllDocBasicItems()

void StarBASIC::DetachAllDocBasicItems ( )
static

Definition at line 1931 of file sb.cxx.

◆ Error()

void StarBASIC::Error ( ErrCode  n,
const OUString &  rMsg = {} 
)
static

◆ ErrorHdl()

bool StarBASIC::ErrorHdl ( )
private

Definition at line 1744 of file sb.cxx.

References aErrorHdl, and Link< typename Arg, typename Ret >::Call().

Referenced by CError(), and RTError().

◆ FatalError() [1/2]

void StarBASIC::FatalError ( ErrCode  n)
static

◆ FatalError() [2/2]

void StarBASIC::FatalError ( ErrCode  _errCode,
const OUString &  rMsg 
)
static

Definition at line 1699 of file sb.cxx.

References SbiInstance::FatalError(), GetSbData(), and SbiGlobals::pInst.

◆ Find()

SbxVariable * StarBASIC::Find ( const OUString &  rName,
SbxClassType  t 
)
overridevirtual

◆ FindModule()

SbModule * StarBASIC::FindModule ( std::u16string_view  rName)

◆ FindSBXInCurrentScope()

SbxBase * StarBASIC::FindSBXInCurrentScope ( const OUString &  rName)
static

◆ GetActiveMethod()

SbMethod * StarBASIC::GetActiveMethod ( sal_uInt16  nLevel = 0)
static

Definition at line 1369 of file sb.cxx.

References SbiInstance::GetCaller(), GetSbData(), and SbiGlobals::pInst.

◆ GetActiveModule()

SbModule * StarBASIC::GetActiveModule ( )
static

Definition at line 1381 of file sb.cxx.

References SbiInstance::GetActiveModule(), GetSbData(), SbiGlobals::pCompMod, and SbiGlobals::pInst.

Referenced by GetCurrentBasic().

◆ GetCol1()

sal_uInt16 StarBASIC::GetCol1 ( )
static

Definition at line 1428 of file sb.cxx.

References GetSbData(), and SbiGlobals::nCol1.

◆ GetCol2()

sal_uInt16 StarBASIC::GetCol2 ( )
static

Definition at line 1429 of file sb.cxx.

References GetSbData(), and SbiGlobals::nCol2.

◆ GetErl()

sal_Int32 StarBASIC::GetErl ( )
static

Definition at line 1732 of file sb.cxx.

References SbiInstance::GetErl(), GetSbData(), and SbiGlobals::pInst.

Referenced by SbRtl_Erl().

◆ GetErrBasic()

ErrCode StarBASIC::GetErrBasic ( )
static

Definition at line 1707 of file sb.cxx.

References ERRCODE_NONE, SbiInstance::GetErr(), GetSbData(), and SbiGlobals::pInst.

Referenced by SbRtl_Err().

◆ GetErrorCode()

ErrCode const & StarBASIC::GetErrorCode ( )
static

Definition at line 1432 of file sb.cxx.

References GetSbData(), and SbiGlobals::nCode.

Referenced by BasicManager::CheckModules().

◆ GetErrorMsg()

OUString StarBASIC::GetErrorMsg ( )
static

Definition at line 1720 of file sb.cxx.

References SbiInstance::GetErrorMsg(), GetSbData(), and SbiGlobals::pInst.

◆ GetErrorText()

const OUString & StarBASIC::GetErrorText ( )
static

Definition at line 1433 of file sb.cxx.

References SbiGlobals::aErrMsg, and GetSbData().

Referenced by SbiRuntime::translateErrorToVba().

◆ GetGlobalErrorHdl()

Link< StarBASIC *, bool > const & StarBASIC::GetGlobalErrorHdl ( )
static

Definition at line 1749 of file sb.cxx.

References SbiGlobals::aErrHdl, and GetSbData().

◆ GetLine()

sal_uInt16 StarBASIC::GetLine ( )
static

Definition at line 1427 of file sb.cxx.

References GetSbData(), and SbiGlobals::nLine.

◆ GetModelFromBasic()

Reference< frame::XModel > StarBASIC::GetModelFromBasic ( SbxObject pBasic)
static

◆ GetModules()

SbModules & StarBASIC::GetModules ( )
inline

Definition at line 102 of file sbstar.hxx.

Referenced by copyToLibraryContainer().

◆ GetRtl()

SbxObject * StarBASIC::GetRtl ( )
inline

◆ getRTL()

const SbxObjectRef & StarBASIC::getRTL ( ) const
inline

Definition at line 138 of file sbstar.hxx.

◆ GetSfxFromVBError()

ErrCode StarBASIC::GetSfxFromVBError ( sal_uInt16  nError)
static

◆ GetUNOConstant()

bool StarBASIC::GetUNOConstant ( const OUString &  rName,
css::uno::Any &  aOut 
)

◆ getUnoListeners()

SbxArrayRef const & StarBASIC::getUnoListeners ( )

Definition at line 1764 of file sb.cxx.

References tools::SvRef< typename T >::is(), and xUnoListeners.

Referenced by SbRtl_CreateUnoListener().

◆ getVBAGlobals()

SbxObject * StarBASIC::getVBAGlobals ( )

◆ GetVBErrorCode()

sal_uInt16 StarBASIC::GetVBErrorCode ( ErrCode  nError)
static

◆ implClearDependingVarsOnDelete()

void StarBASIC::implClearDependingVarsOnDelete ( StarBASIC pDeletedBasic)
private

◆ InitAllModules()

void StarBASIC::InitAllModules ( StarBASIC const *  pBasicNotToInit = nullptr)

◆ Insert()

void StarBASIC::Insert ( SbxVariable pVar)
overridevirtual

◆ IsBreak()

bool StarBASIC::IsBreak ( ) const
inline

Definition at line 123 of file sbstar.hxx.

◆ IsDocBasic()

bool StarBASIC::IsDocBasic ( ) const
inline

Definition at line 139 of file sbstar.hxx.

Referenced by getDocumentModel(), RTL_Impl_CreateUnoDialog(), and SbModule::Run().

◆ IsQuitApplication()

bool StarBASIC::IsQuitApplication ( ) const
inline

Definition at line 143 of file sbstar.hxx.

Referenced by SbModule::Run().

◆ IsRunning()

bool StarBASIC::IsRunning ( void  )
static

Definition at line 1364 of file sb.cxx.

References GetSbData(), and SbiGlobals::pInst.

Referenced by BasicDLL::BasicBreak(), and CError().

◆ isVBAEnabled()

bool StarBASIC::isVBAEnabled ( ) const

Definition at line 129 of file runtime.cxx.

References bDocBasic, bVBAEnabled, and SbiRuntime::isVBAEnabled().

◆ LoadData()

bool StarBASIC::LoadData ( SvStream r,
sal_uInt16  nVer 
)
overrideprivatevirtual

◆ MakeErrorText()

void StarBASIC::MakeErrorText ( ErrCode  nId,
std::u16string_view  aMsg 
)
static

◆ MakeModule() [1/2]

SbModule * StarBASIC::MakeModule ( const OUString &  rName,
const css::script::ModuleInfo &  mInfo,
const OUString &  rSrc 
)

References Error, and Stop().

◆ MakeModule() [2/2]

SbModule * StarBASIC::MakeModule ( const OUString &  rName,
const OUString &  rSrc 
)

Definition at line 1012 of file sb.cxx.

References MakeModule().

Referenced by basic::SfxScriptLibraryContainer::implLoadPasswordLibrary(), and MakeModule().

◆ QuitAndExitApplication()

void StarBASIC::QuitAndExitApplication ( )

Definition at line 1351 of file sb.cxx.

References bQuit, and Stop().

◆ Remove() [1/3]

void SbxObject::Remove ( const OUString &  rName,
SbxClassType  t 
)

Definition at line 74 of file sbxobj.cxx.

◆ Remove() [2/3]

void SbxObject::Remove ( SbxVariable pVar)
virtual

Reimplemented from SbxObject.

Definition at line 75 of file sbxobj.cxx.

◆ Remove() [3/3]

void StarBASIC::Remove ( SbxVariable pVar)
overridevirtual

◆ RTError()

bool StarBASIC::RTError ( ErrCode  code,
const OUString &  rMsg,
sal_Int32  l,
sal_Int32  c1,
sal_Int32  c2 
)
private

◆ SBX_DECL_PERSIST_NODATA()

StarBASIC::SBX_DECL_PERSIST_NODATA ( SBXID_BASIC  ,
 
)

◆ SetErrorData()

void StarBASIC::SetErrorData ( ErrCode  nCode,
sal_uInt16  nLine,
sal_uInt16  nCol1,
sal_uInt16  nCol2 
)
static

◆ SetGlobalBreakHdl()

void StarBASIC::SetGlobalBreakHdl ( const Link< StarBASIC *, BasicDebugFlags > &  rNewHdl)
static

Definition at line 1759 of file sb.cxx.

References SbiGlobals::aBreakHdl, and GetSbData().

◆ SetGlobalErrorHdl()

void StarBASIC::SetGlobalErrorHdl ( const Link< StarBASIC *, bool > &  rNewHdl)
static

Definition at line 1754 of file sb.cxx.

References SbiGlobals::aErrHdl, and GetSbData().

◆ SetModified()

void StarBASIC::SetModified ( bool  b)
overridevirtual

◆ SetVBAEnabled()

void StarBASIC::SetVBAEnabled ( bool  bEnabled)

Definition at line 121 of file runtime.cxx.

References bDocBasic, and bVBAEnabled.

◆ StepPoint()

BasicDebugFlags StarBASIC::StepPoint ( sal_Int32  nLine,
sal_Int32  nCol1,
sal_Int32  nCol2 
)
private

◆ Stop()

void StarBASIC::Stop ( )
static

Definition at line 1357 of file sb.cxx.

References GetSbData(), p, and SbiGlobals::pInst.

Referenced by SbiInstance::Abort(), BasicDLL::BasicBreak(), CError(), and QuitAndExitApplication().

◆ StoreData()

std::pair< bool, sal_uInt32 > StarBASIC::StoreData ( SvStream r) const
overrideprivatevirtual

Reimplemented from SbxObject.

Definition at line 1850 of file sb.cxx.

References nVersion, pModules, SAL_MAX_UINT16, SbxObject::StoreData(), and SvStream::WriteUInt16().

◆ VBAFind()

SbxVariable * StarBASIC::VBAFind ( const OUString &  rName,
SbxClassType  t 
)

Definition at line 259 of file sb.cxx.

References getVBAGlobals(), pVBAGlobals, and t.

Referenced by SbiRuntime::FindElement().

Friends And Related Function Documentation

◆ DocBasicItem

friend class DocBasicItem
friend

Definition at line 43 of file sbstar.hxx.

◆ SbiExpression

friend class SbiExpression
friend

Definition at line 40 of file sbstar.hxx.

◆ SbiInstance

friend class SbiInstance
friend

Definition at line 41 of file sbstar.hxx.

◆ SbiRuntime

friend class SbiRuntime
friend

Definition at line 42 of file sbstar.hxx.

◆ SbiScanner

friend class SbiScanner
friend

Definition at line 39 of file sbstar.hxx.

Member Data Documentation

◆ aBreakHdl

Link<StarBASIC*,BasicDebugFlags> StarBASIC::aBreakHdl
private

Definition at line 51 of file sbstar.hxx.

Referenced by BreakHdl(), BreakPoint(), and StepPoint().

◆ aErrorHdl

Link<StarBASIC*,bool> StarBASIC::aErrorHdl
private

Definition at line 50 of file sbstar.hxx.

Referenced by ErrorHdl().

◆ bBreak

bool StarBASIC::bBreak
private

Definition at line 53 of file sbstar.hxx.

Referenced by BreakPoint(), StarBASIC(), and StepPoint().

◆ bDocBasic

bool StarBASIC::bDocBasic
private

Definition at line 54 of file sbstar.hxx.

Referenced by isVBAEnabled(), SetVBAEnabled(), StarBASIC(), and ~StarBASIC().

◆ bNoRtl

bool StarBASIC::bNoRtl
private

Definition at line 52 of file sbstar.hxx.

Referenced by Find(), SbiRuntime::FindElement(), SbiRuntime::FindElementExtern(), and StarBASIC().

◆ bQuit

bool StarBASIC::bQuit
private

Definition at line 56 of file sbstar.hxx.

Referenced by QuitAndExitApplication(), and StarBASIC().

◆ bVBAEnabled

bool StarBASIC::bVBAEnabled
private

Definition at line 55 of file sbstar.hxx.

Referenced by isVBAEnabled(), SetVBAEnabled(), and StarBASIC().

◆ pModules

SbModules StarBASIC::pModules
private

◆ pRtl

SbxObjectRef StarBASIC::pRtl
private

Definition at line 46 of file sbstar.hxx.

Referenced by Find(), StarBASIC(), and SbiRuntime::StepRTL().

◆ pVBAGlobals

SbxObjectRef StarBASIC::pVBAGlobals
private

Definition at line 58 of file sbstar.hxx.

Referenced by getVBAGlobals(), StarBASIC(), and VBAFind().

◆ xUnoListeners

SbxArrayRef StarBASIC::xUnoListeners
private

Definition at line 47 of file sbstar.hxx.

Referenced by getUnoListeners(), and ~StarBASIC().


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