LibreOffice Module basic (master) 1
Public Member Functions | Private Attributes | List of all members
SbiConstDef Class Referencefinal

#include <symtbl.hxx>

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

Public Member Functions

 SbiConstDef (const OUString &)
 
virtual ~SbiConstDef () override
 
virtual SbiConstDefGetConstDef () override
 
void Set (double, SbxDataType)
 
void Set (const OUString &)
 
double GetValue () const
 
const OUString & GetString () const
 
- Public Member Functions inherited from SbiSymDef
 SbiSymDef (OUString)
 
virtual ~SbiSymDef ()
 
virtual SbiProcDefGetProcDef ()
 
virtual SbiConstDefGetConstDef ()
 
SbxDataType GetType () const
 
virtual void SetType (SbxDataType)
 
const OUString & GetName ()
 
SbiSymScope GetScope () const
 
sal_uInt32 GetAddr () const
 
sal_uInt16 GetId () const
 
sal_uInt16 GetTypeId () const
 
void SetTypeId (sal_uInt16 n)
 
sal_uInt16 GetPos () const
 
void SetLen (short n)
 
short GetLen () const
 
void SetDims (short n)
 
short GetDims () const
 
bool IsDefined () const
 
void SetOptional ()
 
void SetParamArray ()
 
void SetWithEvents ()
 
void SetWithBrackets ()
 
void SetByVal (bool bByVal_)
 
void SetStatic (bool bAsStatic=true)
 
void SetNew ()
 
void SetDefinedAs ()
 
void SetGlobal (bool b)
 
void SetDefaultId (sal_uInt16 n)
 
sal_uInt16 GetDefaultId () const
 
bool IsOptional () const
 
bool IsParamArray () const
 
bool IsWithEvents () const
 
bool IsWithBrackets () const
 
bool IsByVal () const
 
bool IsStatic () const
 
bool IsNew () const
 
bool IsDefinedAs () const
 
bool IsGlobal () const
 
short GetFixedStringLength () const
 
void SetFixedStringLength (short n)
 
SbiSymPoolGetPool ()
 
sal_uInt32 Define ()
 
sal_uInt32 Reference ()
 

Private Attributes

double nVal
 
OUString aVal
 

Additional Inherited Members

- Protected Attributes inherited from SbiSymDef
OUString aName
 
SbxDataType eType
 
SbiSymPoolpIn
 
std::unique_ptr< SbiSymPoolpPool
 
short nLen
 
short nDims
 
sal_uInt16 nId
 
sal_uInt16 nTypeId
 
sal_uInt16 nProcId
 
sal_uInt16 nPos
 
sal_uInt32 nChain
 
bool bNew: 1
 
bool bChained: 1
 
bool bByVal: 1
 
bool bOpt: 1
 
bool bStatic: 1
 
bool bAs: 1
 
bool bGlobal: 1
 
bool bParamArray: 1
 
bool bWithEvents: 1
 
bool bWithBrackets: 1
 
sal_uInt16 nDefaultId
 
short nFixedStringLength
 

Detailed Description

Definition at line 204 of file symtbl.hxx.

Constructor & Destructor Documentation

◆ SbiConstDef()

SbiConstDef::SbiConstDef ( const OUString &  rName)

Definition at line 510 of file symtbl.cxx.

References SbiSymDef::eType, nVal, and SbxINTEGER.

◆ ~SbiConstDef()

SbiConstDef::~SbiConstDef ( )
overridevirtual

Definition at line 526 of file symtbl.cxx.

Member Function Documentation

◆ GetConstDef()

SbiConstDef * SbiConstDef::GetConstDef ( )
overridevirtual

Reimplemented from SbiSymDef.

Definition at line 529 of file symtbl.cxx.

◆ GetString()

const OUString & SbiConstDef::GetString ( ) const
inline

Definition at line 215 of file symtbl.hxx.

References aVal.

Referenced by SbiExpression::Term().

◆ GetValue()

double SbiConstDef::GetValue ( ) const
inline

Definition at line 214 of file symtbl.hxx.

References nVal.

Referenced by SbiExpression::Term().

◆ Set() [1/2]

void SbiConstDef::Set ( const OUString &  n)

Definition at line 521 of file symtbl.cxx.

References aVal, SbiSymDef::eType, n, nVal, and SbxSTRING.

◆ Set() [2/2]

void SbiConstDef::Set ( double  n,
SbxDataType  t 
)

Definition at line 516 of file symtbl.cxx.

References aVal, SbiSymDef::eType, n, nVal, and t.

Referenced by addNumericConst(), addStringConst(), SbiParser::DefEnum(), and SbiParser::DefVar().

Member Data Documentation

◆ aVal

OUString SbiConstDef::aVal
private

Definition at line 207 of file symtbl.hxx.

Referenced by GetString(), and Set().

◆ nVal

double SbiConstDef::nVal
private

Definition at line 206 of file symtbl.hxx.

Referenced by GetValue(), SbiConstDef(), and Set().


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