From 8ed2fb306ffa8c7fef336b858fc5074c309c3c9f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 4 Apr 2018 14:33:16 +0100 Subject: weld linkeditdialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit which enables changing FileDialogHelper over to welded Change-Id: I988342a6574cb7ed09b2724929e8c7117474a56c Reviewed-on: https://gerrit.libreoffice.org/52388 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sfx2/source/appl/lnkbase2.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sfx2/source/appl/lnkbase2.cxx') diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx index 82c6129b11bf..1c5b6154db73 100644 --- a/sfx2/source/appl/lnkbase2.cxx +++ b/sfx2/source/appl/lnkbase2.cxx @@ -47,7 +47,7 @@ struct BaseLink_Impl { Link m_aEndEditLink; LinkManager* m_pLinkMgr; - VclPtr m_pParentWin; + weld::Window* m_pParentWin; std::unique_ptr m_pFileDlg; bool m_bIsConnect; @@ -447,7 +447,7 @@ SvBaseLink::UpdateResult SvBaseLink::DataChanged( const OUString &, const css::u return SUCCESS; } -void SvBaseLink::Edit( vcl::Window* pParent, const Link& rEndEditHdl ) +void SvBaseLink::Edit(weld::Window* pParent, const Link& rEndEditHdl ) { pImpl->m_pParentWin = pParent; pImpl->m_aEndEditLink = rEndEditHdl; @@ -516,7 +516,7 @@ bool SvBaseLink::ExecuteEdit( const OUString& _rNewName ) else return false; - std::unique_ptr xBox(Application::CreateMessageDialog(pImpl->m_pParentWin->GetFrameWeld(), + std::unique_ptr xBox(Application::CreateMessageDialog(pImpl->m_pParentWin, VclMessageType::Warning, VclButtonsType::Ok, sError)); xBox->run(); } -- cgit