[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - loleaflet/dist loleaflet/src

Henry Castro hcastro at collabora.com
Thu Oct 26 19:11:37 UTC 2017


 loleaflet/dist/toolbar/toolbar.js        |    3 +++
 loleaflet/src/control/Control.Menubar.js |    4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

New commits:
commit ef7aa17eb7677fe19033a3bd5f21b01f546f72b0
Author: Henry Castro <hcastro at collabora.com>
Date:   Fri Oct 13 20:59:19 2017 -0400

    loleaflet: enable Impress spell checking
    
    Change-Id: Ie4ae3f683bc55f7ca67b01e65dafea9746784b5a
    Reviewed-on: https://gerrit.libreoffice.org/43389
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 5faa4fa6..66a4b064 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -1039,6 +1039,9 @@ map.on('doclayerinit', function () {
 			{type: 'break', id:'break1'},
 			{type: 'html',  id: 'PageStatus',
 				html: '<div id="PageStatus" class="loleaflet-font" title="'+_('Number of Slides')+ '" style="padding: 5px 5px;">    &nbsp</div>' },
+			{type: 'break', id:'break2'},
+			{type: 'html',  id: 'LanguageStatus',
+				html: '<div id="LanguageStatus" class="loleaflet-font" title="'+_('Text Language')+ '" style="padding: 5px 5px;">    &nbsp</div>' }
 		]);
 
 		// Remove irrelevant toolbars
diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 7576b524..ef895d1f 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -245,7 +245,9 @@ L.Control.Menubar = L.Control.extend({
 				{name: _('Fullscreen presentation'), id: 'fullscreen-presentation', type: 'action'}]
 			},
 			{name: _('Tools'), id: 'tools', type: 'menu', menu: [
-				{name: _('Automatic spell checking'), type: 'unocommand', uno: '.uno:SpellOnline'}
+				{name: _('Automatic spell checking'), type: 'unocommand', uno: '.uno:SpellOnline'},
+				{name: _('Language for entire document'), type: 'menu', menu: [
+					{name: _('None (Do not check spelling)'), id: 'nonelanguage', type: 'unocommand', uno: '.uno:LanguageStatus?Language:string=Default_LANGUAGE_NONE'}]}
 			]},
 			{name: _('Help'), id: 'help', type: 'menu', menu: [
 				{name: _('Keyboard shortcuts'), id: 'keyboard-shortcuts', type: 'action'},


More information about the Libreoffice-commits mailing list