summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-05-17 13:00:33 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-06-08 19:42:08 +0200
commitf9b5ee4abf4217b464b5194c71e3badb7b289d8b (patch)
tree819fcc726df6aae225ac77383f30bb79cb9c8901
parentsw_redlinehide: very incomplete impl. of SwRootFrame::SetHideRedlines() (diff)
downloadcore-f9b5ee4abf4217b464b5194c71e3badb7b289d8b.tar.gz
core-f9b5ee4abf4217b464b5194c71e3badb7b289d8b.zip
sw_redlinehide: let the Show menu item toggle new mode
Change-Id: I1201e84b231be17e6a5ec2294acfb1e3111c9ada
-rw-r--r--sw/source/uibase/uiview/view2.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx
index f2cbaa68c93f..e5a7fa8b95c7 100644
--- a/sw/source/uibase/uiview/view2.cxx
+++ b/sw/source/uibase/uiview/view2.cxx
@@ -139,6 +139,7 @@
#include <vcl/settings.hxx>
#include <i18nutil/searchopt.hxx>
#include <paratr.hxx>
+#include <rootfrm.hxx>
#include <memory>
@@ -638,7 +639,15 @@ void SwView::Execute(SfxRequest &rReq)
if( static_cast<const SfxBoolItem*>(pItem)->GetValue() )
nMode |= RedlineFlags::ShowDelete;
- m_pWrtShell->SetRedlineFlagsAndCheckInsMode( nMode );
+ if (getenv("SW_REDLINEHIDE")) // TODO...
+ {
+ m_pWrtShell->GetLayout()->SetHideRedlines(
+ !static_cast<const SfxBoolItem*>(pItem)->GetValue());
+ if (m_pWrtShell->IsRedlineOn())
+ m_pWrtShell->SetInsMode();
+ }
+ else
+ m_pWrtShell->SetRedlineFlagsAndCheckInsMode( nMode );
}
break;
case FN_MAILMERGE_SENDMAIL_CHILDWINDOW: