loleaflet/src/layer/tile/CalcTileLayer.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
New commits: commit 13b93b6ee03d0875249def4601af1f79167703aa Author: Henry Castro <hcas...@collabora.com> Date: Sun Nov 8 13:38:05 2015 -0400 loleaflet: request and process command values "ViewRowColumnHeaders" diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js index b34e930..4592516 100644 --- a/loleaflet/src/layer/tile/CalcTileLayer.js +++ b/loleaflet/src/layer/tile/CalcTileLayer.js @@ -136,5 +136,18 @@ L.CalcTileLayer = L.TileLayer.extend({ this._preFetchBorder = null; } } - } + + L.Socket.sendMessage('commandvalues command=.uno:ViewRowColumnHeaders'); + }, + + _onCommandValuesMsg: function (textMsg) { + if (textMsg.match('.uno:ViewRowColumnHeaders')) { + var data = JSON.parse(textMsg.substring(textMsg.indexOf('{'))); + this._columns.fillColumns(data.columns, this._twipsToPixels, this); + this._rows.fillRows(data.rows, this._twipsToPixels, this); + } + else { + L.TileLayer.prototype._onCommandValuesMsg.call(this, textMsg); + } + } }); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits