summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2019-07-23 19:38:56 +0200
committerAndras Timar <andras.timar@collabora.com>2019-12-11 13:10:52 +0100
commit13eb488c91e36f4a4e5bb4a4410d6c5284ffd824 (patch)
treea7e545b5200e2b4492b8282881d514128838299d /sfx2
parent34f3fe6d8a36970e222ca42e82782a79dfee29ee (diff)
lok: Support per-view help data
Used for showing tooltip windows in LO online. Change-Id: I8b6a7272c75025e717923c839fa8fd9f4cab2903 Reviewed-on: https://gerrit.libreoffice.org/84717 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/84803 Tested-by: Jenkins
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewfrm.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 96bdf69f0c89..cefe8af5bd9b 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1619,6 +1619,7 @@ SfxViewFrame::SfxViewFrame
)
: m_pImpl( new SfxViewFrame_Impl( rFrame ) )
, m_pBindings( new SfxBindings )
+ , m_pHelpData(CreateSVHelpData())
, m_nAdjustPosPixelLock( 0 )
{
@@ -1661,6 +1662,9 @@ SfxViewFrame::~SfxViewFrame()
// Delete Member
KillDispatcher_Impl();
+
+ DestroySVHelpData(m_pHelpData);
+ m_pHelpData = nullptr;
}
// Remove and delete the Dispatcher.
@@ -3292,6 +3296,8 @@ void SfxViewFrame::UpdateDocument_Impl()
void SfxViewFrame::SetViewFrame( SfxViewFrame* pFrame )
{
+ if(pFrame)
+ SetSVHelpData(pFrame->m_pHelpData);
SfxGetpApp()->SetViewFrame_Impl( pFrame );
}