Commit 3f92948a authored by Alexander.Trofimov's avatar Alexander.Trofimov

add method asc_getCurrencySymbols

parent aadc52b5
...@@ -236,6 +236,13 @@ var editor; ...@@ -236,6 +236,13 @@ var editor;
} }
return res; return res;
}; };
spreadsheet_api.prototype.asc_getCurrencySymbols = function () {
var result = {};
for (var key in AscCommon.g_aCultureInfos) {
result[key] = AscCommon.g_aCultureInfos[key].CurrencySymbol;
}
return result;
};
spreadsheet_api.prototype.asc_getLocaleExample2 = function(format, value, culture) { spreadsheet_api.prototype.asc_getLocaleExample2 = function(format, value, culture) {
var cultureInfo = AscCommon.g_aCultureInfos[culture] || AscCommon.g_oDefaultCultureInfo; var cultureInfo = AscCommon.g_aCultureInfos[culture] || AscCommon.g_oDefaultCultureInfo;
var numFormat = AscCommon.oNumFormatCache.get(format); var numFormat = AscCommon.oNumFormatCache.get(format);
...@@ -3374,6 +3381,7 @@ var editor; ...@@ -3374,6 +3381,7 @@ var editor;
prot["asc_GetFontThumbnailsPath"] = prot.asc_GetFontThumbnailsPath; prot["asc_GetFontThumbnailsPath"] = prot.asc_GetFontThumbnailsPath;
prot["asc_setDocInfo"] = prot.asc_setDocInfo; prot["asc_setDocInfo"] = prot.asc_setDocInfo;
prot["asc_getLocaleExample"] = prot.asc_getLocaleExample; prot["asc_getLocaleExample"] = prot.asc_getLocaleExample;
prot['asc_getCurrencySymbols'] = prot.asc_getCurrencySymbols;
prot['asc_getLocaleExample2'] = prot.asc_getLocaleExample2; prot['asc_getLocaleExample2'] = prot.asc_getLocaleExample2;
prot['asc_getFormatCells'] = prot.asc_getFormatCells; prot['asc_getFormatCells'] = prot.asc_getFormatCells;
prot["asc_getLocaleCurrency"] = prot.asc_getLocaleCurrency; prot["asc_getLocaleCurrency"] = prot.asc_getLocaleCurrency;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment