summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-03 12:57:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-03 16:34:31 +0200
commit09f77e8ed51fc64fccc6a14e87eed48b2f15a28d (patch)
tree2446785df473c004b44bbf03f8eb76584868a1e6 /vcl/source/control
parentf29aa28100b899252a3419578be5d39e84863c36 (diff)
loplugin:unusedmethods
Change-Id: I9790d053248ae6bd58ecc026c774014c4e5e04aa Reviewed-on: https://gerrit.libreoffice.org/80115 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/roadmapwizard.cxx73
-rw-r--r--vcl/source/control/wizardmachine.cxx77
2 files changed, 0 insertions, 150 deletions
diff --git a/vcl/source/control/roadmapwizard.cxx b/vcl/source/control/roadmapwizard.cxx
index a046db704de0..513f319cbf45 100644
--- a/vcl/source/control/roadmapwizard.cxx
+++ b/vcl/source/control/roadmapwizard.cxx
@@ -226,23 +226,6 @@ namespace vcl
m_xAssistant->set_page_side_help_id(rId);
}
- void RoadmapWizard::SetRoadmapInteractive( bool _bInteractive )
- {
- m_xRoadmapImpl->pRoadmap->SetRoadmapInteractive( _bInteractive );
- }
-
- void RoadmapWizard::declarePath( PathId _nPathId, const WizardPath& _lWizardStates)
- {
-
- m_xRoadmapImpl->aPaths.emplace( _nPathId, _lWizardStates );
-
- if ( m_xRoadmapImpl->aPaths.size() == 1 )
- // the very first path -> activate it
- activatePath( _nPathId );
- else
- implUpdateRoadmap( );
- }
-
void RoadmapWizardMachine::declarePath( PathId _nPathId, const WizardPath& _lWizardStates)
{
m_pImpl->aPaths.emplace( _nPathId, _lWizardStates );
@@ -664,34 +647,6 @@ namespace vcl
return *rPath.rbegin() != getCurrentState();
}
- void RoadmapWizard::updateTravelUI()
- {
- const IWizardPageController* pController = getPageController( GetPage( getCurrentState() ) );
- OSL_ENSURE( pController != nullptr, "RoadmapWizard::updateTravelUI: no controller for the current page!" );
-
- bool bCanAdvance =
- ( !pController || pController->canAdvance() ) // the current page allows to advance
- && canAdvance(); // the dialog as a whole allows to advance
- enableButtons( WizardButtonFlags::NEXT, bCanAdvance );
-
- // disable the "Previous" button if all states in our history are disabled
- std::vector< WizardTypes::WizardState > aHistory;
- getStateHistory( aHistory );
- bool bHaveEnabledState = false;
- for (auto const& state : aHistory)
- {
- if ( isStateEnabled(state) )
- {
- bHaveEnabledState = true;
- break;
- }
- }
-
- enableButtons( WizardButtonFlags::PREVIOUS, bHaveEnabledState );
-
- implUpdateRoadmap();
- }
-
void RoadmapWizardMachine::updateTravelUI()
{
WizardMachine::updateTravelUI();
@@ -866,21 +821,6 @@ namespace vcl
return pPage;
}
- void RoadmapWizard::enableState( WizardTypes::WizardState _nState, bool _bEnable )
- {
- // remember this (in case the state appears in the roadmap later on)
- if ( _bEnable )
- m_xRoadmapImpl->aDisabledStates.erase( _nState );
- else
- {
- m_xRoadmapImpl->aDisabledStates.insert( _nState );
- removePageFromHistory( _nState );
- }
-
- // if the state is currently in the roadmap, reflect it's new status
- m_xRoadmapImpl->pRoadmap->EnableRoadmapItem( static_cast<RoadmapTypes::ItemId>(_nState), _bEnable );
- }
-
void RoadmapWizardMachine::enableState( WizardTypes::WizardState _nState, bool _bEnable )
{
// remember this (in case the state appears in the roadmap later on)
@@ -896,19 +836,6 @@ namespace vcl
m_xAssistant->set_page_sensitive(OString::number(_nState), _bEnable);
}
- bool RoadmapWizard::knowsState( WizardTypes::WizardState i_nState ) const
- {
- for (auto const& path : m_xRoadmapImpl->aPaths)
- {
- for (auto const& state : path.second)
- {
- if ( state == i_nState )
- return true;
- }
- }
- return false;
- }
-
bool RoadmapWizardMachine::knowsState( WizardTypes::WizardState i_nState ) const
{
for (auto const& path : m_pImpl->aPaths)
diff --git a/vcl/source/control/wizardmachine.cxx b/vcl/source/control/wizardmachine.cxx
index 8944725b996b..c049f9a3e987 100644
--- a/vcl/source/control/wizardmachine.cxx
+++ b/vcl/source/control/wizardmachine.cxx
@@ -535,12 +535,6 @@ namespace vcl
return Dialog::EventNotify( rNEvt );
}
- void RoadmapWizard::setTitleBase(const OUString& _rTitleBase)
- {
- m_xWizardImpl->sTitleBase = _rTitleBase;
- implUpdateTitle();
- }
-
TabPage* RoadmapWizard::GetOrCreatePage( const WizardTypes::WizardState i_nState )
{
if ( nullptr == GetPage( i_nState ) )
@@ -578,39 +572,6 @@ namespace vcl
enterState( nCurrentLevel );
}
- void RoadmapWizard::defaultButton(WizardButtonFlags _nWizardButtonFlags)
- {
- // the new default button
- PushButton* pNewDefButton = nullptr;
- if (m_pFinish && (_nWizardButtonFlags & WizardButtonFlags::FINISH))
- pNewDefButton = m_pFinish;
- if (m_pNextPage && (_nWizardButtonFlags & WizardButtonFlags::NEXT))
- pNewDefButton = m_pNextPage;
- if (m_pPrevPage && (_nWizardButtonFlags & WizardButtonFlags::PREVIOUS))
- pNewDefButton = m_pPrevPage;
- if (m_pHelp && (_nWizardButtonFlags & WizardButtonFlags::HELP))
- pNewDefButton = m_pHelp;
- if (m_pCancel && (_nWizardButtonFlags & WizardButtonFlags::CANCEL))
- pNewDefButton = m_pCancel;
-
- if ( pNewDefButton )
- defaultButton( pNewDefButton );
- else
- implResetDefault( this );
- }
-
- bool RoadmapWizard::ShowNextPage()
- {
- return ShowPage( mnCurLevel+1 );
- }
-
- bool RoadmapWizard::ShowPrevPage()
- {
- if ( !mnCurLevel )
- return false;
- return ShowPage( mnCurLevel-1 );
- }
-
bool RoadmapWizard::ShowPage( sal_uInt16 nLevel )
{
mnCurLevel = nLevel;
@@ -892,39 +853,6 @@ namespace vcl
return true;
}
- void RoadmapWizard::skip()
- {
- // allowed to leave the current page?
- if ( !prepareLeaveCurrentState( WizardTypes::eTravelForward ) )
- return;
-
- WizardTypes::WizardState nCurrentState = getCurrentState();
- WizardTypes::WizardState nNextState = determineNextState(nCurrentState);
-
- if (WZS_INVALID_STATE == nNextState)
- return;
-
- // remember the skipped state in the history
- m_xWizardImpl->aStateHistory.push(nCurrentState);
-
- // get the next state
- nCurrentState = nNextState;
-
- // show the (n+1)th page
- if (!ShowPage(nCurrentState))
- {
- // TODO: this leaves us in a state where we have no current page and an inconsistent state history.
- // Perhaps we should rollback the skipping here...
- OSL_FAIL("RoadmapWizard::skip: very unpolite...");
- // if somebody does a skip and then does not allow to leave...
- // (can't be a commit error, as we've already committed the current page. So if ShowPage fails here,
- // somebody behaves really strange...)
- return;
- }
-
- // all fine
- }
-
bool RoadmapWizard::travelNext()
{
// allowed to leave the current page?
@@ -993,11 +921,6 @@ namespace vcl
}
}
- void RoadmapWizard::enableAutomaticNextButtonState()
- {
- m_xWizardImpl->m_bAutoNextButtonState = true;
- }
-
bool RoadmapWizard::isAutomaticNextButtonStateEnabled() const
{
return m_xWizardImpl->m_bAutoNextButtonState;