diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-07 15:18:12 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-08 08:16:47 +0200 |
commit | a7fde38aaeca29339c9371272ae34ee0b8ca31d2 (patch) | |
tree | cf67fa5ca40b46ccf2d611a329e5281c9b16997c /chart2/source | |
parent | c41906324acf933f906516af8f2c3305904ba3c4 (diff) |
convert Link<> to typed
Change-Id: I46e3f994d134f519258046f56263b4a42c1d97c2
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx | 7 | ||||
-rw-r--r-- | chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx | 4 |
2 files changed, 4 insertions, 7 deletions
diff --git a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx index 44f7acae528c..5dec3ea17d6c 100644 --- a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx +++ b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx @@ -349,7 +349,7 @@ void ThreeD_SceneIllumination_TabPage::applyLightSourcesToModel() m_aTimerTriggeredControllerLock.startTimer(); } -IMPL_LINK_NOARG(ThreeD_SceneIllumination_TabPage, PreviewChangeHdl) +IMPL_LINK_NOARG_TYPED(ThreeD_SceneIllumination_TabPage, PreviewChangeHdl, SvxLightCtl3D*, void) { m_aTimerTriggeredControllerLock.startTimer(); @@ -397,11 +397,9 @@ IMPL_LINK_NOARG(ThreeD_SceneIllumination_TabPage, PreviewChangeHdl) pInfo->aLightSource.aDirection = B3DVectorToDirection3D(static_cast<const SvxB3DVectorItem&>(a3DLightAttributes.Get(SDRATTR_3DSCENE_LIGHTDIRECTION_8)).GetValue()); applyLightSourcesToModel(); - - return 0; } -IMPL_LINK_NOARG(ThreeD_SceneIllumination_TabPage, PreviewSelectHdl) +IMPL_LINK_NOARG_TYPED(ThreeD_SceneIllumination_TabPage, PreviewSelectHdl, SvxLightCtl3D*, void) { sal_uInt32 nLightNumber = m_pCtl_Preview->GetSvx3DLightControl().GetSelectedLight(); if(nLightNumber<8) @@ -412,7 +410,6 @@ IMPL_LINK_NOARG(ThreeD_SceneIllumination_TabPage, PreviewSelectHdl) applyLightSourcesToModel(); } - return 0; } IMPL_LINK_TYPED( ThreeD_SceneIllumination_TabPage, ColorDialogHdl, Button*, pButton, void ) diff --git a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx index cb368ca33163..f8cec2693c06 100644 --- a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx +++ b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx @@ -63,8 +63,8 @@ private: DECL_LINK_TYPED( ClickLightSourceButtonHdl, Button*, void ); DECL_LINK( SelectColorHdl, ColorLB* ); DECL_LINK_TYPED( ColorDialogHdl, Button*, void ); - DECL_LINK( PreviewChangeHdl, void* ); - DECL_LINK( PreviewSelectHdl, void* ); + DECL_LINK_TYPED( PreviewChangeHdl, SvxLightCtl3D*, void ); + DECL_LINK_TYPED( PreviewSelectHdl, SvxLightCtl3D*, void ); void updatePreview(); |