convert Link<> to typed
Change-Id: I70de366349801fed36fb5d62bc53236efa8b6967
This commit is contained in:
@@ -130,7 +130,7 @@ public:
|
|||||||
DECL_LINK_TYPED( BtnHdl, Button*, void );
|
DECL_LINK_TYPED( BtnHdl, Button*, void );
|
||||||
DECL_LINK_TYPED( DblClkHdl, FuncPage&, void );
|
DECL_LINK_TYPED( DblClkHdl, FuncPage&, void );
|
||||||
DECL_LINK_TYPED( FuncSelHdl, FuncPage&, void );
|
DECL_LINK_TYPED( FuncSelHdl, FuncPage&, void );
|
||||||
DECL_LINK(StructSelHdl, void *);
|
DECL_LINK_TYPED( StructSelHdl, StructPage&, void );
|
||||||
public:
|
public:
|
||||||
mutable uno::Reference< sheet::XFormulaOpCodeMapper> m_xOpCodeMapper;
|
mutable uno::Reference< sheet::XFormulaOpCodeMapper> m_xOpCodeMapper;
|
||||||
uno::Sequence< sheet::FormulaToken > m_aTokenList;
|
uno::Sequence< sheet::FormulaToken > m_aTokenList;
|
||||||
@@ -1580,13 +1580,12 @@ bool FormulaDlg_Impl::CheckMatrix(OUString& aFormula)
|
|||||||
m_pTabCtrl->SetCurPageId(TP_STRUCT);
|
m_pTabCtrl->SetCurPageId(TP_STRUCT);
|
||||||
return bMatrix;
|
return bMatrix;
|
||||||
}
|
}
|
||||||
IMPL_LINK_NOARG(FormulaDlg_Impl, StructSelHdl)
|
IMPL_LINK_NOARG_TYPED(FormulaDlg_Impl, StructSelHdl, StructPage&, void)
|
||||||
{
|
{
|
||||||
bStructUpdate=false;
|
bStructUpdate=false;
|
||||||
if(pStructPage->IsVisible()) m_pBtnForward->Enable(false); //@New
|
if(pStructPage->IsVisible())
|
||||||
|
m_pBtnForward->Enable(false); //@New
|
||||||
bStructUpdate=true;
|
bStructUpdate=true;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
IMPL_LINK_NOARG_TYPED(FormulaDlg_Impl, MatrixHdl, Button*, void)
|
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
|
, public IStructHelper
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
OModuleClient m_aModuleClient;
|
OModuleClient m_aModuleClient;
|
||||||
Link<> aSelLink;
|
Link<StructPage&,void> aSelLink;
|
||||||
|
|
||||||
VclPtr<StructListBox> m_pTlbStruct;
|
VclPtr<StructListBox> m_pTlbStruct;
|
||||||
Image maImgEnd;
|
Image maImgEnd;
|
||||||
@@ -99,7 +99,7 @@ public:
|
|||||||
|
|
||||||
virtual OUString GetEntryText(SvTreeListEntry* pEntry) const SAL_OVERRIDE;
|
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; }
|
StructListBox* GetTlbStruct() const { return m_pTlbStruct; }
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user