From 3f66a801aeab257705922998e518398d27e4d698 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 11 Mar 2021 09:52:56 +0000 Subject: keep SfxObjectShell::GetDialogParent ret as an awt::XWindow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit instead of extracting the vcl::Window impl details from it Change-Id: Ia13c1559861ab2a65a2108c8ccd704cba711916c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112329 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- include/sfx2/objsh.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/sfx2') diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx index b21f7bf4bb69..40715f29e6ac 100644 --- a/include/sfx2/objsh.hxx +++ b/include/sfx2/objsh.hxx @@ -88,7 +88,7 @@ namespace sfx2 class StyleManager; } -namespace vcl { class Window; } +namespace com::sun::star::awt { class XWindow; } namespace com::sun::star::beans { struct PropertyValue; } namespace com::sun::star::document { struct CmisVersion; } namespace com::sun::star::document { class XDocumentProperties; } @@ -574,7 +574,7 @@ public: virtual css::uno::Sequence< OUString > GetEventNames(); - vcl::Window* GetDialogParent( SfxMedium const * pMedium=nullptr ); + css::uno::Reference GetDialogParent(SfxMedium const* pMedium = nullptr); static SfxObjectShell* CreateObject( const OUString& rServiceName, SfxObjectCreateMode = SfxObjectCreateMode::STANDARD ); static SfxObjectShell* CreateObjectByFactoryName( const OUString& rURL, SfxObjectCreateMode = SfxObjectCreateMode::STANDARD ); static css::uno::Reference< css::lang::XComponent > -- cgit