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

#include <sbmod.hxx>

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

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 SbxVariableFind (const OUString &, SbxClassType) override
 
const OUString & GetSource32 () const
 
void SetSource32 (const OUString &r)
 
bool Compile ()
 
bool IsCompiled () const
 
SAL_DLLPRIVATE const SbxObjectFindType (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 SbxArrayRefGetMethods () const
 
SbMethodFindMethod (const OUString &, SbxClassType)
 
- 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 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 SbMethodGetMethod (const OUString &, SbxDataType)
 
SAL_DLLPRIVATE SbPropertyGetProperty (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_uInt8FindNextStmnt (const sal_uInt8 *, sal_uInt16 &, sal_uInt16 &) const
 
SAL_DLLPRIVATE const sal_uInt8FindNextStmnt (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 &)
 
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
 

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< SbiImagepImage
 
SbiBreakpointspBreaks
 
std::unique_ptr< SbClassDatapClassData
 
bool mbVBASupport
 
bool mbCompat
 
sal_Int32 mnType
 
SbxObjectRef pDocObject
 
bool bIsProxyModule
 
- 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
 

Private Member Functions

 SbModule (const SbModule &)=delete
 
SbModuleoperator= (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
 

Detailed Description

Definition at line 48 of file sbmod.hxx.

Constructor & Destructor Documentation

◆ SbModule() [1/2]

SbModule::SbModule ( const SbModule )
privatedelete

◆ ~SbModule()

SbModule::~SbModule ( )
overrideprotectedvirtual

Definition at line 435 of file sbxmod.cxx.

References SbxVariable::GetName(), mxWrapper, pBreaks, pClassData, pImage, and SAL_INFO.

◆ SbModule() [2/2]

SbModule::SbModule ( const OUString &  rName,
bool  bVBASupport = false 
)

Member Function Documentation

◆ AddVarName()

void SbModule::AddVarName ( const OUString &  aName)

Definition at line 1268 of file sbxmod.cxx.

References aName, and mModuleVariableNames.

Referenced by SbiRuntime::StepGLOBAL().

◆ Clear()

void SbModule::Clear ( )
overridevirtual

Reimplemented from SbxObject.

Definition at line 617 of file sbxmod.cxx.

References SbxObject::Clear(), pClassData, and pImage.

Referenced by SbJScriptModule::LoadData(), and LoadData().

◆ ClearAllBP()

void SbModule::ClearAllBP ( )

Definition at line 1563 of file sbxmod.cxx.

References pBreaks.

◆ ClearBP()

bool SbModule::ClearBP ( sal_uInt16  nLine)

Definition at line 1542 of file sbxmod.cxx.

References pBreaks.

◆ ClearPrivateVars()

void SbModule::ClearPrivateVars ( )
protected

Definition at line 1292 of file sbxmod.cxx.

References SbxArray::Count(), SbxArray::Get(), i, p, SbxObject::pProps, and SbxARRAY.

◆ ClearVarsDependingOnDeletedBasic()

void SbModule::ClearVarsDependingOnDeletedBasic ( StarBASIC pDeletedBasic)
protected

◆ Compile()

bool SbModule::Compile ( )

◆ createCOMWrapperForIface()

bool SbModule::createCOMWrapperForIface ( css::uno::Any &  o_rRetAny,
SbClassModuleObject pProxyClassModuleObject 
)

◆ EndDefinitions()

void SbModule::EndDefinitions ( bool  bNewState = false)
protected

Definition at line 594 of file sbxmod.cxx.

References i, p, SbxObject::pMethods, and SbxVariable::SetModified().

Referenced by SbiCodeGen::Save(), and SetSource32().

◆ ExceedsImgVersion12ModuleSize()

bool SbModule::ExceedsImgVersion12ModuleSize ( )

Definition at line 1670 of file sbxmod.cxx.

References Compile(), IsCompiled(), and pImage.

Referenced by BasicManager::ImgVersion12PsswdBinaryLimitExceeded().

◆ Find()

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

◆ FindMethod()

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

◆ FindNextStmnt() [1/2]

const sal_uInt8 * SbModule::FindNextStmnt ( const sal_uInt8 p,
sal_uInt16 &  nLine,
sal_uInt16 &  nCol 
) const
protected

Definition at line 1444 of file sbxmod.cxx.

References FindNextStmnt(), and p.

Referenced by FindNextStmnt(), IsBreakable(), SbiRuntime::StepRESUME(), and SbiRuntime::StepSTMNT().

◆ FindNextStmnt() [2/2]

const sal_uInt8 * SbModule::FindNextStmnt ( const sal_uInt8 p,
sal_uInt16 &  nLine,
sal_uInt16 &  nCol,
bool  bFollowJumps,
const SbiImage pImg = nullptr 
) const
protected

◆ FindType()

const SbxObject * SbModule::FindType ( const OUString &  aTypeName) const

Definition at line 459 of file sbxmod.cxx.

References pImage.

Referenced by SbTypeFactory::CreateObject().

◆ fixUpMethodStart()

void SbModule::fixUpMethodStart ( bool  bCvtToLegacy,
SbiImage pImg = nullptr 
) const

◆ GetCodeCompleteDataFromParse()

void SbModule::GetCodeCompleteDataFromParse ( CodeCompleteDataCache &  aCache)

◆ GetIfaceMapperMethod()

void SbModule::GetIfaceMapperMethod ( const OUString &  rName,
SbMethod pImplMeth 
)
protected

◆ GetKeywordCase()

OUString SbModule::GetKeywordCase ( std::u16string_view  sKeyword)
static

Definition at line 1738 of file sbxmod.cxx.

References SbiTokenizer::GetKeywordCase().

◆ GetMethod()

SbMethod * SbModule::GetMethod ( const OUString &  rName,
SbxDataType  t 
)
protected

◆ GetMethods()

const SbxArrayRef & SbModule::GetMethods ( ) const
inline

Definition at line 136 of file sbmod.hxx.

References SbxObject::pMethods.

Referenced by LoadCompleted().

◆ GetModuleType()

sal_Int32 SbModule::GetModuleType ( ) const
inline

Definition at line 128 of file sbmod.hxx.

References mnType.

Referenced by StarBASIC::Find(), and SbiParser::SbiParser().

◆ GetProcedureProperty()

void SbModule::GetProcedureProperty ( const OUString &  rName,
SbxDataType  t 
)
protected

◆ GetProperty()

SbProperty * SbModule::GetProperty ( const OUString &  rName,
SbxDataType  t 
)
protected

◆ GetSource32()

const OUString & SbModule::GetSource32 ( ) const
inline

Definition at line 107 of file sbmod.hxx.

◆ GetUnoModule()

uno::Reference< script::XInvocation > const & SbModule::GetUnoModule ( )

Definition at line 445 of file sbxmod.cxx.

References SbxVariable::GetName(), mxWrapper, and SAL_INFO.

◆ GlobalRunDeInit()

void SbModule::GlobalRunDeInit ( )
protected

Definition at line 1426 of file sbxmod.cxx.

References StarBASIC::DeInitAllModules(), and SbxVariable::GetParent().

Referenced by Run().

◆ GlobalRunInit()

void SbModule::GlobalRunInit ( bool  bBasicStart)
protected

◆ handleProcedureProperties()

void SbModule::handleProcedureProperties ( SfxBroadcaster rBC,
const SfxHint rHint 
)
protected

◆ HasExeCode()

bool SbModule::HasExeCode ( )

Definition at line 1743 of file sbxmod.cxx.

References Compile(), IsCompiled(), and pImage.

◆ implClearIfVarDependsOnDeletedBasic()

void SbModule::implClearIfVarDependsOnDeletedBasic ( SbxVariable pVar,
StarBASIC pDeletedBasic 
)
staticprivate

◆ implProcessModuleRunInit()

void SbModule::implProcessModuleRunInit ( ModuleInitDependencyMap rMap,
ClassModuleRunInitItem rItem 
)
staticprotected

◆ IsBP()

bool SbModule::IsBP ( sal_uInt16  nLine) const

Definition at line 1507 of file sbxmod.cxx.

References i, and pBreaks.

Referenced by SbiRuntime::StepSTMNT().

◆ IsBreakable()

bool SbModule::IsBreakable ( sal_uInt16  nLine) const

Definition at line 1495 of file sbxmod.cxx.

References FindNextStmnt(), p, and pImage.

Referenced by SetBP().

◆ IsCompiled()

bool SbModule::IsCompiled ( ) const

Definition at line 454 of file sbxmod.cxx.

References pImage.

Referenced by SbMethod::Broadcast(), Compile(), ExceedsImgVersion12ModuleSize(), and HasExeCode().

◆ IsOptionCompatible()

bool SbModule::IsOptionCompatible ( ) const
inlineoverrideprotectedvirtual

Reimplemented from SbxObject.

Definition at line 97 of file sbmod.hxx.

◆ isProxyModule()

bool SbModule::isProxyModule ( ) const
inline

Definition at line 130 of file sbmod.hxx.

Referenced by StarBASIC::DeInitAllModules(), and StarBASIC::InitAllModules().

◆ IsVBASupport()

bool SbModule::IsVBASupport ( ) const
inline

◆ LoadBinaryData()

void SbModule::LoadBinaryData ( SvStream rStrm)

◆ LoadCompleted()

bool SbModule::LoadCompleted ( )
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().

◆ LoadData()

bool SbModule::LoadData ( SvStream rStrm,
sal_uInt16  nVer 
)
overrideprotectedvirtual

◆ Notify()

void SbModule::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprotectedvirtual

◆ operator=()

SbModule & SbModule::operator= ( const SbModule )
privatedelete

◆ RemoveVars()

void SbModule::RemoveVars ( )

Definition at line 1279 of file sbxmod.cxx.

References Find(), mModuleVariableNames, p, Property, and SbxObject::Remove().

Referenced by Compile().

◆ Run()

void SbModule::Run ( SbMethod pMeth)
protected

◆ RunInit()

void SbModule::RunInit ( )
protected

Definition at line 1244 of file sbxmod.cxx.

References SbiGlobals::bRunInit, GetSbData(), INITCODE, and pImage.

Referenced by implProcessModuleRunInit(), and StarBASIC::InitAllModules().

◆ SBX_DECL_PERSIST_NODATA()

SbModule::SBX_DECL_PERSIST_NODATA ( SBXID_BASICMOD  ,
 
)

◆ SetBP()

bool SbModule::SetBP ( sal_uInt16  nLine)

◆ SetModuleType()

void SbModule::SetModuleType ( sal_Int32  nType)
inline

Definition at line 129 of file sbmod.hxx.

References mnType, and nType.

Referenced by SbiParser::Option(), SbModule(), and SbObjModule::SbObjModule().

◆ SetParent()

void SbModule::SetParent ( SbxObject p)
overridevirtual

Reimplemented from SbxVariable.

Definition at line 669 of file sbxmod.cxx.

References p, and SbxVariable::pParent.

Referenced by SbClassFactory::AddClassModule(), and StarBASIC::LoadData().

◆ SetSource32()

void SbModule::SetSource32 ( const OUString &  r)

◆ SetVBASupport()

void SbModule::SetVBASupport ( bool  bSupport)

◆ StartDefinitions()

void SbModule::StartDefinitions ( )
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().

◆ StoreBinaryData()

void SbModule::StoreBinaryData ( SvStream rStrm)

◆ StoreData()

std::pair< bool, sal_uInt32 > SbModule::StoreData ( SvStream rStrm) const
overrideprotectedvirtual

Friends And Related Function Documentation

◆ SbClassModuleObject

friend class SbClassModuleObject
friend

Definition at line 54 of file sbmod.hxx.

◆ SbiCodeGen

friend class SbiCodeGen
friend

Definition at line 50 of file sbmod.hxx.

◆ SbiRuntime

friend class SbiRuntime
friend

Definition at line 52 of file sbmod.hxx.

◆ SbMethod

friend class SbMethod
friend

Definition at line 51 of file sbmod.hxx.

Referenced by GetMethod().

◆ StarBASIC

friend class StarBASIC
friend

Definition at line 53 of file sbmod.hxx.

Member Data Documentation

◆ aComment

OUString SbModule::aComment
protected

Definition at line 65 of file sbmod.hxx.

Referenced by LoadData(), StoreBinaryData(), and StoreData().

◆ aOUSource

OUString SbModule::aOUSource
protected

◆ bIsProxyModule

bool SbModule::bIsProxyModule
protected

Definition at line 73 of file sbmod.hxx.

Referenced by Find(), and SbiCodeGen::Save().

◆ mbCompat

bool SbModule::mbCompat
protected

Definition at line 70 of file sbmod.hxx.

Referenced by SetSource32(), and SetVBASupport().

◆ mbVBASupport

bool SbModule::mbVBASupport
protected

Definition at line 69 of file sbmod.hxx.

Referenced by Run(), and SetVBASupport().

◆ mModuleVariableNames

std::vector< OUString > SbModule::mModuleVariableNames
private

Definition at line 56 of file sbmod.hxx.

Referenced by AddVarName(), and RemoveVars().

◆ mnType

sal_Int32 SbModule::mnType
protected

Definition at line 71 of file sbmod.hxx.

Referenced by SbiCodeGen::Save().

◆ mxWrapper

css::uno::Reference< css::script::XInvocation > SbModule::mxWrapper
protected

Definition at line 63 of file sbmod.hxx.

Referenced by GetUnoModule(), and ~SbModule().

◆ pBreaks

SbiBreakpoints* SbModule::pBreaks
protected

Definition at line 67 of file sbmod.hxx.

Referenced by ClearAllBP(), ClearBP(), IsBP(), SetBP(), and ~SbModule().

◆ pClassData

std::unique_ptr<SbClassData> SbModule::pClassData
protected

◆ pDocObject

SbxObjectRef SbModule::pDocObject
protected

◆ pImage

std::unique_ptr<SbiImage> SbModule::pImage
protected

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