summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/dialog/taskpane.cxx12
-rw-r--r--sfx2/source/dialog/titledockwin.cxx2
2 files changed, 1 insertions, 13 deletions
diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx
index 1fd0e3212234..f25485a1401c 100644
--- a/sfx2/source/dialog/taskpane.cxx
+++ b/sfx2/source/dialog/taskpane.cxx
@@ -378,18 +378,6 @@ namespace sfx2
UNO_SET_THROW );
m_aCustomPanel = CustomPanelUIElement( xElement );
-
- // ensure tabbing through the panel window works - need access to the VCL Window for this
- Reference< XWindow > xPanelWindow( m_aCustomPanel.getPanelWindow() );
- const Reference< XControl > xPanelControl( xPanelWindow, UNO_QUERY );
- if ( xPanelControl.is() )
- // windows created by the XContainerWindowProvider might, in real, be an XControl
- // In this case, obtain the VCL Window from the peer
- xPanelWindow.set( xPanelControl->getPeer(), UNO_QUERY_THROW );
- Window* pPanelWindow = VCLUnoHelper::GetWindow( xPanelWindow );
- OSL_ENSURE( pPanelWindow != NULL, "CustomToolPanel::impl_ensureToolPanelWindow: invalid (unknown) XWindow implementation of the panel window!" );
- if ( pPanelWindow != NULL )
- pPanelWindow->SetStyle( pPanelWindow->GetStyle() | WB_DIALOGCONTROL | WB_CHILDDLGCTRL );
}
catch( const Exception& )
{
diff --git a/sfx2/source/dialog/titledockwin.cxx b/sfx2/source/dialog/titledockwin.cxx
index 43fa6152c5a0..58a61d66ba8b 100644
--- a/sfx2/source/dialog/titledockwin.cxx
+++ b/sfx2/source/dialog/titledockwin.cxx
@@ -48,7 +48,7 @@ namespace sfx2
:SfxDockingWindow( i_pBindings, i_pChildWindow, i_pParent, i_nStyle )
,m_sTitle()
,m_aToolbox( this )
- ,m_aContentWindow( this )
+ ,m_aContentWindow( this, WB_DIALOGCONTROL )
,m_aBorder( 3, 1, 3, 3 )
,m_bLayoutPending( false )
{