From 99b21cc9f3f32284061be255f437b2954a7aada0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 13 Oct 2015 13:17:30 +0200 Subject: convert Link<> to typed Change-Id: I6c55c74d47b13149c2fa210bb9de4e8c430c57cc --- sd/source/ui/animations/CustomAnimationDialog.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx index 065da7f17dc3..83b9c1af69ca 100644 --- a/sd/source/ui/animations/CustomAnimationDialog.cxx +++ b/sd/source/ui/animations/CustomAnimationDialog.cxx @@ -271,14 +271,16 @@ public: private: VclPtr mpControl; + Link<> maModifyHdl; + DECL_LINK_TYPED(ControlSelectHdl, ComboBox&, void); }; FontPropertyBox::FontPropertyBox( sal_Int32 nControlType, vcl::Window* pParent, const Any& rValue, const Link<>& rModifyHdl ) -: PropertySubControl( nControlType ) +: PropertySubControl( nControlType ), maModifyHdl(rModifyHdl) { mpControl = VclPtr::Create( pParent, WB_BORDER|WB_TABSTOP|WB_DROPDOWN ); mpControl->SetDropDownLineCount( 10 ); - mpControl->SetSelectHdl( rModifyHdl ); + mpControl->SetSelectHdl( LINK(this, FontPropertyBox, ControlSelectHdl) ); mpControl->SetHelpId( HID_SD_CUSTOMANIMATIONPANE_FONTPROPERTYBOX ); SfxObjectShell* pDocSh = SfxObjectShell::Current(); @@ -305,6 +307,11 @@ FontPropertyBox::FontPropertyBox( sal_Int32 nControlType, vcl::Window* pParent, setValue( rValue, aPresetId ); } +IMPL_LINK_TYPED(FontPropertyBox, ControlSelectHdl, ComboBox&, rBox, void) +{ + maModifyHdl.Call(&rBox); +} + void FontPropertyBox::setValue( const Any& rValue, const OUString& ) { if( mpControl ) -- cgit