From ff7414a97f5ded66a8e8c8611ad801b1e6c11c9e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 3 Sep 2013 16:46:22 +0100 Subject: Resolves: fdo#68726 make navigator child dialog float on top i.e. set its parent to the thing it wants to be on top of As an aside I'm not entirely sure that this little dialog has the decorations set on it that it would like, I suspect it wants to be more like the tearable-off font color floatingwindow. But lets not muddy the waters in this commit. Change-Id: I9e0c35fbb66e50c04c7b28904d3937cf9ae417f4 --- sfx2/source/toolbox/tbxitem.cxx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'sfx2') diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx index ea1d3172f31b..928b77158ea2 100644 --- a/sfx2/source/toolbox/tbxitem.cxx +++ b/sfx2/source/toolbox/tbxitem.cxx @@ -1208,6 +1208,23 @@ SfxPopupWindow::SfxPopupWindow( ((SystemWindow *)pWindow)->GetTaskPaneList()->AddWindow( this ); } +SfxPopupWindow::SfxPopupWindow( + sal_uInt16 nId, + const Reference< XFrame >& rFrame, + Window* pParentWindow, + const ResId &rId ) : + FloatingWindow( pParentWindow, rId ) + , m_bFloating(sal_False) + , m_bCascading( sal_False ) + , m_nId( nId ) + , m_xFrame( rFrame ) + , m_pStatusListener( 0 ) +{ + Window* pWindow = GetTopMostParentSystemWindow( this ); + if ( pWindow ) + ((SystemWindow *)pWindow)->GetTaskPaneList()->AddWindow( this ); +} + //-------------------------------------------------------------------- SfxPopupWindow::~SfxPopupWindow() -- cgit