28#include <rtl/ustring.hxx>
85 virtual OUString
getFormula(const ::std::vector< OUString >& _aArguments)
const override ;
99 virtual OUString
getHelpId()
const override ;
106 virtual bool isHidden()
const override;
280 virtual sal_uInt32
getCount()
const override;
295 virtual sal_uInt32
getNumber()
const override;
296 virtual OUString
getName()
const override;
304#define SC_FUNCGROUP_COUNT ID_FUNCTION_GRP_ADDINS
363 virtual sal_uInt32
getCount()
const override;
401 mutable std::map< sal_uInt32, std::shared_ptr<ScFunctionCategory> >
m_aCategories;
Stores and generates human readable descriptions for spreadsheet-functions, e.g. functions used in fo...
std::vector< OUString > maDefArgDescs
Description(s) of parameter(s)
sal_uInt16 nArgCount
All parameter count, suppressed and unsuppressed.
virtual sal_uInt32 getParameterCount() const override
Returns number of arguments.
virtual void initArgumentInfo() const override
Requests function data from AddInCollection.
bool mbHidden
Whether function is hidden.
virtual void fillVisibleArgumentMapping(::std::vector< sal_uInt16 > &_rArguments) const override
Fills a mapping with indexes for non-suppressed arguments.
std::vector< OUString > maDefArgNames
Parameter name(s)
virtual OUString getParameterDescription(sal_uInt32 _nPos) const override
Returns description of parameter at given position.
OUString sHelpId
HelpId of function.
virtual OUString getFunctionName() const override
Returns the name of the function.
virtual OUString getDescription() const override
Returns the description of the function.
virtual OUString getHelpId() const override
Returns the help id of the function.
void Clear()
Clears the object.
sal_uInt16 nCategory
Function category.
virtual bool isParameterOptional(sal_uInt32 _nPos) const override
Returns true if parameter at given position is optional.
static bool compareByName(const ScFuncDesc *a, const ScFuncDesc *b)
Compares functions by name, respecting special characters.
sal_uInt16 GetSuppressedArgCount() const
Returns the number of non-suppressed arguments.
std::optional< OUString > mxFuncDesc
Description of function.
ParameterFlags * pDefArgFlags
Flags for each parameter.
virtual sal_Int32 getSuppressedArgumentCount() const override
virtual sal_uInt32 getVarArgsLimit() const override
Returns maximum number of (variable) arguments.
sal_uInt16 nFIndex
Unique function index.
virtual OUString getFormula(const ::std::vector< OUString > &_aArguments) const override
Returns the function signature with parameters from the passed string array.
virtual bool isHidden() const override
Returns whether function is hidden and not offered in the Function Wizard unless used in an expressio...
std::optional< OUString > mxFuncName
Function name.
virtual sal_uInt32 getVarArgsStart() const override
Returns start of variable arguments.
sal_uInt16 nVarArgsStart
Start of variable arguments, for numbering.
OUString GetParamList() const
Returns list of all parameter names.
virtual OUString getSignature() const override
Returns the full function signature.
virtual const formula::IFunctionCategory * getCategory() const override
Returns the category of the function.
bool bIncomplete
Incomplete argument info (set for add-in info from configuration)
sal_uInt16 nVarArgsLimit
Limit maximum of (variable) arguments, for numbering.
virtual OUString getParameterName(sal_uInt32 _nPos) const override
Returns name of parameter at given position.
Category of spreadsheet functions.
virtual sal_uInt32 getCount() const override
virtual const formula::IFunctionDescription * getFunction(sal_uInt32 _nPos) const override
Gives the _nPos'th function in this category.
OUString m_sName
name of this category
const ::std::vector< const ScFuncDesc * > & m_rCategory
list of functions in this category
ScFunctionCategory(const ::std::vector< const ScFuncDesc * > &_rCategory, sal_uInt32 _nCategory)
virtual sal_uInt32 getNumber() const override
virtual ~ScFunctionCategory()
virtual OUString getName() const override
sal_uInt32 m_nCategory
index number of this category
List of spreadsheet functions.
const ScFuncDesc * GetFunction(sal_uInt32 nIndex) const
const ScFuncDesc * First()
ScFunctionList(bool bEnglishFunctionNames)
sal_uInt32 GetCount() const
::std::vector< constScFuncDesc * >::iterator aFunctionListIter
position in function list
const ScFuncDesc * Next()
::std::vector< const ScFuncDesc * > aFunctionList
List of functions.
bool mbEnglishFunctionNames
bool IsEnglishFunctionNames() const
Stores spreadsheet functions in categories, including a cumulative ('All') category and makes them ac...
std::vector< constScFuncDesc * >::const_iterator pCurCatListIter
position in current category
ScFunctionMgr()
Retrieves all calc functions, generates cumulative ('All') category, and the categories.
std::vector< const ScFuncDesc * > aCatLists[MAX_FUNCCAT]
array of all categories, 0 is the cumulative ('All') category
const ScFuncDesc * Next() const
Returns the next function of the current category.
virtual sal_uInt32 getCount() const override
virtual sal_Unicode getSingleToken(const formula::IFunctionManager::EToken _eToken) const override
Maps Etoken to character.
std::map< sal_uInt32, std::shared_ptr< ScFunctionCategory > > m_aCategories
map of category pos to IFunctionCategory
static OUString GetCategoryName(sal_uInt32 _nCategoryNumber)
Returns name of category.
std::vector< constScFuncDesc * >::const_iterator pCurCatListEnd
end of current category
const ScFuncDesc * Get(sal_uInt16 nFIndex) const
Returns function by index.
virtual const formula::IFunctionCategory * getCategory(sal_uInt32 nPos) const override
Returns a category.
const ScFuncDesc * First(sal_uInt16 nCategory=0) const
Returns the first function in category nCategory.
virtual void fillLastRecentlyUsedFunctions(::std::vector< const formula::IFunctionDescription * > &_rLastRUFunctions) const override
Appends the last recently used functions.
Stores whether a parameter is optional or suppressed.
bool bOptional
Parameter is optional.