[SSE] Add more currency formats
This commit is contained in:
parent
e1b61c55d4
commit
90ad9cb280
|
@ -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);
|
||||
|
|
|
@ -833,6 +833,10 @@ define([
|
|||
{
|
||||
caption : me.txtYen,
|
||||
value : 0x0411 // ¥ ja-JP
|
||||
},{caption: '--'},
|
||||
{
|
||||
caption : me.textMoreFormats,
|
||||
value : -1
|
||||
}
|
||||
]
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue