LibreOffice Module sc (master) 1
Public Member Functions | Private Attributes | List of all members
ScFunctionCategory Class Referencefinal

Category of spreadsheet functions. More...

#include <funcdesc.hxx>

Inheritance diagram for ScFunctionCategory:
[legend]
Collaboration diagram for ScFunctionCategory:
[legend]

Public Member Functions

 ScFunctionCategory (const ::std::vector< const ScFuncDesc * > &_rCategory, sal_uInt32 _nCategory)
 
virtual ~ScFunctionCategory ()
 
virtual sal_uInt32 getCount () const override
 
virtual const formula::IFunctionDescriptiongetFunction (sal_uInt32 _nPos) const override
 Gives the _nPos'th function in this category. More...
 
virtual sal_uInt32 getNumber () const override
 
virtual OUString getName () const override
 
virtual sal_uInt32 getCount () const=0
 
virtual const IFunctionDescriptiongetFunction (sal_uInt32 _nPos) const=0
 
virtual sal_uInt32 getNumber () const=0
 
virtual OUString getName () const=0
 

Private Attributes

const ::std::vector< const ScFuncDesc * > & m_rCategory
 list of functions in this category More...
 
OUString m_sName
 name of this category More...
 
sal_uInt32 m_nCategory
 index number of this category More...
 

Additional Inherited Members

- Protected Member Functions inherited from formula::IFunctionCategory
 ~IFunctionCategory ()
 

Detailed Description

Category of spreadsheet functions.

Contains the name, index and function manager of a category, as well as a list of functions in the category

Definition at line 270 of file funcdesc.hxx.

Constructor & Destructor Documentation

◆ ScFunctionCategory()

ScFunctionCategory::ScFunctionCategory ( const ::std::vector< const ScFuncDesc * > &  _rCategory,
sal_uInt32  _nCategory 
)
inline

Definition at line 273 of file funcdesc.hxx.

◆ ~ScFunctionCategory()

virtual ScFunctionCategory::~ScFunctionCategory ( )
inlinevirtual

Definition at line 275 of file funcdesc.hxx.

Member Function Documentation

◆ getCount()

sal_uInt32 ScFunctionCategory::getCount ( ) const
overridevirtual
Returns
count of functions in this category

Implements formula::IFunctionCategory.

Definition at line 1003 of file funcdesc.cxx.

References m_rCategory.

◆ getFunction()

const formula::IFunctionDescription * ScFunctionCategory::getFunction ( sal_uInt32  _nPos) const
overridevirtual

Gives the _nPos'th function in this category.

Parameters
_nPosposition of function in this category.
Returns
function at the _nPos position in this category, null if _nPos out of bounds.

Implements formula::IFunctionCategory.

Definition at line 1015 of file funcdesc.cxx.

References _nPos, and m_rCategory.

◆ getName()

OUString ScFunctionCategory::getName ( ) const
overridevirtual

Implements formula::IFunctionCategory.

Definition at line 1008 of file funcdesc.cxx.

References ScFunctionMgr::GetCategoryName(), m_nCategory, and m_sName.

◆ getNumber()

sal_uInt32 ScFunctionCategory::getNumber ( ) const
overridevirtual
Returns
index number of this category.

Implements formula::IFunctionCategory.

Definition at line 1023 of file funcdesc.cxx.

References m_nCategory.

Member Data Documentation

◆ m_nCategory

sal_uInt32 ScFunctionCategory::m_nCategory
private

index number of this category

Definition at line 301 of file funcdesc.hxx.

Referenced by getName(), and getNumber().

◆ m_rCategory

const ::std::vector<const ScFuncDesc*>& ScFunctionCategory::m_rCategory
private

list of functions in this category

Definition at line 299 of file funcdesc.hxx.

Referenced by getCount(), and getFunction().

◆ m_sName

OUString ScFunctionCategory::m_sName
mutableprivate

name of this category

Definition at line 300 of file funcdesc.hxx.

Referenced by getName().


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