summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/view0.cxx
diff options
context:
space:
mode:
authorGulsah Kose <gulsah.1004@gmail.com>2017-04-19 16:29:43 +0300
committerEike Rathke <erack@redhat.com>2017-05-11 16:12:11 +0200
commit198f5a16fd4c5bf691a3450bbf16e88c000f9baa (patch)
tree347f5ca8aab1e0ebb4e720b03d62989b7dd86bd1 /sw/source/uibase/uiview/view0.cxx
parent0496587f1bf271ef0540f3cd8155889311480d70 (diff)
tdf#107258 Create show/hide all comments toggle button.
Created new show/hide all comments button for calc by ShowAnnotations command. Unifyied writer, calc and impress's ShowAnnotations slot. Change-Id: I27149d09ee1763b84258c5e0c890a9628c8874c0 Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/36697 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sw/source/uibase/uiview/view0.cxx')
-rw-r--r--sw/source/uibase/uiview/view0.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/view0.cxx b/sw/source/uibase/uiview/view0.cxx
index 791af4811fb2..78daaedce1c3 100644
--- a/sw/source/uibase/uiview/view0.cxx
+++ b/sw/source/uibase/uiview/view0.cxx
@@ -267,7 +267,7 @@ void SwView::StateViewOptions(SfxItemSet &rSet)
aBool.SetValue( pOpt->IsViewMetaChars() ); break;
case FN_VIEW_TABLEGRID:
aBool.SetValue( SwViewOption::IsTableBoundaries() ); break;
- case FN_VIEW_NOTES:
+ case SID_TOGGLE_NOTES:
{
aBool.SetValue( pOpt->IsPostIts());
if (!GetPostItMgr()->HasNotes())
@@ -413,7 +413,7 @@ void SwView::ExecViewOptions(SfxRequest &rReq)
pOpt->setBrowseMode( bFlag );
break;
- case FN_VIEW_NOTES:
+ case SID_TOGGLE_NOTES:
if ( STATE_TOGGLE == eState )
bFlag = !pOpt->IsPostIts();