Commit 01e67b71 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Убрал дублирующие функции asc_setCellFinancialFormat,...

Убрал дублирующие функции asc_setCellFinancialFormat, asc_setCellPercentFormat, asc_setCellDelimitedFormat
Поменял формат процентов: '0.00%' -> '0%' (Баг http://bugzserver/show_bug.cgi?id=19454)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48334 954022d7-b5bf-4e40-9824-e11837661b57
parent 0d39f7de
......@@ -2340,21 +2340,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.wb.restoreFocus();
},
asc_setCellFinancialFormat: function (format) {
this.wb.getWorksheet().setSelectionInfo("format", c_oAscFormatOptions.Accounting);
this.wb.restoreFocus();
},
asc_setCellPercentFormat: function () {
this.wb.getWorksheet().setSelectionInfo("format", '0%');
this.wb.restoreFocus();
},
asc_setCellDelimitedFormat: function () {
this.wb.getWorksheet().setSelectionInfo("format", '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)');
this.wb.restoreFocus();
},
asc_setCellStyle: function (name) {
this.wb.getWorksheet().setSelectionInfo("style", name);
this.wb.restoreFocus();
......@@ -3024,9 +3009,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
//prot["asc_setCellValue"] = prot.asc_setCellValue; - не используется (и не стоит так делать)
prot["asc_setCellFormat"] = prot.asc_setCellFormat;
prot["asc_setCellAngle"] = prot.asc_setCellAngle;
prot["asc_setCellFinancialFormat"] = prot.asc_setCellFinancialFormat;
prot["asc_setCellPercentFormat"] = prot.asc_setCellPercentFormat;
prot["asc_setCellDelimitedFormat"] = prot.asc_setCellDelimitedFormat;
prot["asc_setCellStyle"] = prot.asc_setCellStyle;
prot["asc_increaseCellDigitNumbers"] = prot.asc_increaseCellDigitNumbers;
prot["asc_decreaseCellDigitNumbers"] = prot.asc_decreaseCellDigitNumbers;
......
......@@ -148,7 +148,7 @@ var c_oAscFormatOptions = {
DateShort: 'm/d/yyyy',
DateLong: '[$-F800]dddd, mmmm dd, yyyy',
Time: '[$-F400]h:mm:ss AM/PM',
Percentage: '0.00%',
Percentage: '0%',
Fraction: '# ?/?',
Scientific: '0.00E+00',
Text: '@'
......
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