[Libreoffice-commits] online.git: loleaflet/dist
Henry Castro
hcastro at collabora.com
Sun Jul 3 14:32:03 UTC 2016
loleaflet/dist/toolbar/toolbar.js | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
New commits:
commit c6af7d4a06c1f06a701af434c436f3917944376a
Author: Henry Castro <hcastro at collabora.com>
Date: Sun Jul 3 10:32:08 2016 -0400
loleaflet: add status bar items for Impress
diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 7943fa8..5a07699 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -697,6 +697,15 @@ map.on('doclayerinit', function () {
statusbar.refresh();
break;
case 'presentation':
+ statusbar.insert('left', [
+ {type: 'break', id:'break1'},
+ {type: 'html', id: 'PageStatus', html: '<div id="PageStatus" style="padding: 5px 5px;">  </div>' },
+ {type: 'break', id:'break2'},
+ {type: 'html', id: 'LayoutStatus', html: '<div id="LayoutStatus" style="padding: 5px 5px;">  </div>' },
+ {type: 'break', id:'break3'},
+ {type: 'html', id: 'Context', html: '<div id="Context" style="padding: 5px 5px;">  </div>' },
+ ])
+ statusbar.refresh();
break;
}
});
@@ -848,6 +857,15 @@ map.on('commandstatechanged', function (e) {
else if (commandName === '.uno:PageStyleName') {
$('#PageStyleName').html(state ? state : '  ');
}
+ else if (commandName === '.uno:PageStatus') {
+ $('#PageStatus').html(state ? state : '  ');
+ }
+ else if (commandName === '.uno:LayoutStatus') {
+ $('#LayoutStatus').html(state ? state : '  ');
+ }
+ else if (commandName === '.uno:Context') {
+ $('#Context').html(state ? state : '  ');
+ }
var toolbarUpMore = w2ui['toolbar-up-more'];
var id = commandName.toLowerCase().substr(5);
More information about the Libreoffice-commits
mailing list