diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-23 01:41:42 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-23 02:23:07 -0400 |
commit | 124c020f4290911d2bfb8216c9680734722c8db7 (patch) | |
tree | c161f7be18a1a9fb2045ce953459c21da75de0e0 /sc/sdi | |
parent | e58eb031374fb18aa82654c01d0f0841a437c667 (diff) |
Receive the file open command in Calc in order to pass doc service name.
This way the type detection is guaranteed to receive the document service
name whenever a file is being opened from Calc.
Change-Id: I0eec06d4ca1f3f30bcbc5685af73392276990d69
Diffstat (limited to 'sc/sdi')
-rw-r--r-- | sc/sdi/docsh.sdi | 1 | ||||
-rw-r--r-- | sc/sdi/scalc.sdi | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/sc/sdi/docsh.sdi b/sc/sdi/docsh.sdi index 3cc5609918e2..5891c10e6100 100644 --- a/sc/sdi/docsh.sdi +++ b/sc/sdi/docsh.sdi @@ -73,6 +73,7 @@ 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; ] diff --git a/sc/sdi/scalc.sdi b/sc/sdi/scalc.sdi index a39c8842db07..b924b8e4deed 100644 --- a/sc/sdi/scalc.sdi +++ b/sc/sdi/scalc.sdi @@ -8072,3 +8072,28 @@ SfxVoidItem InsertFieldDateVariable SID_INSERT_FIELD_DATE_VAR ToolBoxConfig = FALSE, GroupId = GID_OPTIONS; ] + + +SfxVoidItem OpenFromCalc SID_OPEN_CALC +() +[ + /* flags: */ + AutoUpdate = FALSE, + Cachable = Cachable, + FastCall = FALSE, + HasCoreId = FALSE, + HasDialog = FALSE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + Synchron; + + /* config: */ + AccelConfig = TRUE, + MenuConfig = TRUE, + StatusBarConfig = FALSE, + ToolBoxConfig = FALSE, + GroupId = GID_OPTIONS; +] |