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

#include <sbmeth.hxx>

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

Public Member Functions

 SBX_DECL_PERSIST_NODATA (SBXID_BASICMETHOD, 2)
 
virtual SbxInfo * GetInfo () override
 
SbxArrayGetStatics ()
 
void ClearStatics ()
 
SbModuleGetModule ()
 
BasicDebugFlags GetDebugFlags () const
 
void SetDebugFlags (BasicDebugFlags n)
 
void GetLineRange (sal_uInt16 &, sal_uInt16 &)
 
ErrCode Call (SbxValue *pRet, SbxVariable *pCaller=nullptr)
 
virtual void Broadcast (SfxHintId nHintId) override
 
- Public Member Functions inherited from SbxMethod
 SBX_DECL_PERSIST_NODATA (SBXID_METHOD, 1)
 
 SbxMethod (const OUString &r, SbxDataType t, bool bIsRuntimeFunction=false)
 
 SbxMethod (const SbxMethod &r)
 
virtual ~SbxMethod () override
 
SbxMethodoperator= (const SbxMethod &r)
 
virtual SbxClassType GetClass () const override
 
bool IsRuntimeFunction () const
 
SbxDataType GetRuntimeFunctionReturnType () const
 
virtual void Clear () override
 
- 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
 

Private Member Functions

BASIC_DLLPRIVATE SbMethod (const OUString &, SbxDataType, SbModule *)
 
BASIC_DLLPRIVATE SbMethod (const SbMethod &)
 
virtual bool LoadData (SvStream &, sal_uInt16) override
 
virtual std::pair< bool, sal_uInt32 > StoreData (SvStream &) const override
 
virtual ~SbMethod () override
 

Private Attributes

SbxVariablemCaller
 
SbModulepMod
 
BasicDebugFlags nDebugFlags
 
sal_uInt16 nLine1
 
sal_uInt16 nLine2
 
sal_uInt32 nStart
 
bool bInvalid
 
SbxArrayRef refStatics
 

Friends

class SbiRuntime
 
class SbiFactory
 
class SbModule
 
class SbClassModuleObject
 
class SbiCodeGen
 
class SbJScriptMethod
 
class SbIfaceMapperMethod
 

Additional Inherited Members

- 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 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 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 30 of file sbmeth.hxx.

Constructor & Destructor Documentation

◆ SbMethod() [1/2]

SbMethod::SbMethod ( const OUString &  r,
SbxDataType  t,
SbModule p 
)
private

Definition at line 1933 of file sbxmod.cxx.

References bInvalid, mCaller, nDebugFlags, nLine1, nLine2, NoModify, NONE, nStart, p, refStatics, SbxBase::SetFlag(), and t.

◆ SbMethod() [2/2]

SbMethod::SbMethod ( const SbMethod r)
private

Definition at line 1947 of file sbxmod.cxx.

References bInvalid, mCaller, nDebugFlags, nLine1, nLine2, NoModify, nStart, pMod, refStatics, and SbxBase::SetFlag().

◆ ~SbMethod()

SbMethod::~SbMethod ( )
overrideprivatevirtual

Definition at line 1961 of file sbxmod.cxx.

Member Function Documentation

◆ Broadcast()

void SbMethod::Broadcast ( SfxHintId  nHintId)
overridevirtual

◆ Call()

ErrCode SbMethod::Call ( SbxValue pRet,
SbxVariable pCaller = nullptr 
)

◆ ClearStatics()

void SbMethod::ClearStatics ( )

Definition at line 1965 of file sbxmod.cxx.

References refStatics.

◆ GetDebugFlags()

BasicDebugFlags SbMethod::GetDebugFlags ( ) const
inline

Definition at line 59 of file sbmeth.hxx.

References nDebugFlags.

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

◆ GetInfo()

SbxInfo * SbMethod::GetInfo ( )
overridevirtual

◆ GetLineRange()

void SbMethod::GetLineRange ( sal_uInt16 &  l1,
sal_uInt16 &  l2 
)

Definition at line 2039 of file sbxmod.cxx.

References nLine1, and nLine2.

◆ GetModule()

SbModule * SbMethod::GetModule ( )
inline

Definition at line 58 of file sbmeth.hxx.

References pMod.

◆ GetStatics()

SbxArray * SbMethod::GetStatics ( )

◆ LoadData()

bool SbMethod::LoadData ( SvStream rStrm,
sal_uInt16  nVer 
)
overrideprivatevirtual

◆ SBX_DECL_PERSIST_NODATA()

SbMethod::SBX_DECL_PERSIST_NODATA ( SBXID_BASICMETHOD  ,
 
)

◆ SetDebugFlags()

void SbMethod::SetDebugFlags ( BasicDebugFlags  n)
inline

Definition at line 60 of file sbmeth.hxx.

References n, and nDebugFlags.

◆ StoreData()

std::pair< bool, sal_uInt32 > SbMethod::StoreData ( SvStream rStrm) const
overrideprivatevirtual

Friends And Related Function Documentation

◆ SbClassModuleObject

friend class SbClassModuleObject
friend

Definition at line 35 of file sbmeth.hxx.

◆ SbiCodeGen

friend class SbiCodeGen
friend

Definition at line 36 of file sbmeth.hxx.

◆ SbIfaceMapperMethod

friend class SbIfaceMapperMethod
friend

Definition at line 38 of file sbmeth.hxx.

◆ SbiFactory

friend class SbiFactory
friend

Definition at line 33 of file sbmeth.hxx.

◆ SbiRuntime

friend class SbiRuntime
friend

Definition at line 32 of file sbmeth.hxx.

◆ SbJScriptMethod

friend class SbJScriptMethod
friend

Definition at line 37 of file sbmeth.hxx.

◆ SbModule

friend class SbModule
friend

Definition at line 34 of file sbmeth.hxx.

Member Data Documentation

◆ bInvalid

bool SbMethod::bInvalid
private

◆ mCaller

SbxVariable* SbMethod::mCaller
private

Definition at line 40 of file sbmeth.hxx.

Referenced by Call(), SbMethod(), and SbiRuntime::SetVBAEnabled().

◆ nDebugFlags

BasicDebugFlags SbMethod::nDebugFlags
private

Definition at line 42 of file sbmeth.hxx.

Referenced by GetDebugFlags(), SbMethod(), SetDebugFlags(), and StoreData().

◆ nLine1

sal_uInt16 SbMethod::nLine1
private

◆ nLine2

sal_uInt16 SbMethod::nLine2
private

◆ nStart

sal_uInt32 SbMethod::nStart
private

◆ pMod

SbModule* SbMethod::pMod
private

Definition at line 41 of file sbmeth.hxx.

Referenced by Broadcast(), GetModule(), SbModule::LoadCompleted(), and SbMethod().

◆ refStatics

SbxArrayRef SbMethod::refStatics
private

Definition at line 46 of file sbmeth.hxx.

Referenced by ClearStatics(), GetStatics(), and SbMethod().


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