sc/sdi/prevwsh.sdi | 2 ++ sc/source/ui/view/prevwsh.cxx | 2 ++ 2 files changed, 4 insertions(+)
New commits: commit cb1a81d84de1a5927b66a7a59a3dff756991db50 Author: Kohei Yoshida <kohei.yosh...@gmail.com> Date: Tue Jun 5 20:37:42 2012 -0400 Disable Data source (F4) icon in preview mode. Change-Id: I4d3371a48ec943dcced295069564c9fcf6dffd92 diff --git a/sc/sdi/prevwsh.sdi b/sc/sdi/prevwsh.sdi index 530dbc2..5f1a1be 100644 --- a/sc/sdi/prevwsh.sdi +++ b/sc/sdi/prevwsh.sdi @@ -163,6 +163,7 @@ interface TablePrintPreview SID_SAVEDOC [ StateMethod = GetState; Export = FALSE; ] SID_SAVEASDOC [ StateMethod = GetState; Export = FALSE; ] SID_MAIL_SENDDOC [ StateMethod = GetState; Export = FALSE; ] + SID_VIEW_DATA_SOURCE_BROWSER [ StateMethod = GetState; Export = FALSE; ] } diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx index ebc4e68..091baec 100644 --- a/sc/source/ui/view/prevwsh.cxx +++ b/sc/source/ui/view/prevwsh.cxx @@ -842,6 +842,7 @@ void ScPreviewShell::GetState( SfxItemSet& rSet ) case SID_SAVEDOC: case SID_SAVEASDOC: case SID_MAIL_SENDDOC: + case SID_VIEW_DATA_SOURCE_BROWSER: rSet.DisableItem(nWhich); break; case SID_PREVIEW_PREVIOUS: commit c0ae42c94e103b5ac603519817c0072033f4cc05 Author: Kohei Yoshida <kohei.yosh...@gmail.com> Date: Tue Jun 5 20:19:10 2012 -0400 Disable "send document as email" icon in preview mode. Change-Id: I8e73e30354b08a140e2dfc4d4e4f54fb31a85c6b diff --git a/sc/sdi/prevwsh.sdi b/sc/sdi/prevwsh.sdi index 2117128..530dbc2 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 1e556f0..ebc4e68 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: _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits