diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2023-11-09 16:00:10 +0100 |
---|---|---|
committer | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2023-11-13 18:16:38 +0100 |
commit | 8bf614179f5664d7cdd49db41ef462073cc8608d (patch) | |
tree | b23aabb679869c61d5dcb0515c6f670e04706b23 /sw/inc | |
parent | 2585cd1f52585c9a2abfc34ea56171375ebdab6a (diff) |
tdf#135266 - Remember last used entry level depending on the index type
Change-Id: I4fe9342c28fc9135b73286e67464b16a1d910a9f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159217
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/viewopt.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx index 3c847acfd6fe..72659849a627 100644 --- a/sw/inc/viewopt.hxx +++ b/sw/inc/viewopt.hxx @@ -274,6 +274,9 @@ class SW_DLLPUBLIC SwViewOption bool m_bShowPlaceHolderFields : 1; // Only used in printing! mutable bool m_bIdle; sal_Int32 m_nDefaultAnchor; // GetDefaultAnchorType() to convert int to RndStdIds + // tdf#135266 - tox dialog: remember last used entry level depending on the index type + sal_uInt8 m_nTocEntryLvl; + sal_uInt8 m_nIdxEntryLvl; // Scale sal_uInt16 m_nZoom; // In percent. @@ -845,6 +848,12 @@ public: RndStdIds GetDefaultAnchorType() const; + // tdf#135266 - tox dialog: remember last used entry level depending on the index type + sal_uInt8 GetTocEntryLvl() const { return m_nTocEntryLvl; } + void SetTocEntryLvl(sal_uInt8 n) { m_nTocEntryLvl = n; } + sal_uInt8 GetIdxEntryLvl() const { return m_nIdxEntryLvl; } + void SetIdxEntryLvl(sal_uInt8 n) { m_nIdxEntryLvl = n; } + // Useful for when getting the current view SwViewOption is not possible otherwise static const SwViewOption& GetCurrentViewOptions(); }; |