[Libreoffice-commits] online.git: loleaflet/dist
Henry Castro
hcastro at collabora.com
Sun Jul 3 03:57:45 UTC 2016
loleaflet/dist/toolbar/toolbar.js | 31 ++++++++++++++++++++++++++++++-
1 file changed, 30 insertions(+), 1 deletion(-)
New commits:
commit dcf9839a0dee94acf09fcd9f83a28323d760d235
Author: Henry Castro <hcastro at collabora.com>
Date: Sat Jul 2 23:58:02 2016 -0400
loleaflet: add status bar items for Writer
diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 426888c..7943fa8 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -676,6 +676,25 @@ map.on('doclayerinit', function () {
statusbar.refresh();
break;
case 'text':
+ statusbar.insert('left', [
+ {type: 'break', id:'break1'},
+ {type: 'html', id: 'StatePageNumber', html: '<div id="StatePageNumber" style="padding: 5px 5px;">  </div>' },
+ {type: 'break', id:'break2'},
+ {type: 'html', id: 'StateWordCount', html: '<div id="StateWordCount" style="padding: 5px 5px;">  </div>' },
+ {type: 'break', id:'break3'},
+ {type: 'html', id: 'PageStyleName', html: '<div id="PageStyleName" style="padding: 5px 5px;">  </div>' },
+ //{type: 'break', id:'break4'},
+ //{type: 'html', id: 'LanguageStatus', html: '<div id="LanguageStatus" style="padding: 5px 5px;">  </div>' },
+ {type: 'break', id:'break5'},
+ {type: 'html', id: 'InsertMode', html: '<div id="InsertMode" style="padding: 5px 5px;">  </div>' },
+ {type: 'break', id:'break6'},
+ {type: 'html', id: 'SelectionMode', html: '<div id="StatusSelectionMode" style="padding: 5px 5px;">  </div>' },
+ //{type: 'break', id:'break7'},
+ //{type: 'html', id: 'ModifiedStatus', html: '<div id="ModfiedStatus" style="padding: 5px 5px;">  </div>' },
+ {type: 'break', id:'break8'},
+ {type: 'html', id: 'Signature', html: '<div id="Signature" style="padding: 5px 5px;">  </div>' },
+ ])
+ statusbar.refresh();
break;
case 'presentation':
break;
@@ -805,7 +824,8 @@ map.on('commandstatechanged', function (e) {
else if (commandName === '.uno:InsertMode') {
$('#InsertMode').html(state ? L.Styles.insertMode[state] : '  ');
}
- else if (commandName === '.uno:StatusSelectionMode') {
+ else if (commandName === '.uno:StatusSelectionMode' ||
+ commandName === '.uno:SelectionMode') {
$('#StatusSelectionMode').html(state ? L.Styles.selectionMode[state] : '  ');
}
else if (commandName === '.uno:Signature') {
@@ -819,6 +839,15 @@ map.on('commandstatechanged', function (e) {
$('#StateTableCell').html(state);
}
}
+ else if (commandName === '.uno:StatePageNumber') {
+ $('#StatePageNumber').html(state ? state : '  ');
+ }
+ else if (commandName === '.uno:StateWordCount') {
+ $('#StateWordCount').html(state ? state : '  ');
+ }
+ else if (commandName === '.uno:PageStyleName') {
+ $('#PageStyleName').html(state ? state : '  ');
+ }
var toolbarUpMore = w2ui['toolbar-up-more'];
var id = commandName.toLowerCase().substr(5);
More information about the Libreoffice-commits
mailing list