diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-16 14:36:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-17 08:19:34 +0200 |
commit | f4f05ab199101b9f11718ddc82e139815c1fc521 (patch) | |
tree | e3ea9e400cba956d69209e63332923bfee667f1f /svx/source/tbxctrls | |
parent | 5bda09efbec674fbda24f3adc75be9f0a45517ff (diff) |
convert Link<> to typed
Change-Id: I72074f247d9435e600a5cf84728753e72a83fe2e
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index eb9a3c88d758..fda39c5684c1 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -133,7 +133,7 @@ public: virtual void UserDraw( const UserDrawEvent& rUDEvt ) SAL_OVERRIDE; - void SetVisibilityListener( const Link<>& aVisListener ) { aVisibilityListener = aVisListener; } + void SetVisibilityListener( const Link<SvxStyleBox_Impl&,void>& aVisListener ) { aVisibilityListener = aVisListener; } void SetDefaultStyle( const OUString& rDefault ) { sDefaultStyle = rDefault; } @@ -147,7 +147,7 @@ private: sal_Int32 nCurSel; bool bRelease; Size aLogicalSize; - Link<> aVisibilityListener; + Link<SvxStyleBox_Impl&,void> aVisibilityListener; bool bVisible; Reference< XDispatchProvider > m_xDispatchProvider; Reference< XFrame > m_xFrame; @@ -557,13 +557,13 @@ void SvxStyleBox_Impl::StateChanged( StateChangedType nStateChange ) { bVisible = IsReallyVisible(); if ( aVisibilityListener.IsSet() ) - aVisibilityListener.Call( this ); + aVisibilityListener.Call( *this ); } else if ( nStateChange == StateChangedType::InitShow ) { bVisible = true; if ( aVisibilityListener.IsSet() ) - aVisibilityListener.Call( this ); + aVisibilityListener.Call( *this ); } } @@ -2397,7 +2397,7 @@ void SvxStyleToolBoxControl::SetFamilyState( sal_uInt16 nIdx, Update(); } -IMPL_LINK_NOARG(SvxStyleToolBoxControl, VisibilityNotification) +IMPL_LINK_NOARG_TYPED(SvxStyleToolBoxControl, VisibilityNotification, SvxStyleBox_Impl&, void) { // Call ReBind() && UnBind() according to visibility SvxStyleBox_Impl* pBox = static_cast<SvxStyleBox_Impl*>( GetToolBox().GetItemWindow( GetId() )); @@ -2415,8 +2415,6 @@ IMPL_LINK_NOARG(SvxStyleToolBoxControl, VisibilityNotification) pBoundItems[i]->UnBind(); unbindListener(); } - - return 0; } void SvxStyleToolBoxControl::StateChanged( |