sw/source/uibase/docvw/edtwin.cxx | 1 + sw/source/uibase/utlui/content.cxx | 1 + sw/source/uibase/wrtsh/wrtsh1.cxx | 1 + 3 files changed, 3 insertions(+)
New commits: commit 94016b435404f19d84ed636c5b3fd1ab0c02e020 Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Wed Feb 23 21:07:12 2022 -0900 Commit: Jim Raykowski <rayk...@gmail.com> CommitDate: Thu Mar 17 01:42:25 2022 +0100 Notify Navigator when outline content visibility changes Change-Id: I1db018216eb37517192f87c5c22cd0b9e6319687 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130472 Tested-by: Jenkins Reviewed-by: Jim Raykowski <rayk...@gmail.com> diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 8b53ebca4d3e..feaacb1bdfea 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -6689,6 +6689,7 @@ void SwEditWin::ToggleOutlineContentVisibility(const size_t nOutlinePos, const b rSh.InvalidateOutlineContentVisibility(); rSh.GotoOutline(nOutlinePos); + GetView().GetDocShell()->Broadcast(SfxHint(SfxHintId::DocChanged)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 7e186232512b..b040a2e264bd 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -4270,6 +4270,7 @@ void SwContentTree::ExecuteContextMenuAction(const OString& rSelectedPopupEntry) m_pActiveShell->GotoOutline(pCntFirst->GetOutlinePos()); grab_focus(); m_bIgnoreDocChange = false; + m_pActiveShell->GetDoc()->GetDocShell()->Broadcast(SfxHint(SfxHintId::DocChanged)); } break; case 11: diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx index 25ab28130d3b..e4e4efb76d2d 100644 --- a/sw/source/uibase/wrtsh/wrtsh1.cxx +++ b/sw/source/uibase/wrtsh/wrtsh1.cxx @@ -2408,6 +2408,7 @@ void SwWrtShell::MakeAllFoldedOutlineContentVisible(bool bMakeVisible) GotoOutline(nPos); } } + GetView().GetDocShell()->Broadcast(SfxHint(SfxHintId::DocChanged)); } bool SwWrtShell::GetAttrOutlineContentVisible(const size_t nPos)