loleaflet/src/control/Parts.js            |    3 +++
 loleaflet/src/layer/tile/CalcTileLayer.js |    1 +
 2 files changed, 4 insertions(+)

New commits:
commit 4caf89f2a3e74b8e337a403a95243c778b1003e7
Author: Jan Holesovsky <ke...@collabora.com>
Date:   Fri Jan 15 20:41:11 2016 +0100

    loleaflet: Update the row / column headers on part switch.

diff --git a/loleaflet/src/control/Parts.js b/loleaflet/src/control/Parts.js
index 2c9a59c..0183196 100644
--- a/loleaflet/src/control/Parts.js
+++ b/loleaflet/src/control/Parts.js
@@ -38,6 +38,9 @@ L.Map.include({
                if (docLayer._invalidatePreview) {
                        docLayer._invalidatePreview();
                }
+               if (docLayer._docType === 'spreadsheet') {
+                       this._socket.sendMessage('commandvalues 
command=.uno:ViewRowColumnHeaders');
+               }
        },
 
        getPreview: function (id, index, maxWidth, maxHeight, options) {
diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js 
b/loleaflet/src/layer/tile/CalcTileLayer.js
index b09e2bb..ce57e7c 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -113,6 +113,7 @@ L.CalcTileLayer = L.TileLayer.extend({
                        this._selectedPart = part;
                        this._update();
                        this._map.fire('setpart', {selectedPart: 
this._selectedPart});
+                       this._map._socket.sendMessage('commandvalues 
command=.uno:ViewRowColumnHeaders');
                }
        },
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to