[Libreoffice-commits] .: Branch 'libreoffice-3-6' - sc/sdi sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Tue Jun 5 23:09:48 PDT 2012


 sc/sdi/prevwsh.sdi            |    1 +
 sc/source/ui/view/prevwsh.cxx |    1 +
 2 files changed, 2 insertions(+)

New commits:
commit f81018e4d74188b969227fe3082c5a7ca88a3fe1
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