LibreOffice Module basic (master) 1
|
#include <sbstar.hxx>
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 |
SbModule * | MakeModule (const OUString &rName, const OUString &rSrc) |
SbModule * | MakeModule (const OUString &rName, const css::script::ModuleInfo &mInfo, const OUString &rSrc) |
virtual SbxVariable * | Find (const OUString &, SbxClassType) override |
virtual bool | Call (const OUString &, SbxArray *=nullptr) override |
SbModules & | GetModules () |
SbxObject * | GetRtl () |
SbModule * | FindModule (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 SbxObjectRef & | getRTL () const |
bool | IsDocBasic () const |
SbxVariable * | VBAFind (const OUString &rName, SbxClassType t) |
bool | GetUNOConstant (const OUString &rName, css::uno::Any &aOut) |
void | QuitAndExitApplication () |
bool | IsQuitApplication () const |
SbxObject * | getVBAGlobals () |
void | Remove (const OUString &, SbxClassType) |
virtual void | Remove (SbxVariable *) |
![]() | |
SBX_DECL_PERSIST_NODATA (SBXID_OBJECT, 1) | |
SbxObject (const OUString &rClassname) | |
SbxObject (const SbxObject &) | |
SbxObject & | operator= (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) |
SbxProperty * | GetDfltProperty () |
void | SetDfltProperty (const OUString &r) |
virtual SbxVariable * | Find (const OUString &, SbxClassType) |
SbxVariable * | FindQualified (const OUString &, SbxClassType) |
virtual bool | Call (const OUString &, SbxArray *=nullptr) |
SbxVariable * | Execute (const OUString &) |
SbxVariable * | Make (const OUString &, SbxClassType, SbxDataType, bool bIsRuntimeFunction=false) |
virtual void | Insert (SbxVariable *) |
void | QuickInsert (SbxVariable *) |
void | Remove (const OUString &, SbxClassType) |
virtual void | Remove (SbxVariable *) |
SbxArray * | GetMethods () |
SbxArray * | GetProperties () |
SbxArray * | GetObjects () |
void | Dump (SvStream &, bool bDumpAll) |
![]() | |
SBX_DECL_PERSIST_NODATA (SBXID_VARIABLE, 2) | |
SbxVariable () | |
SbxVariable (SbxDataType) | |
SbxVariable (const SbxVariable &) | |
SbxVariable & | operator= (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) |
SbxArray * | GetParameters () const |
SfxBroadcaster & | GetBroadcaster () |
bool | IsBroadcaster () const |
virtual void | Broadcast (SfxHintId nHintId) override |
const SbxObject * | GetParent () const |
SbxObject * | GetParent () |
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 () |
![]() | |
SBX_DECL_PERSIST_NODATA (SBXID_VALUE, 1) | |
SbxValue () | |
SbxValue (SbxDataType) | |
SbxValue (const SbxValue &) | |
SbxValue & | operator= (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 SbxValues & | GetValues_Impl () const |
bool | Put (const SbxValues &) |
SbxValues * | data () |
sal_Unicode | GetChar () const |
sal_Int16 | GetInteger () const |
sal_Int32 | GetLong () const |
sal_Int64 | GetInt64 () const |
sal_uInt64 | GetUInt64 () const |
sal_Int64 | GetCurrency () const |
SbxDecimal * | GetDecimal () const |
float | GetSingle () const |
double | GetDouble () const |
double | GetDate () const |
bool | GetBool () const |
const OUString & | GetCoreString () const |
OUString | GetOUString () const |
SbxBase * | GetObject () 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 |
SbxValue & | operator*= (const SbxValue &) |
SbxValue & | operator/= (const SbxValue &) |
SbxValue & | operator+= (const SbxValue &) |
SbxValue & | operator-= (const SbxValue &) |
![]() | |
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 () |
![]() | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
![]() | |
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 |
SfxBroadcaster * | GetBroadcasterJOE (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 SbxBase * | FindSBXInCurrentScope (const OUString &rName) |
static SbMethod * | GetActiveMethod (sal_uInt16 nLevel=0) |
static SbModule * | GetActiveModule () |
static css::uno::Reference< css::frame::XModel > | GetModelFromBasic (SbxObject *pBasic) |
static void | DetachAllDocBasicItems () |
![]() | |
static OUString | NameToCaseInsensitiveName (const OUString &rName) |
static constexpr sal_uInt16 | MakeHashCode (std::u16string_view aName) |
![]() | |
static ErrCode | ScanNumIntnl (const OUString &rSrc, double &nVal, bool bSingle=false) |
![]() | |
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 *, BasicDebugFlags > | aBreakHdl |
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 | |
![]() | |
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 |
![]() | |
virtual | ~SbxVariable () override |
virtual bool | LoadData (SvStream &, sal_uInt16) override |
virtual std::pair< bool, sal_uInt32 > | StoreData (SvStream &) const override |
![]() | |
virtual void | Broadcast (SfxHintId) |
virtual | ~SbxValue () override |
virtual bool | LoadData (SvStream &, sal_uInt16) override |
virtual std::pair< bool, sal_uInt32 > | StoreData (SvStream &) const override |
![]() | |
SbxBase () | |
SbxBase (const SbxBase &) | |
SbxBase & | operator= (const SbxBase &) |
virtual | ~SbxBase () override |
virtual sal_uInt16 | GetVersion () const =0 |
virtual sal_uInt16 | GetSbxId () const =0 |
![]() | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
![]() | |
SbxArrayRef | pMethods |
SbxArrayRef | pProps |
SbxArrayRef | pObjs |
SbxProperty * | pDfltProp |
OUString | aClassName |
OUString | aDfltPropName |
![]() | |
SbxInfoRef | pInfo |
sal_uInt32 | nUserData = 0 |
SbxObject * | pParent = nullptr |
![]() | |
SbxValues | aData |
OUString | aPic |
OUString | aToolString |
![]() | |
SbxFlagBits | nFlags |
Definition at line 37 of file sbstar.hxx.
|
overrideprivatevirtual |
Definition at line 936 of file sb.cxx.
References bDocBasic, clearUnoMethodsForBasic(), disposeComVariablesForBasic(), ERRCODE_NONE, SbxBase::GetError(), GetSbData(), i, tools::SvRef< typename T >::is(), SbiGlobals::pGlobals, SbxBase::RemoveFactory(), SbxBase::ResetError(), SbxBase::SetError(), SbxVariable::SetParent(), and xUnoListeners.
StarBASIC::StarBASIC | ( | StarBASIC * | pParent = nullptr , |
bool | bIsDocBasic = false |
||
) |
Definition at line 895 of file sb.cxx.
References SbxBase::AddFactory(), bBreak, bDocBasic, bNoRtl, bQuit, bVBAEnabled, GetSbData(), GlobalSearch, p, pRtl, pVBAGlobals, SB_RTLNAME, SbxBase::SetFlag(), and SbxVariable::SetParent().
|
private |
Definition at line 1421 of file sb.cxx.
References aBreakHdl, Link< typename Arg, typename Ret >::Call(), Continue, and Link< typename Arg, typename Ret >::IsSet().
Referenced by BreakPoint(), and StepPoint().
|
private |
Definition at line 1393 of file sb.cxx.
References SbiGlobals::aBreakHdl, aBreakHdl, bBreak, BreakHdl(), Link< typename Arg, typename Ret >::Call(), ERRCODE_NONE, GetSbData(), Link< typename Arg, typename Ret >::IsSet(), and SetErrorData().
Referenced by SbiRuntime::StepSTMNT().
|
overridevirtual |
Reimplemented from SbxObject.
Definition at line 1322 of file sb.cxx.
References SbxObject::Call(), ERRCODE_NONE, SbxBase::GetError(), SbxBase::GetErrorMsg(), SbxBase::ResetError(), and RTError().
|
private |
Definition at line 1599 of file sb.cxx.
References SbiGlobals::aErrHdl, SbiGlobals::bCompilerError, SbiGlobals::bGlobalInitErr, Link< typename Arg, typename Ret >::Call(), code, ErrorHdl(), SbiInstance::GetBasic(), GetSbData(), IsRunning(), MakeErrorText(), SbiGlobals::pInst, SetErrorData(), and Stop().
Referenced by SbiScanner::GenError().
|
overridevirtual |
void StarBASIC::ClearAllModuleVars | ( | ) |
void StarBASIC::DeInitAllModules | ( | ) |
Definition at line 1220 of file sb.cxx.
References DeInitAllModules(), SbModule::isProxyModule(), SbModule::pImage, pModules, and SbxObject::pObjs.
Referenced by DeInitAllModules(), and SbModule::GlobalRunDeInit().
|
static |
Definition at line 1683 of file sb.cxx.
References SbiInstance::Error(), GetSbData(), n, and SbiGlobals::pInst.
Referenced by SbMethod::Call(), checkArithmeticOverflow(), SbiRuntime::CheckArray(), convertAny(), SbUnoObject::doIntrospection(), SbUnoObject::Find(), implDateSerial(), implGetWeekDay(), implHandleAnyException(), implHandleBasicErrorException(), implHandleWrappedTargetException(), implRekMultiDimArrayToSequence(), implRestorePreservedArray(), implSequenceToMultiDimArray(), SbStdClipboard::MethClear(), SbStdClipboard::MethGetData(), SbStdClipboard::MethGetFormat(), SbStdClipboard::MethGetText(), SbStdClipboard::MethSetData(), SbStdClipboard::MethSetText(), SbUnoStructRefObject::Notify(), SbUnoObject::Notify(), SbUnoService::Notify(), SbUnoSingleton::Notify(), SbModule::Notify(), SbStdPicture::PropHeight(), SbStdPicture::PropType(), SbStdPicture::PropWidth(), RTL_Impl_CreatePropertySet(), RTL_Impl_CreateUnoDialog(), RTL_Impl_CreateUnoService(), RTL_Impl_CreateUnoServiceWithArguments(), RTL_Impl_CreateUnoStruct(), RTL_Impl_CreateUnoValue(), RTL_Impl_EqualUnoObjects(), RTL_Impl_HasInterfaces(), RTL_Impl_IsUnoStruct(), SbRtl_CreateUnoListener(), SbRtl_Err(), SbRtl_InputBox(), sbxToUnoValue(), and SbiRuntime::StepDCREATE_IMPL().
|
private |
|
static |
Definition at line 1691 of file sb.cxx.
References SbiInstance::FatalError(), GetSbData(), n, and SbiGlobals::pInst.
Referenced by SbiParser::DefType(), SbiRuntime::DimImpl(), SbModule::FindNextStmnt(), SbiRuntime::GetTOS(), SbiRuntime::PopVar(), SbiRuntime::PushGosub(), SbModule::Run(), SbUnoObject::SbUnoObject(), SbiRuntime::SetupArgs(), SbiRuntime::Step(), SbiRuntime::StepARGN(), SbiRuntime::StepARGTYP(), SbiRuntime::StepARGV(), SbiRuntime::StepARRAYACCESS(), SbiRuntime::StepCASEIS(), SbiRuntime::StepCASETO(), SbiRuntime::StepENDCASE(), SbiRuntime::StepGOSUB(), SbiRuntime::StepJUMP(), SbiRuntime::StepNEXT(), SbiRuntime::StepSTMNT(), and SbiRuntime::StepTESTFOR().
|
static |
Definition at line 1699 of file sb.cxx.
References SbiInstance::FatalError(), GetSbData(), and SbiGlobals::pInst.
|
overridevirtual |
Reimplemented from SbxObject.
Definition at line 1248 of file sb.cxx.
References bNoRtl, DontCare, ExtFound, SbxObject::Find(), SbModule::Find(), Find(), tools::SvRef< typename T >::get(), SbxBase::GetFlags(), SbModule::GetModuleType(), SbxVariable::GetName(), GlobalSearch, SbxBase::IsVisible(), Method, nType, Object, pModules, pRtl, SbxBase::ResetFlag(), SB_RTLNAME, SbxBase::SetFlag(), t, and u.
Referenced by Find(), GetUNOConstant(), getVBAGlobals(), LoadData(), SbModule::Run(), and BasicManager::SetGlobalUNOConstant().
SbModule * StarBASIC::FindModule | ( | std::u16string_view | rName | ) |
Definition at line 1092 of file sb.cxx.
References SbxVariable::GetName(), and pModules.
Referenced by BasicManager::ImgVersion12PsswdBinaryLimitExceeded(), and basic::SfxScriptLibraryContainer::implLoadPasswordLibrary().
|
static |
Definition at line 1338 of file sb.cxx.
References SbiRuntime::FindElementExtern(), GetSbData(), SbiGlobals::pInst, and SbiInstance::pRun.
|
static |
Definition at line 1369 of file sb.cxx.
References SbiInstance::GetCaller(), GetSbData(), and SbiGlobals::pInst.
|
static |
Definition at line 1381 of file sb.cxx.
References SbiInstance::GetActiveModule(), GetSbData(), SbiGlobals::pCompMod, and SbiGlobals::pInst.
Referenced by GetCurrentBasic().
|
static |
Definition at line 1428 of file sb.cxx.
References GetSbData(), and SbiGlobals::nCol1.
|
static |
Definition at line 1429 of file sb.cxx.
References GetSbData(), and SbiGlobals::nCol2.
|
static |
Definition at line 1732 of file sb.cxx.
References SbiInstance::GetErl(), GetSbData(), and SbiGlobals::pInst.
Referenced by SbRtl_Erl().
|
static |
Definition at line 1707 of file sb.cxx.
References ERRCODE_NONE, SbiInstance::GetErr(), GetSbData(), and SbiGlobals::pInst.
Referenced by SbRtl_Err().
|
static |
Definition at line 1432 of file sb.cxx.
References GetSbData(), and SbiGlobals::nCode.
Referenced by BasicManager::CheckModules().
|
static |
Definition at line 1720 of file sb.cxx.
References SbiInstance::GetErrorMsg(), GetSbData(), and SbiGlobals::pInst.
|
static |
Definition at line 1433 of file sb.cxx.
References SbiGlobals::aErrMsg, and GetSbData().
Referenced by SbiRuntime::translateErrorToVba().
Definition at line 1749 of file sb.cxx.
References SbiGlobals::aErrHdl, and GetSbData().
|
static |
Definition at line 1427 of file sb.cxx.
References GetSbData(), and SbiGlobals::nLine.
Definition at line 1886 of file sb.cxx.
References Any, SbxObject::Find(), SbxVariable::GetParent(), Object, SAL_WARN, sbxToUnoValue(), u, xController, and xModel.
Referenced by RTL_Impl_CreateUnoDialog().
|
inline |
Definition at line 102 of file sbstar.hxx.
Referenced by copyToLibraryContainer().
|
inline |
Definition at line 103 of file sbstar.hxx.
References tools::SvRef< typename T >::get().
Referenced by SbiParser::CheckRTLForSym(), and ClearUnoObjectsInRTL_Impl_Rek().
|
inline |
Definition at line 138 of file sbstar.hxx.
|
static |
Definition at line 1482 of file sb.cxx.
References ERRCODE_BASIC_ARRAY_FIX, ERRCODE_BASIC_EXPR_TOO_COMPLEX, ERRCODE_BASIC_LOOP_NOT_INIT, ERRCODE_BASIC_OPER_NOT_PERFORM, ERRCODE_BASIC_STRING_OVERFLOW, ERRCODE_BASIC_TOO_MANY_DLL, ERRCODE_NONE, SbiRuntime::isVBAEnabled(), nIndex, and SFX_VB_ErrorTab.
Referenced by SbiInstance::ErrorVB(), implHandleBasicErrorException(), implHandleWrappedTargetException(), SbRtl_Err(), SbiInstance::setErrorVB(), and SbiRuntime::StepERROR().
bool StarBASIC::GetUNOConstant | ( | const OUString & | rName, |
css::uno::Any & | aOut | ||
) |
Definition at line 1874 of file sb.cxx.
References DontCare, Find(), and SbUnoObject::getUnoAny().
Referenced by getDocumentModel(), BasicManager::GetGlobalUNOConstant(), getVBAGlobals(), DocBasicItem::startListening(), and DocBasicItem::stopListening().
SbxArrayRef const & StarBASIC::getUnoListeners | ( | ) |
Definition at line 1764 of file sb.cxx.
References tools::SvRef< typename T >::is(), and xUnoListeners.
Referenced by SbRtl_CreateUnoListener().
SbxObject * StarBASIC::getVBAGlobals | ( | ) |
Definition at line 233 of file sb.cxx.
References Any, DontCare, Exception, Find(), tools::SvRef< typename T >::get(), GetUNOConstant(), tools::SvRef< typename T >::is(), and pVBAGlobals.
Referenced by VBAFind().
|
static |
Definition at line 1443 of file sb.cxx.
References ERRCODE_BASIC_ARRAY_FIX, ERRCODE_BASIC_EXPR_TOO_COMPLEX, ERRCODE_BASIC_LOOP_NOT_INIT, ERRCODE_BASIC_OPER_NOT_PERFORM, ERRCODE_BASIC_STRING_OVERFLOW, ERRCODE_BASIC_TOO_MANY_DLL, SbiRuntime::isVBAEnabled(), nIndex, and SFX_VB_ErrorTab.
Referenced by MakeErrorText(), SbRtl_Err(), and SbiRuntime::translateErrorToVba().
|
private |
Definition at line 990 of file sb.cxx.
References SbModule::ClearVarsDependingOnDeletedBasic(), implClearDependingVarsOnDelete(), pModules, and SbxObject::pObjs.
Referenced by DocBasicItem::clearDependingVarsOnDelete(), and implClearDependingVarsOnDelete().
void StarBASIC::InitAllModules | ( | StarBASIC const * | pBasicNotToInit = nullptr | ) |
Definition at line 1165 of file sb.cxx.
References SbModule::Compile(), SbxVariable::GetName(), SbModule::implProcessModuleRunInit(), InitAllModules(), SbModule::isProxyModule(), pModules, SbxObject::pObjs, and SbModule::RunInit().
Referenced by SbModule::GlobalRunInit(), and InitAllModules().
|
overridevirtual |
Reimplemented from SbxObject.
Definition at line 1051 of file sb.cxx.
References DontStore, SbxVariable::GetBroadcaster(), SbxObject::Insert(), SbxBase::IsModified(), SbxBase::IsSet(), pModules, SetModified(), SbxVariable::SetParent(), and SfxListener::StartListening().
Referenced by BasicManager::BasicManager(), BasicManager::CreateLib(), BasicManager::CreateLibForLibContainer(), BasicManager::LoadLib(), and BasicManager::SetGlobalUNOConstant().
|
inline |
Definition at line 123 of file sbstar.hxx.
|
inline |
Definition at line 139 of file sbstar.hxx.
Referenced by getDocumentModel(), RTL_Impl_CreateUnoDialog(), and SbModule::Run().
|
inline |
Definition at line 143 of file sbstar.hxx.
Referenced by SbModule::Run().
|
static |
Definition at line 1364 of file sb.cxx.
References GetSbData(), and SbiGlobals::pInst.
Referenced by BasicDLL::BasicBreak(), and CError().
bool StarBASIC::isVBAEnabled | ( | ) | const |
Definition at line 129 of file runtime.cxx.
References bDocBasic, bVBAEnabled, and SbiRuntime::isVBAEnabled().
|
overrideprivatevirtual |
Reimplemented from SbxObject.
Definition at line 1774 of file sb.cxx.
References DBG_ASSERT, Find(), tools::SvRef< typename T >::get(), GlobalSearch, i, SbxBase::IsSet(), SbxBase::Load(), SbxObject::LoadData(), p, pModules, SbxObject::pObjs, Property, SvStream::ReadUInt16(), SvStream::remainingSize(), Remove(), SAL_WARN, SbxBase::SetFlag(), and SbModule::SetParent().
|
static |
Definition at line 1544 of file sb.cxx.
References SbiGlobals::aErrMsg, BasResId(), GetSbData(), GetVBErrorCode(), nId, pItem, and RID_BASIC_START.
Referenced by CError(), RTError(), and SbiRuntime::translateErrorToVba().
SbModule * StarBASIC::MakeModule | ( | const OUString & | rName, |
const css::script::ModuleInfo & | mInfo, | ||
const OUString & | rSrc | ||
) |
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().
void StarBASIC::QuitAndExitApplication | ( | ) |
void SbxObject::Remove | ( | const OUString & | rName, |
SbxClassType | t | ||
) |
Definition at line 74 of file sbxobj.cxx.
|
virtual |
Reimplemented from SbxObject.
Definition at line 75 of file sbxobj.cxx.
|
overridevirtual |
Reimplemented from SbxObject.
Definition at line 1070 of file sb.cxx.
References SfxListener::EndListening(), SbxVariable::GetBroadcaster(), pModules, SbxObject::Remove(), and SbxVariable::SetParent().
Referenced by LoadData(), and BasicManager::RemoveLib().
|
private |
Definition at line 1642 of file sb.cxx.
References SbiGlobals::aErrHdl, SbiGlobals::aErrMsg, Link< typename Arg, typename Ret >::Call(), code, ERRCODE_BASIC_COMPAT, ERRCODE_NONE, ErrorHdl(), ErrCode::GetClass(), GetSbData(), SbxErrObject::getUnoErrObject(), SbiRuntime::isVBAEnabled(), MakeErrorText(), and SetErrorData().
Referenced by SbiInstance::Abort(), and Call().
StarBASIC::SBX_DECL_PERSIST_NODATA | ( | SBXID_BASIC | , |
1 | |||
) |
|
static |
Definition at line 1534 of file sb.cxx.
References GetSbData(), SbiGlobals::nCode, SbiGlobals::nCol1, SbiGlobals::nCol2, and SbiGlobals::nLine.
Referenced by BreakPoint(), CError(), RTError(), and StepPoint().
|
static |
Definition at line 1759 of file sb.cxx.
References SbiGlobals::aBreakHdl, and GetSbData().
Definition at line 1754 of file sb.cxx.
References SbiGlobals::aErrHdl, and GetSbData().
|
overridevirtual |
Reimplemented from SbxVariable.
Definition at line 931 of file sb.cxx.
References SbxBase::SetModified().
Referenced by BasicManager::BasicManager(), basic::SfxScriptLibraryContainer::implLoadPasswordLibrary(), and Insert().
void StarBASIC::SetVBAEnabled | ( | bool | bEnabled | ) |
Definition at line 121 of file runtime.cxx.
References bDocBasic, and bVBAEnabled.
|
private |
Definition at line 1407 of file sb.cxx.
References SbiGlobals::aBreakHdl, aBreakHdl, bBreak, BreakHdl(), Link< typename Arg, typename Ret >::Call(), ERRCODE_NONE, GetSbData(), Link< typename Arg, typename Ret >::IsSet(), and SetErrorData().
Referenced by SbiRuntime::StepSTMNT().
|
static |
Definition at line 1357 of file sb.cxx.
References GetSbData(), p, and SbiGlobals::pInst.
Referenced by SbiInstance::Abort(), BasicDLL::BasicBreak(), CError(), and QuitAndExitApplication().
|
overrideprivatevirtual |
Reimplemented from SbxObject.
Definition at line 1850 of file sb.cxx.
References nVersion, pModules, SAL_MAX_UINT16, SbxObject::StoreData(), and SvStream::WriteUInt16().
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().
|
friend |
Definition at line 43 of file sbstar.hxx.
|
friend |
Definition at line 40 of file sbstar.hxx.
|
friend |
Definition at line 41 of file sbstar.hxx.
|
friend |
Definition at line 42 of file sbstar.hxx.
|
friend |
Definition at line 39 of file sbstar.hxx.
|
private |
Definition at line 51 of file sbstar.hxx.
Referenced by BreakHdl(), BreakPoint(), and StepPoint().
Definition at line 50 of file sbstar.hxx.
Referenced by ErrorHdl().
|
private |
Definition at line 53 of file sbstar.hxx.
Referenced by BreakPoint(), StarBASIC(), and StepPoint().
|
private |
Definition at line 54 of file sbstar.hxx.
Referenced by isVBAEnabled(), SetVBAEnabled(), StarBASIC(), and ~StarBASIC().
|
private |
Definition at line 52 of file sbstar.hxx.
Referenced by Find(), SbiRuntime::FindElement(), SbiRuntime::FindElementExtern(), and StarBASIC().
|
private |
Definition at line 56 of file sbstar.hxx.
Referenced by QuitAndExitApplication(), and StarBASIC().
|
private |
Definition at line 55 of file sbstar.hxx.
Referenced by isVBAEnabled(), SetVBAEnabled(), and StarBASIC().
|
private |
Definition at line 45 of file sbstar.hxx.
Referenced by Clear(), ClearAllModuleVars(), DeInitAllModules(), Find(), FindModule(), implClearDependingVarsOnDelete(), InitAllModules(), Insert(), LoadData(), Remove(), and StoreData().
|
private |
Definition at line 46 of file sbstar.hxx.
Referenced by Find(), StarBASIC(), and SbiRuntime::StepRTL().
|
private |
Definition at line 58 of file sbstar.hxx.
Referenced by getVBAGlobals(), StarBASIC(), and VBAFind().
|
private |
Definition at line 47 of file sbstar.hxx.
Referenced by getUnoListeners(), and ~StarBASIC().