summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorshameempk <mailtoshameempk@gmail.com>2020-03-11 12:01:28 +0000
committerMiklos Vajna <vmiklos@collabora.com>2020-03-30 09:36:37 +0200
commit96def0ee391a99ddf042df820db1292b83d0c4fe (patch)
treeca064ffbc15f5b5c016f94b8dfe0c5d255bc04a1 /sw/source
parent8bbd58eca1ead1ec2360497e0d0d1d8125815f83 (diff)
tdf#124686 HideWhiteSpace should be positive Show Whitespace
"Hide Whitespace" under View menu changes to "Show Whitespace". Functions and associated strings are renamed accordingly. Change-Id: Id0c91ecf5c59a8c0cd5d00574f3ce0f38d6dd6d7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90324 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/uiview/view0.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/sw/source/uibase/uiview/view0.cxx b/sw/source/uibase/uiview/view0.cxx
index ca7657481c30..d15c0bcc176d 100644
--- a/sw/source/uibase/uiview/view0.cxx
+++ b/sw/source/uibase/uiview/view0.cxx
@@ -292,6 +292,11 @@ void SwView::StateViewOptions(SfxItemSet &rSet)
aBool.SetValue(pOpt->IsHideWhitespaceMode());
break;
}
+ case FN_VIEW_SHOW_WHITESPACE:
+ {
+ aBool.SetValue(!pOpt->IsHideWhitespaceMode());
+ break;
+ }
case SID_GRID_VISIBLE:
aBool.SetValue( pOpt->IsGridVisible() ); break;
case SID_GRID_USE:
@@ -452,6 +457,13 @@ void SwView::ExecViewOptions(SfxRequest &rReq)
pOpt->SetHideWhitespaceMode(bFlag);
break;
+ case FN_VIEW_SHOW_WHITESPACE:
+ if ( STATE_TOGGLE == eState )
+ bFlag = pOpt->IsHideWhitespaceMode();
+
+ pOpt->SetHideWhitespaceMode(!bFlag);
+ break;
+
case FN_VIEW_SMOOTH_SCROLL:
if ( STATE_TOGGLE == eState )