diff options
author | Thies Pierdola <thiespierdola@gmail.com> | 2011-01-28 19:39:07 +0100 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-01-28 18:35:09 -0500 |
commit | 01bfc30f24026a5eac67ef17691c779cdb3448d8 (patch) | |
tree | 7de79c5181c53444e91b5f92dece19ae5dfb64b5 /sc/inc/funcdesc.hxx | |
parent | 32d1d5f383e21c4cbcc962ebc934bdfa211074e4 (diff) |
Replaced tools/list with std::vector in ScFunctionMgr and ScFunctionCategory
Diffstat (limited to 'sc/inc/funcdesc.hxx')
-rw-r--r-- | sc/inc/funcdesc.hxx | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/sc/inc/funcdesc.hxx b/sc/inc/funcdesc.hxx index 911f531ab367..c7dc1cf5db4a 100644 --- a/sc/inc/funcdesc.hxx +++ b/sc/inc/funcdesc.hxx @@ -185,6 +185,18 @@ public: */ virtual bool isParameterOptional(sal_uInt32 _nPos) const ; + /** + Compares functions by name, respecting special characters + + @param a + pointer to first function descriptor + + @param b + pointer to second function descriptor + + @return "(a < b)" + */ + static bool compareByName(const ScFuncDesc* a, const ScFuncDesc* b); /** Stores whether a parameter is optional or suppressed @@ -260,7 +272,7 @@ private: class ScFunctionCategory : public formula::IFunctionCategory { public: - ScFunctionCategory(ScFunctionMgr* _pMgr,List* _pCategory,sal_uInt32 _nCategory) + ScFunctionCategory(ScFunctionMgr* _pMgr,::std::vector<const ScFuncDesc*>* _pCategory,sal_uInt32 _nCategory) : m_pMgr(_pMgr),m_pCategory(_pCategory),m_nCategory(_nCategory){} virtual ~ScFunctionCategory(){} @@ -288,7 +300,7 @@ public: private: ScFunctionMgr* m_pMgr; /**< function manager for this category */ - List* m_pCategory; /**< list of functions in this category */ + ::std::vector<const ScFuncDesc*>* m_pCategory; /**< list of functions in this category */ mutable ::rtl::OUString m_sName; /**< name of this category */ sal_uInt32 m_nCategory; /**< index number of this category */ }; @@ -407,8 +419,9 @@ public: private: ScFunctionList* pFuncList; /**< list of all calc functions */ - List* aCatLists[MAX_FUNCCAT]; /**< array of all categories, 0 is the cumulative ('All') category */ - mutable List* pCurCatList; /**< pointer to current category */ + ::std::vector<const ScFuncDesc*>* aCatLists[MAX_FUNCCAT]; + mutable ::std::vector<const ScFuncDesc*>::iterator pCurCatListIter; + mutable ::std::vector<const ScFuncDesc*>::iterator pCurCatListEnd; }; #endif // SC_FUNCDESC_HXX |