Kaydet (Commit) 4b970fb1 authored tarafından Caolán McNamara's avatar Caolán McNamara

RecentFunctionsChanged doesn't do anything since...

function list was moved to sidebar

Change-Id: Icf97e0ec93b2080941f6dcd4d99d30437eac28d8
Reviewed-on: https://gerrit.libreoffice.org/21954Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 4074786a
...@@ -182,7 +182,6 @@ public: ...@@ -182,7 +182,6 @@ public:
SC_DLLPUBLIC void SetInputOptions ( const ScInputOptions& rOpt ); SC_DLLPUBLIC void SetInputOptions ( const ScInputOptions& rOpt );
void SetPrintOptions ( const ScPrintOptions& rOpt ); void SetPrintOptions ( const ScPrintOptions& rOpt );
void InsertEntryToLRUList(sal_uInt16 nFIndex); void InsertEntryToLRUList(sal_uInt16 nFIndex);
static void RecentFunctionsChanged();
static void GetSpellSettings( sal_uInt16& rDefLang, sal_uInt16& rCjkLang, sal_uInt16& rCtlLang, static void GetSpellSettings( sal_uInt16& rDefLang, sal_uInt16& rCjkLang, sal_uInt16& rCtlLang,
bool& rAutoSpell ); bool& rAutoSpell );
......
...@@ -759,25 +759,6 @@ void ScModule::InsertEntryToLRUList(sal_uInt16 nFIndex) ...@@ -759,25 +759,6 @@ void ScModule::InsertEntryToLRUList(sal_uInt16 nFIndex)
ScAppOptions aNewOpts(rAppOpt); // Let App know ScAppOptions aNewOpts(rAppOpt); // Let App know
aNewOpts.SetLRUFuncList(aIdxList, n); aNewOpts.SetLRUFuncList(aIdxList, n);
SetAppOptions(aNewOpts); SetAppOptions(aNewOpts);
RecentFunctionsChanged();
}
}
void ScModule::RecentFunctionsChanged()
{
// update function list window
sal_uInt16 nFuncListID = ScFunctionChildWindow::GetChildWindowId();
//! notify all views
SfxViewFrame* pViewFrm = SfxViewFrame::Current();
if (pViewFrm && pViewFrm->HasChildWindow(nFuncListID))
{
ScFunctionChildWindow* pWnd = static_cast<ScFunctionChildWindow*>(pViewFrm->GetChildWindow(nFuncListID));
if (!pWnd)
return;
ScFunctionDockWin* pFuncList = static_cast<ScFunctionDockWin*>(pWnd->GetWindow());
pFuncList->InitLRUList();
} }
} }
......
...@@ -507,8 +507,6 @@ void SAL_CALL ScRecentFunctionsObj::setRecentFunctionIds( ...@@ -507,8 +507,6 @@ void SAL_CALL ScRecentFunctionsObj::setRecentFunctionIds(
ScAppOptions aNewOpts(pScMod->GetAppOptions()); ScAppOptions aNewOpts(pScMod->GetAppOptions());
aNewOpts.SetLRUFuncList(pFuncs.get(), nCount); aNewOpts.SetLRUFuncList(pFuncs.get(), nCount);
pScMod->SetAppOptions(aNewOpts); pScMod->SetAppOptions(aNewOpts);
ScModule::RecentFunctionsChanged(); // update function list child window
} }
sal_Int32 SAL_CALL ScRecentFunctionsObj::getMaxRecentFunctions() throw(uno::RuntimeException, std::exception) sal_Int32 SAL_CALL ScRecentFunctionsObj::getMaxRecentFunctions() throw(uno::RuntimeException, std::exception)
......
...@@ -498,7 +498,6 @@ void ScViewFunc::EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab, ...@@ -498,7 +498,6 @@ void ScViewFunc::EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab,
if ( bOptChanged ) if ( bOptChanged )
{ {
pScMod->SetAppOptions(aAppOpt); pScMod->SetAppOptions(aAppOpt);
ScModule::RecentFunctionsChanged();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment