loplugin:unusedmethods formula
Change-Id: I62ff278679638dda7e10c86c49b1966641418e8b Reviewed-on: https://gerrit.libreoffice.org/17223 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
committed by
Noel Grandin
parent
ab777c9cec
commit
82b896f1f8
@@ -53,7 +53,6 @@ public:
|
|||||||
MultiLineEdit* GetEdit() {return pMEdit;}
|
MultiLineEdit* GetEdit() {return pMEdit;}
|
||||||
|
|
||||||
void SetSelChangedHdl( const Link<>& rLink ) { aSelChangedLink = rLink; }
|
void SetSelChangedHdl( const Link<>& rLink ) { aSelChangedLink = rLink; }
|
||||||
const Link<>& GetSelChangedHdl() const { return aSelChangedLink; }
|
|
||||||
|
|
||||||
void UpdateOldSel();
|
void UpdateOldSel();
|
||||||
};
|
};
|
||||||
@@ -136,28 +135,17 @@ public:
|
|||||||
OUString GetArgVal();
|
OUString GetArgVal();
|
||||||
|
|
||||||
void SetArgSelection (const Selection& rSel);
|
void SetArgSelection (const Selection& rSel);
|
||||||
void ReplaceSelOfArg (const OUString& rStr);
|
|
||||||
|
|
||||||
ArgEdit* GetArgEdPtr() {return pEdArg;}
|
ArgEdit* GetArgEdPtr() {return pEdArg;}
|
||||||
|
|
||||||
|
|
||||||
void SetFxClickHdl( const Link<>& rLink ) { aFxClickLink = rLink; }
|
void SetFxClickHdl( const Link<>& rLink ) { aFxClickLink = rLink; }
|
||||||
const Link<>& GetFxClickHdl() const { return aFxClickLink; }
|
|
||||||
|
|
||||||
void SetRefClickHdl( const Link<>& rLink ) { aRefClickLink = rLink; }
|
|
||||||
const Link<>& GetRefClickHdl() const { return aRefClickLink; }
|
|
||||||
|
|
||||||
void SetFxFocusHdl( const Link<>& rLink ) { aFxFocusLink = rLink; }
|
void SetFxFocusHdl( const Link<>& rLink ) { aFxFocusLink = rLink; }
|
||||||
const Link<>& GetFxFocusHdl() const { return aFxFocusLink; }
|
|
||||||
|
|
||||||
void SetRefFocusHdl( const Link<>& rLink ) { aRefFocusLink = rLink; }
|
|
||||||
const Link<>& GetRefFocusHdl() const { return aRefFocusLink; }
|
|
||||||
|
|
||||||
void SetEdFocusHdl( const Link<>& rLink ) { aEdFocusLink = rLink; }
|
void SetEdFocusHdl( const Link<>& rLink ) { aEdFocusLink = rLink; }
|
||||||
const Link<>& GetEdFocusHdl() const { return aEdFocusLink; }
|
|
||||||
|
|
||||||
void SetEdModifyHdl( const Link<>& rLink ) { aEdModifyLink = rLink; }
|
void SetEdModifyHdl( const Link<>& rLink ) { aEdModifyLink = rLink; }
|
||||||
const Link<>& GetEdModifyHdl() const { return aEdModifyLink; }
|
|
||||||
|
|
||||||
void Hide();
|
void Hide();
|
||||||
void Show();
|
void Show();
|
||||||
|
@@ -101,10 +101,8 @@ public:
|
|||||||
OUString GetSelFunctionName() const;
|
OUString GetSelFunctionName() const;
|
||||||
|
|
||||||
void SetDoubleClickHdl( const Link<>& rLink ) { aDoubleClickLink = rLink; }
|
void SetDoubleClickHdl( const Link<>& rLink ) { aDoubleClickLink = rLink; }
|
||||||
const Link<>& GetDoubleClickHdl() const { return aDoubleClickLink; }
|
|
||||||
|
|
||||||
void SetSelectHdl( const Link<>& rLink ) { aSelectionLink = rLink; }
|
void SetSelectHdl( const Link<>& rLink ) { aSelectionLink = rLink; }
|
||||||
const Link<>& GetSelectHdl() const { return aSelectionLink; }
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -133,7 +133,6 @@ public:
|
|||||||
void UpdateParas();
|
void UpdateParas();
|
||||||
void ClearAll();
|
void ClearAll();
|
||||||
|
|
||||||
bool IsRefMode() {return bRefMode;}
|
|
||||||
void SetRefMode(bool bFlag) {bRefMode=bFlag;}
|
void SetRefMode(bool bFlag) {bRefMode=bFlag;}
|
||||||
|
|
||||||
sal_uInt16 GetActiveLine() { return nActiveLine;}
|
sal_uInt16 GetActiveLine() { return nActiveLine;}
|
||||||
@@ -149,14 +148,9 @@ public:
|
|||||||
sal_uInt16 GetSliderPos();
|
sal_uInt16 GetSliderPos();
|
||||||
void SetSliderPos(sal_uInt16 nSliderPos);
|
void SetSliderPos(sal_uInt16 nSliderPos);
|
||||||
|
|
||||||
void SetScrollHdl( const Link<>& rLink ) { aScrollLink = rLink; }
|
|
||||||
const Link<>& GetScrollHdl() const { return aScrollLink; }
|
|
||||||
|
|
||||||
void SetArgModifiedHdl( const Link<>& rLink ) { aArgModifiedLink = rLink; }
|
void SetArgModifiedHdl( const Link<>& rLink ) { aArgModifiedLink = rLink; }
|
||||||
const Link<>& GetArgModifiedHdl() const { return aArgModifiedLink; }
|
|
||||||
|
|
||||||
void SetFxHdl( const Link<>& rLink ) { aFxLink = rLink; }
|
void SetFxHdl( const Link<>& rLink ) { aFxLink = rLink; }
|
||||||
const Link<>& GetFxHdl() const { return aFxLink; }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -150,10 +150,6 @@ OUString StructPage::GetEntryText(SvTreeListEntry* pEntry) const
|
|||||||
return aString;
|
return aString;
|
||||||
}
|
}
|
||||||
|
|
||||||
SvTreeListEntry* StructPage::GetParent(SvTreeListEntry* pEntry) const
|
|
||||||
{
|
|
||||||
return m_pTlbStruct->GetParent(pEntry);
|
|
||||||
}
|
|
||||||
IFormulaToken* StructPage::GetFunctionEntry(SvTreeListEntry* pEntry)
|
IFormulaToken* StructPage::GetFunctionEntry(SvTreeListEntry* pEntry)
|
||||||
{
|
{
|
||||||
if(pEntry!=NULL)
|
if(pEntry!=NULL)
|
||||||
|
@@ -98,10 +98,8 @@ public:
|
|||||||
sal_uInt16 nFlag,sal_uLong nPos=0,IFormulaToken* pScToken=NULL) SAL_OVERRIDE;
|
sal_uInt16 nFlag,sal_uLong nPos=0,IFormulaToken* pScToken=NULL) SAL_OVERRIDE;
|
||||||
|
|
||||||
virtual OUString GetEntryText(SvTreeListEntry* pEntry) const SAL_OVERRIDE;
|
virtual OUString GetEntryText(SvTreeListEntry* pEntry) const SAL_OVERRIDE;
|
||||||
virtual SvTreeListEntry* GetParent(SvTreeListEntry* pEntry) const SAL_OVERRIDE;
|
|
||||||
|
|
||||||
void SetSelectionHdl( const Link<>& rLink ) { aSelLink = rLink; }
|
void SetSelectionHdl( const Link<>& rLink ) { aSelLink = rLink; }
|
||||||
const Link<>& GetSelectionHdl() const { return aSelLink; }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // formula
|
} // formula
|
||||||
|
@@ -144,9 +144,6 @@ public:
|
|||||||
be English as well)? */
|
be English as well)? */
|
||||||
inline bool isEnglish() const { return mbEnglish; }
|
inline bool isEnglish() const { return mbEnglish; }
|
||||||
|
|
||||||
/// Is it an internal core mapping, or setup by filters?
|
|
||||||
inline bool isCore() const { return mbCore; }
|
|
||||||
|
|
||||||
/// Is it an ODF 1.1 compatibility mapping?
|
/// Is it an ODF 1.1 compatibility mapping?
|
||||||
inline bool isPODF() const { return FormulaGrammar::isPODF( meGrammar); }
|
inline bool isPODF() const { return FormulaGrammar::isPODF( meGrammar); }
|
||||||
|
|
||||||
|
@@ -52,7 +52,6 @@ namespace formula
|
|||||||
virtual sal_uInt32 getCount() const = 0;
|
virtual sal_uInt32 getCount() const = 0;
|
||||||
virtual const IFunctionCategory* getCategory(sal_uInt32 nPos) const = 0;
|
virtual const IFunctionCategory* getCategory(sal_uInt32 nPos) const = 0;
|
||||||
virtual void fillLastRecentlyUsedFunctions(::std::vector< const IFunctionDescription*>& _rLastRUFunctions) const = 0;
|
virtual void fillLastRecentlyUsedFunctions(::std::vector< const IFunctionDescription*>& _rLastRUFunctions) const = 0;
|
||||||
virtual const IFunctionDescription* getFunctionByName(const OUString& _sFunctionName) const = 0;
|
|
||||||
|
|
||||||
virtual sal_Unicode getSingleToken(const EToken _eToken) const = 0;
|
virtual sal_Unicode getSingleToken(const EToken _eToken) const = 0;
|
||||||
|
|
||||||
@@ -64,7 +63,6 @@ namespace formula
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
IFunctionCategory(){}
|
IFunctionCategory(){}
|
||||||
virtual const IFunctionManager* getFunctionManager() const = 0;
|
|
||||||
virtual sal_uInt32 getCount() const = 0;
|
virtual sal_uInt32 getCount() const = 0;
|
||||||
virtual const IFunctionDescription* getFunction(sal_uInt32 _nPos) const = 0;
|
virtual const IFunctionDescription* getFunction(sal_uInt32 _nPos) const = 0;
|
||||||
virtual sal_uInt32 getNumber() const = 0;
|
virtual sal_uInt32 getNumber() const = 0;
|
||||||
@@ -119,7 +117,6 @@ namespace formula
|
|||||||
sal_uInt16 nFlag,sal_uLong nPos=0,IFormulaToken* pScToken=NULL) = 0;
|
sal_uInt16 nFlag,sal_uLong nPos=0,IFormulaToken* pScToken=NULL) = 0;
|
||||||
|
|
||||||
virtual OUString GetEntryText(SvTreeListEntry* pEntry) const = 0;
|
virtual OUString GetEntryText(SvTreeListEntry* pEntry) const = 0;
|
||||||
virtual SvTreeListEntry* GetParent(SvTreeListEntry* pEntry) const = 0;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
~IStructHelper() {}
|
~IStructHelper() {}
|
||||||
|
@@ -34,7 +34,6 @@ public:
|
|||||||
virtual ~FormEditData();
|
virtual ~FormEditData();
|
||||||
|
|
||||||
virtual void SaveValues();
|
virtual void SaveValues();
|
||||||
bool HasParent() const { return pParent != NULL; }
|
|
||||||
|
|
||||||
inline sal_uInt16 GetMode() const { return nMode; }
|
inline sal_uInt16 GetMode() const { return nMode; }
|
||||||
inline sal_Int32 GetFStart() const { return nFStart; }
|
inline sal_Int32 GetFStart() const { return nFStart; }
|
||||||
@@ -49,8 +48,6 @@ public:
|
|||||||
|
|
||||||
inline void SetMode( sal_uInt16 nNew ) { nMode = nNew; }
|
inline void SetMode( sal_uInt16 nNew ) { nMode = nNew; }
|
||||||
inline void SetFStart( sal_Int32 nNew ) { nFStart = nNew; }
|
inline void SetFStart( sal_Int32 nNew ) { nFStart = nNew; }
|
||||||
inline void SetCatSel( sal_uInt16 nNew ) { nCatSel = nNew; }
|
|
||||||
inline void SetFuncSel( sal_uInt16 nNew ) { nFuncSel = nNew; }
|
|
||||||
inline void SetOffset( sal_uInt16 nNew ) { nOffset = nNew; }
|
inline void SetOffset( sal_uInt16 nNew ) { nOffset = nNew; }
|
||||||
inline void SetEdFocus( sal_uInt16 nNew ) { nEdFocus = nNew; }
|
inline void SetEdFocus( sal_uInt16 nNew ) { nEdFocus = nNew; }
|
||||||
inline void SetUndoStr( const OUString& rNew ) { aUndoStr = rNew; }
|
inline void SetUndoStr( const OUString& rNew ) { aUndoStr = rNew; }
|
||||||
|
@@ -112,7 +112,6 @@ protected:
|
|||||||
void RefInputStartAfter( RefEdit* pEdit, RefButton* pButton = NULL );
|
void RefInputStartAfter( RefEdit* pEdit, RefButton* pButton = NULL );
|
||||||
void RefInputDoneAfter( bool bForced = false );
|
void RefInputDoneAfter( bool bForced = false );
|
||||||
void SetFocusWin(vcl::Window *pWin,const OString& nUniqueId);
|
void SetFocusWin(vcl::Window *pWin,const OString& nUniqueId);
|
||||||
void HighlightFunctionParas(const OUString& aFormula);
|
|
||||||
|
|
||||||
void SetMeText(const OUString& _sText);
|
void SetMeText(const OUString& _sText);
|
||||||
FormulaDlgMode SetMeText(const OUString& _sText, sal_Int32 PrivStart, sal_Int32 PrivEnd, bool bMatrix, bool _bSelect, bool _bUpdate);
|
FormulaDlgMode SetMeText(const OUString& _sText, sal_Int32 PrivStart, sal_Int32 PrivEnd, bool bMatrix, bool _bSelect, bool _bUpdate);
|
||||||
|
@@ -67,11 +67,6 @@ public:
|
|||||||
|
|
||||||
void SetReferences( IControlReferenceHandler* pDlg, vcl::Window *pLabelWidget );
|
void SetReferences( IControlReferenceHandler* pDlg, vcl::Window *pLabelWidget );
|
||||||
|
|
||||||
IControlReferenceHandler* GetRefDialog()
|
|
||||||
{
|
|
||||||
return pAnyRefDlg;
|
|
||||||
}
|
|
||||||
|
|
||||||
vcl::Window* GetLabelWidgetForShrinkMode()
|
vcl::Window* GetLabelWidgetForShrinkMode()
|
||||||
{
|
{
|
||||||
return pLabelWidget;
|
return pLabelWidget;
|
||||||
|
@@ -194,8 +194,6 @@ public:
|
|||||||
|
|
||||||
static sal_Int32 GetStrLenBytes( sal_Int32 nLen )
|
static sal_Int32 GetStrLenBytes( sal_Int32 nLen )
|
||||||
{ return nLen * sizeof(sal_Unicode); }
|
{ return nLen * sizeof(sal_Unicode); }
|
||||||
static sal_Int32 GetStrLenBytes( const OUString& rStr )
|
|
||||||
{ return GetStrLenBytes( rStr.getLength() ); }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inline void intrusive_ptr_add_ref(const FormulaToken* p)
|
inline void intrusive_ptr_add_ref(const FormulaToken* p)
|
||||||
|
@@ -172,7 +172,6 @@ public:
|
|||||||
void DelRPN();
|
void DelRPN();
|
||||||
FormulaToken* First() { nIndex = 0; return Next(); }
|
FormulaToken* First() { nIndex = 0; return Next(); }
|
||||||
FormulaToken* Next();
|
FormulaToken* Next();
|
||||||
FormulaToken* FirstNoSpaces() { nIndex = 0; return NextNoSpaces(); }
|
|
||||||
FormulaToken* NextNoSpaces();
|
FormulaToken* NextNoSpaces();
|
||||||
FormulaToken* GetNextName();
|
FormulaToken* GetNextName();
|
||||||
FormulaToken* GetNextReference();
|
FormulaToken* GetNextReference();
|
||||||
@@ -234,12 +233,8 @@ public:
|
|||||||
{ SetMaskedRecalcMode( ScRecalcMode::ONLOAD_ONCE ); }
|
{ SetMaskedRecalcMode( ScRecalcMode::ONLOAD_ONCE ); }
|
||||||
inline void SetRecalcModeForced()
|
inline void SetRecalcModeForced()
|
||||||
{ nMode |= ScRecalcMode::FORCED; }
|
{ nMode |= ScRecalcMode::FORCED; }
|
||||||
inline void ClearRecalcModeForced()
|
|
||||||
{ nMode &= ~ScRecalcMode::FORCED; }
|
|
||||||
inline void SetRecalcModeOnRefMove()
|
inline void SetRecalcModeOnRefMove()
|
||||||
{ nMode |= ScRecalcMode::ONREFMOVE; }
|
{ nMode |= ScRecalcMode::ONREFMOVE; }
|
||||||
inline void ClearRecalcModeOnRefMove()
|
|
||||||
{ nMode &= ~ScRecalcMode::ONREFMOVE; }
|
|
||||||
inline bool IsRecalcModeNormal() const
|
inline bool IsRecalcModeNormal() const
|
||||||
{ return bool(nMode & ScRecalcMode::NORMAL); }
|
{ return bool(nMode & ScRecalcMode::NORMAL); }
|
||||||
inline bool IsRecalcModeAlways() const
|
inline bool IsRecalcModeAlways() const
|
||||||
|
@@ -48,8 +48,7 @@ public:
|
|||||||
virtual sal_uInt32 getCount() const SAL_OVERRIDE;
|
virtual sal_uInt32 getCount() const SAL_OVERRIDE;
|
||||||
virtual const formula::IFunctionCategory* getCategory(sal_uInt32 nPos) const SAL_OVERRIDE;
|
virtual const formula::IFunctionCategory* getCategory(sal_uInt32 nPos) const SAL_OVERRIDE;
|
||||||
virtual void fillLastRecentlyUsedFunctions(::std::vector< const formula::IFunctionDescription*>& _rLastRUFunctions) const SAL_OVERRIDE;
|
virtual void fillLastRecentlyUsedFunctions(::std::vector< const formula::IFunctionDescription*>& _rLastRUFunctions) const SAL_OVERRIDE;
|
||||||
virtual const formula::IFunctionDescription* getFunctionByName(const OUString& _sFunctionName) const SAL_OVERRIDE;
|
virtual sal_Unicode getSingleToken(const EToken _eToken) const SAL_OVERRIDE;
|
||||||
virtual sal_Unicode getSingleToken(const EToken _eToken) const SAL_OVERRIDE;
|
|
||||||
|
|
||||||
::boost::shared_ptr< FunctionDescription > get(const ::com::sun::star::uno::Reference< ::com::sun::star::report::meta::XFunctionDescription>& _xFunctionDescription) const;
|
::boost::shared_ptr< FunctionDescription > get(const ::com::sun::star::uno::Reference< ::com::sun::star::report::meta::XFunctionDescription>& _xFunctionDescription) const;
|
||||||
};
|
};
|
||||||
@@ -92,8 +91,7 @@ public:
|
|||||||
virtual sal_uInt32 getCount() const SAL_OVERRIDE;
|
virtual sal_uInt32 getCount() const SAL_OVERRIDE;
|
||||||
virtual const formula::IFunctionDescription* getFunction(sal_uInt32 _nPos) const SAL_OVERRIDE;
|
virtual const formula::IFunctionDescription* getFunction(sal_uInt32 _nPos) const SAL_OVERRIDE;
|
||||||
virtual sal_uInt32 getNumber() const SAL_OVERRIDE;
|
virtual sal_uInt32 getNumber() const SAL_OVERRIDE;
|
||||||
virtual const formula::IFunctionManager* getFunctionManager() const SAL_OVERRIDE;
|
virtual OUString getName() const SAL_OVERRIDE;
|
||||||
virtual OUString getName() const SAL_OVERRIDE;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // rptui
|
} // rptui
|
||||||
|
@@ -68,19 +68,6 @@ const formula::IFunctionCategory* FunctionManager::getCategory(sal_uInt32 _nPos)
|
|||||||
return m_aCategoryIndex[_nPos]->second.get();
|
return m_aCategoryIndex[_nPos]->second.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
const formula::IFunctionDescription* FunctionManager::getFunctionByName(const OUString& _sFunctionName) const
|
|
||||||
{
|
|
||||||
const formula::IFunctionDescription* pDesc = NULL;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
pDesc = get(m_xMgr->getFunctionByName(_sFunctionName)).get();
|
|
||||||
}
|
|
||||||
catch(uno::Exception&)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
return pDesc;
|
|
||||||
}
|
|
||||||
|
|
||||||
void FunctionManager::fillLastRecentlyUsedFunctions(::std::vector< const formula::IFunctionDescription*>& /*_rLastRUFunctions*/) const
|
void FunctionManager::fillLastRecentlyUsedFunctions(::std::vector< const formula::IFunctionDescription*>& /*_rLastRUFunctions*/) const
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -138,11 +125,6 @@ sal_uInt32 FunctionCategory::getNumber() const
|
|||||||
return m_nNumber;
|
return m_nNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
const formula::IFunctionManager* FunctionCategory::getFunctionManager() const
|
|
||||||
{
|
|
||||||
return m_pFunctionManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
OUString FunctionCategory::getName() const
|
OUString FunctionCategory::getName() const
|
||||||
{
|
{
|
||||||
return m_xCategory->getName();
|
return m_xCategory->getName();
|
||||||
|
@@ -253,15 +253,14 @@ private:
|
|||||||
class ScFunctionCategory : public formula::IFunctionCategory
|
class ScFunctionCategory : public formula::IFunctionCategory
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ScFunctionCategory(ScFunctionMgr* _pMgr,::std::vector<const ScFuncDesc*>* _pCategory,sal_uInt32 _nCategory)
|
ScFunctionCategory(::std::vector<const ScFuncDesc*>* _pCategory,sal_uInt32 _nCategory)
|
||||||
: m_pMgr(_pMgr),m_pCategory(_pCategory),m_nCategory(_nCategory){}
|
: m_pCategory(_pCategory),m_nCategory(_nCategory){}
|
||||||
virtual ~ScFunctionCategory(){}
|
virtual ~ScFunctionCategory(){}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return count of functions in this category
|
@return count of functions in this category
|
||||||
*/
|
*/
|
||||||
virtual sal_uInt32 getCount() const SAL_OVERRIDE;
|
virtual sal_uInt32 getCount() const SAL_OVERRIDE;
|
||||||
virtual const formula::IFunctionManager* getFunctionManager() const SAL_OVERRIDE;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Gives the _nPos'th function in this category.
|
Gives the _nPos'th function in this category.
|
||||||
@@ -280,7 +279,6 @@ public:
|
|||||||
virtual OUString getName() const SAL_OVERRIDE;
|
virtual OUString getName() const SAL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ScFunctionMgr* m_pMgr; /**< function manager for this category */
|
|
||||||
::std::vector<const ScFuncDesc*>* m_pCategory; /**< list of functions in this category */
|
::std::vector<const ScFuncDesc*>* m_pCategory; /**< list of functions in this category */
|
||||||
mutable OUString m_sName; /**< name of this category */
|
mutable OUString m_sName; /**< name of this category */
|
||||||
sal_uInt32 m_nCategory; /**< index number of this category */
|
sal_uInt32 m_nCategory; /**< index number of this category */
|
||||||
@@ -381,11 +379,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual void fillLastRecentlyUsedFunctions(::std::vector< const formula::IFunctionDescription*>& _rLastRUFunctions) const SAL_OVERRIDE;
|
virtual void fillLastRecentlyUsedFunctions(::std::vector< const formula::IFunctionDescription*>& _rLastRUFunctions) const SAL_OVERRIDE;
|
||||||
|
|
||||||
/**
|
|
||||||
Implemented because of inheritance \see ScFunctionMgr::Get(const OUString&) const
|
|
||||||
*/
|
|
||||||
virtual const formula::IFunctionDescription* getFunctionByName(const OUString& _sFunctionName) const SAL_OVERRIDE;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Maps Etoken to character
|
Maps Etoken to character
|
||||||
|
|
||||||
|
@@ -614,11 +614,6 @@ sal_uInt32 ScFunctionCategory::getCount() const
|
|||||||
return m_pCategory->size();
|
return m_pCategory->size();
|
||||||
}
|
}
|
||||||
|
|
||||||
const formula::IFunctionManager* ScFunctionCategory::getFunctionManager() const
|
|
||||||
{
|
|
||||||
return m_pMgr;
|
|
||||||
}
|
|
||||||
|
|
||||||
OUString ScFunctionCategory::getName() const
|
OUString ScFunctionCategory::getName() const
|
||||||
{
|
{
|
||||||
if ( m_sName.isEmpty() )
|
if ( m_sName.isEmpty() )
|
||||||
@@ -755,17 +750,12 @@ const formula::IFunctionCategory* ScFunctionMgr::getCategory(sal_uInt32 nCategor
|
|||||||
if ( nCategory < (MAX_FUNCCAT-1) )
|
if ( nCategory < (MAX_FUNCCAT-1) )
|
||||||
{
|
{
|
||||||
if (m_aCategories.find(nCategory) == m_aCategories.end())
|
if (m_aCategories.find(nCategory) == m_aCategories.end())
|
||||||
m_aCategories[nCategory].reset(new ScFunctionCategory(const_cast<ScFunctionMgr*>(this),aCatLists[nCategory+1],nCategory)); // aCatLists[0] is "all"
|
m_aCategories[nCategory].reset(new ScFunctionCategory(aCatLists[nCategory+1],nCategory)); // aCatLists[0] is "all"
|
||||||
return m_aCategories[nCategory].get();
|
return m_aCategories[nCategory].get();
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
const formula::IFunctionDescription* ScFunctionMgr::getFunctionByName(const OUString& _sFunctionName) const
|
|
||||||
{
|
|
||||||
return Get(_sFunctionName);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ScFunctionMgr::fillLastRecentlyUsedFunctions(::std::vector< const formula::IFunctionDescription*>& _rLastRUFunctions) const
|
void ScFunctionMgr::fillLastRecentlyUsedFunctions(::std::vector< const formula::IFunctionDescription*>& _rLastRUFunctions) const
|
||||||
{
|
{
|
||||||
const ScAppOptions& rAppOpt = SC_MOD()->GetAppOptions();
|
const ScAppOptions& rAppOpt = SC_MOD()->GetAppOptions();
|
||||||
|
Reference in New Issue
Block a user