summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cui/source/factory/dlgfact.cxx4
-rw-r--r--cui/source/inc/connect.hxx6
-rw-r--r--cui/source/tabpages/connect.cxx16
-rw-r--r--cui/uiconfig/ui/connectortabpage.ui2
4 files changed, 14 insertions, 14 deletions
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx
index e48e1f87d11c..125e5cd73d89 100644
--- a/cui/source/factory/dlgfact.cxx
+++ b/cui/source/factory/dlgfact.cxx
@@ -1370,8 +1370,8 @@ VclPtr<SfxAbstractDialog> AbstractDialogFactory_Impl::CreateSfxDialog(vcl::Windo
return VclPtr<CuiAbstractController_Impl>::Create(o3tl::make_unique<SvxMeasureDialog>(pParent ? pParent->GetFrameWeld() : nullptr, rAttr, pView));
}
case RID_SVXPAGE_CONNECTION :
- pDlg = VclPtr<SvxConnectionDialog>::Create( pParent, rAttr, pView );
- break;
+ return VclPtr<CuiAbstractController_Impl>::Create(o3tl::make_unique<SvxConnectionDialog>(pParent ? pParent->GetFrameWeld() : nullptr, rAttr, pView));
+
case RID_SFXPAGE_DBREGISTER :
pDlg = VclPtr<DatabaseRegistrationDialog>::Create( pParent, rAttr );
break;
diff --git a/cui/source/inc/connect.hxx b/cui/source/inc/connect.hxx
index a7e499743275..50caaf5b370c 100644
--- a/cui/source/inc/connect.hxx
+++ b/cui/source/inc/connect.hxx
@@ -75,11 +75,11 @@ public:
/* Derived from SfxSingleTabDialog, in order to be informed about
virtual methods by the control. */
-class SvxConnectionDialog : public SfxSingleTabDialog
+class SvxConnectionDialog : public SfxSingleTabDialogController
{
public:
- SvxConnectionDialog( vcl::Window* pParent, const SfxItemSet& rAttr,
- const SdrView* pView );
+ SvxConnectionDialog(weld::Window* pParent, const SfxItemSet& rAttr,
+ const SdrView* pView);
};
#endif // INCLUDED_CUI_SOURCE_INC_CONNECT_HXX
diff --git a/cui/source/tabpages/connect.cxx b/cui/source/tabpages/connect.cxx
index cffd7806beeb..7e9b9385f282 100644
--- a/cui/source/tabpages/connect.cxx
+++ b/cui/source/tabpages/connect.cxx
@@ -49,17 +49,17 @@ const sal_uInt16 SvxConnectionPage::pRanges[] =
|*
\************************************************************************/
-SvxConnectionDialog::SvxConnectionDialog( vcl::Window* pParent, const SfxItemSet& rInAttrs,
- const SdrView* pSdrView )
- : SfxSingleTabDialog(pParent, rInAttrs)
+SvxConnectionDialog::SvxConnectionDialog(weld::Window* pParent, const SfxItemSet& rInAttrs, const SdrView* pSdrView)
+ : SfxSingleTabDialogController(pParent, rInAttrs)
{
- VclPtrInstance<SvxConnectionPage> _pPage( get_content_area(), rInAttrs );
+ TabPageParent pPageParent(get_content_area(), this);
+ VclPtrInstance<SvxConnectionPage> pPage(pPageParent, rInAttrs);
- _pPage->SetView( pSdrView );
- _pPage->Construct();
+ pPage->SetView(pSdrView);
+ pPage->Construct();
- SetTabPage( _pPage );
- SetText(CuiResId( RID_SVXSTR_CONNECTOR ));
+ SetTabPage(pPage);
+ m_xDialog->set_title(CuiResId( RID_SVXSTR_CONNECTOR));
}
/*************************************************************************
diff --git a/cui/uiconfig/ui/connectortabpage.ui b/cui/uiconfig/ui/connectortabpage.ui
index 7fab7a025659..25b0beb197d8 100644
--- a/cui/uiconfig/ui/connectortabpage.ui
+++ b/cui/uiconfig/ui/connectortabpage.ui
@@ -73,7 +73,7 @@
<child>
<object class="GtkComboBoxText" id="LB_TYPE">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <property name="can_focus">False</property>
</object>
<packing>
<property name="expand">False</property>