summaryrefslogtreecommitdiff
path: root/sw/source/uibase/inc
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail..com>2020-02-21 00:08:53 -0900
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-02-24 07:58:38 +0100
commit08313c42abc5fb735948f37789ef993c93b6ab5e (patch)
treebf241e54e38556c0bcc2dc98f80f9c69f9cf1ac2 /sw/source/uibase/inc
parenteeaa7aba6e7ace8b69d7056645b15be2f996d8fb (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/inc')
-rw-r--r--sw/source/uibase/inc/conttree.hxx2
-rw-r--r--sw/source/uibase/inc/swcont.hxx2
2 files changed, 3 insertions, 1 deletions
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