summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwsha.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2007-07-06 11:48:17 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2007-07-06 11:48:17 +0000
commit2fbb97384864067c84d66802b6e677606415d2a8 (patch)
treeeb5bd38877107b911a691c288b5cf73883ef3b35 /sc/source/ui/view/tabvwsha.cxx
parent539279de23c090a10b760dc8a29ea2644360fd59 (diff)
INTEGRATION: CWS dr55 (1.20.52); FILE MERGED
2007/06/29 13:55:14 er 1.20.52.1: #i56202# Ctrl+Prime (quoteleft) toggles formula view; merged from branch cws_src680_msba02; contributed by Muthu Subramanian <muthusuba@ooo>
Diffstat (limited to 'sc/source/ui/view/tabvwsha.cxx')
-rw-r--r--sc/source/ui/view/tabvwsha.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx
index 07068097b494..13413ffc3899 100644
--- a/sc/source/ui/view/tabvwsha.cxx
+++ b/sc/source/ui/view/tabvwsha.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: tabvwsha.cxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: rt $ $Date: 2007-04-26 09:58:13 $
+ * last change: $Author: rt $ $Date: 2007-07-06 12:48:17 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -297,6 +297,14 @@ void __EXPORT ScTabViewShell::GetState( SfxItemSet& rSet )
rSet.Put(SfxBoolItem(nWhich, GetViewData()->IsHeaderMode()));
break;
+ case FID_TOGGLEFORMULA:
+ {
+ const ScViewOptions& rOpts = pViewData->GetOptions();
+ BOOL bFormulaMode = rOpts.GetOption( VOPT_FORMULAS );
+ rSet.Put(SfxBoolItem(nWhich, bFormulaMode ));
+ }
+ break;
+
case FID_NORMALVIEWMODE:
case FID_PAGEBREAKMODE:
// always handle both slots - they exclude each other