LibreOffice Module sc (master) 1
|
#include <addincol.hxx>
Classes | |
struct | LocalizedName |
Public Member Functions | |
ScUnoAddInFuncData (const OUString &rNam, const OUString &rLoc, OUString aDesc, sal_uInt16 nCat, OUString, css::uno::Reference< css::reflection::XIdlMethod > aFunc, css::uno::Any aO, tools::Long nAC, const ScAddInArgDesc *pAD, tools::Long nCP) | |
~ScUnoAddInFuncData () | |
const OUString & | GetOriginalName () const |
const OUString & | GetLocalName () const |
const OUString & | GetUpperName () const |
const OUString & | GetUpperLocal () const |
const OUString & | GetUpperEnglish () const |
const css::uno::Reference< css::reflection::XIdlMethod > & | GetFunction () const |
const css::uno::Any & | GetObject () const |
tools::Long | GetArgumentCount () const |
const ScAddInArgDesc * | GetArguments () const |
tools::Long | GetCallerPos () const |
const OUString & | GetDescription () const |
sal_uInt16 | GetCategory () const |
const OUString & | GetHelpId () const |
const ::std::vector< LocalizedName > & | GetCompNames () const |
bool | GetExcelName (const LanguageTag &rDestLang, OUString &rRetExcelName, bool bFallbackToAny=true) const |
void | SetFunction (const css::uno::Reference< css::reflection::XIdlMethod > &rNewFunc, const css::uno::Any &rNewObj) |
void | SetArguments (tools::Long nNewCount, const ScAddInArgDesc *pNewDescs) |
void | SetCallerPos (tools::Long nNewPos) |
void | SetCompNames (::std::vector< LocalizedName > &&rNew) |
void | SetEnglishName (const OUString &rEnglishName) |
Takes care of handling an empty name after upper local name was set. More... | |
Private Attributes | |
OUString | aOriginalName |
kept in formula More... | |
OUString | aLocalName |
for display More... | |
OUString | aUpperName |
for entering formulas More... | |
OUString | aUpperLocal |
for entering formulas More... | |
OUString | aUpperEnglish |
for Function Wizard and tooltips More... | |
OUString | aDescription |
css::uno::Reference< css::reflection::XIdlMethod > | xFunction |
css::uno::Any | aObject |
tools::Long | nArgCount |
std::unique_ptr< ScAddInArgDesc[]> | pArgDescs |
tools::Long | nCallerPos |
sal_uInt16 | nCategory |
OUString | sHelpId |
mutable ::std::vector< LocalizedName > | maCompNames |
bool | bCompInitialized |
Definition at line 76 of file addincol.hxx.
ScUnoAddInFuncData::ScUnoAddInFuncData | ( | const OUString & | rNam, |
const OUString & | rLoc, | ||
OUString | aDesc, | ||
sal_uInt16 | nCat, | ||
OUString | , | ||
css::uno::Reference< css::reflection::XIdlMethod > | aFunc, | ||
css::uno::Any | aO, | ||
tools::Long | nAC, | ||
const ScAddInArgDesc * | pAD, | ||
tools::Long | nCP | ||
) |
Definition at line 71 of file addincol.cxx.
References aUpperLocal, aUpperName, ScGlobal::getCharClass(), i, nArgCount, pArgDescs, and CharClass::uppercase().
ScUnoAddInFuncData::~ScUnoAddInFuncData | ( | ) |
Definition at line 102 of file addincol.cxx.
|
inline |
Definition at line 123 of file addincol.hxx.
References nArgCount.
Referenced by ScUnoAddInCall::ExecuteCall(), ScUnoAddInCollection::FillFunctionDescFromData(), ScUnoAddInCall::GetArgType(), ScParameterClassification::GetExternalParameterType(), lcl_FindArgDesc(), ScUnoAddInCall::ScUnoAddInCall(), and ScUnoAddInCall::SetParam().
|
inline |
Definition at line 124 of file addincol.hxx.
References pArgDescs.
Referenced by ScUnoAddInCall::ExecuteCall(), ScUnoAddInCollection::FillFunctionDescFromData(), ScUnoAddInCall::GetArgType(), ScParameterClassification::GetExternalParameterType(), lcl_FindArgDesc(), ScUnoAddInCall::ScUnoAddInCall(), and ScUnoAddInCall::SetParam().
|
inline |
Definition at line 125 of file addincol.hxx.
References nCallerPos.
Referenced by ScUnoAddInCall::ExecuteCall(), and ScUnoAddInCall::NeedsCaller().
|
inline |
Definition at line 127 of file addincol.hxx.
References nCategory.
Referenced by ScUnoAddInCollection::FillFunctionDescFromData().
const ::std::vector< ScUnoAddInFuncData::LocalizedName > & ScUnoAddInFuncData::GetCompNames | ( | ) | const |
Definition at line 106 of file addincol.cxx.
References aObject, bCompInitialized, LanguageTag::convertToBcp47(), maCompNames, and xFunction.
Referenced by ScUnoAddInCollection::GetCalcName(), and GetExcelName().
|
inline |
Definition at line 126 of file addincol.hxx.
References aDescription.
Referenced by ScUnoAddInCollection::FillFunctionDescFromData().
bool ScUnoAddInFuncData::GetExcelName | ( | const LanguageTag & | rDestLang, |
OUString & | rRetExcelName, | ||
bool | bFallbackToAny = true |
||
) | const |
Definition at line 157 of file addincol.cxx.
References LanguageTag::getBcp47(), GetCompNames(), and LanguageTag::getFallbackStrings().
Referenced by ScCompiler::fillAddInToken(), and ScUnoAddInCollection::GetExcelName().
|
inline |
Definition at line 120 of file addincol.hxx.
References xFunction.
Referenced by ScUnoAddInCall::ExecuteCallWithArgs(), ScUnoAddInCollection::FillFunctionDescFromData(), and ScUnoAddInCollection::GetFuncData().
|
inline |
Definition at line 128 of file addincol.hxx.
References sHelpId.
Referenced by ScUnoAddInCollection::FillFunctionDescFromData().
|
inline |
Definition at line 116 of file addincol.hxx.
References aLocalName.
Referenced by ScUnoAddInCollection::FillFunctionDescFromData().
|
inline |
Definition at line 122 of file addincol.hxx.
References aObject.
Referenced by ScUnoAddInCall::ExecuteCallWithArgs().
|
inline |
Definition at line 115 of file addincol.hxx.
References aOriginalName.
Referenced by ScCompiler::fillAddInToken(), ScCompiler::fillFromAddInCollectionEnglishName(), ScCompiler::fillFromAddInCollectionUpperName(), ScUnoAddInCollection::GetCalcName(), and ScUnoAddInCollection::LoadComponent().
|
inline |
Definition at line 119 of file addincol.hxx.
References aUpperEnglish.
Referenced by ScCompiler::fillFromAddInCollectionEnglishName(), ScUnoAddInCollection::FillFunctionDescFromData(), and lcl_UpdateFunctionList().
|
inline |
Definition at line 118 of file addincol.hxx.
References aUpperLocal.
Referenced by ScCompiler::fillAddInToken(), ScUnoAddInCollection::FillFunctionDescFromData(), and lcl_UpdateFunctionList().
|
inline |
Definition at line 117 of file addincol.hxx.
References aUpperName.
Referenced by ScCompiler::fillAddInToken(), ScCompiler::fillFromAddInCollectionEnglishName(), and ScCompiler::fillFromAddInCollectionUpperName().
void ScUnoAddInFuncData::SetArguments | ( | tools::Long | nNewCount, |
const ScAddInArgDesc * | pNewDescs | ||
) |
Definition at line 214 of file addincol.cxx.
References i, nArgCount, and pArgDescs.
Referenced by ScUnoAddInCollection::UpdateFromAddIn().
void ScUnoAddInFuncData::SetCallerPos | ( | tools::Long | nNewPos | ) |
Definition at line 227 of file addincol.cxx.
References nCallerPos.
Referenced by ScUnoAddInCollection::UpdateFromAddIn().
void ScUnoAddInFuncData::SetCompNames | ( | ::std::vector< LocalizedName > && | rNew | ) |
Definition at line 135 of file addincol.cxx.
References bCompInitialized, and maCompNames.
void ScUnoAddInFuncData::SetEnglishName | ( | const OUString & | rEnglishName | ) |
Takes care of handling an empty name after upper local name was set.
Definition at line 144 of file addincol.cxx.
References aUpperEnglish, aUpperLocal, ScCompiler::GetCharClassEnglish(), and CharClass::uppercase().
void ScUnoAddInFuncData::SetFunction | ( | const css::uno::Reference< css::reflection::XIdlMethod > & | rNewFunc, |
const css::uno::Any & | rNewObj | ||
) |
Definition at line 208 of file addincol.cxx.
References aObject, and xFunction.
Referenced by ScUnoAddInCollection::UpdateFromAddIn().
|
private |
Definition at line 93 of file addincol.hxx.
Referenced by GetDescription().
|
private |
|
private |
Definition at line 95 of file addincol.hxx.
Referenced by GetCompNames(), GetObject(), and SetFunction().
|
private |
|
private |
for Function Wizard and tooltips
Definition at line 92 of file addincol.hxx.
Referenced by GetUpperEnglish(), and SetEnglishName().
|
private |
for entering formulas
Definition at line 91 of file addincol.hxx.
Referenced by GetUpperLocal(), ScUnoAddInFuncData(), and SetEnglishName().
|
private |
for entering formulas
Definition at line 90 of file addincol.hxx.
Referenced by GetUpperName(), and ScUnoAddInFuncData().
|
mutableprivate |
Definition at line 103 of file addincol.hxx.
Referenced by GetCompNames(), and SetCompNames().
|
private |
Definition at line 102 of file addincol.hxx.
Referenced by GetCompNames(), and SetCompNames().
|
private |
Definition at line 96 of file addincol.hxx.
Referenced by GetArgumentCount(), ScUnoAddInFuncData(), and SetArguments().
|
private |
Definition at line 99 of file addincol.hxx.
Referenced by GetCallerPos(), and SetCallerPos().
|
private |
Definition at line 100 of file addincol.hxx.
Referenced by GetCategory().
|
private |
Definition at line 98 of file addincol.hxx.
Referenced by GetArguments(), ScUnoAddInFuncData(), and SetArguments().
|
private |
Definition at line 101 of file addincol.hxx.
Referenced by GetHelpId().
|
private |
Definition at line 94 of file addincol.hxx.
Referenced by GetCompNames(), GetFunction(), and SetFunction().