diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2019-05-29 23:33:25 -0400 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-12-18 01:50:41 +0100 |
commit | c2f8929ed76085bc81f390f90e06bd6781206537 (patch) | |
tree | 57861cb7462411f16a4eff3705616e23d97846df /sfx2 | |
parent | 9e63d328691014bc97f6b66b708ed9dec53618e6 (diff) |
vcl: sfx2: LOK: Support per-view popup windows
While we do support multiple views, there is only
one state for popup/floating windows, that also
includes the dialogs open and related windows/data.
This adds support to allow each view to have its own
popups and state, thus allowing multiple users to
interact with the dialogs independently of one
another.
(cherry picked from commit b50c341a53911f1d725947a4d8d3d2f782c94079)
Change-Id: I3786a561ca6ca113ad12425bdb491e5a30bd1a28
Reviewed-on: https://gerrit.libreoffice.org/82440
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/85221
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index a19a89a91b91..3e36ab14081b 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -1620,6 +1620,7 @@ SfxViewFrame::SfxViewFrame : m_pImpl( new SfxViewFrame_Impl( rFrame ) ) , m_pBindings( new SfxBindings ) , m_pHelpData(CreateSVHelpData()) + , m_pWinData(CreateSVWinData()) , m_nAdjustPosPixelLock( 0 ) { @@ -1665,6 +1666,9 @@ SfxViewFrame::~SfxViewFrame() DestroySVHelpData(m_pHelpData); m_pHelpData = nullptr; + + DestroySVWinData(m_pWinData); + m_pWinData = nullptr; } // Remove and delete the Dispatcher. @@ -3309,6 +3313,9 @@ void SfxViewFrame::SetViewFrame( SfxViewFrame* pFrame ) { if(pFrame) SetSVHelpData(pFrame->m_pHelpData); + + SetSVWinData(pFrame ? pFrame->m_pWinData : nullptr); + SfxGetpApp()->SetViewFrame_Impl( pFrame ); } |