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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Feb 7 11:23:52 UTC 2019


 loleaflet/src/map/Map.js |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 40d6ba651fc2eb11b97de2e64b4fae70df71c2f7
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Feb 7 11:34:19 2019 +0100
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Thu Feb 7 12:21:19 2019 +0100

    Get languages, annotations, fonts on reload
    
    Change-Id: If713092dab75bb744cf9c584a30006558d8d738c

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index fe40b2dd8..6880b4b1b 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -224,6 +224,15 @@ L.Map = L.Evented.extend({
 
 	loadDocument: function() {
 		this._socket.connect();
+		this.sendInitUNOCommands();
+	},
+
+	sendInitUNOCommands: function() {
+		// TODO: remove duplicated init code
+		this._socket.sendMessage('commandvalues command=.uno:LanguageStatus');
+		this._socket.sendMessage('commandvalues command=.uno:ViewAnnotations');
+		this.fire('updatescrolloffset');
+		this._docLayer._getToolbarCommandsValues();
 	},
 
 	// public methods that modify map state


More information about the Libreoffice-commits mailing list