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 /sfx2/source/dialog/printopt.cxx | |
parent | 46a27805fb707544a844a961a3743b8b992282f0 (diff) |
Convert vcl Button Link<> click handler to typed Link<Button*,void>
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
Diffstat (limited to 'sfx2/source/dialog/printopt.cxx')
-rw-r--r-- | sfx2/source/dialog/printopt.cxx | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/sfx2/source/dialog/printopt.cxx b/sfx2/source/dialog/printopt.cxx index 28a245325c58..8c25b8fefc72 100644 --- a/sfx2/source/dialog/printopt.cxx +++ b/sfx2/source/dialog/printopt.cxx @@ -271,22 +271,18 @@ void SfxCommonPrintOptionsTabPage::ImplSaveControls( PrinterOptions* pCurrentOpt } } -IMPL_LINK( SfxCommonPrintOptionsTabPage, ClickReduceTransparencyCBHdl, CheckBox*, pBox ) +IMPL_LINK_NOARG_TYPED( SfxCommonPrintOptionsTabPage, ClickReduceTransparencyCBHdl, Button*, void ) { - (void)pBox; //unused const bool bReduceTransparency = m_pReduceTransparencyCB->IsChecked(); m_pReduceTransparencyAutoRB->Enable( bReduceTransparency ); m_pReduceTransparencyNoneRB->Enable( bReduceTransparency ); m_pTransparencyCB->Enable( !bReduceTransparency ); - - return 0; } -IMPL_LINK( SfxCommonPrintOptionsTabPage, ClickReduceGradientsCBHdl, CheckBox*, pBox ) +IMPL_LINK_NOARG_TYPED( SfxCommonPrintOptionsTabPage, ClickReduceGradientsCBHdl, Button*, void ) { - (void)pBox; //unused const bool bEnable = m_pReduceGradientsCB->IsChecked(); m_pReduceGradientsStripesRB->Enable( bEnable ); @@ -294,13 +290,10 @@ IMPL_LINK( SfxCommonPrintOptionsTabPage, ClickReduceGradientsCBHdl, CheckBox*, p m_pReduceGradientsStepCountNF->Enable( bEnable ); ToggleReduceGradientsStripesRBHdl(m_pReduceGradientsStripesRB); - - return 0; } -IMPL_LINK( SfxCommonPrintOptionsTabPage, ClickReduceBitmapsCBHdl, CheckBox*, pBox ) +IMPL_LINK_NOARG_TYPED( SfxCommonPrintOptionsTabPage, ClickReduceBitmapsCBHdl, Button*, void ) { - (void)pBox; //unused const bool bEnable = m_pReduceBitmapsCB->IsChecked(); m_pReduceBitmapsOptimalRB->Enable( bEnable ); @@ -310,8 +303,6 @@ IMPL_LINK( SfxCommonPrintOptionsTabPage, ClickReduceBitmapsCBHdl, CheckBox*, pBo m_pReduceBitmapsResolutionLB->Enable( bEnable ); ToggleReduceBitmapsResolutionRBHdl(m_pReduceBitmapsResolutionRB); - - return 0; } IMPL_LINK( SfxCommonPrintOptionsTabPage, ToggleReduceGradientsStripesRBHdl, RadioButton*, pButton ) |