Kaydet (Commit) c7fe6e7e authored tarafından Noel Grandin's avatar Noel Grandin

convert Link<> to typed

Change-Id: I70de366349801fed36fb5d62bc53236efa8b6967
üst b56850ec
......@@ -130,7 +130,7 @@ public:
DECL_LINK_TYPED( BtnHdl, Button*, void );
DECL_LINK_TYPED( DblClkHdl, FuncPage&, void );
DECL_LINK_TYPED( FuncSelHdl, FuncPage&, void );
DECL_LINK(StructSelHdl, void *);
DECL_LINK_TYPED( StructSelHdl, StructPage&, void );
public:
mutable uno::Reference< sheet::XFormulaOpCodeMapper> m_xOpCodeMapper;
uno::Sequence< sheet::FormulaToken > m_aTokenList;
......@@ -1580,13 +1580,12 @@ bool FormulaDlg_Impl::CheckMatrix(OUString& aFormula)
m_pTabCtrl->SetCurPageId(TP_STRUCT);
return bMatrix;
}
IMPL_LINK_NOARG(FormulaDlg_Impl, StructSelHdl)
IMPL_LINK_NOARG_TYPED(FormulaDlg_Impl, StructSelHdl, StructPage&, void)
{
bStructUpdate=false;
if(pStructPage->IsVisible()) m_pBtnForward->Enable(false); //@New
if(pStructPage->IsVisible())
m_pBtnForward->Enable(false); //@New
bStructUpdate=true;
return 0;
}
IMPL_LINK_NOARG_TYPED(FormulaDlg_Impl, MatrixHdl, Button*, void)
{
......
......@@ -190,7 +190,7 @@ IMPL_LINK_TYPED( StructPage, SelectHdl, SvTreeListBox*, pTlb, void )
}
}
aSelLink.Call(this);
aSelLink.Call(*this);
}
}
......
......@@ -70,8 +70,8 @@ class StructPage : public TabPage
, public IStructHelper
{
private:
OModuleClient m_aModuleClient;
Link<> aSelLink;
OModuleClient m_aModuleClient;
Link<StructPage&,void> aSelLink;
VclPtr<StructListBox> m_pTlbStruct;
Image maImgEnd;
......@@ -99,7 +99,7 @@ public:
virtual OUString GetEntryText(SvTreeListEntry* pEntry) const SAL_OVERRIDE;
void SetSelectionHdl( const Link<>& rLink ) { aSelLink = rLink; }
void SetSelectionHdl( const Link<StructPage&,void>& rLink ) { aSelLink = rLink; }
StructListBox* GetTlbStruct() const { return m_pTlbStruct; }
};
......
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