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 /svtools/source/filter | |
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 'svtools/source/filter')
-rw-r--r-- | svtools/source/filter/exportdialog.cxx | 12 | ||||
-rw-r--r-- | svtools/source/filter/exportdialog.hxx | 1 |
2 files changed, 9 insertions, 4 deletions
diff --git a/svtools/source/filter/exportdialog.cxx b/svtools/source/filter/exportdialog.cxx index e675a2703a99..c1613961cdfd 100644 --- a/svtools/source/filter/exportdialog.cxx +++ b/svtools/source/filter/exportdialog.cxx @@ -658,7 +658,7 @@ ExportDialog::ExportDialog(FltCallDialogParameter& rPara, setupControls(); // Size - mpLbSizeX->SetSelectHdl( LINK( this, ExportDialog, SelectHdl ) ); + mpLbSizeX->SetSelectHdl( LINK( this, ExportDialog, SelectListBoxHdl ) ); if (mpSbCompression) mpSbCompression->SetScrollHdl(LINK(this, ExportDialog, SbCompressionUpdateHdl)); @@ -669,9 +669,9 @@ ExportDialog::ExportDialog(FltCallDialogParameter& rPara, mpMfSizeY->SetModifyHdl( LINK( this, ExportDialog, UpdateHdlMtfSizeY ) ); mpNfResolution->SetModifyHdl( LINK( this, ExportDialog, UpdateHdlNfResolution ) ); - mpLbResolution->SetSelectHdl( LINK( this, ExportDialog, SelectHdl ) ); + mpLbResolution->SetSelectHdl( LINK( this, ExportDialog, SelectListBoxHdl ) ); - mpLbColorDepth->SetSelectHdl( LINK( this, ExportDialog, SelectHdl ) ); + mpLbColorDepth->SetSelectHdl( LINK( this, ExportDialog, SelectListBoxHdl ) ); mpCbInterlaced->SetClickHdl( LINK( this, ExportDialog, UpdateHdl ) ); @@ -1030,9 +1030,13 @@ void ExportDialog::dispose() \************************************************************************/ IMPL_LINK_NOARG(ExportDialog, SelectHdl) { - UpdateHdl(NULL); + updateControls(); return 0; } +IMPL_LINK_NOARG_TYPED(ExportDialog, SelectListBoxHdl, ListBox&, void) +{ + updateControls(); +} IMPL_LINK_NOARG_TYPED(ExportDialog, UpdateHdl, Button*, void) { updateControls(); diff --git a/svtools/source/filter/exportdialog.hxx b/svtools/source/filter/exportdialog.hxx index 0dc3dd05c054..61f86e7c0303 100644 --- a/svtools/source/filter/exportdialog.hxx +++ b/svtools/source/filter/exportdialog.hxx @@ -143,6 +143,7 @@ private: DECL_LINK_TYPED( UpdateHdl, Button*, void ); + DECL_LINK_TYPED( SelectListBoxHdl, ListBox&, void ); DECL_LINK( SelectHdl, void* ); DECL_LINK( UpdateHdlMtfSizeX, void* ); DECL_LINK( UpdateHdlMtfSizeY, void* ); |