summaryrefslogtreecommitdiff
path: root/sw/inc/view.hxx
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2022-10-22 09:12:55 -0800
committerJim Raykowski <raykowj@gmail.com>2022-10-28 02:10:26 +0200
commit5f72a041c0160e4067ca931a9cec711b84b558f4 (patch)
treea780748c637f437ad2b209fe45b7291a54cce692 /sw/inc/view.hxx
parent02db1642c9ce4394f4f85755c4a0a831e547e4fb (diff)
tdf#142446 Show outline content up to a given outline level
This enhancement provides means to hide outline paragraphs and their so called outline content for outline levels greater than a given outline level. This can be done whether or not outline folding is enabled. Change-Id: I2769b8f39ef2bc11e03cae07c234cf345104567e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141678 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sw/inc/view.hxx')
-rw-r--r--sw/inc/view.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx
index 45d38b0cf231..c2d3772b7578 100644
--- a/sw/inc/view.hxx
+++ b/sw/inc/view.hxx
@@ -265,6 +265,9 @@ class SW_DLLPUBLIC SwView: public SfxViewShell
SwTwips m_nLOKPageUpDownOffset;
SelectCycle m_aSelectCycle;
+
+ int m_nMaxOutlineLevelShown = 10;
+
// methods for searching
// set search context
SAL_DLLPRIVATE bool SearchAndWrap(bool bApi);
@@ -644,6 +647,9 @@ public:
void UpdateDocStats();
+ void SetMaxOutlineLevelShown(int nLevel) {m_nMaxOutlineLevelShown = nLevel;}
+ int GetMaxOutlineLevelShown() const {return m_nMaxOutlineLevelShown;}
+
// methods for printing
SAL_DLLPRIVATE virtual SfxPrinter* GetPrinter( bool bCreate = false ) override;
SAL_DLLPRIVATE virtual bool HasPrintOptionsPage() const override;