From aa687b22991e6c674b1d8653d52fbe9a50080174 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 29 May 2019 10:02:58 +0100 Subject: weld SfxDocumentInfoDialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I79d5d8973a19c0e639081ec61ac596620518d0b5 Reviewed-on: https://gerrit.libreoffice.org/73145 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sd/source/ui/docshell/docshel4.cxx | 11 +++++------ sd/source/ui/inc/DrawDocShell.hxx | 3 ++- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx index d86d94985adb..d9b9ff6e8e42 100644 --- a/sd/source/ui/docshell/docshel4.cxx +++ b/sd/source/ui/docshell/docshel4.cxx @@ -956,16 +956,15 @@ void DrawDocShell::OpenBookmark( const OUString& rBookmarkURL ) ( mpViewShell ? mpViewShell->GetViewFrame() : SfxViewFrame::Current() )->GetBindings().Execute( SID_OPENHYPERLINK, ppArgs ); } -VclPtr DrawDocShell::CreateDocumentInfoDialog( const SfxItemSet &rSet ) +std::unique_ptr DrawDocShell::CreateDocumentInfoDialog(weld::Window* pParent, const SfxItemSet &rSet) { - VclPtr pDlg = VclPtr::Create( nullptr, rSet ); - DrawDocShell* pDocSh = dynamic_cast< DrawDocShell *>( SfxObjectShell::Current() ); - + std::unique_ptr xDlg = std::make_unique(pParent, rSet); + DrawDocShell* pDocSh = dynamic_cast(SfxObjectShell::Current()); if( pDocSh == this ) { - pDlg->AddFontTabPage(); + xDlg->AddFontTabPage(); } - return pDlg; + return xDlg; } void DrawDocShell::setEditMode(DrawViewShell* pDrawViewShell, bool isMasterPage) diff --git a/sd/source/ui/inc/DrawDocShell.hxx b/sd/source/ui/inc/DrawDocShell.hxx index 88435a6e4d57..bc064d07dc45 100644 --- a/sd/source/ui/inc/DrawDocShell.hxx +++ b/sd/source/ui/inc/DrawDocShell.hxx @@ -98,7 +98,8 @@ public: virtual SfxStyleSheetBasePool* GetStyleSheetPool() override; virtual void FillClass(SvGlobalName* pClassName, SotClipboardFormatId* pFormat, OUString* pAppName, OUString* pFullTypeName, OUString* pShortTypeName, sal_Int32 nFileFormat, bool bTemplate = false ) const override; virtual void SetModified( bool = true ) override; - virtual VclPtr CreateDocumentInfoDialog( const SfxItemSet &rSet ) override; + virtual std::unique_ptr CreateDocumentInfoDialog(weld::Window* pParent, + const SfxItemSet &rSet) override; using SfxObjectShell::GetVisArea; using SfxShell::GetViewShell; -- cgit