diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-22 11:36:48 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-29 10:41:37 +0200 |
commit | aaa1861c49bf2549e1bddc461961871ac102a83d (patch) | |
tree | 5ed83702976b886b25484bdbb2465e03ec2ba19d /chart2 | |
parent | f6d4cd396803f568ca667ed5e4d7725ade99b5df (diff) |
convert WZB_ constants to scoped enum
Change-Id: If2f12ea54b57f32df23fc22fb8be0aa3c6f2e76e
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/dialogs/dlg_CreationWizard.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chart2/source/controller/dialogs/dlg_CreationWizard.cxx b/chart2/source/controller/dialogs/dlg_CreationWizard.cxx index 17da73233a6a..fbf84d893741 100644 --- a/chart2/source/controller/dialogs/dlg_CreationWizard.cxx +++ b/chart2/source/controller/dialogs/dlg_CreationWizard.cxx @@ -54,9 +54,9 @@ CreationWizard::CreationWizard( vcl::Window* pParent, const uno::Reference< fram , const uno::Reference< uno::XComponentContext >& xContext , sal_Int32 nOnePageOnlyIndex ) : svt::RoadmapWizard( pParent, - static_cast<sal_uInt32>((nOnePageOnlyIndex >= 0 && nOnePageOnlyIndex < nPageCount) - ? WZB_HELP | WZB_CANCEL | WZB_FINISH - : WZB_HELP | WZB_CANCEL | WZB_PREVIOUS | WZB_NEXT | WZB_FINISH) + (nOnePageOnlyIndex >= 0 && nOnePageOnlyIndex < nPageCount) + ? WizardButtonFlags::HELP | WizardButtonFlags::CANCEL | WizardButtonFlags::FINISH + : WizardButtonFlags::HELP | WizardButtonFlags::CANCEL | WizardButtonFlags::PREVIOUS | WizardButtonFlags::NEXT | WizardButtonFlags::FINISH ) , m_xChartModel(xChartModel,uno::UNO_QUERY) , m_xCC( xContext ) @@ -69,7 +69,7 @@ CreationWizard::CreationWizard( vcl::Window* pParent, const uno::Reference< fram , m_bCanTravel( true ) { m_pDialogModel.reset( new DialogModel( m_xChartModel, m_xCC )); - defaultButton( WZB_FINISH ); + defaultButton( WizardButtonFlags::FINISH ); if( m_nOnePageOnlyIndex < 0 || m_nOnePageOnlyIndex >= nPageCount ) { @@ -169,8 +169,8 @@ svt::WizardTypes::WizardState CreationWizard::determineNextState( WizardState nC void CreationWizard::enterState(WizardState nState) { m_aTimerTriggeredControllerLock.startTimer(); - enableButtons( WZB_PREVIOUS, bool( nState > m_nFirstState ) ); - enableButtons( WZB_NEXT, bool( nState < m_nLastState ) ); + enableButtons( WizardButtonFlags::PREVIOUS, bool( nState > m_nFirstState ) ); + enableButtons( WizardButtonFlags::NEXT, bool( nState < m_nLastState ) ); if( isStateEnabled( nState )) svt::RoadmapWizard::enterState(nState); } |