summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-23 10:38:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-24 11:55:01 +0200
commitf8e06f7b77a6286d2c41bbc76f06a768c76cd87a (patch)
tree0aa5836b7dcdba477f0dfca47b24a5f9aa8bd952 /dbaccess/source/ui/inc
parentb85ff98383942360901b8242cf77366782400426 (diff)
weld AdvancedSettingsDialog
make run virtual and fold executes into it, so GenericUnoDialog can call run on tabdialogs to do the right thing, and allows Start_Impl to be private again Change-Id: Ic457edfbdc7457f4c49d4e8ad679903f38ad9b42 Reviewed-on: https://gerrit.libreoffice.org/62227 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess/source/ui/inc')
-rw-r--r--dbaccess/source/ui/inc/UITools.hxx11
-rw-r--r--dbaccess/source/ui/inc/advancedsettingsdlg.hxx22
2 files changed, 11 insertions, 22 deletions
diff --git a/dbaccess/source/ui/inc/UITools.hxx b/dbaccess/source/ui/inc/UITools.hxx
index 0c4ae7a85e64..6c7a7b546ea5 100644
--- a/dbaccess/source/ui/inc/UITools.hxx
+++ b/dbaccess/source/ui/inc/UITools.hxx
@@ -23,6 +23,7 @@
#include <comphelper/stl_types.hxx>
#include "TypeInfo.hxx"
#include <editeng/svxenum.hxx>
+#include <toolkit/helper/vclunohelper.hxx>
#include <vcl/taskpanelist.hxx>
#include <connectivity/dbtools.hxx>
@@ -46,6 +47,7 @@ namespace com { namespace sun { namespace star {
namespace awt
{
struct FontDescriptor;
+ class XWindow;
}
namespace sdbc
{
@@ -103,15 +105,6 @@ namespace dbaui
css::uno::Reference< css::lang::XEventListener> const & _rEvtLst,
css::uno::Reference< css::sdbc::XConnection>& _rOUTConnection );
- /** creates a error dialog which displays the SQLExceptionInfo. Also it supports a "more" button where detailed information are available
- @param _rInfo the error which should be shown, if the info is not valid no error dialog will appear
- @param _pParent the parent of the error dialog
- @param _rxContext need to create the dialog
- */
- void showError( const ::dbtools::SQLExceptionInfo& _rInfo,
- vcl::Window* _pParent,
- const css::uno::Reference< css::uno::XComponentContext >& _rxContext);
-
/** fills a map and a vector with localized type names
@param _rxConnection the connection to access the metadata
@param _rsTypeNames a list of localized type names separated with ';'
diff --git a/dbaccess/source/ui/inc/advancedsettingsdlg.hxx b/dbaccess/source/ui/inc/advancedsettingsdlg.hxx
index 459e46d19260..f2d6e68cd60d 100644
--- a/dbaccess/source/ui/inc/advancedsettingsdlg.hxx
+++ b/dbaccess/source/ui/inc/advancedsettingsdlg.hxx
@@ -21,9 +21,7 @@
#define INCLUDED_DBACCESS_SOURCE_UI_INC_ADVANCEDSETTINGSDLG_HXX
#include "IItemSetHelper.hxx"
-
#include <sfx2/tabdlg.hxx>
-
#include <memory>
namespace dbaui
@@ -33,23 +31,23 @@ namespace dbaui
class ODbDataSourceAdministrationHelper;
/** implements the advanced page dlg of the data source properties.
*/
- class AdvancedSettingsDialog :public SfxTabDialog
- ,public IItemSetHelper
- ,public IDatabaseSettingsDialog
+ class AdvancedSettingsDialog : public SfxTabDialogController
+ , public IItemSetHelper
+ , public IDatabaseSettingsDialog
{
std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl;
protected:
- virtual void PageCreated(sal_uInt16 _nId, SfxTabPage& _rPage) override;
+ virtual void PageCreated(const OString& rId, SfxTabPage& _rPage) override;
+ virtual short Ok() override;
public:
- AdvancedSettingsDialog( vcl::Window* _pParent
- ,SfxItemSet* _pItems
- ,const css::uno::Reference< css::uno::XComponentContext >& _rxORB
- ,const css::uno::Any& _aDataSourceName);
+ AdvancedSettingsDialog(weld::Window* pParent,
+ SfxItemSet* _pItems,
+ const css::uno::Reference< css::uno::XComponentContext >& _rxORB,
+ const css::uno::Any& _aDataSourceName);
virtual ~AdvancedSettingsDialog() override;
- virtual void dispose() override;
/// determines whether or not the given data source type has any advanced setting
static bool doesHaveAnyAdvancedSettings( const OUString& _sURL );
@@ -57,8 +55,6 @@ namespace dbaui
virtual const SfxItemSet* getOutputSet() const override;
virtual SfxItemSet* getWriteOutputSet() override;
- virtual short Execute() override;
-
// forwards to ODbDataSourceAdministrationHelper
virtual css::uno::Reference< css::uno::XComponentContext > getORB() const override;
virtual std::pair< css::uno::Reference< css::sdbc::XConnection >,bool> createConnection() override;