diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-01 12:06:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-02 00:35:07 +0200 |
commit | 3814952f0be80afddcfda7f0e65bb602ed75438c (patch) | |
tree | 4d28d574d145df90d7122ed605e9e3d03847c356 /toolkit | |
parent | e66c9aa362c1e8729d76090023960610321b14f3 (diff) |
support XSystemDependentWindowPeer for all toplevel windows
Change-Id: Id79fba6956e2a97a10dcec1cab883d3665ef1628
Reviewed-on: https://gerrit.libreoffice.org/41806
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxtoolkit.cxx | 4 | ||||
-rw-r--r-- | toolkit/source/awt/vclxtopwindow.cxx | 12 |
2 files changed, 6 insertions, 10 deletions
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index 866eb2a4cc2c..9076ae37f259 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -1163,7 +1163,7 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp, pNewWindow = VclPtr<WorkWindow>::Create( pParent, nWinBits ); } - *ppNewComp = new VCLXTopWindow( pNewWindow->GetType() == WindowType::WORKWINDOW ); + *ppNewComp = new VCLXTopWindow(); } else if ( rDescriptor.Type == css::awt::WindowClass_CONTAINER ) { @@ -1406,7 +1406,7 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::createSystemChild( con css::uno::Reference< css::awt::XWindowPeer > xPeer; if ( pChildWindow ) { - VCLXTopWindow* pPeer = new VCLXTopWindow(true); + VCLXTopWindow* pPeer = new VCLXTopWindow; SolarMutexGuard aGuard; pPeer->SetWindow( pChildWindow ); xPeer = pPeer; diff --git a/toolkit/source/awt/vclxtopwindow.cxx b/toolkit/source/awt/vclxtopwindow.cxx index 784ff17b3373..fbd00b907937 100644 --- a/toolkit/source/awt/vclxtopwindow.cxx +++ b/toolkit/source/awt/vclxtopwindow.cxx @@ -49,8 +49,7 @@ using ::com::sun::star::uno::Type; using ::com::sun::star::uno::Any; using ::com::sun::star::lang::IndexOutOfBoundsException; -VCLXTopWindow_Base::VCLXTopWindow_Base( const bool _bSupportSystemWindowPeer ) - :m_bWHWND( _bSupportSystemWindowPeer ) +VCLXTopWindow_Base::VCLXTopWindow_Base() { } @@ -62,8 +61,7 @@ Any VCLXTopWindow_Base::queryInterface( const Type & rType ) { css::uno::Any aRet( VCLXTopWindow_XBase::queryInterface( rType ) ); - // do not expose XSystemDependentWindowPeer if we do not have a system window handle - if ( !aRet.hasValue() && m_bWHWND ) + if (!aRet.hasValue()) aRet = VCLXTopWindow_SBase::queryInterface( rType ); return aRet; @@ -72,8 +70,7 @@ Any VCLXTopWindow_Base::queryInterface( const Type & rType ) Sequence< Type > VCLXTopWindow_Base::getTypes() { Sequence< Type > aTypes( VCLXTopWindow_XBase::getTypes() ); - if ( m_bWHWND ) - aTypes = ::comphelper::concatSequences( aTypes, VCLXTopWindow_SBase::getTypes() ); + aTypes = ::comphelper::concatSequences( aTypes, VCLXTopWindow_SBase::getTypes() ); return aTypes; } @@ -249,8 +246,7 @@ void VCLXTopWindow::ImplGetPropertyIds( std::vector< sal_uInt16 > &rIds ) VCLXContainer::ImplGetPropertyIds( rIds ); } -VCLXTopWindow::VCLXTopWindow(bool bWHWND) - : VCLXTopWindow_Base( bWHWND ) +VCLXTopWindow::VCLXTopWindow() { } |