summaryrefslogtreecommitdiff
path: root/sc/sdi
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-06-04 14:20:35 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-06-05 12:16:24 -0400
commit1227601d74ecddb06dcbe69e260aa32835900ed3 (patch)
treec1e10121461221780a4db173afa5b19c7d667ee0 /sc/sdi
parentf7ebee38a3c5c6cb58f40109a213d449138ea987 (diff)
Disable file load and save and a whole bunch of other commands in preview.
We will probably need to go through more commands and disable them. Change-Id: Ie3d547f18d799b76290f469d2790902c6883774c
Diffstat (limited to 'sc/sdi')
-rw-r--r--sc/sdi/docsh.sdi14
-rw-r--r--sc/sdi/prevwsh.sdi3
2 files changed, 10 insertions, 7 deletions
diff --git a/sc/sdi/docsh.sdi b/sc/sdi/docsh.sdi
index 5891c10e6100..cd3cf5cdd9c4 100644
--- a/sc/sdi/docsh.sdi
+++ b/sc/sdi/docsh.sdi
@@ -73,12 +73,12 @@ interface TableDocument
uuid = "BA338A42-064E-11d0-89CB-008029E4B0B1" ;
]
{
- SID_OPEN_CALC [ ExecMethod = Execute; ]
- SID_SBA_IMPORT [ ExecMethod = Execute; ]
- SID_SC_CELLS [ ExecMethod = Execute; ]
- SID_SC_CELLTEXT [ ExecMethod = Execute; ]
- SID_SC_SETTEXT [ ExecMethod = Execute; ]
- SID_SC_RANGE [ ExecMethod = Execute; ]
+ SID_OPEN_CALC [ ExecMethod = Execute; StateMethod = GetState; ]
+ SID_SBA_IMPORT [ ExecMethod = Execute; StateMethod = GetState; ]
+ SID_SC_CELLS [ ExecMethod = Execute; StateMethod = GetState; ]
+ SID_SC_CELLTEXT [ ExecMethod = Execute; StateMethod = GetState; ]
+ SID_SC_SETTEXT [ ExecMethod = Execute; StateMethod = GetState; ]
+ SID_SC_RANGE [ ExecMethod = Execute; StateMethod = GetState; ]
SID_SC_SELECTION [ StateMethod = GetSbxState; ]
SID_SC_ACTIVECELL [ StateMethod = GetSbxState; ]
SID_SC_ACTIVETAB [ StateMethod = GetSbxState; ]
@@ -96,7 +96,7 @@ interface TableDocument
SID_CHART_ADDSOURCE [ ExecMethod = Execute; ]
FID_AUTO_CALC [ ExecMethod = Execute; StateMethod = GetState; ]
FID_RECALC [ ExecMethod = Execute; StateMethod = GetState; ]
- FID_HARD_RECALC [ ExecMethod = Execute; ]
+ FID_HARD_RECALC [ ExecMethod = Execute; StateMethod = GetState; ]
SID_UPDATETABLINKS [ ExecMethod = Execute; ]
SID_REIMPORT_AFTER_LOAD [ ExecMethod = Execute; ]
SID_AUTO_STYLE [ ExecMethod = Execute; ]
diff --git a/sc/sdi/prevwsh.sdi b/sc/sdi/prevwsh.sdi
index 2af8e07a117b..211712850bb5 100644
--- a/sc/sdi/prevwsh.sdi
+++ b/sc/sdi/prevwsh.sdi
@@ -159,6 +159,9 @@ interface TablePrintPreview
SID_PRINTPREVIEW [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ] // ole() api()
SID_PREVIEW_CLOSE [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
SID_CANCEL [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
+
+ SID_SAVEDOC [ StateMethod = GetState; Export = FALSE; ]
+ SID_SAVEASDOC [ StateMethod = GetState; Export = FALSE; ]
}