diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-16 13:54:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-16 14:12:51 +0200 |
commit | 08e7bc6abd93947627e7a38646a02f9d44ddabed (patch) | |
tree | adc16b593ba5a05a08bc5bbe0817a7dc586fa1bd /sw | |
parent | 945965e525afb4b86d235822fff39de43b5f3f9a (diff) |
convert Link<> to typed
Change-Id: Iea90c0e46902936bde3b51475292999fa0ead934
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/dbui/mmaddressblockpage.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/dbui/mmaddressblockpage.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/dbui/mailmergehelper.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/inc/mailmergehelper.hxx | 4 |
4 files changed, 6 insertions, 7 deletions
diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx index 3eaf0e8d1bef..3a0cf443a898 100644 --- a/sw/source/ui/dbui/mmaddressblockpage.cxx +++ b/sw/source/ui/dbui/mmaddressblockpage.cxx @@ -248,7 +248,7 @@ IMPL_LINK_TYPED(SwMailMergeAddressBlockPage, AddressBlockHdl_Impl, Button*, pBox m_pWizard->UpdateRoadmap(); } -IMPL_LINK_NOARG(SwMailMergeAddressBlockPage, AddressBlockSelectHdl_Impl) +IMPL_LINK_NOARG_TYPED(SwMailMergeAddressBlockPage, AddressBlockSelectHdl_Impl, LinkParamNone*, void) { const sal_uInt16 nSel = m_pSettingsWIN->GetSelectedAddress(); const uno::Sequence< OUString> aBlocks = @@ -258,7 +258,6 @@ IMPL_LINK_NOARG(SwMailMergeAddressBlockPage, AddressBlockSelectHdl_Impl) m_pWizard->GetConfigItem().SetCurrentAddressBlockIndex( nSel ); GetWizard()->UpdateRoadmap(); GetWizard()->enableButtons(WizardButtonFlags::NEXT, GetWizard()->isStateEnabled(MM_GREETINGSPAGE)); - return 0; } IMPL_LINK_TYPED(SwMailMergeAddressBlockPage, HideParagraphsHdl_Impl, Button*, pBox, void) diff --git a/sw/source/ui/dbui/mmaddressblockpage.hxx b/sw/source/ui/dbui/mmaddressblockpage.hxx index f91287a8b667..b046df8130e8 100644 --- a/sw/source/ui/dbui/mmaddressblockpage.hxx +++ b/sw/source/ui/dbui/mmaddressblockpage.hxx @@ -68,7 +68,7 @@ class SwMailMergeAddressBlockPage : public svt::OWizardPage DECL_LINK_TYPED(AssignHdl_Impl, Button*, void); DECL_LINK_TYPED(AddressBlockHdl_Impl, Button*, void); DECL_LINK_TYPED(InsertDataHdl_Impl, Button*, void); - DECL_LINK(AddressBlockSelectHdl_Impl, void *); + DECL_LINK_TYPED(AddressBlockSelectHdl_Impl, LinkParamNone*, void); DECL_LINK_TYPED(HideParagraphsHdl_Impl, Button*, void); void EnableAddressBlock(bool bAll, bool bSelective); diff --git a/sw/source/uibase/dbui/mailmergehelper.cxx b/sw/source/uibase/dbui/mailmergehelper.cxx index f6da0d2596de..22160a2bec9c 100644 --- a/sw/source/uibase/dbui/mailmergehelper.cxx +++ b/sw/source/uibase/dbui/mailmergehelper.cxx @@ -379,7 +379,7 @@ void SwAddressPreview::MouseButtonDown( const MouseEvent& rMEvt ) pImpl->nSelectedAddress != (sal_uInt16)nSelect) { pImpl->nSelectedAddress = (sal_uInt16)nSelect; - m_aSelectHdl.Call(this); + m_aSelectHdl.Call(nullptr); } Invalidate(); } @@ -422,7 +422,7 @@ void SwAddressPreview::KeyInput( const KeyEvent& rKEvt ) pImpl->nSelectedAddress != (sal_uInt16)nSelect) { pImpl->nSelectedAddress = (sal_uInt16)nSelect; - m_aSelectHdl.Call(this); + m_aSelectHdl.Call(nullptr); Invalidate(); } } diff --git a/sw/source/uibase/inc/mailmergehelper.hxx b/sw/source/uibase/inc/mailmergehelper.hxx index a707fa5cdcda..a1cdbf66f2a9 100644 --- a/sw/source/uibase/inc/mailmergehelper.hxx +++ b/sw/source/uibase/inc/mailmergehelper.hxx @@ -61,7 +61,7 @@ class SW_DLLPUBLIC SwAddressPreview : public vcl::Window { VclPtr<ScrollBar> aVScrollBar; SwAddressPreview_Impl* pImpl; - Link<> m_aSelectHdl; + Link<LinkParamNone*,void> m_aSelectHdl; void DrawText_Impl(vcl::RenderContext& rRenderContext, const OUString& rAddress, const Point& rTopLeft, const Size& rSize, bool bIsSelected); @@ -109,7 +109,7 @@ public: static OUString FillData(const OUString& rAddress, SwMailMergeConfigItem& rConfigItem, const css::uno::Sequence<OUString>* pAssignments = 0); - void SetSelectHdl (const Link<>& rLink) { m_aSelectHdl = rLink; } + void SetSelectHdl (const Link<LinkParamNone*,void>& rLink) { m_aSelectHdl = rLink; } }; // iterate over an address block or a greeting line the iterator returns the |