[SSE] Add more currency formats

This commit is contained in:
Julia Radzhabova 2019-06-28 17:41:18 +03:00
parent e1b61c55d4
commit 90ad9cb280
2 changed files with 15 additions and 7 deletions

View file

@ -1089,13 +1089,17 @@ define([
onNumberFormatMenu: function(menu, item) {
if (this.api) {
var info = new Asc.asc_CFormatCellsInfo();
info.asc_setType(Asc.c_oAscNumFormatType.Accounting);
info.asc_setSeparator(false);
info.asc_setSymbol(item.value);
var format = this.api.asc_getFormatCells(info);
if (format && format.length>0)
this.api.asc_setCellFormat(format[0]);
if (item.value == -1) {
// show more formats
} else {
var info = new Asc.asc_CFormatCellsInfo();
info.asc_setType(Asc.c_oAscNumFormatType.Accounting);
info.asc_setSeparator(false);
info.asc_setSymbol(item.value);
var format = this.api.asc_getFormatCells(info);
if (format && format.length>0)
this.api.asc_setCellFormat(format[0]);
}
}
Common.NotificationCenter.trigger('edit:complete', this.toolbar);

View file

@ -833,6 +833,10 @@ define([
{
caption : me.txtYen,
value : 0x0411 // ¥ ja-JP
},{caption: '--'},
{
caption : me.textMoreFormats,
value : -1
}
]
})