From 3ff4800fe400de916c97f587322104af06cc0879 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 4 Apr 2018 10:22:34 +0100 Subject: weld SvInsertOleDlg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and weld SfxInsertFloatingFrameDialog and smuggle in the parent widget for the Gtk File dialog via an XWindow interface Change-Id: I971b3a0ffe661c9268115fd5d00bf8eee80e77b3 Reviewed-on: https://gerrit.libreoffice.org/52373 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/uibase/wrtsh/wrtsh1.cxx | 6 ++++-- sw/uiconfig/swriter/ui/autoformattable.ui | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'sw') diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx index 59962673e9ef..12a2c158da63 100644 --- a/sw/source/uibase/wrtsh/wrtsh1.cxx +++ b/sw/source/uibase/wrtsh/wrtsh1.cxx @@ -375,8 +375,10 @@ void SwWrtShell::InsertObject( const svt::EmbeddedObjectRef& xRef, SvGlobalName OString aCmd(".uno:"); aCmd += pSlot->GetUnoName(); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); - ScopedVclPtr pDlg( pFact->CreateInsertObjectDialog( GetWin(), OUString::fromUtf8( aCmd ), xStor, &aServerList )); - if ( pDlg ) + vcl::Window* pWin = GetWin(); + ScopedVclPtr pDlg(pFact->CreateInsertObjectDialog(pWin ? pWin->GetFrameWeld() : nullptr, + OUString::fromUtf8( aCmd ), xStor, &aServerList)); + if (pDlg) { pDlg->Execute(); bDoVerb = pDlg->IsCreateNew(); diff --git a/sw/uiconfig/swriter/ui/autoformattable.ui b/sw/uiconfig/swriter/ui/autoformattable.ui index 1d9a6eb4f8be..84539082ac5c 100644 --- a/sw/uiconfig/swriter/ui/autoformattable.ui +++ b/sw/uiconfig/swriter/ui/autoformattable.ui @@ -6,6 +6,8 @@ + + -- cgit