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

Oliver Specht oliver.specht at cib.de
Fri Aug 26 08:42:29 UTC 2016


 loleaflet/dist/images/lc_insertfootnote.png |binary
 loleaflet/dist/toolbar.css                  |    1 +
 loleaflet/dist/toolbar/toolbar.js           |   16 ++++++++++++++++
 3 files changed, 17 insertions(+)

New commits:
commit 5902700922d110aee29d67be6224094bb521132d
Author: Oliver Specht <oliver.specht at cib.de>
Date:   Mon Aug 15 23:38:39 2016 +0200

    Add footnote and text wrap functions

diff --git a/loleaflet/dist/images/lc_insertfootnote.png b/loleaflet/dist/images/lc_insertfootnote.png
new file mode 100644
index 0000000..65b110f
Binary files /dev/null and b/loleaflet/dist/images/lc_insertfootnote.png differ
diff --git a/loleaflet/dist/toolbar.css b/loleaflet/dist/toolbar.css
index 8699372..13f7f5b 100644
--- a/loleaflet/dist/toolbar.css
+++ b/loleaflet/dist/toolbar.css
@@ -246,6 +246,7 @@ button.leaflet-control-search-next
 .w2ui-icon.save{ background: url('/loleaflet/dist/images/lc_save.png') no-repeat center !important; }
 .w2ui-icon.saveas{ background: url('/loleaflet/dist/images/lc_saveas.png') no-repeat center !important; }
 .w2ui-icon.strikeout{ background: url('/loleaflet/dist/images/lc_strikeout.png') no-repeat center !important; }
+.w2ui-icon.insertfootnote{ background: url('/loleaflet/dist/images/lc_insertfootnote.png') no-repeat center !important; }
 .w2ui-icon.underline{ background: url('/loleaflet/dist/images/lc_underline.png') no-repeat center !important; }
 .w2ui-icon.undo{ background: url('/loleaflet/dist/images/lc_undo.png') no-repeat center !important; }
 .w2ui-icon.zoomin{ background: url('/loleaflet/dist/images/plus.png') no-repeat center !important; }
diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index fcb1ae6..c12d533 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -168,6 +168,11 @@ function onClick(id, item, subItem) {
 	else if (id === 'lastrecord') {
 		$('#spreadsheet-tab-scroll').scrollLeft($('#spreadsheet-tab-scroll').prop('scrollWidth'));
 	}
+	else if (id.startsWith('menu:wrap:wrap-'))
+	{
+		var wrapType = id.substring('menu:wrap:wrap-'.length);
+		map.toggleCommandState(wrapType);
+	}
 	else if (id === 'insertgraphic') {
 		L.DomUtil.get('insertgraphic').click();
 	}
@@ -326,6 +331,15 @@ $(function () {
 		name: 'toolbar-up',
 		items: [
 			{type: 'html', id: 'left'},
+			{type: 'menu', id: 'writer:menu:wrap', caption: _('Textwrap'), items: [
+				{ text: _('No wrap'), id: 'wrap-WrapOff' },
+				{ text: _('Page wrap'), id: 'wrap-WrapOn' },
+				{ text: _('Wrap anchor only'), id: 'wrap-WrapAnchorOnly' },
+				{ text: _('Ideal wrap'), id: 'wrap-WrapIdeal' },
+				{ text: _('Left wrap'), id: 'wrap-WrapLeft' },
+				{ text: _('Right wrap'), id: 'wrap-WrapRight' },
+				{ text: _('Wrap through'), id: 'wrap-WrapThrough' }
+			]},
 			{type: 'button',  id: 'save', img: 'save', hint: _('Save'), uno: 'Save'},
 			{type: 'break'},
 			{type: 'button',  id: 'undo',  img: 'undo', hint: _('Undo'), uno: 'Undo'},
@@ -340,6 +354,8 @@ $(function () {
 			{type: 'button',  id: 'underline',  img: 'underline', hint: _('Underline'), uno: 'Underline'},
 			{type: 'button',  id: 'strikeout', img: 'strikeout', hint: _('Strikeout'), uno: 'Strikeout'},
 			{type: 'break'},
+			{type: 'button',  id: 'insertfootnote', img: 'insertfootnote', hint: _('Insert Footnote'), uno: 'InsertFootnote' },
+			{type: 'break' },
 			{type: 'html',  id: 'fontcolor-html', html: '<input id="fontColorPicker" style="display:none;">'},
 			{type: 'button',  id: 'fontcolor', img: 'color', hint: _('Font color')},
 			{type: 'html',  id: 'backcolor-html', html: '<input id="backColorPicker" style="display:none;">'},


More information about the Libreoffice-commits mailing list