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

Mihai Varga mihai.varga at collabora.com
Tue Jul 21 01:21:32 PDT 2015


 loleaflet/src/control/Control.Buttons.js |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

New commits:
commit d89631a826c1247a6089ad84fe7f27645cee60c1
Author: Mihai Varga <mihai.varga at collabora.com>
Date:   Tue Jul 21 11:21:10 2015 +0300

    loleaflet: fixed uno commands for paragraph alignment

diff --git a/loleaflet/src/control/Control.Buttons.js b/loleaflet/src/control/Control.Buttons.js
index 7297f86..70bb1e3 100644
--- a/loleaflet/src/control/Control.Buttons.js
+++ b/loleaflet/src/control/Control.Buttons.js
@@ -12,16 +12,16 @@ L.Control.Buttons = L.Control.extend({
 		    container = L.DomUtil.create('div', buttonsName + '-container' + ' leaflet-bar');
 
 		this._buttons = {
-			'bold':          {title: 'Bold',               uno: 'Bold',        iconName: 'bold.png'},
-			'italic':        {title: 'Italic',             uno: 'Italic',      iconName: 'italic.png'},
-			'underline':     {title: 'Underline',          uno: 'Underline',   iconName: 'underline.png'},
-			'strikethrough': {title: 'Strike-through',     uno: 'Strikeout',   iconName: 'strikethrough.png'},
-			'alignleft':     {title: 'Align left',         uno: 'AlignLeft',   iconName: 'alignleft.png'},
-			'aligncenter':   {title: 'Center horizontaly', uno: 'AlignCenter', iconName: 'aligncenter.png'},
-			'alignright':    {title: 'Align right',        uno: 'AlignRight',  iconName: 'alignright.png'},
-			'alignblock':    {title: 'Justified',          uno: 'AlignBlock',  iconName: 'alignblock.png'},
-			'save':          {title: 'Save',               uno: 'Save',        iconName: 'save.png'},
-			'saveas':        {title: 'Save As',            uno: '',            iconName: 'saveas.png'}
+			'bold':          {title: 'Bold',               uno: 'Bold',                        iconName: 'bold.png'},
+			'italic':        {title: 'Italic',             uno: 'Italic',                      iconName: 'italic.png'},
+			'underline':     {title: 'Underline',          uno: 'Underline',                   iconName: 'underline.png'},
+			'strikethrough': {title: 'Strike-through',     uno: 'Strikeout',                   iconName: 'strikethrough.png'},
+			'alignleft':     {title: 'Align left',         uno: 'CommonAlignLeft',             iconName: 'alignleft.png'},
+			'aligncenter':   {title: 'Center horizontaly', uno: 'CommonAlignHorizontalCenter', iconName: 'aligncenter.png'},
+			'alignright':    {title: 'Align right',        uno: 'CommonAlignRight',            iconName: 'alignright.png'},
+			'alignblock':    {title: 'Justified',          uno: 'CommonAlignJustified',        iconName: 'alignblock.png'},
+			'save':          {title: 'Save',               uno: 'Save',                        iconName: 'save.png'},
+			'saveas':        {title: 'Save As',            uno: '',                            iconName: 'saveas.png'}
 		};
 		for (var key in this._buttons) {
 			var button = this._buttons[key];


More information about the Libreoffice-commits mailing list