summaryrefslogtreecommitdiff
path: root/sw/source/ui/envelp/envfmt.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-09-24 13:53:17 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-24 16:19:37 +0000
commite85b2333bce7b1dcae73861df6d90b48b9f4efe5 (patch)
tree21d066cecfbfda9ace96b26953ddcc3ae1764001 /sw/source/ui/envelp/envfmt.cxx
parentff6462e6307e6924dc6c8178043ae9032f4b4152 (diff)
convert Link<> to typed
Change-Id: I59d325c3b051690303a5841907317122fa1ec98b Reviewed-on: https://gerrit.libreoffice.org/18825 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/ui/envelp/envfmt.cxx')
-rw-r--r--sw/source/ui/envelp/envfmt.cxx17
1 files changed, 11 insertions, 6 deletions
diff --git a/sw/source/ui/envelp/envfmt.cxx b/sw/source/ui/envelp/envfmt.cxx
index b49ce96b1853..495af4caf296 100644
--- a/sw/source/ui/envelp/envfmt.cxx
+++ b/sw/source/ui/envelp/envfmt.cxx
@@ -156,12 +156,13 @@ SwEnvFormatPage::SwEnvFormatPage(vcl::Window* pParent, const SfxItemSet& rSet)
m_pSizeWidthField->SetDownHdl( aLk );
m_pSizeHeightField->SetDownHdl( aLk );
- m_pAddrLeftField->SetLoseFocusHdl( aLk );
- m_pAddrTopField->SetLoseFocusHdl( aLk );
- m_pSendLeftField->SetLoseFocusHdl( aLk );
- m_pSendTopField->SetLoseFocusHdl( aLk );
- m_pSizeWidthField->SetLoseFocusHdl( aLk );
- m_pSizeHeightField->SetLoseFocusHdl( aLk );
+ Link<Control&,void> aLk3 = LINK(this, SwEnvFormatPage, LoseFocusHdl);
+ m_pAddrLeftField->SetLoseFocusHdl( aLk3 );
+ m_pAddrTopField->SetLoseFocusHdl( aLk3 );
+ m_pSendLeftField->SetLoseFocusHdl( aLk3 );
+ m_pSendTopField->SetLoseFocusHdl( aLk3 );
+ m_pSizeWidthField->SetLoseFocusHdl( aLk3 );
+ m_pSizeHeightField->SetLoseFocusHdl( aLk3 );
Link<MenuButton *, void> aLk2 = LINK(this, SwEnvFormatPage, EditHdl );
m_pAddrEditButton->SetSelectHdl( aLk2 );
@@ -217,6 +218,10 @@ void SwEnvFormatPage::dispose()
}
+IMPL_LINK_TYPED( SwEnvFormatPage, LoseFocusHdl, Control&, rControl, void )
+{
+ ModifyHdl(static_cast<Edit*>(&rControl));
+}
IMPL_LINK( SwEnvFormatPage, ModifyHdl, Edit *, pEdit )
{
long lWVal = static_cast< long >(GetFieldVal(*m_pSizeWidthField ));