diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-06-05 20:19:10 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-06-05 20:47:29 -0400 |
commit | 216a2a44518e9e76310d78ab22c4c035602d9533 (patch) | |
tree | 83231dbff6d2711acf0c33769fa5b3d934471e83 | |
parent | b255de87082d11a42d7af7860dcc4e971342df06 (diff) |
Disable "send document as email" icon in preview mode.
Change-Id: I8e73e30354b08a140e2dfc4d4e4f54fb31a85c6b
-rw-r--r-- | sc/sdi/prevwsh.sdi | 1 | ||||
-rw-r--r-- | sc/source/ui/view/prevwsh.cxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sc/sdi/prevwsh.sdi b/sc/sdi/prevwsh.sdi index 211712850bb5..530dbc28da04 100644 --- a/sc/sdi/prevwsh.sdi +++ b/sc/sdi/prevwsh.sdi @@ -162,6 +162,7 @@ interface TablePrintPreview SID_SAVEDOC [ StateMethod = GetState; Export = FALSE; ] SID_SAVEASDOC [ StateMethod = GetState; Export = FALSE; ] + SID_MAIL_SENDDOC [ StateMethod = GetState; Export = FALSE; ] } diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx index 1e556f042efb..ebc4e68175f1 100644 --- a/sc/source/ui/view/prevwsh.cxx +++ b/sc/source/ui/view/prevwsh.cxx @@ -841,6 +841,7 @@ void ScPreviewShell::GetState( SfxItemSet& rSet ) case SID_REPEAT: case SID_SAVEDOC: case SID_SAVEASDOC: + case SID_MAIL_SENDDOC: rSet.DisableItem(nWhich); break; case SID_PREVIEW_PREVIOUS: |