Lines 31-47
Link Here
|
31 |
class SbxMethod : public SbxVariable |
31 |
class SbxMethod : public SbxVariable |
32 |
{ |
32 |
{ |
33 |
SbxMethodImpl* mpSbxMethodImpl; // Impl data |
33 |
SbxMethodImpl* mpSbxMethodImpl; // Impl data |
|
|
34 |
bool mbIsRuntimeFunction; |
35 |
SbxDataType mbRuntimeFunctionReturnType; |
34 |
|
36 |
|
35 |
public: |
37 |
public: |
36 |
SBX_DECL_PERSIST_NODATA(SBXCR_SBX,SBXID_METHOD,1); |
38 |
SBX_DECL_PERSIST_NODATA(SBXCR_SBX,SBXID_METHOD,1); |
37 |
TYPEINFO(); |
39 |
TYPEINFO(); |
38 |
SbxMethod( const String& r, SbxDataType t ) |
40 |
SbxMethod( const String& r, SbxDataType t, bool bIsRuntimeFunction=false ) |
39 |
: SbxVariable( t ) { SetName( r ); } |
41 |
: SbxVariable( t ), mbIsRuntimeFunction( bIsRuntimeFunction ), mbRuntimeFunctionReturnType( t ) { SetName( r ); } |
40 |
SbxMethod( const SbxMethod& r ) : SvRefBase( r ), SbxVariable( r ) {} |
42 |
SbxMethod( const SbxMethod& r ) |
|
|
43 |
: SvRefBase( r ), SbxVariable( r ), mbIsRuntimeFunction( r.IsRuntimeFunction() ) {} |
41 |
SbxMethod& operator=( const SbxMethod& r ) |
44 |
SbxMethod& operator=( const SbxMethod& r ) |
42 |
{ SbxVariable::operator=( r ); return *this; } |
45 |
{ SbxVariable::operator=( r ); return *this; } |
43 |
sal_Bool Run( SbxValues* pValues = NULL ); |
46 |
sal_Bool Run( SbxValues* pValues = NULL ); |
44 |
virtual SbxClassType GetClass() const; |
47 |
virtual SbxClassType GetClass() const; |
|
|
48 |
bool IsRuntimeFunction() const { return mbIsRuntimeFunction; } |
49 |
SbxDataType GetRuntimeFunctionReturnType() const{ return mbRuntimeFunctionReturnType; } |
45 |
}; |
50 |
}; |
46 |
|
51 |
|
47 |
#ifndef __SBX_SBXMETHODREF_HXX |
52 |
#ifndef __SBX_SBXMETHODREF_HXX |