From 08313c42abc5fb735948f37789ef993c93b6ab5e Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Fri, 21 Feb 2020 00:08:53 -0900 Subject: tdf#108766 Add outline tracking to all content navigation view Here is effort to implement this request and improve code understanding/ readability in the areas touched. A choice of one of three modes of outline tracking is avaliable through the outline/heading content context menu. They are: Default - does not collapse expanded outline entries Focus - collapses all outline entries other than tracked Off The need for persistance of this setting is uncertain so has been left for future implementation. Change-Id: I9cb6420537d7ff9f584e94029a0c053f21f1ef8b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89287 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/uibase/inc/conttree.hxx | 2 ++ sw/source/uibase/inc/swcont.hxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'sw/source/uibase/inc') diff --git a/sw/source/uibase/inc/conttree.hxx b/sw/source/uibase/inc/conttree.hxx index e9c227875c22..c134e10551b3 100644 --- a/sw/source/uibase/inc/conttree.hxx +++ b/sw/source/uibase/inc/conttree.hxx @@ -102,6 +102,8 @@ class SwContentTree final ContentTypeId m_nLastSelType; sal_uInt8 m_nOutlineLevel; + sal_uInt32 m_nOutlineTracking = 1; + enum class State { ACTIVE, CONSTANT, HIDDEN } m_eState; bool m_bDocChgdInDragging :1; diff --git a/sw/source/uibase/inc/swcont.hxx b/sw/source/uibase/inc/swcont.hxx index fb2d0a9d4b79..cb334f9141eb 100644 --- a/sw/source/uibase/inc/swcont.hxx +++ b/sw/source/uibase/inc/swcont.hxx @@ -44,7 +44,7 @@ enum class ContentTypeId }; // strings for context menus -#define CONTEXT_COUNT 13 +#define CONTEXT_COUNT 17 #define GLOBAL_CONTEXT_COUNT 14 // modes for Drag 'n Drop -- cgit