summaryrefslogtreecommitdiff
path: root/sfx2/source/toolbox
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-03 16:46:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-03 16:49:10 +0100
commitff7414a97f5ded66a8e8c8611ad801b1e6c11c9e (patch)
treeff1bba7e409c1cce51d92e1b8e871f1d473846b2 /sfx2/source/toolbox
parentc91f7082180d1ca90467891f3b7ca9a3e845d9e7 (diff)
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
Diffstat (limited to 'sfx2/source/toolbox')
-rw-r--r--sfx2/source/toolbox/tbxitem.cxx17
1 files changed, 17 insertions, 0 deletions
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()