diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-10-04 15:05:38 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-12 10:48:13 +0000 |
commit | 3c99f8500f657ed84b316390d5175a6f5e56bc69 (patch) | |
tree | 749f16652560a50d409b12a23bf1a5d93b3cd2d5 /svx/source/dialog/ctredlin.cxx | |
parent | bbadb38539eb233ac45b267034066a7274181c65 (diff) |
convert Link<> to typed
Change-Id: Iec15042138e0715459b2c9e872a7464d75a6b1eb
Reviewed-on: https://gerrit.libreoffice.org/19305
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/dialog/ctredlin.cxx')
-rw-r--r-- | svx/source/dialog/ctredlin.cxx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/svx/source/dialog/ctredlin.cxx b/svx/source/dialog/ctredlin.cxx index 4e6e12a025ec..81c344b22784 100644 --- a/svx/source/dialog/ctredlin.cxx +++ b/svx/source/dialog/ctredlin.cxx @@ -586,8 +586,8 @@ SvxTPFilter::SvxTPFilter( vcl::Window * pParent) Link<> a3Link=LINK( this, SvxTPFilter, ModifyHdl); m_pEdRange->SetModifyHdl(a3Link); m_pEdComment->SetModifyHdl(a3Link); - m_pLbAction->SetSelectHdl(a3Link); - m_pLbAuthor->SetSelectHdl(a3Link); + m_pLbAction->SetSelectHdl(LINK( this, SvxTPFilter, ModifyListBoxHdl)); + m_pLbAuthor->SetSelectHdl(LINK( this, SvxTPFilter, ModifyListBoxHdl)); RowEnableHdl(m_pCbDate); RowEnableHdl(m_pCbAuthor); @@ -756,7 +756,7 @@ void SvxTPFilter::SetLastTime(const tools::Time &aTime) void SvxTPFilter::SetDateMode(sal_uInt16 nMode) { m_pLbDate->SelectEntryPos(nMode); - SelDateHdl(m_pLbDate); + SelDateHdl(*m_pLbDate); } SvxRedlinDateMode SvxTPFilter::GetDateMode() @@ -907,11 +907,10 @@ void SvxTPFilter::ShowAction(bool bShow) } -IMPL_LINK( SvxTPFilter, SelDateHdl, ListBox*, pLb ) +IMPL_LINK_TYPED( SvxTPFilter, SelDateHdl, ListBox&, rLb, void ) { ShowDateFields(static_cast<SvxRedlinDateMode>(m_pLbDate->GetSelectEntryPos())); - ModifyHdl(pLb); - return 0; + ModifyHdl(&rLb); } IMPL_LINK_TYPED( SvxTPFilter, RowEnableHdl, Button*, pButton, void ) @@ -923,7 +922,7 @@ IMPL_LINK_TYPED( SvxTPFilter, RowEnableHdl, Button*, pButton, void ) m_pLbDate->Invalidate(); EnableDateLine1(false); EnableDateLine2(false); - if(m_pCbDate->IsChecked()) SelDateHdl(m_pLbDate); + if(m_pCbDate->IsChecked()) SelDateHdl(*m_pLbDate); } else if (pCB == m_pCbAuthor) { @@ -975,6 +974,10 @@ IMPL_LINK( SvxTPFilter, ModifyHdl, void*, pCtr) } return 0; } +IMPL_LINK_NOARG_TYPED( SvxTPFilter, ModifyListBoxHdl, ListBox&, void) +{ + bModified=true; +} void SvxTPFilter::DeactivatePage() { |