diff options
Diffstat (limited to 'svtools/source/dialogs/wizardmachine.cxx')
-rw-r--r-- | svtools/source/dialogs/wizardmachine.cxx | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/svtools/source/dialogs/wizardmachine.cxx b/svtools/source/dialogs/wizardmachine.cxx index b39fba449589..14407ac5a2d4 100644 --- a/svtools/source/dialogs/wizardmachine.cxx +++ b/svtools/source/dialogs/wizardmachine.cxx @@ -505,28 +505,24 @@ namespace svt } - void OWizardMachine::skip(sal_Int32 _nSteps) + void OWizardMachine::skip() { - DBG_ASSERT(_nSteps > 0, "OWizardMachine::skip: invalid number of steps!"); // allowed to leave the current page? if ( !prepareLeaveCurrentState( eTravelForward ) ) return; WizardState nCurrentState = getCurrentState(); WizardState nNextState = determineNextState(nCurrentState); - // loop _nSteps steps - while (_nSteps-- > 0) - { - if (WZS_INVALID_STATE == nNextState) - return; - // remember the skipped state in the history - m_pImpl->aStateHistory.push(nCurrentState); + if (WZS_INVALID_STATE == nNextState) + return; - // get the next state - nCurrentState = nNextState; - nNextState = determineNextState(nCurrentState); - } + // remember the skipped state in the history + m_pImpl->aStateHistory.push(nCurrentState); + + // get the next state + nCurrentState = nNextState; + nNextState = determineNextState(nCurrentState); // show the (n+1)th page if (!ShowPage(nCurrentState)) @@ -615,9 +611,9 @@ namespace svt } - void OWizardMachine::enableAutomaticNextButtonState( bool _bEnable ) + void OWizardMachine::enableAutomaticNextButtonState() { - m_pImpl->m_bAutoNextButtonState = _bEnable; + m_pImpl->m_bAutoNextButtonState = true; } |