diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-06-05 20:37:42 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-06-05 20:47:29 -0400 |
commit | e59987a91c0d486b9823a0d9249656856fd3fad5 (patch) | |
tree | 39e0e360876394ec2353fc323695db7448426563 /sc | |
parent | 216a2a44518e9e76310d78ab22c4c035602d9533 (diff) |
Disable Data source (F4) icon in preview mode.
Change-Id: I4d3371a48ec943dcced295069564c9fcf6dffd92
Diffstat (limited to 'sc')
-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 530dbc28da04..5f1a1beeeceb 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 ebc4e68175f1..091baec7e786 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: |