summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-06-04 14:20:35 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-06-05 12:16:24 -0400
commit1227601d74ecddb06dcbe69e260aa32835900ed3 (patch)
treec1e10121461221780a4db173afa5b19c7d667ee0 /sc/source/ui/view
parentf7ebee38a3c5c6cb58f40109a213d449138ea987 (diff)
Disable file load and save and a whole bunch of other commands in preview.
We will probably need to go through more commands and disable them. Change-Id: Ie3d547f18d799b76290f469d2790902c6883774c
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/prevwsh.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx
index adc5208567a3..c23c2f43f7dc 100644
--- a/sc/source/ui/view/prevwsh.cxx
+++ b/sc/source/ui/view/prevwsh.cxx
@@ -814,6 +814,8 @@ void ScPreviewShell::GetState( SfxItemSet& rSet )
case SID_UNDO:
case SID_REDO:
case SID_REPEAT:
+ case SID_SAVEDOC:
+ case SID_SAVEASDOC:
rSet.DisableItem(nWhich);
break;
case SID_PREVIEW_PREVIOUS: