[Libreoffice-commits] .: sc/sdi sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Tue Jun 5 23:09:11 PDT 2012
sc/sdi/prevwsh.sdi | 1 +
sc/source/ui/view/prevwsh.cxx | 1 +
2 files changed, 2 insertions(+)
New commits:
commit 20aad2af9b01df77ec5b01931da51523d08af69a
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Wed Jun 6 02:08:40 2012 -0400
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
diff --git a/sc/sdi/prevwsh.sdi b/sc/sdi/prevwsh.sdi
index 5f1a1be..647860f 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 091baec..a69cb79 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:
More information about the Libreoffice-commits
mailing list