Kaydet (Commit) 64ed833c authored tarafından Caolán McNamara's avatar Caolán McNamara

weld SvxConnectionDialog

Change-Id: Id240f3cc62775888d23634a203ae8e2de07f7caf
Reviewed-on: https://gerrit.libreoffice.org/61082
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 3120c972
...@@ -1370,8 +1370,8 @@ VclPtr<SfxAbstractDialog> AbstractDialogFactory_Impl::CreateSfxDialog(vcl::Windo ...@@ -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)); return VclPtr<CuiAbstractController_Impl>::Create(o3tl::make_unique<SvxMeasureDialog>(pParent ? pParent->GetFrameWeld() : nullptr, rAttr, pView));
} }
case RID_SVXPAGE_CONNECTION : case RID_SVXPAGE_CONNECTION :
pDlg = VclPtr<SvxConnectionDialog>::Create( pParent, rAttr, pView ); return VclPtr<CuiAbstractController_Impl>::Create(o3tl::make_unique<SvxConnectionDialog>(pParent ? pParent->GetFrameWeld() : nullptr, rAttr, pView));
break;
case RID_SFXPAGE_DBREGISTER : case RID_SFXPAGE_DBREGISTER :
pDlg = VclPtr<DatabaseRegistrationDialog>::Create( pParent, rAttr ); pDlg = VclPtr<DatabaseRegistrationDialog>::Create( pParent, rAttr );
break; break;
......
...@@ -75,11 +75,11 @@ public: ...@@ -75,11 +75,11 @@ public:
/* Derived from SfxSingleTabDialog, in order to be informed about /* Derived from SfxSingleTabDialog, in order to be informed about
virtual methods by the control. */ virtual methods by the control. */
class SvxConnectionDialog : public SfxSingleTabDialog class SvxConnectionDialog : public SfxSingleTabDialogController
{ {
public: public:
SvxConnectionDialog( vcl::Window* pParent, const SfxItemSet& rAttr, SvxConnectionDialog(weld::Window* pParent, const SfxItemSet& rAttr,
const SdrView* pView ); const SdrView* pView);
}; };
#endif // INCLUDED_CUI_SOURCE_INC_CONNECT_HXX #endif // INCLUDED_CUI_SOURCE_INC_CONNECT_HXX
......
...@@ -49,17 +49,17 @@ const sal_uInt16 SvxConnectionPage::pRanges[] = ...@@ -49,17 +49,17 @@ const sal_uInt16 SvxConnectionPage::pRanges[] =
|* |*
\************************************************************************/ \************************************************************************/
SvxConnectionDialog::SvxConnectionDialog( vcl::Window* pParent, const SfxItemSet& rInAttrs, SvxConnectionDialog::SvxConnectionDialog(weld::Window* pParent, const SfxItemSet& rInAttrs, const SdrView* pSdrView)
const SdrView* pSdrView ) : SfxSingleTabDialogController(pParent, rInAttrs)
: SfxSingleTabDialog(pParent, rInAttrs)
{ {
VclPtrInstance<SvxConnectionPage> _pPage( get_content_area(), rInAttrs ); TabPageParent pPageParent(get_content_area(), this);
VclPtrInstance<SvxConnectionPage> pPage(pPageParent, rInAttrs);
_pPage->SetView( pSdrView ); pPage->SetView(pSdrView);
_pPage->Construct(); pPage->Construct();
SetTabPage( _pPage ); SetTabPage(pPage);
SetText(CuiResId( RID_SVXSTR_CONNECTOR )); m_xDialog->set_title(CuiResId( RID_SVXSTR_CONNECTOR));
} }
/************************************************************************* /*************************************************************************
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<child> <child>
<object class="GtkComboBoxText" id="LB_TYPE"> <object class="GtkComboBoxText" id="LB_TYPE">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">False</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment