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

#include <addincol.hxx>

Public Member Functions

 ScUnoAddInCollection ()
 
 ~ScUnoAddInCollection ()
 
OUString FindFunction (const OUString &rUpperName, bool bLocalFirst)
 User entered name. rUpperName MUST already be upper case! More...
 
const ScUnoAddInFuncDataGetFuncData (const OUString &rName, bool bComplete=false)
 Only if bComplete is set, the function reference and argument types are initialized (component may have to be loaded). More...
 
const ScUnoAddInFuncDataGetFuncData (tools::Long nIndex)
 For enumeration in ScCompiler::OpCodeMap::getAvailableMappings(). More...
 
void Clear ()
 
void LocalizeString (OUString &rName)
 modify rName - input: exact name More...
 
tools::Long GetFuncCount ()
 
bool FillFunctionDesc (tools::Long nFunc, ScFuncDesc &rDesc, bool bEnglishFunctionNames)
 
bool GetExcelName (const OUString &rCalcName, LanguageType eDestLang, OUString &rRetExcelName)
 leave rRetExcelName unchanged, if no matching name is found More...
 
bool GetCalcName (const OUString &rExcelName, OUString &rRetCalcName)
 leave rRetCalcName unchanged, if no matching name is found More...
 

Static Public Member Functions

static bool FillFunctionDescFromData (const ScUnoAddInFuncData &rFuncData, ScFuncDesc &rDesc, bool bEnglishFunctionNames)
 

Private Member Functions

void Initialize ()
 
void ReadConfiguration ()
 
void ReadFromAddIn (const css::uno::Reference< css::uno::XInterface > &xInterface)
 
void UpdateFromAddIn (const css::uno::Reference< css::uno::XInterface > &xInterface, std::u16string_view rServiceName)
 
void LoadComponent (const ScUnoAddInFuncData &rFuncData)
 

Private Attributes

tools::Long nFuncCount
 
std::unique_ptr< std::unique_ptr< ScUnoAddInFuncData >[]> ppFuncData
 
std::unique_ptr< ScAddInHashMappExactHashMap
 exact internal name More...
 
std::unique_ptr< ScAddInHashMappNameHashMap
 internal name upper More...
 
std::unique_ptr< ScAddInHashMappLocalHashMap
 localized name upper More...
 
std::unique_ptr< ScAddInHashMappEnglishHashMap
 English name upper. More...
 
bool bInitialized
 

Detailed Description

Definition at line 144 of file addincol.hxx.

Constructor & Destructor Documentation

◆ ScUnoAddInCollection()

ScUnoAddInCollection::ScUnoAddInCollection ( )

Definition at line 232 of file addincol.cxx.

◆ ~ScUnoAddInCollection()

ScUnoAddInCollection::~ScUnoAddInCollection ( )

Definition at line 238 of file addincol.cxx.

Member Function Documentation

◆ Clear()

void ScUnoAddInCollection::Clear ( )

◆ FillFunctionDesc()

bool ScUnoAddInCollection::FillFunctionDesc ( tools::Long  nFunc,
ScFuncDesc rDesc,
bool  bEnglishFunctionNames 
)

◆ FillFunctionDescFromData()

bool ScUnoAddInCollection::FillFunctionDescFromData ( const ScUnoAddInFuncData rFuncData,
ScFuncDesc rDesc,
bool  bEnglishFunctionNames 
)
static

◆ FindFunction()

OUString ScUnoAddInCollection::FindFunction ( const OUString &  rUpperName,
bool  bLocalFirst 
)

◆ GetCalcName()

bool ScUnoAddInCollection::GetCalcName ( const OUString &  rExcelName,
OUString &  rRetCalcName 
)

leave rRetCalcName unchanged, if no matching name is found

Definition at line 605 of file addincol.cxx.

References bInitialized, ScGlobal::getCharClass(), ScUnoAddInFuncData::GetCompNames(), ScUnoAddInFuncData::GetOriginalName(), i, Initialize(), nFuncCount, ppFuncData, and CharClass::uppercase().

◆ GetExcelName()

bool ScUnoAddInCollection::GetExcelName ( const OUString &  rCalcName,
LanguageType  eDestLang,
OUString &  rRetExcelName 
)

leave rRetExcelName unchanged, if no matching name is found

Definition at line 596 of file addincol.cxx.

References ScUnoAddInFuncData::GetExcelName(), and GetFuncData().

Referenced by XclExpFmlaCompImpl::AppendAddInCallToken().

◆ GetFuncCount()

tools::Long ScUnoAddInCollection::GetFuncCount ( )

◆ GetFuncData() [1/2]

const ScUnoAddInFuncData * ScUnoAddInCollection::GetFuncData ( const OUString &  rName,
bool  bComplete = false 
)

◆ GetFuncData() [2/2]

const ScUnoAddInFuncData * ScUnoAddInCollection::GetFuncData ( tools::Long  nIndex)

For enumeration in ScCompiler::OpCodeMap::getAvailableMappings().

Parameters
nIndex0 <= nIndex < GetFuncCount()

Definition at line 1179 of file addincol.cxx.

References bInitialized, Initialize(), nFuncCount, nIndex, and ppFuncData.

◆ Initialize()

void ScUnoAddInCollection::Initialize ( )
private

◆ LoadComponent()

void ScUnoAddInCollection::LoadComponent ( const ScUnoAddInFuncData rFuncData)
private

◆ LocalizeString()

void ScUnoAddInCollection::LocalizeString ( OUString &  rName)

modify rName - input: exact name

Definition at line 1189 of file addincol.cxx.

References bInitialized, Initialize(), and pExactHashMap.

Referenced by ScCompiler::LocalizeString().

◆ ReadConfiguration()

void ScUnoAddInCollection::ReadConfiguration ( )
private

◆ ReadFromAddIn()

void ScUnoAddInCollection::ReadFromAddIn ( const css::uno::Reference< css::uno::XInterface > &  xInterface)
private

◆ UpdateFromAddIn()

void ScUnoAddInCollection::UpdateFromAddIn ( const css::uno::Reference< css::uno::XInterface > &  xInterface,
std::u16string_view  rServiceName 
)
private

Member Data Documentation

◆ bInitialized

bool ScUnoAddInCollection::bInitialized
private

◆ nFuncCount

tools::Long ScUnoAddInCollection::nFuncCount
private

◆ pEnglishHashMap

std::unique_ptr<ScAddInHashMap> ScUnoAddInCollection::pEnglishHashMap
private

English name upper.

Definition at line 152 of file addincol.hxx.

Referenced by Clear(), FindFunction(), ReadConfiguration(), and ReadFromAddIn().

◆ pExactHashMap

std::unique_ptr<ScAddInHashMap> ScUnoAddInCollection::pExactHashMap
private

exact internal name

Definition at line 149 of file addincol.hxx.

Referenced by Clear(), GetFuncData(), LocalizeString(), ReadConfiguration(), and ReadFromAddIn().

◆ pLocalHashMap

std::unique_ptr<ScAddInHashMap> ScUnoAddInCollection::pLocalHashMap
private

localized name upper

Definition at line 151 of file addincol.hxx.

Referenced by Clear(), FindFunction(), ReadConfiguration(), and ReadFromAddIn().

◆ pNameHashMap

std::unique_ptr<ScAddInHashMap> ScUnoAddInCollection::pNameHashMap
private

internal name upper

Definition at line 150 of file addincol.hxx.

Referenced by Clear(), FindFunction(), ReadConfiguration(), and ReadFromAddIn().

◆ ppFuncData

std::unique_ptr<std::unique_ptr<ScUnoAddInFuncData>[]> ScUnoAddInCollection::ppFuncData
private

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