diff options
author | Jan Holesovsky <kendy@collabora.com> | 2016-01-20 22:12:33 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2016-01-21 00:04:30 +0100 |
commit | 59a93573d677c85402b78bf748c7267554cf3ca2 (patch) | |
tree | a66c43f57e9dd54b7682df0d1c460a6393d28c95 /sc | |
parent | 03d10e1ab2a7a97c00edbc07c1fe7c0fc937154b (diff) |
sc lok: Fix .uno:Name (renaming sheets) to really accept parameters.
The code handles them, but they were unusable, because .sdi did not announce
them.
Change-Id: I35bd3009d092eb48a36aee2ffed3964dc61946e2
Diffstat (limited to 'sc')
-rw-r--r-- | sc/sdi/scalc.sdi | 4 | ||||
-rw-r--r-- | sc/source/core/data/document.cxx | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sc/sdi/scalc.sdi b/sc/sdi/scalc.sdi index 7bc2db651d3c..fa51a39d2c06 100644 --- a/sc/sdi/scalc.sdi +++ b/sc/sdi/scalc.sdi @@ -4813,7 +4813,7 @@ SfxVoidItem Move FID_TAB_MOVE SfxStringItem Name FID_TAB_RENAME - +(SfxStringItem Name FID_TAB_RENAME,SfxUInt16Item Index FN_PARAM_1) [ /* flags: */ AutoUpdate = FALSE, @@ -4828,8 +4828,6 @@ SfxStringItem Name FID_TAB_RENAME RecordPerSet; Synchron; - Readonly = FALSE, - /* config: */ AccelConfig = TRUE, MenuConfig = TRUE, diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index df19fae12e6c..79eab8f80e89 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -855,6 +855,9 @@ bool ScDocument::RenameTab( SCTAB nTab, const OUString& rName, bool /* bUpdateRe for (; it != maTabs.end(); ++it) if ( *it && (*it)->IsStreamValid()) (*it)->SetStreamValid( false ); + + if (comphelper::LibreOfficeKit::isActive() && GetDrawLayer()) + GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_DOCUMENT_SIZE_CHANGED, ""); } } } |