diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-06-23 19:51:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-06-25 13:36:53 +0200 |
commit | 1942182a3d1817bc539229d7fda3af69f7e295b8 (patch) | |
tree | 1c7291efb486d4789c580671ef0ea2133251c92c /svx | |
parent | 2f00a7c61fff9c091f08b6aaa4f829cd34fb3745 (diff) |
weld HyperLink Dialog
Change-Id: Ic861b0a593505828a900fe2163125d6f5584a956
Reviewed-on: https://gerrit.libreoffice.org/74634
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/hyperdlg.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/svx/source/dialog/hyperdlg.cxx b/svx/source/dialog/hyperdlg.cxx index 20cb0dcecbd4..d08a17d6c06f 100644 --- a/svx/source/dialog/hyperdlg.cxx +++ b/svx/source/dialog/hyperdlg.cxx @@ -41,16 +41,18 @@ SvxHlinkDlgWrapper::SvxHlinkDlgWrapper( vcl::Window* _pParent, sal_uInt16 nId, { SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); - mpDlg = pFact->CreateSvxHpLinkDlg(_pParent, pBindings); - SetWindow( mpDlg->GetWindow() ); + mpDlg = pFact->CreateSvxHpLinkDlg(this, pBindings, _pParent->GetFrameWeld()); + SetController( mpDlg->GetController() ); SetVisible_Impl(false); vcl::Window* pTopWindow = nullptr; if ( pInfo->aSize.Width() != 0 && pInfo->aSize.Height() != 0 && (nullptr != (pTopWindow = SfxGetpApp()->GetTopWindow()))) { + weld::Dialog* pDialog = GetController()->getDialog(); + Size aParentSize( pTopWindow->GetSizePixel() ); - Size aDlgSize ( GetSizePixel () ); + Size aDlgSize(pDialog->get_size()); if( aParentSize.Width() < pInfo->aPos.X() ) pInfo->aPos.setX( aParentSize.Width()-aDlgSize.Width() < long(0.1*aParentSize.Width()) ? @@ -59,7 +61,7 @@ SvxHlinkDlgWrapper::SvxHlinkDlgWrapper( vcl::Window* _pParent, sal_uInt16 nId, pInfo->aPos.setY( aParentSize.Height()-aDlgSize.Height() < long(0.1*aParentSize.Height()) ? long(0.1*aParentSize.Height()) : aParentSize.Height()-aDlgSize.Height() ); - GetWindow()->SetPosPixel( pInfo->aPos ); + pDialog->window_move(pInfo->aPos.X(), pInfo->aPos.Y()); } SetHideNotDelete( true ); |