sc/sdi/prevwsh.sdi | 2 ++ sc/source/ui/view/prevwsh.cxx | 2 ++ 2 files changed, 4 insertions(+)
New commits: commit e59987a91c0d486b9823a0d9249656856fd3fad5 Author: Kohei Yoshida <[email protected]> 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 216a2a44518e9e76310d78ab22c4c035602d9533 Author: Kohei Yoshida <[email protected]> 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 [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
