Commit a4499fb9 authored by GoshaZotov's avatar GoshaZotov

add new function

parent 2d26d70b
......@@ -4164,6 +4164,7 @@
return "Column" + index;
}
},
//TODO убрать начеркивание
_setColorStyleTable: function(range, options, isOpenFilter, isSetVal, isSetTotalRowType)
{
......@@ -4290,6 +4291,30 @@
}
},
getTableCellStyle: function(row, col)
{
var worksheet = this.worksheet;
var res = null;
var tableIndex = this.searchRangeInTableParts(Asc.Range(col, row, col, row));
if(tableIndex > -1)
{
var table = worksheet.TableParts[tableIndex];
var style = table.TableStyleInfo;
var styleForCurTable = worksheet.workbook.TableStyles.AllStyles[style.Name];
if(styleForCurTable)
{
var startCol = table.Ref.c1 - col;
var startRow = table.Ref.r1 - row;
var bbox = Asc.Range(startCol, startRow, startCol, startRow);
res = styleForCurTable.getStyle(bbox, startRow, startCol, style, /*headerRowCount*/0, /*totalsRowCount*/0);
}
}
return res;
},
_getFormatTableColumnRange: function(table, columnName)
{
var worksheet = this.worksheet;
......
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