[SSE mobile] Add R1C1 Reference Style

This commit is contained in:
Julia Svinareva 2019-06-13 17:16:46 +03:00
parent 34950ab65c
commit 3dc3027773
5 changed files with 38 additions and 1 deletions

View file

@ -558,6 +558,12 @@ define([
uiApp.closeModal('.document-menu.modal-in');
});
//R1C1 reference style
value = Common.localStorage.getBool('sse-settings-r1c1');
if(value !== undefined) {
this.api.asc_setR1C1Mode(value);
}
$(document).on('contextmenu', _.bind(me.onContextMenu, me));
Common.Gateway.documentReady();
},

View file

@ -485,6 +485,18 @@ define([
var $pageLang = $('#language-formula');
$pageLang.find('.item-title').text(item.displayValue);
$pageLang.find('.item-example').text(item.exampleValue);
value = Common.localStorage.getBool('sse-settings-r1c1');
var $r1c1Style = $('.page[data-page=settings-application-view] #r1-c1-style input');
$r1c1Style.prop('checked',value);
$r1c1Style.single('change', _.bind(me.clickR1C1Style, me));
},
clickR1C1Style: function(e) {
var $target = $(e.currentTarget),
checked = $target.prop('checked');
Common.localStorage.setBool('sse-settings-r1c1', checked);
this.api.asc_setR1C1Mode(checked);
},
unitMeasurementChange: function (e) {

View file

@ -430,6 +430,23 @@
</li>
</ul>
</div>
<div class="list-block">
<ul>
<li id="r1-c1-style">
<div class="item-content">
<div class="item-inner">
<div class="item-title"><%= scope.textR1C1Style %></div>
<div class="item-after">
<label class="label-switch">
<input type="checkbox">
<div class="checkbox"></div>
</label>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>

View file

@ -343,7 +343,8 @@ define([
textRight: 'Right',
textCollaboration: 'Collaboration',
textFormulaLanguage: 'Formula Language',
textExample: 'Example'
textExample: 'Example',
textR1C1Style: 'R1C1 Reference Style'
}
})(), SSE.Views.Settings || {}))
});

View file

@ -549,6 +549,7 @@
"SSE.Views.Settings.textFormulaLanguage": "Formula Language",
"SSE.Views.Settings.textExample": "Example",
"SSE.Views.Settings.textCollaboration": "Collaboration",
"SSE.Views.Settings.textR1C1Style": "R1C1 Reference Style",
"SSE.Views.Toolbar.textBack": "Back",
"SSE.Views.Collaboration.textCollaboration": "Collaboration",
"SSE.Views.Collaboration.textСomments": "Сomments",