diff options
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r-- | dbaccess/source/ui/dlg/adminpages.cxx | 6 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/adminpages.hxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/dbwizsetup.cxx | 5 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/tablespage.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/tablespage.hxx | 2 |
5 files changed, 9 insertions, 10 deletions
diff --git a/dbaccess/source/ui/dlg/adminpages.cxx b/dbaccess/source/ui/dlg/adminpages.cxx index c8de4cac85fc..3efb3bc15638 100644 --- a/dbaccess/source/ui/dlg/adminpages.cxx +++ b/dbaccess/source/ui/dlg/adminpages.cxx @@ -66,16 +66,16 @@ namespace dbaui SetExchangeSupport(); } - SfxTabPage::sfxpg OGenericAdministrationPage::DeactivatePage(SfxItemSet* _pSet) + DeactivateRC OGenericAdministrationPage::DeactivatePage(SfxItemSet* _pSet) { if (_pSet) { if (!prepareLeave()) - return KEEP_PAGE; + return DeactivateRC::KeepPage; FillItemSet(_pSet); } - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } void OGenericAdministrationPage::Reset(const SfxItemSet* _rCoreAttrs) diff --git a/dbaccess/source/ui/dlg/adminpages.hxx b/dbaccess/source/ui/dlg/adminpages.hxx index a3f0232d5870..f674ffd0bcec 100644 --- a/dbaccess/source/ui/dlg/adminpages.hxx +++ b/dbaccess/source/ui/dlg/adminpages.hxx @@ -125,7 +125,7 @@ namespace dbaui protected: /// default implementation: call FillItemSet, call prepareLeave, - virtual sfxpg DeactivatePage(SfxItemSet* pSet) override; + virtual DeactivateRC DeactivatePage(SfxItemSet* pSet) override; using SfxTabPage::DeactivatePage; /// default implementation: call implInitControls with the given item set and _bSaveValue = sal_False virtual void Reset(const SfxItemSet* _rCoreAttrs) override; diff --git a/dbaccess/source/ui/dlg/dbwizsetup.cxx b/dbaccess/source/ui/dlg/dbwizsetup.cxx index d24a01e82c08..73296378467a 100644 --- a/dbaccess/source/ui/dlg/dbwizsetup.cxx +++ b/dbaccess/source/ui/dlg/dbwizsetup.cxx @@ -650,7 +650,7 @@ bool ODbTypeWizDialogSetup::leaveState(WizardState _nState) resetPages(m_pImpl->getCurrentDataSource()); } SfxTabPage* pPage = static_cast<SfxTabPage*>(WizardDialog::GetPage(_nState)); - return pPage && pPage->DeactivatePage(m_pOutSet) != 0; + return pPage && pPage->DeactivatePage(m_pOutSet) != DeactivateRC::LeavePage; } void ODbTypeWizDialogSetup::setTitle(const OUString& /*_sTitle*/) @@ -659,9 +659,8 @@ void ODbTypeWizDialogSetup::setTitle(const OUString& /*_sTitle*/) // why? } -void ODbTypeWizDialogSetup::enableConfirmSettings( bool _bEnable ) +void ODbTypeWizDialogSetup::enableConfirmSettings( bool /*_bEnable*/ ) { - (void)_bEnable; } namespace diff --git a/dbaccess/source/ui/dlg/tablespage.cxx b/dbaccess/source/ui/dlg/tablespage.cxx index 127ea3a42460..9b682a64e143 100644 --- a/dbaccess/source/ui/dlg/tablespage.cxx +++ b/dbaccess/source/ui/dlg/tablespage.cxx @@ -384,9 +384,9 @@ namespace dbaui m_pTablesList->checkWildcard(m_pTablesList->getAllObjectsEntry()); } - SfxTabPage::sfxpg OTableSubscriptionPage::DeactivatePage(SfxItemSet* _pSet) + DeactivateRC OTableSubscriptionPage::DeactivatePage(SfxItemSet* _pSet) { - sfxpg nResult = OGenericAdministrationPage::DeactivatePage(_pSet); + DeactivateRC nResult = OGenericAdministrationPage::DeactivatePage(_pSet); // dispose the connection, we don't need it anymore, so we're not wasting resources try diff --git a/dbaccess/source/ui/dlg/tablespage.hxx b/dbaccess/source/ui/dlg/tablespage.hxx index 6e1acc955d93..1ff3c602d763 100644 --- a/dbaccess/source/ui/dlg/tablespage.hxx +++ b/dbaccess/source/ui/dlg/tablespage.hxx @@ -50,7 +50,7 @@ namespace dbaui public: virtual bool FillItemSet(SfxItemSet* _rCoreAttrs) override; - virtual sfxpg DeactivatePage(SfxItemSet* _pSet) override; + virtual DeactivateRC DeactivatePage(SfxItemSet* _pSet) override; using OGenericAdministrationPage::DeactivatePage; virtual void StateChanged( StateChangedType nStateChange ) override; |