20#ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_FUNCTIONHELPER_HXX
21#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_FUNCTIONHELPER_HXX
24#include <com/sun/star/report/meta/XFunctionManager.hpp>
25#include <com/sun/star/report/meta/XFunctionCategory.hpp>
26#include <com/sun/star/report/meta/XFunctionDescription.hpp>
34class FunctionCategory;
35class FunctionDescription;
39 typedef std::map< OUString, std::shared_ptr< FunctionDescription > >
TFunctionsMap;
40 typedef std::map< OUString, std::shared_ptr< FunctionCategory > >
TCategoriesMap;
41 css::uno::Reference< css::report::meta::XFunctionManager>
m_xMgr;
46 FunctionManager(css::uno::Reference< css::report::meta::XFunctionManager> _xMgr);
48 virtual sal_uInt32
getCount()
const override;
53 std::shared_ptr< FunctionDescription >
get(
const css::uno::Reference< css::report::meta::XFunctionDescription>& _xFunctionDescription)
const;
69 virtual OUString
getFormula(const ::std::vector< OUString >& _aArguments)
const override ;
73 virtual OUString
getHelpId()
const override ;
74 virtual bool isHidden()
const override;
85 mutable ::std::vector< std::shared_ptr< FunctionDescription > >
m_aFunctions;
86 css::uno::Reference< css::report::meta::XFunctionCategory>
m_xCategory;
94 virtual sal_uInt32
getCount()
const override;
96 virtual sal_uInt32
getNumber()
const override;
97 virtual OUString
getName()
const override;
virtual const formula::IFunctionDescription * getFunction(sal_uInt32 _nPos) const override
virtual ~FunctionCategory()
mutable ::std::vector< std::shared_ptr< FunctionDescription > > m_aFunctions
const FunctionManager * m_pFunctionManager
virtual sal_uInt32 getNumber() const override
virtual sal_uInt32 getCount() const override
virtual OUString getName() const override
css::uno::Reference< css::report::meta::XFunctionCategory > m_xCategory
FunctionCategory(const FunctionManager *_pFMgr, sal_uInt32 _nPos, const css::uno::Reference< css::report::meta::XFunctionCategory > &_xCategory)
sal_uInt32 m_nFunctionCount
virtual OUString getParameterName(sal_uInt32 _nPos) const override
FunctionDescription(const formula::IFunctionCategory *_pFunctionCategory, css::uno::Reference< css::report::meta::XFunctionDescription > _xFunctionDescription)
virtual void fillVisibleArgumentMapping(::std::vector< sal_uInt16 > &_rArguments) const override
virtual bool isHidden() const override
virtual sal_uInt32 getVarArgsStart() const override
virtual OUString getFunctionName() const override
virtual ~FunctionDescription()
css::uno::Reference< css::report::meta::XFunctionDescription > m_xFunctionDescription
virtual sal_Int32 getSuppressedArgumentCount() const override
virtual OUString getHelpId() const override
virtual OUString getDescription() const override
virtual OUString getParameterDescription(sal_uInt32 _nPos) const override
virtual sal_uInt32 getParameterCount() const override
css::uno::Sequence< css::sheet::FunctionArgument > m_aParameter
virtual OUString getSignature() const override
virtual OUString getFormula(const ::std::vector< OUString > &_aArguments) const override
virtual const formula::IFunctionCategory * getCategory() const override
virtual void initArgumentInfo() const override
const formula::IFunctionCategory * m_pFunctionCategory
virtual bool isParameterOptional(sal_uInt32 _nPos) const override
virtual sal_uInt32 getVarArgsLimit() const override
mutable ::std::vector< TCategoriesMap::iterator > m_aCategoryIndex
TFunctionsMap m_aFunctions
virtual sal_uInt32 getCount() const override
std::map< OUString, std::shared_ptr< FunctionDescription > > TFunctionsMap
virtual const formula::IFunctionCategory * getCategory(sal_uInt32 nPos) const override
virtual void fillLastRecentlyUsedFunctions(::std::vector< const formula::IFunctionDescription * > &_rLastRUFunctions) const override
virtual sal_Unicode getSingleToken(const EToken _eToken) const override
std::map< OUString, std::shared_ptr< FunctionCategory > > TCategoriesMap
FunctionManager(css::uno::Reference< css::report::meta::XFunctionManager > _xMgr)
virtual ~FunctionManager()
css::uno::Reference< css::report::meta::XFunctionManager > m_xMgr
std::shared_ptr< FunctionDescription > get(const css::uno::Reference< css::report::meta::XFunctionDescription > &_xFunctionDescription) const
TCategoriesMap m_aCategories