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 ()
 
const 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, const OUString &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 213 of file addincol.cxx.

ScUnoAddInCollection::~ScUnoAddInCollection ( )

Definition at line 219 of file addincol.cxx.

Member Function Documentation

void ScUnoAddInCollection::Clear ( )

Definition at line 223 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 
)
static
const 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 567 of file addincol.cxx.

References bInitialized, ScGlobal::getCharClassPtr(), 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 558 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().

Parameters
nIndex0 <= nIndex < GetFuncCount()

Definition at line 1124 of file addincol.cxx.

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

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

modify rName - input: exact name

Definition at line 1134 of file addincol.cxx.

References bInitialized, Initialize(), and pExactHashMap.

Referenced by ScCompiler::LocalizeString().

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

Member Data Documentation

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

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
private

localized name upper

Definition at line 142 of file addincol.hxx.

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

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

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
private

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