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

#include <addincol.hxx>

Classes

struct  LocalizedName
 

Public Member Functions

 ScUnoAddInFuncData (const OUString &rNam, const OUString &rLoc, OUString aDesc, sal_uInt16 nCat, OString, 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 ScAddInArgDescGetArguments () const
 
tools::Long GetCallerPos () const
 
const OUString & GetDescription () const
 
sal_uInt16 GetCategory () const
 
const OString & 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
 
OString sHelpId
 
mutable ::std::vector< LocalizedNamemaCompNames
 
bool bCompInitialized
 

Detailed Description

Definition at line 76 of file addincol.hxx.

Constructor & Destructor Documentation

◆ ScUnoAddInFuncData()

ScUnoAddInFuncData::ScUnoAddInFuncData ( const OUString &  rNam,
const OUString &  rLoc,
OUString  aDesc,
sal_uInt16  nCat,
OString  ,
css::uno::Reference< css::reflection::XIdlMethod >  aFunc,
css::uno::Any  aO,
tools::Long  nAC,
const ScAddInArgDesc pAD,
tools::Long  nCP 
)

◆ ~ScUnoAddInFuncData()

ScUnoAddInFuncData::~ScUnoAddInFuncData ( )

Definition at line 102 of file addincol.cxx.

Member Function Documentation

◆ GetArgumentCount()

tools::Long ScUnoAddInFuncData::GetArgumentCount ( ) const
inline

◆ GetArguments()

const ScAddInArgDesc * ScUnoAddInFuncData::GetArguments ( ) const
inline

◆ GetCallerPos()

tools::Long ScUnoAddInFuncData::GetCallerPos ( ) const
inline

Definition at line 125 of file addincol.hxx.

References nCallerPos.

Referenced by ScUnoAddInCall::ExecuteCall(), and ScUnoAddInCall::NeedsCaller().

◆ GetCategory()

sal_uInt16 ScUnoAddInFuncData::GetCategory ( ) const
inline

Definition at line 127 of file addincol.hxx.

References nCategory.

Referenced by ScUnoAddInCollection::FillFunctionDescFromData().

◆ GetCompNames()

const ::std::vector< ScUnoAddInFuncData::LocalizedName > & ScUnoAddInFuncData::GetCompNames ( ) const

◆ GetDescription()

const OUString & ScUnoAddInFuncData::GetDescription ( ) const
inline

Definition at line 126 of file addincol.hxx.

References aDescription.

Referenced by ScUnoAddInCollection::FillFunctionDescFromData().

◆ GetExcelName()

bool ScUnoAddInFuncData::GetExcelName ( const LanguageTag rDestLang,
OUString &  rRetExcelName,
bool  bFallbackToAny = true 
) const

◆ GetFunction()

const css::uno::Reference< css::reflection::XIdlMethod > & ScUnoAddInFuncData::GetFunction ( ) const
inline

◆ GetHelpId()

const OString & ScUnoAddInFuncData::GetHelpId ( ) const
inline

Definition at line 128 of file addincol.hxx.

References sHelpId.

Referenced by ScUnoAddInCollection::FillFunctionDescFromData().

◆ GetLocalName()

const OUString & ScUnoAddInFuncData::GetLocalName ( ) const
inline

Definition at line 116 of file addincol.hxx.

References aLocalName.

Referenced by ScUnoAddInCollection::FillFunctionDescFromData().

◆ GetObject()

const css::uno::Any & ScUnoAddInFuncData::GetObject ( ) const
inline

Definition at line 122 of file addincol.hxx.

References aObject.

Referenced by ScUnoAddInCall::ExecuteCallWithArgs().

◆ GetOriginalName()

const OUString & ScUnoAddInFuncData::GetOriginalName ( ) const
inline

◆ GetUpperEnglish()

const OUString & ScUnoAddInFuncData::GetUpperEnglish ( ) const
inline

◆ GetUpperLocal()

const OUString & ScUnoAddInFuncData::GetUpperLocal ( ) const
inline

◆ GetUpperName()

const OUString & ScUnoAddInFuncData::GetUpperName ( ) const
inline

◆ SetArguments()

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

◆ SetCallerPos()

void ScUnoAddInFuncData::SetCallerPos ( tools::Long  nNewPos)

Definition at line 227 of file addincol.cxx.

References nCallerPos.

Referenced by ScUnoAddInCollection::UpdateFromAddIn().

◆ SetCompNames()

void ScUnoAddInFuncData::SetCompNames ( ::std::vector< LocalizedName > &&  rNew)

Definition at line 135 of file addincol.cxx.

References bCompInitialized, and maCompNames.

◆ SetEnglishName()

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

◆ SetFunction()

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

Member Data Documentation

◆ aDescription

OUString ScUnoAddInFuncData::aDescription
private

Definition at line 93 of file addincol.hxx.

Referenced by GetDescription().

◆ aLocalName

OUString ScUnoAddInFuncData::aLocalName
private

for display

Definition at line 89 of file addincol.hxx.

Referenced by GetLocalName().

◆ aObject

css::uno::Any ScUnoAddInFuncData::aObject
private

Definition at line 95 of file addincol.hxx.

Referenced by GetCompNames(), GetObject(), and SetFunction().

◆ aOriginalName

OUString ScUnoAddInFuncData::aOriginalName
private

kept in formula

Definition at line 88 of file addincol.hxx.

Referenced by GetOriginalName().

◆ aUpperEnglish

OUString ScUnoAddInFuncData::aUpperEnglish
private

for Function Wizard and tooltips

Definition at line 92 of file addincol.hxx.

Referenced by GetUpperEnglish(), and SetEnglishName().

◆ aUpperLocal

OUString ScUnoAddInFuncData::aUpperLocal
private

for entering formulas

Definition at line 91 of file addincol.hxx.

Referenced by GetUpperLocal(), ScUnoAddInFuncData(), and SetEnglishName().

◆ aUpperName

OUString ScUnoAddInFuncData::aUpperName
private

for entering formulas

Definition at line 90 of file addincol.hxx.

Referenced by GetUpperName(), and ScUnoAddInFuncData().

◆ bCompInitialized

bool ScUnoAddInFuncData::bCompInitialized
mutableprivate

Definition at line 103 of file addincol.hxx.

Referenced by GetCompNames(), and SetCompNames().

◆ maCompNames

mutable ::std::vector< LocalizedName > ScUnoAddInFuncData::maCompNames
private

Definition at line 102 of file addincol.hxx.

Referenced by GetCompNames(), and SetCompNames().

◆ nArgCount

tools::Long ScUnoAddInFuncData::nArgCount
private

Definition at line 96 of file addincol.hxx.

Referenced by GetArgumentCount(), ScUnoAddInFuncData(), and SetArguments().

◆ nCallerPos

tools::Long ScUnoAddInFuncData::nCallerPos
private

Definition at line 99 of file addincol.hxx.

Referenced by GetCallerPos(), and SetCallerPos().

◆ nCategory

sal_uInt16 ScUnoAddInFuncData::nCategory
private

Definition at line 100 of file addincol.hxx.

Referenced by GetCategory().

◆ pArgDescs

std::unique_ptr<ScAddInArgDesc[]> ScUnoAddInFuncData::pArgDescs
private

Definition at line 98 of file addincol.hxx.

Referenced by GetArguments(), ScUnoAddInFuncData(), and SetArguments().

◆ sHelpId

OString ScUnoAddInFuncData::sHelpId
private

Definition at line 101 of file addincol.hxx.

Referenced by GetHelpId().

◆ xFunction

css::uno::Reference< css::reflection::XIdlMethod> ScUnoAddInFuncData::xFunction
private

Definition at line 94 of file addincol.hxx.

Referenced by GetCompNames(), GetFunction(), and SetFunction().


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