diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-19 09:11:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-26 11:15:35 +0200 |
commit | 167bc621ef825ed5b961502fe9324a675ee34e42 (patch) | |
tree | 523838d8adc14a62f846529ee6eab3343b2fe87b /sc/source/ui/miscdlgs/scuiautofmt.cxx | |
parent | 46a27805fb707544a844a961a3743b8b992282f0 (diff) |
Convert vcl Button Link<> click handler to typed Link<Button*,void>
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
Diffstat (limited to 'sc/source/ui/miscdlgs/scuiautofmt.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/scuiautofmt.cxx | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/sc/source/ui/miscdlgs/scuiautofmt.cxx b/sc/source/ui/miscdlgs/scuiautofmt.cxx index fb7f9ffafe4d..f12eab8a8af0 100644 --- a/sc/source/ui/miscdlgs/scuiautofmt.cxx +++ b/sc/source/ui/miscdlgs/scuiautofmt.cxx @@ -163,7 +163,7 @@ void ScAutoFormatDlg::UpdateChecks() // Handler: -IMPL_LINK( ScAutoFormatDlg, CloseHdl, PushButton *, pBtn ) +IMPL_LINK_TYPED( ScAutoFormatDlg, CloseHdl, Button *, pBtn, void ) { if (pBtn == m_pBtnOk || pBtn == m_pBtnCancel) { @@ -172,7 +172,6 @@ IMPL_LINK( ScAutoFormatDlg, CloseHdl, PushButton *, pBtn ) EndDialog( (pBtn == m_pBtnOk) ? RET_OK : RET_CANCEL ); } - return 0; } IMPL_LINK_NOARG(ScAutoFormatDlg, DblClkHdl) @@ -184,7 +183,7 @@ IMPL_LINK_NOARG(ScAutoFormatDlg, DblClkHdl) return 0; } -IMPL_LINK( ScAutoFormatDlg, CheckHdl, Button *, pBtn ) +IMPL_LINK_TYPED( ScAutoFormatDlg, CheckHdl, Button *, pBtn, void ) { ScAutoFormatData* pData = pFormat->findByIndex(nIndex); bool bCheck = static_cast<CheckBox*>(pBtn)->IsChecked(); @@ -209,11 +208,9 @@ IMPL_LINK( ScAutoFormatDlg, CheckHdl, Button *, pBtn ) } m_pWndPreview->NotifyChange( pData ); - - return 0; } -IMPL_LINK_NOARG(ScAutoFormatDlg, AddHdl) +IMPL_LINK_NOARG_TYPED(ScAutoFormatDlg, AddHdl, Button*, void) { if ( !bFmtInserted && pSelFmtData ) { @@ -279,11 +276,9 @@ IMPL_LINK_NOARG(ScAutoFormatDlg, AddHdl) bOk = true; } } - - return 0; } -IMPL_LINK_NOARG(ScAutoFormatDlg, RemoveHdl) +IMPL_LINK_NOARG_TYPED(ScAutoFormatDlg, RemoveHdl, Button*, void) { if ( (nIndex > 0) && (m_pLbFormat->GetEntryCount() > 0) ) { @@ -317,11 +312,9 @@ IMPL_LINK_NOARG(ScAutoFormatDlg, RemoveHdl) } SelFmtHdl( 0 ); - - return 0; } -IMPL_LINK_NOARG(ScAutoFormatDlg, RenameHdl) +IMPL_LINK_NOARG_TYPED(ScAutoFormatDlg, RenameHdl, Button*, void) { bool bOk = false; while( !bOk ) @@ -400,8 +393,6 @@ IMPL_LINK_NOARG(ScAutoFormatDlg, RenameHdl) else bOk = true; } - - return 0; } IMPL_LINK_NOARG(ScAutoFormatDlg, SelFmtHdl) |