LibreOffice Module reportdesign (master) 1
Public Member Functions | Private Types | Private Attributes | List of all members
rptui::FunctionManager Class Reference

#include <FunctionHelper.hxx>

Inheritance diagram for rptui::FunctionManager:
[legend]
Collaboration diagram for rptui::FunctionManager:
[legend]

Public Member Functions

 FunctionManager (css::uno::Reference< css::report::meta::XFunctionManager > _xMgr)
 
virtual ~FunctionManager ()
 
virtual sal_uInt32 getCount () const override
 
virtual const formula::IFunctionCategorygetCategory (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::shared_ptr< FunctionDescriptionget (const css::uno::Reference< css::report::meta::XFunctionDescription > &_xFunctionDescription) const
 
- Public Member Functions inherited from formula::IFunctionManager
virtual sal_uInt32 getCount () const=0
 
virtual const IFunctionCategorygetCategory (sal_uInt32 nPos) const=0
 
virtual void fillLastRecentlyUsedFunctions (::std::vector< const IFunctionDescription * > &_rLastRUFunctions) const=0
 
virtual sal_Unicode getSingleToken (const EToken _eToken) const=0
 

Private Types

typedef std::map< OUString, std::shared_ptr< FunctionDescription > > TFunctionsMap
 
typedef std::map< OUString, std::shared_ptr< FunctionCategory > > TCategoriesMap
 

Private Attributes

css::uno::Reference< css::report::meta::XFunctionManager > m_xMgr
 
TCategoriesMap m_aCategories
 
mutable ::std::vector< TCategoriesMap::iterator > m_aCategoryIndex
 
TFunctionsMap m_aFunctions
 

Additional Inherited Members

- Public Types inherited from formula::IFunctionManager
enum  EToken
 
- Public Attributes inherited from formula::IFunctionManager
 eOk
 
 eClose
 
 eSep
 
 eArrayOpen
 
 eArrayClose
 
- Protected Member Functions inherited from formula::IFunctionManager
 ~IFunctionManager ()
 

Detailed Description

Definition at line 37 of file FunctionHelper.hxx.

Member Typedef Documentation

◆ TCategoriesMap

typedef std::map< OUString, std::shared_ptr< FunctionCategory > > rptui::FunctionManager::TCategoriesMap
private

Definition at line 40 of file FunctionHelper.hxx.

◆ TFunctionsMap

typedef std::map< OUString, std::shared_ptr< FunctionDescription > > rptui::FunctionManager::TFunctionsMap
private

Definition at line 39 of file FunctionHelper.hxx.

Constructor & Destructor Documentation

◆ FunctionManager()

rptui::FunctionManager::FunctionManager ( css::uno::Reference< css::report::meta::XFunctionManager >  _xMgr)

Definition at line 33 of file FunctionHelper.cxx.

◆ ~FunctionManager()

rptui::FunctionManager::~FunctionManager ( )
virtual

Definition at line 37 of file FunctionHelper.cxx.

Member Function Documentation

◆ fillLastRecentlyUsedFunctions()

void rptui::FunctionManager::fillLastRecentlyUsedFunctions ( ::std::vector< const formula::IFunctionDescription * > &  _rLastRUFunctions) const
overridevirtual

Definition at line 74 of file FunctionHelper.cxx.

◆ get()

std::shared_ptr< FunctionDescription > rptui::FunctionManager::get ( const css::uno::Reference< css::report::meta::XFunctionDescription > &  _xFunctionDescription) const

Definition at line 78 of file FunctionHelper.cxx.

References m_aCategories, m_aCategoryIndex, and m_aFunctions.

Referenced by rptui::FunctionCategory::getFunction().

◆ getCategory()

const formula::IFunctionCategory * rptui::FunctionManager::getCategory ( sal_uInt32  nPos) const
overridevirtual

Implements formula::IFunctionManager.

Definition at line 63 of file FunctionHelper.cxx.

References _nPos, m_aCategories, m_aCategoryIndex, and m_xMgr.

◆ getCount()

sal_uInt32 rptui::FunctionManager::getCount ( ) const
overridevirtual

Implements formula::IFunctionManager.

Definition at line 58 of file FunctionHelper.cxx.

References m_xMgr.

◆ getSingleToken()

sal_Unicode rptui::FunctionManager::getSingleToken ( const EToken  _eToken) const
overridevirtual

Member Data Documentation

◆ m_aCategories

TCategoriesMap rptui::FunctionManager::m_aCategories
mutableprivate

Definition at line 42 of file FunctionHelper.hxx.

Referenced by get(), and getCategory().

◆ m_aCategoryIndex

mutable ::std::vector< TCategoriesMap::iterator > rptui::FunctionManager::m_aCategoryIndex
private

Definition at line 43 of file FunctionHelper.hxx.

Referenced by get(), and getCategory().

◆ m_aFunctions

TFunctionsMap rptui::FunctionManager::m_aFunctions
mutableprivate

Definition at line 44 of file FunctionHelper.hxx.

Referenced by get().

◆ m_xMgr

css::uno::Reference< css::report::meta::XFunctionManager> rptui::FunctionManager::m_xMgr
private

Definition at line 41 of file FunctionHelper.hxx.

Referenced by getCategory(), and getCount().


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