summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-13 13:17:30 +0200
committerNoel Grandin <noel@peralex.com>2015-10-15 09:58:34 +0200
commit99b21cc9f3f32284061be255f437b2954a7aada0 (patch)
treef26509e7b905d147bc14fcda9fd30e2861ed00e3 /sd
parentc837bfda8c646fe2f7ff789032dd9a6ee6fd396f (diff)
convert Link<> to typed
Change-Id: I6c55c74d47b13149c2fa210bb9de4e8c430c57cc
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/animations/CustomAnimationDialog.cxx11
1 files changed, 9 insertions, 2 deletions
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<FontNameBox> 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<FontNameBox>::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 )