LibreOffice Module basic (master) 1
|
#include <sbmod.hxx>
Public Member Functions | |
SBX_DECL_PERSIST_NODATA (SBXID_BASICMOD, 2) | |
SbModule (const OUString &, bool bVBASupport=false) | |
virtual SAL_DLLPRIVATE void | SetParent (SbxObject *) override |
virtual SAL_DLLPRIVATE void | Clear () override |
virtual SAL_DLLPRIVATE SbxVariable * | Find (const OUString &, SbxClassType) override |
const OUString & | GetSource32 () const |
void | SetSource32 (const OUString &r) |
bool | Compile () |
bool | IsCompiled () const |
SAL_DLLPRIVATE const SbxObject * | FindType (const OUString &aTypeName) const |
SAL_DLLPRIVATE bool | IsBreakable (sal_uInt16 nLine) const |
SAL_DLLPRIVATE bool | IsBP (sal_uInt16 nLine) const |
bool | SetBP (sal_uInt16 nLine) |
bool | ClearBP (sal_uInt16 nLine) |
void | ClearAllBP () |
SAL_DLLPRIVATE void | StoreBinaryData (SvStream &) |
SAL_DLLPRIVATE void | LoadBinaryData (SvStream &) |
SAL_DLLPRIVATE bool | ExceedsImgVersion12ModuleSize () |
SAL_DLLPRIVATE void | fixUpMethodStart (bool bCvtToLegacy, SbiImage *pImg=nullptr) const |
SAL_DLLPRIVATE bool | HasExeCode () |
bool | IsVBASupport () const |
SAL_DLLPRIVATE void | SetVBASupport (bool bSupport) |
sal_Int32 | GetModuleType () const |
void | SetModuleType (sal_Int32 nType) |
bool | isProxyModule () const |
SAL_DLLPRIVATE void | AddVarName (const OUString &aName) |
SAL_DLLPRIVATE void | RemoveVars () |
css::uno::Reference< css::script::XInvocation > const & | GetUnoModule () |
bool | createCOMWrapperForIface (css::uno::Any &o_rRetAny, SbClassModuleObject *pProxyClassModuleObject) |
void | GetCodeCompleteDataFromParse (CodeCompleteDataCache &aCache) |
const SbxArrayRef & | GetMethods () const |
SbMethod * | FindMethod (const OUString &, SbxClassType) |
Public Member Functions inherited from SbxObject | |
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) |
Public Member Functions inherited from SbxVariable | |
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 () |
Public Member Functions inherited from SbxValue | |
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 &) |
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 &) | |
SvRefBase & | operator= (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 |
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 OUString | GetKeywordCase (std::u16string_view sKeyword) |
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 &) |
Protected Member Functions | |
SAL_DLLPRIVATE void | StartDefinitions () |
SAL_DLLPRIVATE SbMethod * | GetMethod (const OUString &, SbxDataType) |
SAL_DLLPRIVATE SbProperty * | GetProperty (const OUString &, SbxDataType) |
SAL_DLLPRIVATE void | GetProcedureProperty (const OUString &, SbxDataType) |
SAL_DLLPRIVATE void | GetIfaceMapperMethod (const OUString &, SbMethod *) |
SAL_DLLPRIVATE void | EndDefinitions (bool=false) |
SAL_DLLPRIVATE void | Run (SbMethod *) |
SAL_DLLPRIVATE void | RunInit () |
SAL_DLLPRIVATE void | ClearPrivateVars () |
SAL_DLLPRIVATE void | ClearVarsDependingOnDeletedBasic (StarBASIC *pDeletedBasic) |
SAL_DLLPRIVATE void | GlobalRunInit (bool bBasicStart) |
SAL_DLLPRIVATE void | GlobalRunDeInit () |
SAL_DLLPRIVATE const sal_uInt8 * | FindNextStmnt (const sal_uInt8 *, sal_uInt16 &, sal_uInt16 &) const |
SAL_DLLPRIVATE const sal_uInt8 * | FindNextStmnt (const sal_uInt8 *, sal_uInt16 &, sal_uInt16 &, bool bFollowJumps, const SbiImage *pImg=nullptr) const |
virtual SAL_DLLPRIVATE bool | LoadData (SvStream &, sal_uInt16) override |
virtual SAL_DLLPRIVATE std::pair< bool, sal_uInt32 > | StoreData (SvStream &) const override |
virtual SAL_DLLPRIVATE bool | LoadCompleted () override |
virtual SAL_DLLPRIVATE void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
SAL_DLLPRIVATE void | handleProcedureProperties (SfxBroadcaster &rBC, const SfxHint &rHint) |
virtual | ~SbModule () override |
bool | IsOptionCompatible () const override |
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 &) | |
SbxBase & | operator= (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 |
Static Protected Member Functions | |
static SAL_DLLPRIVATE void | implProcessModuleRunInit (ModuleInitDependencyMap &rMap, ClassModuleRunInitItem &rItem) |
Protected Attributes | |
css::uno::Reference< css::script::XInvocation > | mxWrapper |
OUString | aOUSource |
OUString | aComment |
std::unique_ptr< SbiImage > | pImage |
SbiBreakpoints * | pBreaks |
std::unique_ptr< SbClassData > | pClassData |
bool | mbVBASupport |
bool | mbCompat |
sal_Int32 | mnType |
SbxObjectRef | pDocObject |
bool | bIsProxyModule |
Protected Attributes inherited from SbxObject | |
SbxArrayRef | pMethods |
SbxArrayRef | pProps |
SbxArrayRef | pObjs |
SbxProperty * | pDfltProp |
OUString | aClassName |
OUString | aDfltPropName |
Protected Attributes inherited from SbxVariable | |
SbxInfoRef | pInfo |
sal_uInt32 | nUserData = 0 |
SbxObject * | pParent = nullptr |
Protected Attributes inherited from SbxValue | |
SbxValues | aData |
OUString | aPic |
OUString | aToolString |
Protected Attributes inherited from SbxBase | |
SbxFlagBits | nFlags |
Private Member Functions | |
SbModule (const SbModule &)=delete | |
SbModule & | operator= (const SbModule &)=delete |
Static Private Member Functions | |
static BASIC_DLLPRIVATE void | implClearIfVarDependsOnDeletedBasic (SbxVariable *pVar, StarBASIC *pDeletedBasic) |
Private Attributes | |
std::vector< OUString > | mModuleVariableNames |
Friends | |
class | SbiCodeGen |
class | SbMethod |
class | SbiRuntime |
class | StarBASIC |
class | SbClassModuleObject |
|
privatedelete |
|
overrideprotectedvirtual |
Definition at line 435 of file sbxmod.cxx.
References SbxVariable::GetName(), mxWrapper, pBreaks, pClassData, pImage, and SAL_INFO.
SbModule::SbModule | ( | const OUString & | rName, |
bool | bVBASupport = false |
||
) |
Definition at line 419 of file sbxmod.cxx.
References ExtSearch, SbxVariable::GetName(), GlobalSearch, pNameProp, SbxObject::pProps, Property, SbxBase::SetFlag(), SetModuleType(), and SbxVariable::SetName().
void SbModule::AddVarName | ( | const OUString & | aName | ) |
Definition at line 1268 of file sbxmod.cxx.
References aName, and mModuleVariableNames.
Referenced by SbiRuntime::StepGLOBAL().
|
overridevirtual |
Reimplemented from SbxObject.
Definition at line 617 of file sbxmod.cxx.
References SbxObject::Clear(), pClassData, and pImage.
Referenced by SbJScriptModule::LoadData(), and LoadData().
void SbModule::ClearAllBP | ( | ) |
Definition at line 1563 of file sbxmod.cxx.
References pBreaks.
bool SbModule::ClearBP | ( | sal_uInt16 | nLine | ) |
Definition at line 1542 of file sbxmod.cxx.
References pBreaks.
|
protected |
Definition at line 1292 of file sbxmod.cxx.
References SbxArray::Count(), SbxArray::Get(), i, p, SbxObject::pProps, and SbxARRAY.
|
protected |
Definition at line 1346 of file sbxmod.cxx.
References SbxArray::Count(), SbxArray::Get(), i, implClearIfVarDependsOnDeletedBasic(), p, SbxObject::pProps, and SbxARRAY.
Referenced by StarBASIC::implClearDependingVarsOnDelete(), and implClearIfVarDependsOnDeletedBasic().
bool SbModule::Compile | ( | ) |
Definition at line 33 of file sbcomp.cxx.
References aOUSource, StarBASIC::ClearAllModuleVars(), SbxVariable::GetParent(), GetSbData(), i, IsCompiled(), p, SbiGlobals::pCompMod, pImage, SbiGlobals::pInst, SbxObject::pMethods, RemoveVars(), and SbxBase::ResetError().
Referenced by SbMethod::Broadcast(), ExceedsImgVersion12ModuleSize(), HasExeCode(), StarBASIC::InitAllModules(), Notify(), and StoreBinaryData().
bool SbModule::createCOMWrapperForIface | ( | css::uno::Any & | o_rRetAny, |
SbClassModuleObject * | pProxyClassModuleObject | ||
) |
Definition at line 4474 of file sbunoobj.cxx.
References Any, args, SbxArray::Count(), Exception, SbxArray::Get(), SbxVariable::GetName(), SbxVariable::GetParent(), comphelper::getProcessComponentContext(), i, implHandleAnyException(), nCount, pClassData, and registerComponentToBeDisposedForBasic().
Referenced by sbxToUnoValueImpl().
|
protected |
Definition at line 594 of file sbxmod.cxx.
References i, p, SbxObject::pMethods, and SbxVariable::SetModified().
Referenced by SbiCodeGen::Save(), and SetSource32().
bool SbModule::ExceedsImgVersion12ModuleSize | ( | ) |
Definition at line 1670 of file sbxmod.cxx.
References Compile(), IsCompiled(), and pImage.
Referenced by BasicManager::ImgVersion12PsswdBinaryLimitExceeded().
|
overridevirtual |
Reimplemented from SbxObject.
Reimplemented in SbObjModule, SbUserFormModule, and SbUserFormModuleInstance.
Definition at line 626 of file sbxmod.cxx.
References bIsProxyModule, DontCare, SbxObject::Find(), SbxVariable::GetName(), GetSbData(), tools::SvRef< typename T >::is(), SbiInstance::IsCompatibility(), SbxBase::IsSet(), pImage, SbiGlobals::pInst, Private, SbxValue::PutObject(), Read, SbxOBJECT, SbxVariable::SbxVariable(), SbxBase::SetFlag(), SbxVariable::SetName(), SbxVariable::SetParent(), and t.
Referenced by StarBASIC::Find(), SbObjModule::Find(), SbiRuntime::FindElementExtern(), handleProcedureProperties(), Notify(), RemoveVars(), Run(), and SbiRuntime::StepPUBLIC_Impl().
SbMethod * SbModule::FindMethod | ( | const OUString & | rName, |
SbxClassType | t | ||
) |
Definition at line 524 of file sbxmod.cxx.
References SbxObject::pMethods, and t.
Referenced by SbiExpression::Term().
|
protected |
Definition at line 1444 of file sbxmod.cxx.
References FindNextStmnt(), and p.
Referenced by FindNextStmnt(), IsBreakable(), SbiRuntime::StepRESUME(), and SbiRuntime::StepSTMNT().
|
protected |
Definition at line 1449 of file sbxmod.cxx.
References ERRCODE_BASIC_INTERNAL_ERROR, StarBASIC::FatalError(), SbiImage::GetCode(), JUMP_, p, pImage, SAL_WARN_IF, SbOP0_END, SbOP1_END, SbOP1_START, SbOP2_END, SbOP2_START, and STMNT_.
const SbxObject * SbModule::FindType | ( | const OUString & | aTypeName | ) | const |
Definition at line 459 of file sbxmod.cxx.
References pImage.
Referenced by SbTypeFactory::CreateObject().
void SbModule::fixUpMethodStart | ( | bool | bCvtToLegacy, |
SbiImage * | pImg = nullptr |
||
) | const |
Definition at line 1570 of file sbxmod.cxx.
References SbiImage::CalcLegacyOffset(), SbiImage::CalcNewOffset(), i, SbMethod::nStart, pImage, and SbxObject::pMethods.
Referenced by LoadData(), and StoreData().
void SbModule::GetCodeCompleteDataFromParse | ( | CodeCompleteDataCache & | aCache | ) |
Definition at line 1708 of file sbxmod.cxx.
References SbiSymPool::Get(), SbiSymDef::GetName(), SbxVariable::GetParent(), SbiSymDef::GetPool(), SbiSymPool::GetSize(), SbiSymDef::GetType(), SbiSymDef::GetTypeId(), i, SbxBase::ResetError(), SbxEMPTY, and SbxNULL.
|
protected |
Definition at line 569 of file sbxmod.cxx.
References SbMethod::bInvalid, Method, p, SbxObject::pMethods, Read, SbxBase::SetFlags(), and SbxVariable::SetParent().
Referenced by SbiCodeGen::Save().
|
static |
Definition at line 1738 of file sbxmod.cxx.
References SbiTokenizer::GetKeywordCase().
|
protected |
Definition at line 494 of file sbxmod.cxx.
References SbMethod::bInvalid, Fixed, SbxVariable::GetBroadcaster(), Method, p, SbxObject::pMethods, Read, SbxBase::ResetFlag(), SbMethod, SbxVARIANT, SbxBase::SetFlag(), SbxBase::SetFlags(), SbxVariable::SetParent(), SbxValue::SetType(), SfxListener::StartListening(), t, and Write.
Referenced by SbiCodeGen::Save(), and SetSource32().
|
inline |
Definition at line 136 of file sbmod.hxx.
References SbxObject::pMethods.
Referenced by LoadCompleted().
|
inline |
Definition at line 128 of file sbmod.hxx.
References mnType.
Referenced by StarBASIC::Find(), and SbiParser::SbiParser().
|
protected |
Definition at line 551 of file sbxmod.cxx.
References tools::SvRef< typename T >::get(), p, SbxObject::pProps, Property, ReadWrite, SfxListener::StartListening(), and t.
Referenced by SbiCodeGen::Save().
|
protected |
Definition at line 532 of file sbxmod.cxx.
References SbxVariable::GetBroadcaster(), p, SbxObject::pProps, Property, ReadWrite, SbxBase::SetFlag(), SbxVariable::SetParent(), SfxListener::StartListening(), and t.
Referenced by SbiRuntime::StepPUBLIC_Impl().
uno::Reference< script::XInvocation > const & SbModule::GetUnoModule | ( | ) |
Definition at line 445 of file sbxmod.cxx.
References SbxVariable::GetName(), mxWrapper, and SAL_INFO.
|
protected |
Definition at line 1426 of file sbxmod.cxx.
References StarBASIC::DeInitAllModules(), and SbxVariable::GetParent().
Referenced by Run().
|
protected |
Definition at line 1386 of file sbxmod.cxx.
References SbiGlobals::bGlobalInitErr, SbxVariable::GetParent(), GetSbData(), StarBASIC::InitAllModules(), and pImage.
Referenced by Run().
|
protected |
Definition at line 1814 of file sbxmod.cxx.
References SbxArray::Count(), SbxValues::eType, Find(), tools::SvRef< typename T >::get(), SbxArray::Get(), SbxValue::Get(), SfxHint::GetId(), SbxVariable::GetName(), SbxVariable::GetParameters(), SbxHint::GetVar(), i, SbProcedureProperty::isSet(), Method, Notify(), SbxValue::Put(), SbxVARIANT, SbxVariable::SetParameters(), and SbProcedureProperty::setSet().
Referenced by SbObjModule::Notify().
bool SbModule::HasExeCode | ( | ) |
Definition at line 1743 of file sbxmod.cxx.
References Compile(), IsCompiled(), and pImage.
|
staticprivate |
Definition at line 1320 of file sbxmod.cxx.
References ClearVarsDependingOnDeletedBasic(), SbxValue::GetObject(), p, and SbxOBJECT.
Referenced by ClearVarsDependingOnDeletedBasic().
|
staticprotected |
Definition at line 1129 of file sb.cxx.
References implProcessModuleRunInit(), ClassModuleRunInitItem::m_bProcessing, ClassModuleRunInitItem::m_bRunInitDone, ClassModuleRunInitItem::m_pModule, pClassData, and RunInit().
Referenced by implProcessModuleRunInit(), and StarBASIC::InitAllModules().
bool SbModule::IsBP | ( | sal_uInt16 | nLine | ) | const |
Definition at line 1507 of file sbxmod.cxx.
Referenced by SbiRuntime::StepSTMNT().
bool SbModule::IsBreakable | ( | sal_uInt16 | nLine | ) | const |
Definition at line 1495 of file sbxmod.cxx.
References FindNextStmnt(), p, and pImage.
Referenced by SetBP().
bool SbModule::IsCompiled | ( | ) | const |
Definition at line 454 of file sbxmod.cxx.
References pImage.
Referenced by SbMethod::Broadcast(), Compile(), ExceedsImgVersion12ModuleSize(), and HasExeCode().
|
inlineoverrideprotectedvirtual |
|
inline |
Definition at line 130 of file sbmod.hxx.
Referenced by StarBASIC::DeInitAllModules(), and StarBASIC::InitAllModules().
|
inline |
Definition at line 126 of file sbmod.hxx.
Referenced by SbUserFormModule::CreateInstance(), SbiStdObject::Find(), SbiParser::Option(), SbiParser::SbiParser(), SbiRuntime::SbiRuntime(), and SetSource32().
void SbModule::LoadBinaryData | ( | SvStream & | rStrm | ) |
Definition at line 1786 of file sbxmod.cxx.
References aOUSource, LoadCompleted(), LoadData(), and rStrm.
Referenced by basic::SfxScriptLibraryContainer::implLoadPasswordLibrary().
|
overrideprotectedvirtual |
Reimplemented from SbxBase.
Definition at line 1794 of file sbxmod.cxx.
References tools::SvRef< typename T >::get(), GetMethods(), SbxObject::GetProperties(), i, p, SbProperty::pMod, and SbMethod::pMod.
Referenced by LoadBinaryData().
|
overrideprotectedvirtual |
Reimplemented from SbxObject.
Reimplemented in SbJScriptModule.
Definition at line 1589 of file sbxmod.cxx.
References aComment, aOUSource, B_IMG_VERSION_12, Clear(), ExtSearch, fixUpMethodStart(), GlobalSearch, SbxObject::LoadData(), p, pImage, SvStream::ReadUChar(), rStrm, SbxBase::SetFlag(), SbxVariable::SetName(), and SetSource32().
Referenced by LoadBinaryData().
|
overrideprotectedvirtual |
Reimplemented from SbxObject.
Reimplemented in SbObjModule.
Definition at line 674 of file sbxmod.cxx.
References SbMethod::bInvalid, Compile(), SbxArray::Count(), ERRCODE_BASIC_BAD_ACTION, ERRCODE_BASIC_BAD_PROP_VALUE, StarBASIC::Error(), SbxValues::eType, Find(), tools::SvRef< typename T >::get(), SbxArray::Get(), SbxValue::Get(), SfxHint::GetId(), SbProperty::GetModule(), SbxVariable::GetName(), SbxVariable::GetParameters(), GetSbData(), SbxHint::GetVar(), i, SbProcedureProperty::isSet(), Method, nId, SbxObject::Notify(), SbiGlobals::pMod, SbxValue::Put(), Run(), SbxVARIANT, SbxBase::SetError(), SbxVariable::SetParameters(), and SbProcedureProperty::setSet().
Referenced by handleProcedureProperties().
void SbModule::RemoveVars | ( | ) |
Definition at line 1279 of file sbxmod.cxx.
References Find(), mModuleVariableNames, p, Property, and SbxObject::Remove().
Referenced by Compile().
|
protected |
Definition at line 1070 of file sbxmod.cxx.
References SbiGlobals::bGlobalInitErr, SbiInstance::CalcBreakCallLevel(), clearNativeObjectWrapperVector(), ClearUnoObjectsInRTL_Impl(), SbiInstance::EnableCompatibility(), basic::vba::enableContainerWindowsOfAllDocuments(), ERRCODE_BASIC_PROC_UNDEFINED, ERRCODE_BASIC_STACK_OVERFLOW, ERRCODE_NONE, ExtSearch, StarBASIC::FatalError(), Find(), StarBASIC::Find(), tools::SvRef< typename T >::get(), SbMethod::GetDebugFlags(), getDocumentModel(), SbxBase::GetError(), SbxBase::GetFlags(), SbxVariable::GetName(), SbxVariable::GetParent(), GetSbData(), getVBACompatibility(), GlobalRunDeInit(), GlobalRunInit(), GlobalSearch, AsyncQuitHandler::instance(), StarBASIC::IsDocBasic(), StarBASIC::IsQuitApplication(), LINK, basic::vba::lockControllersOfAllDocuments(), MAXRECURSION, mbVBASupport, Method, SbiInstance::nCallLvl, SbMethod::nStart, Object, SbiGlobals::pInst, SbiGlobals::pMSOMacroRuntimLib, Application::PostUserEvent(), SbxBase::ResetError(), SbxBase::ResetFlag(), SAL_INFO, SAL_WARN_IF, SendHint(), SbxBase::SetFlag(), and xModel.
Referenced by Notify().
|
protected |
Definition at line 1244 of file sbxmod.cxx.
References SbiGlobals::bRunInit, GetSbData(), INITCODE, and pImage.
Referenced by implProcessModuleRunInit(), and StarBASIC::InitAllModules().
SbModule::SBX_DECL_PERSIST_NODATA | ( | SBXID_BASICMOD | , |
2 | |||
) |
bool SbModule::SetBP | ( | sal_uInt16 | nLine | ) |
Definition at line 1523 of file sbxmod.cxx.
References Break, GetSbData(), IsBreakable(), pBreaks, SbiGlobals::pInst, SbiInstance::pRun, and SbiRuntime::SetDebugFlags().
|
inline |
Definition at line 129 of file sbmod.hxx.
Referenced by SbiParser::Option(), SbModule(), and SbObjModule::SbObjModule().
|
overridevirtual |
Reimplemented from SbxVariable.
Definition at line 669 of file sbxmod.cxx.
References p, and SbxVariable::pParent.
Referenced by SbClassFactory::AddClassModule(), and StarBASIC::LoadData().
void SbModule::SetSource32 | ( | const OUString & | r | ) |
Definition at line 802 of file sbxmod.cxx.
References aOUSource, SbMethod::bInvalid, COMPATIBLE, DECLARE, EndDefinitions(), ENDFUNC, ENDPROPERTY, ENDSUB, FUNCTION, SbiScanner::GetDbl(), getDefaultVBAMode(), SbiScanner::GetLine(), GetMethod(), SbxVariable::GetParent(), SbiScanner::GetSym(), SbiScanner::GetType(), SbiTokenizer::IsEof(), IsVBASupport(), mbCompat, SbiTokenizer::Next(), NIL, SbMethod::nLine1, SbMethod::nLine2, NUMBER, OPTION, PROPERTY, SbxVARIANT, SbxVOID, SbiScanner::SetCompatible(), SetVBASupport(), StartDefinitions(), SUB, SYMBOL, t, and VBASUPPORT.
Referenced by BasMgrContainerListenerImpl::elementReplaced(), and LoadData().
void SbModule::SetVBASupport | ( | bool | bSupport | ) |
Definition at line 978 of file sbxmod.cxx.
References Exception, getDocumentModel(), SbxVariable::GetParent(), mbCompat, mbVBASupport, and xFactory.
Referenced by SbiParser::Option(), and SetSource32().
|
protected |
Definition at line 467 of file sbxmod.cxx.
References i, p, pClassData, pImage, SbxObject::pMethods, and SbxObject::pProps.
Referenced by SbiCodeGen::Save(), and SetSource32().
void SbModule::StoreBinaryData | ( | SvStream & | rStrm | ) |
Definition at line 1765 of file sbxmod.cxx.
References aComment, aOUSource, Compile(), SbxVariable::GetName(), nVersion, pImage, rStrm, SbxObject::StoreData(), and SvStream::WriteUChar().
|
overrideprotectedvirtual |
Reimplemented from SbxObject.
Reimplemented in SbJScriptModule.
Definition at line 1634 of file sbxmod.cxx.
References SbiImage::aComment, aComment, SbiImage::aName, SbiImage::aOUSource, aOUSource, fixUpMethodStart(), SbxVariable::GetName(), nVersion, pImage, rStrm, SbiImage::Save(), SbxObject::StoreData(), and SvStream::WriteUChar().
|
friend |
|
friend |
|
friend |
Definition at line 51 of file sbmod.hxx.
Referenced by GetMethod().
|
protected |
Definition at line 65 of file sbmod.hxx.
Referenced by LoadData(), StoreBinaryData(), and StoreData().
|
protected |
Definition at line 64 of file sbmod.hxx.
Referenced by Compile(), LoadBinaryData(), SbJScriptModule::LoadData(), LoadData(), SetSource32(), StoreBinaryData(), SbJScriptModule::StoreData(), and StoreData().
|
protected |
Definition at line 73 of file sbmod.hxx.
Referenced by Find(), and SbiCodeGen::Save().
|
protected |
Definition at line 70 of file sbmod.hxx.
Referenced by SetSource32(), and SetVBASupport().
|
protected |
Definition at line 69 of file sbmod.hxx.
Referenced by Run(), and SetVBASupport().
|
private |
Definition at line 56 of file sbmod.hxx.
Referenced by AddVarName(), and RemoveVars().
|
protected |
Definition at line 71 of file sbmod.hxx.
Referenced by SbiCodeGen::Save().
|
protected |
Definition at line 63 of file sbmod.hxx.
Referenced by GetUnoModule(), and ~SbModule().
|
protected |
Definition at line 67 of file sbmod.hxx.
Referenced by ClearAllBP(), ClearBP(), IsBP(), SetBP(), and ~SbModule().
|
protected |
Definition at line 68 of file sbmod.hxx.
Referenced by Clear(), createCOMWrapperForIface(), SbiRuntime::implIsClass(), implProcessModuleRunInit(), SbiCodeGen::Save(), StartDefinitions(), and ~SbModule().
|
protected |
Definition at line 72 of file sbmod.hxx.
Referenced by SbObjModule::Find(), SbUserFormModule::Find(), SbObjModule::GetObject(), SbUserFormModule::InitObject(), SbUserFormModule::Load(), SbUserFormModule::ResetApiObj(), and SbObjModule::SetUnoObject().
|
protected |
Definition at line 66 of file sbmod.hxx.
Referenced by Clear(), Compile(), StarBASIC::DeInitAllModules(), ExceedsImgVersion12ModuleSize(), Find(), FindNextStmnt(), FindType(), fixUpMethodStart(), GlobalRunInit(), HasExeCode(), IsBreakable(), IsCompiled(), LoadData(), RunInit(), SbiCodeGen::Save(), StartDefinitions(), SbiRuntime::StepFIND_G(), SbiRuntime::StepGLOBAL_P(), SbiRuntime::StepPUBLIC_P(), StoreBinaryData(), StoreData(), and ~SbModule().