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

#include <sbunoobj.hxx>

Public Member Functions

SbxVariablegetVBAConstant (const OUString &rName)
 
bool isVBAConstantType (std::u16string_view rName)
 

Static Public Member Functions

static VBAConstantHelperinstance ()
 

Private Member Functions

 VBAConstantHelper ()
 
 VBAConstantHelper (const VBAConstantHelper &)=delete
 
void init ()
 

Private Attributes

std::vector< OUString > aConstCache
 
std::unordered_map< OUString, css::uno::Any > aConstHash
 
bool isInited
 

Detailed Description

Definition at line 365 of file sbunoobj.hxx.

Constructor & Destructor Documentation

◆ VBAConstantHelper() [1/2]

VBAConstantHelper::VBAConstantHelper ( )
inlineprivate

Definition at line 371 of file sbunoobj.hxx.

◆ VBAConstantHelper() [2/2]

VBAConstantHelper::VBAConstantHelper ( const VBAConstantHelper )
privatedelete

Member Function Documentation

◆ getVBAConstant()

SbxVariable * VBAConstantHelper::getVBAConstant ( const OUString &  rName)

Definition at line 3279 of file sbunoobj.cxx.

References aConstHash, init(), SbxVARIANT, SbxVariable::SetName(), and unoToSbxValue().

Referenced by SbiRuntime::FindElement().

◆ init()

void VBAConstantHelper::init ( )
private

Definition at line 3218 of file sbunoobj.cxx.

References aConstCache, aConstHash, getTypeDescriptorEnumeration(), and isInited.

Referenced by getVBAConstant(), and isVBAConstantType().

◆ instance()

VBAConstantHelper & VBAConstantHelper::instance ( )
static

Definition at line 3212 of file sbunoobj.cxx.

References aHelper.

Referenced by SbiRuntime::FindElement(), and SbiParser::TypeDecl().

◆ isVBAConstantType()

bool VBAConstantHelper::isVBAConstantType ( std::u16string_view  rName)

Definition at line 3262 of file sbunoobj.cxx.

References aConstCache, o3tl::equalsIgnoreAsciiCase(), and init().

Member Data Documentation

◆ aConstCache

std::vector< OUString > VBAConstantHelper::aConstCache
private

Definition at line 368 of file sbunoobj.hxx.

Referenced by init(), and isVBAConstantType().

◆ aConstHash

std::unordered_map< OUString, css::uno::Any > VBAConstantHelper::aConstHash
private

Definition at line 369 of file sbunoobj.hxx.

Referenced by getVBAConstant(), and init().

◆ isInited

bool VBAConstantHelper::isInited
private

Definition at line 370 of file sbunoobj.hxx.

Referenced by init().


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