[SSE] Add more currency formats
This commit is contained in:
parent
e1b61c55d4
commit
90ad9cb280
|
@ -1089,13 +1089,17 @@ define([
|
||||||
|
|
||||||
onNumberFormatMenu: function(menu, item) {
|
onNumberFormatMenu: function(menu, item) {
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
var info = new Asc.asc_CFormatCellsInfo();
|
if (item.value == -1) {
|
||||||
info.asc_setType(Asc.c_oAscNumFormatType.Accounting);
|
// show more formats
|
||||||
info.asc_setSeparator(false);
|
} else {
|
||||||
info.asc_setSymbol(item.value);
|
var info = new Asc.asc_CFormatCellsInfo();
|
||||||
var format = this.api.asc_getFormatCells(info);
|
info.asc_setType(Asc.c_oAscNumFormatType.Accounting);
|
||||||
if (format && format.length>0)
|
info.asc_setSeparator(false);
|
||||||
this.api.asc_setCellFormat(format[0]);
|
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);
|
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
||||||
|
|
|
@ -833,6 +833,10 @@ define([
|
||||||
{
|
{
|
||||||
caption : me.txtYen,
|
caption : me.txtYen,
|
||||||
value : 0x0411 // ¥ ja-JP
|
value : 0x0411 // ¥ ja-JP
|
||||||
|
},{caption: '--'},
|
||||||
|
{
|
||||||
|
caption : me.textMoreFormats,
|
||||||
|
value : -1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue