diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-13 15:51:37 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-15 10:32:29 +0200 |
commit | 74dbe58f1e5b6f4f281e13f348c8952b1086877a (patch) | |
tree | fda8bd8374592491d3e64b02e4f3ca13879cf2d4 /svx | |
parent | fa21f301ddef575baad9a3aa8564199285e6d90b (diff) |
convert Link<> to typed
Change-Id: I2ef1e5fe5c6dc65c254b3a16b0b12fca5caba16e
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/dialcontrol.cxx | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/svx/source/dialog/dialcontrol.cxx b/svx/source/dialog/dialcontrol.cxx index 66ef7d827dd4..4b2169c02603 100644 --- a/svx/source/dialog/dialcontrol.cxx +++ b/svx/source/dialog/dialcontrol.cxx @@ -472,10 +472,19 @@ void DialControl::ImplSetFieldLink( const Link<>& rLink ) { NumericField& rField = *mpImpl->mpLinkField; rField.SetModifyHdl( rLink ); - rField.SetUpHdl( rLink ); - rField.SetDownHdl( rLink ); - rField.SetFirstHdl( rLink ); - rField.SetLastHdl( rLink ); + rField.SetUpHdl( LINK(this, DialControl, SpinFieldHdl) ); + rField.SetDownHdl( LINK(this, DialControl, SpinFieldHdl) ); + rField.SetFirstHdl( LINK(this, DialControl, SpinFieldHdl) ); + rField.SetLastHdl( LINK(this, DialControl, SpinFieldHdl) ); + } +} + +IMPL_LINK_NOARG_TYPED(DialControl, SpinFieldHdl, SpinField&, void) +{ + if( mpImpl->mpLinkField ) + { + NumericField& rField = *mpImpl->mpLinkField; + rField.GetModifyHdl().Call(&rField); } } |