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

Mihai Varga mihai.varga at collabora.com
Wed Jul 22 00:48:57 PDT 2015


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

New commits:
commit 287ad122d70e0d20ae0e7bfa132805a65c0031b0
Author: Mihai Varga <mihai.varga at collabora.com>
Date:   Wed Jul 22 10:48:31 2015 +0300

    loleaflet: fixed paragraph alignment commands

diff --git a/loleaflet/src/control/Control.Buttons.js b/loleaflet/src/control/Control.Buttons.js
index 70bb1e3..d544ae9 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: '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'}
+			'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: 'LeftPara',    iconName: 'alignleft.png'},
+			'aligncenter':   {title: 'Center horizontaly', uno: 'CenterPara',  iconName: 'aligncenter.png'},
+			'alignright':    {title: 'Align right',        uno: 'RightPara',   iconName: 'alignright.png'},
+			'alignblock':    {title: 'Justified',          uno: 'JustifyPara', 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