summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-06-06 02:08:40 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-06-06 02:08:40 -0400
commit20aad2af9b01df77ec5b01931da51523d08af69a (patch)
tree8c83a4208d4185c9d236664a0bc24c5925861d89 /sc
parentd0c3c24da2506bff1719a276f2eff34589fa7663 (diff)
Disable Exit application (Ctrl-Q) from preview mode.
Again, to prevent a modified document from launching the "do you want to save this doc?" dialog while in page preview mode. Change-Id: I638ca308a14ad5941b9db164a0753e0aad8e7968
Diffstat (limited to 'sc')
-rw-r--r--sc/sdi/prevwsh.sdi1
-rw-r--r--sc/source/ui/view/prevwsh.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/sc/sdi/prevwsh.sdi b/sc/sdi/prevwsh.sdi
index 5f1a1beeeceb..647860f34eb4 100644
--- a/sc/sdi/prevwsh.sdi
+++ b/sc/sdi/prevwsh.sdi
@@ -164,6 +164,7 @@ interface TablePrintPreview
SID_SAVEASDOC [ StateMethod = GetState; Export = FALSE; ]
SID_MAIL_SENDDOC [ StateMethod = GetState; Export = FALSE; ]
SID_VIEW_DATA_SOURCE_BROWSER [ StateMethod = GetState; Export = FALSE; ]
+ SID_QUITAPP [ StateMethod = GetState; Export = FALSE; ]
}
diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx
index 091baec7e786..a69cb795e2ef 100644
--- a/sc/source/ui/view/prevwsh.cxx
+++ b/sc/source/ui/view/prevwsh.cxx
@@ -843,6 +843,7 @@ void ScPreviewShell::GetState( SfxItemSet& rSet )
case SID_SAVEASDOC:
case SID_MAIL_SENDDOC:
case SID_VIEW_DATA_SOURCE_BROWSER:
+ case SID_QUITAPP:
rSet.DisableItem(nWhich);
break;
case SID_PREVIEW_PREVIOUS: