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

Feyza Yavuz feyzaayavuz at gmail.com
Wed May 11 14:50:08 UTC 2016


 loleaflet/dist/images/sc_annotation.png |binary
 loleaflet/dist/toolbar.css              |    1 +
 loleaflet/dist/toolbar/toolbar.js       |    6 +++++-
 3 files changed, 6 insertions(+), 1 deletion(-)

New commits:
commit f2fec436d1bde7a9f9cd4da9396c9ca0431e6b37
Author: Feyza Yavuz <feyzaayavuz at gmail.com>
Date:   Fri May 6 01:56:54 2016 +0300

    loleaflet: Added Comment button to toolbar
    
    Change-Id: Ic79f942babc36f061065b2ef73be204b544f096e
    Reviewed-on: https://gerrit.libreoffice.org/24696
    Reviewed-by: pranavk <pranavk at collabora.com>
    Tested-by: pranavk <pranavk at collabora.com>
    (cherry picked from commit 20a86520415c1bd4bd1b5d02a7bd00bda0df3684)

diff --git a/loleaflet/dist/images/sc_annotation.png b/loleaflet/dist/images/sc_annotation.png
new file mode 100644
index 0000000..92fe6e5
Binary files /dev/null and b/loleaflet/dist/images/sc_annotation.png differ
diff --git a/loleaflet/dist/toolbar.css b/loleaflet/dist/toolbar.css
index 40922cb..bb864fc 100644
--- a/loleaflet/dist/toolbar.css
+++ b/loleaflet/dist/toolbar.css
@@ -196,6 +196,7 @@ button.leaflet-control-search-next
 .w2ui-icon.autosum{ background: url('/loleaflet/dist/images/sc_autosum.png') no-repeat center !important; }
 .w2ui-icon.backcolor{ background: url('/loleaflet/dist/images/sc_backcolor.png') no-repeat center !important; }
 .w2ui-icon.bold{ background: url('/loleaflet/dist/images/sc_bold.png') no-repeat center !important; }
+.w2ui-icon.annotation{ background: url('/loleaflet/dist/images/sc_annotation.png') no-repeat center !important; }
 .w2ui-icon.bullet{ background: url('/loleaflet/dist/images/sc_bullet.png') no-repeat center !important; }
 .w2ui-icon.cancel{ background: url('/loleaflet/dist/images/sc_cancel.png') no-repeat center !important; }
 .w2ui-icon.color{ background: url('/loleaflet/dist/images/sc_color.png') no-repeat center !important; }
diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 48b6deb..d97920a 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -77,6 +77,7 @@ $(function () {
 			{ type: 'button',  id: 'incrementindent',  img: 'incrementindent', hint: _("Increase Indent"), uno: 'IncrementIndent' },
 			{ type: 'button',  id: 'decrementindent',  img: 'decrementindent', hint: _("Decrease Indent"), uno: 'DecrementIndent' },
 			{ type: 'break', id: 'incdecindent' },
+			{ type: 'button',  id: 'annotation', img: 'annotation', hint: _("Comment"), uno: 'InsertAnnotation' },
 			{ type: 'button',  id: 'insertgraphic',  img: 'insertgraphic', hint: _("Insert Graphic") },
 			{ type: 'break' },
 			{ type: 'button',  id: 'help',  img: 'help', hint: _("Help") },
@@ -176,7 +177,7 @@ $(function () {
 });
 
 var formatButtons = ['undo', 'redo', 'save',
-                     'bold', 'italic', 'underline', 'strikeout',
+                     'bold', 'italic', 'underline', 'strikeout', 'annotation',
                      'fontcolor', 'backcolor', 'bullet', 'numbering', 'alignleft', 'alignhorizontal', 'alignright', 'alignblock',
                      'incrementindent', 'decrementindent', 'insertgraphic'];
 
@@ -564,6 +565,7 @@ map.on('updatepermission', function (e) {
 		toolbar.hide('writer:menu:file');
 		if (docType === 'presentation') {
 			toolbar.show('impress:menu:file');
+			toolbar.hide('annotation');
 
 			toolbar = w2ui['presentation-toolbar'];
 			toolbar.show('presentation');
@@ -573,12 +575,14 @@ map.on('updatepermission', function (e) {
 		}
 		else if (docType === 'drawing') {
 			toolbar.show('impress:menu:file');
+			toolbar.hide('annotation');
 		}
 		else if (docType === 'spreadsheet') {
 			toolbar.show('calc:menu:file');
 		}
 		else {
 			toolbar.show('other:menu:file');
+			toolbar.hide('annotation');
 		}
 	}
 });


More information about the Libreoffice-commits mailing list