diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-05-17 12:35:10 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-06-08 21:51:20 +0200 |
commit | 3e44c8eefc7cc5329ff55b6601d660ddd562783c (patch) | |
tree | a049e29f3bf8833266ad7454f8ae0e340f89ef92 /sw/source/core/layout/wsfrm.cxx | |
parent | c9c668d76dc0ea00e11f86917b1ae69dadbbe224 (diff) |
sw_redlinehide: add a flag SwRootFrame::mbHideRedlines
This flag should be stored somewhere owned by the ViewShell, since it's
a View setting. But currently there is only a single layout (while
ideally every ViewShell should have its own layout), so add the flag to
SwRootFrame.
The SetHideRedlines implementation is very incomplete and only handles
Show->Hide for now, if the document contains only SwTextNodes.
Change-Id: Ie5fde9314665aaaf10b7359bb47f77641c9d8b1f
Diffstat (limited to 'sw/source/core/layout/wsfrm.cxx')
-rw-r--r-- | sw/source/core/layout/wsfrm.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx index 1107da6c4e94..337c26b033b0 100644 --- a/sw/source/core/layout/wsfrm.cxx +++ b/sw/source/core/layout/wsfrm.cxx @@ -4140,4 +4140,13 @@ void SwRootFrame::InvalidateAllObjPos() } } +void SwRootFrame::SetHideRedlines(bool const bHideRedlines) +{ + if (bHideRedlines == mbHideRedlines) + { + return; + } + mbHideRedlines = bHideRedlines; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |