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

convert Link<> to typed

and remove some dead code

Change-Id: I608ed684fafb33390d869f7ebd4000c53d7fb28d
üst 32673845
......@@ -356,7 +356,7 @@ void IconChoiceDialog::ShowPage(sal_uInt16 nId)
| select a page
|
\**********************************************************************/
IMPL_LINK_NOARG(IconChoiceDialog , ChosePageHdl_Impl)
IMPL_LINK_NOARG_TYPED(IconChoiceDialog , ChosePageHdl_Impl, SvtIconChoiceCtrl*, void)
{
SvxIconChoiceCtrlEntry *pEntry = m_pIconCtrl->GetSelectedEntry();
if ( !pEntry )
......@@ -368,8 +368,6 @@ IMPL_LINK_NOARG(IconChoiceDialog , ChosePageHdl_Impl)
{
ShowPage(*pId);
}
return 0L;
}
/**********************************************************************
......
......@@ -141,11 +141,11 @@ private:
bool bInOK;
bool bItemsReset;
DECL_LINK ( ChosePageHdl_Impl, void * );
DECL_LINK_TYPED(OkHdl, Button*, void);
DECL_LINK_TYPED(ApplyHdl, Button*, void);
DECL_LINK_TYPED(ResetHdl, Button*, void);
DECL_LINK_TYPED(CancelHdl, Button*, void);
DECL_LINK_TYPED( ChosePageHdl_Impl, SvtIconChoiceCtrl*, void );
DECL_LINK_TYPED( OkHdl, Button*, void );
DECL_LINK_TYPED( ApplyHdl, Button*, void) ;
DECL_LINK_TYPED( ResetHdl, Button*, void) ;
DECL_LINK_TYPED( CancelHdl, Button*, void );
IconChoicePageData* GetPageData ( sal_uInt16 nId );
void Start_Impl();
......
......@@ -157,7 +157,7 @@ bool OApplicationSwapWindow::onContainerSelected( ElementType _eType )
return false;
}
IMPL_LINK(OApplicationSwapWindow, OnContainerSelectHdl, SvtIconChoiceCtrl*, _pControl)
IMPL_LINK_TYPED(OApplicationSwapWindow, OnContainerSelectHdl, SvtIconChoiceCtrl*, _pControl, void)
{
SvxIconChoiceCtrlEntry* pEntry = _pControl->GetSelectedEntry();
ElementType eType = E_NONE;
......@@ -166,8 +166,6 @@ IMPL_LINK(OApplicationSwapWindow, OnContainerSelectHdl, SvtIconChoiceCtrl*, _pCo
eType = *static_cast<ElementType*>(pEntry->GetUserData());
onContainerSelected( eType ); // i87582
}
return 1L;
}
IMPL_LINK_NOARG_TYPED(OApplicationSwapWindow, ChangeToLastSelected, void*, void)
......
......@@ -37,7 +37,7 @@ namespace dbaui
void ImplInitSettings( bool bFont, bool bForeground, bool bBackground );
DECL_LINK( OnContainerSelectHdl, SvtIconChoiceCtrl* );
DECL_LINK_TYPED( OnContainerSelectHdl, SvtIconChoiceCtrl*, void );
DECL_LINK_TYPED( ChangeToLastSelected, void*, void );
protected:
virtual void DataChanged(const DataChangedEvent& rDCEvt) SAL_OVERRIDE;
......
......@@ -206,18 +206,14 @@ class SVT_DLLPUBLIC SvtIconChoiceCtrl : public Control
{
friend class SvxIconChoiceCtrl_Impl;
Link<> _aClickIconHdl;
Link<> _aDocRectChangedHdl;
Link<> _aVisRectChangedHdl;
KeyEvent* _pCurKeyEvent;
SvxIconChoiceCtrl_Impl* _pImp;
bool _bAutoFontColor;
Link<SvtIconChoiceCtrl*,void> _aClickIconHdl;
KeyEvent* _pCurKeyEvent;
SvxIconChoiceCtrl_Impl* _pImp;
bool _bAutoFontColor;
protected:
virtual void KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE;
void DocumentRectChanged();
void VisibleRectChanged();
virtual void Command( const CommandEvent& rCEvt ) SAL_OVERRIDE;
virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) SAL_OVERRIDE;
virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE;
......@@ -257,8 +253,8 @@ public:
void SetFont( const vcl::Font& rFont );
void SetPointFont( const vcl::Font& rFont );
void SetClickHdl( const Link<>& rLink ) { _aClickIconHdl = rLink; }
const Link<>& GetClickHdl() const { return _aClickIconHdl; }
void SetClickHdl( const Link<SvtIconChoiceCtrl*,void>& rLink ) { _aClickIconHdl = rLink; }
const Link<SvtIconChoiceCtrl*,void>& GetClickHdl() const { return _aClickIconHdl; }
using OutputDevice::SetBackground;
void SetBackground( const Wallpaper& rWallpaper );
......
......@@ -2751,13 +2751,11 @@ IMPL_LINK_NOARG_TYPED(SvxIconChoiceCtrl_Impl, AutoArrangeHdl, Idle *, void)
IMPL_LINK_NOARG_TYPED(SvxIconChoiceCtrl_Impl, VisRectChangedHdl, Idle *, void)
{
aVisRectChangedIdle.Stop();
pView->VisibleRectChanged();
}
IMPL_LINK_NOARG_TYPED(SvxIconChoiceCtrl_Impl, DocRectChangedHdl, Idle *, void)
{
aDocRectChangedIdle.Stop();
pView->DocumentRectChanged();
}
bool SvxIconChoiceCtrl_Impl::IsTextHit( SvxIconChoiceCtrlEntry* pEntry, const Point& rDocPos )
......
......@@ -194,16 +194,6 @@ Point SvtIconChoiceCtrl::GetPixelPos( const Point& rPosLogic ) const
return aPos;
}
void SvtIconChoiceCtrl::DocumentRectChanged()
{
_aDocRectChangedHdl.Call( this );
}
void SvtIconChoiceCtrl::VisibleRectChanged()
{
_aVisRectChangedHdl.Call( this );
}
void SvtIconChoiceCtrl::GetFocus()
{
_pImp->GetFocus();
......
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