diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-08-22 11:15:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-08-22 18:26:41 +0200 |
commit | d661cb17610af93b1607025284f23187c6d2fc06 (patch) | |
tree | 855cf44dd6d3cb6232b0aaa2087da770350d202a /dbaccess | |
parent | 38001018fa06f721cf87edae923b54ce9a5ab5a7 (diff) |
weld chart CreationWizard
Change-Id: I7ee88c1e1b0eca5c2510a4bbba8b60c0d8a4e3e8
Reviewed-on: https://gerrit.libreoffice.org/77954
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/UIConfig_dbaccess.mk | 1 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/dbwizsetup.cxx | 9 | ||||
-rw-r--r-- | dbaccess/source/ui/inc/dbwizsetup.hxx | 1 | ||||
-rw-r--r-- | dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx | 5 | ||||
-rw-r--r-- | dbaccess/uiconfig/ui/databasewizard.ui | 18 |
5 files changed, 13 insertions, 21 deletions
diff --git a/dbaccess/UIConfig_dbaccess.mk b/dbaccess/UIConfig_dbaccess.mk index ff79be062c22..eacb9eb112c2 100644 --- a/dbaccess/UIConfig_dbaccess.mk +++ b/dbaccess/UIConfig_dbaccess.mk @@ -21,7 +21,6 @@ $(eval $(call gb_UIConfig_add_uifiles,dbaccess, \ dbaccess/uiconfig/ui/colwidthdialog \ dbaccess/uiconfig/ui/connectionpage \ dbaccess/uiconfig/ui/copytablepage \ - dbaccess/uiconfig/ui/databasewizard \ dbaccess/uiconfig/ui/dbaseindexdialog \ dbaccess/uiconfig/ui/dbasepage \ dbaccess/uiconfig/ui/dbwizconnectionpage \ diff --git a/dbaccess/source/ui/dlg/dbwizsetup.cxx b/dbaccess/source/ui/dlg/dbwizsetup.cxx index e878a7d611eb..78ec885efa14 100644 --- a/dbaccess/source/ui/dlg/dbwizsetup.cxx +++ b/dbaccess/source/ui/dlg/dbwizsetup.cxx @@ -68,6 +68,7 @@ #include <com/sun/star/ucb/IOErrorCode.hpp> #include <com/sun/star/task/InteractionHandler.hpp> #include <com/sun/star/task/XInteractionHandler2.hpp> +#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp> #include <com/sun/star/ui/dialogs/TemplateDescription.hpp> #include <svl/filenotation.hxx> @@ -173,6 +174,14 @@ ODbTypeWizDialogSetup::ODbTypeWizDialogSetup(weld::Window* _pParent m_xAssistant->set_current_page(0); } +short ODbTypeWizDialogSetup::run() +{ + int nRet = vcl::RoadmapWizardMachine::run(); + if (nRet == static_cast<int>(WizardButtonFlags::FINISH)) + return ui::dialogs::ExecutableDialogResults::OK; + return ui::dialogs::ExecutableDialogResults::CANCEL; +} + void ODbTypeWizDialogSetup::declareAuthDepPath( const OUString& _sURL, PathId _nPathId, const vcl::RoadmapWizardTypes::WizardPath& _rPaths) { bool bHasAuthentication = DataSourceMetaData::getAuthentication( _sURL ) != AuthNone; diff --git a/dbaccess/source/ui/inc/dbwizsetup.hxx b/dbaccess/source/ui/inc/dbwizsetup.hxx index 16969b467ee3..171c58bfbba1 100644 --- a/dbaccess/source/ui/inc/dbwizsetup.hxx +++ b/dbaccess/source/ui/inc/dbwizsetup.hxx @@ -118,6 +118,7 @@ public: */ bool IsTableWizardToBeStarted() const; + virtual short run() override; private: /// to override to create new pages virtual VclPtr<TabPage> createPage(WizardState _nState) override; diff --git a/dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx b/dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx index 8361a2325cea..e372cbec082b 100644 --- a/dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx +++ b/dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx @@ -26,6 +26,7 @@ #include <com/sun/star/beans/PropertyAttribute.hpp> #include <com/sun/star/sdb/XOfficeDatabaseDocument.hpp> #include <com/sun/star/sdbc/XDataSource.hpp> +#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp> #include <comphelper/processfactory.hxx> #include <vcl/svapp.hxx> @@ -111,9 +112,9 @@ svt::OGenericUnoDialog::Dialog ODBTypeWizDialogSetup::createDialog(const css::un return svt::OGenericUnoDialog::Dialog(std::make_unique<ODbTypeWizDialogSetup>(Application::GetFrameWeld(rParent), m_pDatasourceItems.get(), m_aContext, m_aInitialSelection)); } -void ODBTypeWizDialogSetup::executedDialog(sal_Int16 _nExecutionResult) +void ODBTypeWizDialogSetup::executedDialog(sal_Int16 nExecutionResult) { - if ( _nExecutionResult == RET_OK ) + if (nExecutionResult == css::ui::dialogs::ExecutableDialogResults::OK) { const ODbTypeWizDialogSetup* pDialog = static_cast<ODbTypeWizDialogSetup*>(m_aDialog.m_xWeldDialog.get()); m_bOpenDatabase = pDialog->IsDatabaseDocumentToBeOpened(); diff --git a/dbaccess/uiconfig/ui/databasewizard.ui b/dbaccess/uiconfig/ui/databasewizard.ui deleted file mode 100644 index 5f07332a825e..000000000000 --- a/dbaccess/uiconfig/ui/databasewizard.ui +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.22.1 --> -<interface domain="dba"> - <requires lib="gtk+" version="3.20"/> - <object class="GtkAssistant" id="DatabaseWizard"> - <property name="can_focus">True</property> - <property name="border_width">6</property> - <property name="title" translatable="yes" context="databasewizard|DatabaseWizard">Database Wizard</property> - <property name="modal">True</property> - <property name="default_width">0</property> - <property name="default_height">0</property> - <property name="type_hint">dialog</property> - <property name="use_header_bar">0</property> - <child> - <placeholder/> - </child> - </object> -</interface> |