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 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)

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...
bool bInitialized

Detailed Description

Definition at line 135 of file addincol.hxx.

Constructor & Destructor Documentation

ScUnoAddInCollection::ScUnoAddInCollection ( )

Definition at line 214 of file addincol.cxx.

References false.

ScUnoAddInCollection::~ScUnoAddInCollection ( )

Definition at line 220 of file addincol.cxx.

Member Function Documentation

void ScUnoAddInCollection::Clear ( )

Definition at line 224 of file addincol.cxx.

References bInitialized, nFuncCount, pExactHashMap, pLocalHashMap, pNameHashMap, and ppFuncData.

Referenced by ScAddInCfg::Notify().

bool ScUnoAddInCollection::FillFunctionDesc ( tools::Long  nFunc,
ScFuncDesc rDesc 
bool ScUnoAddInCollection::FillFunctionDescFromData ( const ScUnoAddInFuncData rFuncData,
ScFuncDesc rDesc 
OUString ScUnoAddInCollection::FindFunction ( const OUString &  rUpperName,
bool  bLocalFirst 
bool ScUnoAddInCollection::GetCalcName ( const OUString &  rExcelName,
OUString &  rRetCalcName 

leave rRetCalcName unchanged, if no matching name is found

Definition at line 568 of file addincol.cxx.

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

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

leave rRetExcelName unchanged, if no matching name is found

Definition at line 559 of file addincol.cxx.

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

Referenced by XclExpFmlaCompImpl::AppendAddInCallToken().

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

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

nIndex0 <= nIndex < GetFuncCount()

Definition at line 1125 of file addincol.cxx.

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

void ScUnoAddInCollection::Initialize ( )
void ScUnoAddInCollection::LoadComponent ( const ScUnoAddInFuncData rFuncData)
void ScUnoAddInCollection::LocalizeString ( OUString &  rName)

modify rName - input: exact name

Definition at line 1135 of file addincol.cxx.

References bInitialized, Initialize(), and pExactHashMap.

Referenced by ScCompiler::LocalizeString().

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

Member Data Documentation

bool ScUnoAddInCollection::bInitialized
tools::Long ScUnoAddInCollection::nFuncCount
std::unique_ptr<ScAddInHashMap> ScUnoAddInCollection::pExactHashMap

exact internal name

Definition at line 140 of file addincol.hxx.

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

std::unique_ptr<ScAddInHashMap> ScUnoAddInCollection::pLocalHashMap

localized name upper

Definition at line 142 of file addincol.hxx.

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

std::unique_ptr<ScAddInHashMap> ScUnoAddInCollection::pNameHashMap

internal name upper

Definition at line 141 of file addincol.hxx.

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

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

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