[Libreoffice-commits] online.git: loleaflet/src

Dennis Francis (via logerrit) logerrit at kemper.freedesktop.org
Sun Jul 5 07:54:20 UTC 2020


 loleaflet/src/layer/tile/CalcTileLayer.js |   18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

New commits:
commit c77f978fc85778a183b1dc84be9a324cbbe7bf83
Author:     Dennis Francis <dennis.francis at collabora.com>
AuthorDate: Mon May 11 15:17:49 2020 +0530
Commit:     Dennis Francis <dennis.francis at collabora.com>
CommitDate: Sun Jul 5 09:54:00 2020 +0200

    Move the ViewRowColumnHeaders handling code into its own method
    
    _handleViewRowColumnHeadersMsg()
    
    Change-Id: Ib0b83941dcc9bc0bed42269fafbc61fcd7877bc6
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97938
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Dennis Francis <dennis.francis at collabora.com>

diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js
index 684d559c1..323fcc711 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -454,6 +454,16 @@ L.CalcTileLayer = L.TileLayer.extend({
 		}
 	},
 
+	_handleViewRowColumnHeadersMsg: function (jsonMsgObj) {
+		this._map.fire('viewrowcolumnheaders', {
+			data: jsonMsgObj,
+			cursor: this._getCursorPosSize(),
+			selection: this._getSelectionHeaderData(),
+			converter: this._twipsToPixels,
+			context: this
+		});
+	},
+
 	_onCommandValuesMsg: function (textMsg) {
 		var jsonIdx = textMsg.indexOf('{');
 		if (jsonIdx === -1)
@@ -466,13 +476,7 @@ L.CalcTileLayer = L.TileLayer.extend({
 
 		var comment;
 		if (values.commandName === '.uno:ViewRowColumnHeaders') {
-			this._map.fire('viewrowcolumnheaders', {
-				data: values,
-				cursor: this._getCursorPosSize(),
-				selection: this._getSelectionHeaderData(),
-				converter: this._twipsToPixels,
-				context: this
-			});
+			this._handleViewRowColumnHeadersMsg(values);
 
 		} else if (values.comments) {
 			this.clearAnnotations();


More information about the Libreoffice-commits mailing list