summaryrefslogtreecommitdiff
path: root/sw/source/ui/uiview/view0.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-02-19 12:59:04 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-02-19 12:59:04 +0000
commit79f744f9e914ec7cb73c94c5de6ec87b3380b9e6 (patch)
treecb057d94c5f0ff012b321630506dff6b34ae3013 /sw/source/ui/uiview/view0.cxx
parentc313777f00ba37522ee300f3f4fbf51810075093 (diff)
INTEGRATION: CWS notes2 (1.23.2); FILE MERGED
2008/01/29 19:39:59 mod 1.23.2.2: spellchecking and context menu 2008/01/25 17:46:11 mod 1.23.2.1: View - Notes
Diffstat (limited to 'sw/source/ui/uiview/view0.cxx')
-rw-r--r--sw/source/ui/uiview/view0.cxx19
1 files changed, 17 insertions, 2 deletions
diff --git a/sw/source/ui/uiview/view0.cxx b/sw/source/ui/uiview/view0.cxx
index 35f016a662..a98abda0e8 100644
--- a/sw/source/ui/uiview/view0.cxx
+++ b/sw/source/ui/uiview/view0.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: view0.cxx,v $
*
- * $Revision: 1.23 $
+ * $Revision: 1.24 $
*
- * last change: $Author: hr $ $Date: 2007-09-27 12:36:44 $
+ * last change: $Author: rt $ $Date: 2008-02-19 13:59:04 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -139,6 +139,11 @@
#include <svx/svxslots.hxx>
#include "swslots.hxx"
+#ifndef _POSTITMGR_HXX
+#include <PostItMgr.hxx>
+#endif
+
+
using namespace ::com::sun::star;
using namespace ::rtl;
@@ -316,6 +321,8 @@ void SwView::StateViewOptions(SfxItemSet &rSet)
aBool.SetValue( pOpt->IsViewMetaChars() ); break;
case FN_VIEW_TABLEGRID:
aBool.SetValue( SwViewOption::IsTableBoundaries() ); break;
+ case FN_VIEW_NOTES:
+ aBool.SetValue( pOpt->IsPostIts()); break;
case FN_VIEW_HIDDEN_PARA:
aBool.SetValue( pOpt->IsShowHiddenPara()); break;
case SID_GRID_VISIBLE:
@@ -431,6 +438,13 @@ void SwView::ExecViewOptions(SfxRequest &rReq)
pOpt->SetCrossHair( bFlag );
break;
+ case FN_VIEW_NOTES:
+ if ( STATE_TOGGLE == eState )
+ bFlag = !pOpt->IsPostIts();
+
+ pOpt->SetPostIts( bFlag );
+ break;
+
case FN_VIEW_HIDDEN_PARA:
if ( STATE_TOGGLE == eState )
bFlag = !pOpt->IsShowHiddenPara();
@@ -502,6 +516,7 @@ void SwView::ExecViewOptions(SfxRequest &rReq)
if( STATE_TOGGLE == eState )
bFlag = bSet = !pOpt->IsOnlineSpell();
+ GetPostItMgr()->SetSpellChecking(bSet);
pOpt->SetOnlineSpell(bSet);
{
uno::Any aVal( &bSet, ::getCppuBooleanType() );