convert Link<> to typed
Change-Id: I22f995b905e7abf1451a0636083bf19b3f2d9bc4
This commit is contained in:
@@ -154,10 +154,9 @@ void WebConnectionInfoDialog::dispose()
|
||||
ModalDialog::dispose();
|
||||
}
|
||||
|
||||
IMPL_LINK( WebConnectionInfoDialog, HeaderBarClickedHdl, SvSimpleTable*, pTable )
|
||||
IMPL_LINK_TYPED( WebConnectionInfoDialog, HeaderBarClickedHdl, SvSimpleTable*, pTable, void )
|
||||
{
|
||||
m_pPasswordsLB->Resort( NULL == pTable );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -50,13 +50,13 @@ namespace svx
|
||||
VclPtr<PushButton> m_pChangeBtn;
|
||||
sal_Int32 m_nPos;
|
||||
|
||||
DECL_LINK( HeaderBarClickedHdl, SvSimpleTable* );
|
||||
DECL_LINK_TYPED(RemovePasswordHdl, Button*, void);
|
||||
DECL_LINK_TYPED(RemoveAllPasswordsHdl, Button*, void);
|
||||
DECL_LINK_TYPED(ChangePasswordHdl, Button*, void);
|
||||
DECL_LINK( EntrySelectedHdl, void* );
|
||||
DECL_LINK_TYPED( HeaderBarClickedHdl, SvSimpleTable*, void );
|
||||
DECL_LINK_TYPED( RemovePasswordHdl, Button*, void );
|
||||
DECL_LINK_TYPED( RemoveAllPasswordsHdl, Button*, void );
|
||||
DECL_LINK_TYPED( ChangePasswordHdl, Button*, void );
|
||||
DECL_LINK( EntrySelectedHdl, void* );
|
||||
|
||||
void FillPasswordList();
|
||||
void FillPasswordList();
|
||||
|
||||
public:
|
||||
explicit WebConnectionInfoDialog( vcl::Window* pParent );
|
||||
|
@@ -51,9 +51,8 @@ class SVT_DLLPUBLIC SvSimpleTable : public SvHeaderTabListBox
|
||||
private:
|
||||
SvSimpleTableContainer& m_rParentTableContainer;
|
||||
|
||||
Link<> aHeaderBarClickLink;
|
||||
Link<> aHeaderBarDblClickLink;
|
||||
Link<> aCommandLink;
|
||||
Link<SvSimpleTable*, void> aHeaderBarClickLink;
|
||||
Link<SvSimpleTable*, void> aCommandLink;
|
||||
CommandEvent aCEvt;
|
||||
VclPtr<HeaderBar> aHeaderBar;
|
||||
long nOldPos;
|
||||
@@ -68,7 +67,6 @@ private:
|
||||
DECL_LINK_TYPED( DragHdl, HeaderBar*, void );
|
||||
DECL_LINK_TYPED( EndDragHdl, HeaderBar*, void );
|
||||
DECL_LINK_TYPED( HeaderBarClick, HeaderBar*, void );
|
||||
DECL_LINK_TYPED( HeaderBarDblClick, HeaderBar*, void );
|
||||
DECL_LINK( CompareHdl, SvSortData* );
|
||||
|
||||
protected:
|
||||
@@ -79,7 +77,6 @@ protected:
|
||||
virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) SAL_OVERRIDE;
|
||||
|
||||
virtual void HBarClick();
|
||||
void HBarDblClick();
|
||||
void HBarStartDrag();
|
||||
void HBarDrag();
|
||||
void HBarEndDrag();
|
||||
@@ -119,9 +116,9 @@ public:
|
||||
|
||||
CommandEvent GetCommandEvent()const { return aCEvt;}
|
||||
inline bool IsFocusOnCellEnabled() const { return IsCellFocusEnabled(); }
|
||||
void SetCommandHdl( const Link<>& rLink ) { aCommandLink = rLink; }
|
||||
void SetCommandHdl( const Link<SvSimpleTable*,void>& rLink ) { aCommandLink = rLink; }
|
||||
|
||||
void SetHeaderBarClickHdl( const Link<>& rLink ) { aHeaderBarClickLink = rLink; }
|
||||
void SetHeaderBarClickHdl( const Link<SvSimpleTable*,void>& rLink ) { aHeaderBarClickLink = rLink; }
|
||||
HeaderBar& GetTheHeaderBar() { return *aHeaderBar.get(); }
|
||||
};
|
||||
|
||||
|
@@ -109,7 +109,7 @@ private:
|
||||
|
||||
DECL_LINK_TYPED( UpdateSelectionHdl, Idle*, void );
|
||||
DECL_LINK( ChgTrackModHdl, ScChangeTrack*);
|
||||
DECL_LINK( CommandHdl, void*);
|
||||
DECL_LINK_TYPED( CommandHdl, SvSimpleTable*, void);
|
||||
DECL_LINK_TYPED( ReOpenTimerHdl, Idle*, void );
|
||||
DECL_LINK( ColCompareHdl, SvSortData*);
|
||||
|
||||
|
@@ -1691,7 +1691,7 @@ IMPL_LINK_NOARG_TYPED(ScAcceptChgDlg, UpdateSelectionHdl, Idle *, void)
|
||||
pTPView->EnableReject( bRejectFlag && bEnable );
|
||||
}
|
||||
|
||||
IMPL_LINK_NOARG(ScAcceptChgDlg, CommandHdl)
|
||||
IMPL_LINK_NOARG_TYPED(ScAcceptChgDlg, CommandHdl, SvSimpleTable*, void)
|
||||
{
|
||||
|
||||
const CommandEvent aCEvt(pTheView->GetCommandEvent());
|
||||
@@ -1775,7 +1775,6 @@ IMPL_LINK_NOARG(ScAcceptChgDlg, CommandHdl)
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ScAcceptChgDlg::Initialize(SfxChildWinInfo *pInfo)
|
||||
|
@@ -104,7 +104,6 @@ SvSimpleTable::SvSimpleTable(SvSimpleTableContainer& rParent, WinBits nBits):
|
||||
aHeaderBar->SetDragHdl(LINK( this, SvSimpleTable, DragHdl));
|
||||
aHeaderBar->SetEndDragHdl(LINK( this, SvSimpleTable, EndDragHdl));
|
||||
aHeaderBar->SetSelectHdl(LINK( this, SvSimpleTable, HeaderBarClick));
|
||||
aHeaderBar->SetDoubleClickHdl(LINK( this, SvSimpleTable, HeaderBarDblClick));
|
||||
|
||||
|
||||
EnableCellFocus();
|
||||
@@ -334,11 +333,6 @@ void SvSimpleTable::HBarClick()
|
||||
}
|
||||
}
|
||||
|
||||
void SvSimpleTable::HBarDblClick()
|
||||
{
|
||||
aHeaderBarDblClickLink.Call(this);
|
||||
}
|
||||
|
||||
void SvSimpleTable::HBarStartDrag()
|
||||
{
|
||||
if(!aHeaderBar->IsItemMode())
|
||||
@@ -426,14 +420,6 @@ IMPL_LINK_TYPED( SvSimpleTable, HeaderBarClick, HeaderBar*, pCtr, void)
|
||||
}
|
||||
}
|
||||
|
||||
IMPL_LINK_TYPED( SvSimpleTable, HeaderBarDblClick, HeaderBar*, pCtr, void)
|
||||
{
|
||||
if(pCtr==aHeaderBar.get())
|
||||
{
|
||||
HBarDblClick();
|
||||
}
|
||||
}
|
||||
|
||||
SvLBoxItem* SvSimpleTable::GetEntryAtPos( SvTreeListEntry* pEntry, sal_uInt16 nPos ) const
|
||||
{
|
||||
DBG_ASSERT(pEntry,"GetEntryText:Invalid Entry");
|
||||
|
@@ -97,9 +97,9 @@ class SW_DLLPUBLIC SwRedlineAcceptDlg
|
||||
DECL_DLLPRIVATE_LINK( SelectHdl, void* );
|
||||
DECL_DLLPRIVATE_LINK_TYPED( SelectTimerHdl, Timer*, void );
|
||||
DECL_DLLPRIVATE_LINK_TYPED( GotoHdl, Timer*, void );
|
||||
DECL_DLLPRIVATE_LINK( CommandHdl, void* );
|
||||
DECL_DLLPRIVATE_LINK_TYPED( CommandHdl, SvSimpleTable*, void );
|
||||
|
||||
SAL_DLLPRIVATE sal_uInt16 CalcDiff(sal_uInt16 nStart, bool bChild);
|
||||
SAL_DLLPRIVATE sal_uInt16 CalcDiff(sal_uInt16 nStart, bool bChild);
|
||||
SAL_DLLPRIVATE void InsertChildren(SwRedlineDataParent *pParent, const SwRangeRedline& rRedln, const sal_uInt16 nAutoFormat);
|
||||
SAL_DLLPRIVATE void InsertParents(sal_uInt16 nStart, sal_uInt16 nEnd = USHRT_MAX);
|
||||
SAL_DLLPRIVATE void RemoveParents(sal_uInt16 nStart, sal_uInt16 nEnd);
|
||||
@@ -125,7 +125,7 @@ public:
|
||||
void Initialize(const OUString &rExtraData);
|
||||
void FillInfo(OUString &rExtraData) const;
|
||||
|
||||
void Activate();
|
||||
void Activate();
|
||||
};
|
||||
|
||||
class SwModelessRedlineAcceptDlg : public SfxModelessDialog
|
||||
|
@@ -1020,7 +1020,7 @@ IMPL_LINK_NOARG_TYPED(SwRedlineAcceptDlg, GotoHdl, Timer *, void)
|
||||
pTPView->EnableRejectAll( bEnable && !bOnlyFormatedRedlines && !bHasReadonlySel );
|
||||
}
|
||||
|
||||
IMPL_LINK_NOARG(SwRedlineAcceptDlg, CommandHdl)
|
||||
IMPL_LINK_NOARG_TYPED(SwRedlineAcceptDlg, CommandHdl, SvSimpleTable*, void)
|
||||
{
|
||||
const CommandEvent aCEvt(pTable->GetCommandEvent());
|
||||
|
||||
@@ -1185,8 +1185,6 @@ IMPL_LINK_NOARG(SwRedlineAcceptDlg, CommandHdl)
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SwRedlineAcceptDlg::Initialize(const OUString& rExtraData)
|
||||
|
Reference in New Issue
Block a user