Commit 19d2ae8f authored by GoshaZotov's avatar GoshaZotov

add functions for title/description into format table(for menu)

parent 5e7f5ded
......@@ -229,7 +229,9 @@ var c_oAscChangeTableStyleInfo = {
rowHeader: 4,
rowTotal: 5,
rowBanded: 6,
filterButton: 7
filterButton: 7,
title: 8,
description: 9
};
// Состояние редактора ячейки
......
......@@ -196,7 +196,16 @@
this.tableName = null;
this.tableRange = null;
this.firstRow = null;
this.lastRow = null;
this.bandHor = null;
this.firstCol = null;
this.lastCol = null;
this.bandVer = null;
this.filterButton = null;
//info send in menu - what you can do with row/col into table
this.isInsertRowAbove = null;
this.isInsertRowBelow = null;
this.isInsertColumnLeft = null;
......@@ -204,6 +213,9 @@
this.isDeleteRow = null;
this.isDeleteColumn = null;
this.isDeleteTable = null;
this.altText = null;
this.altTextSummary = null;
}
asc_CFormatTableInfo.prototype = {
asc_getTableStyleName: function() {
......@@ -244,6 +256,12 @@
return this.isDeleteColumn;
}, asc_getIsDeleteTable: function() {
return this.isDeleteTable;
},
asc_getTitle: function() {
return this.altText;
}, asc_getDescription: function() {
return this.altTextSummary;
}
};
......@@ -447,6 +465,8 @@
prot["asc_getIsDeleteRow"] = prot.asc_getIsDeleteRow;
prot["asc_getIsDeleteColumn"] = prot.asc_getIsDeleteColumn;
prot["asc_getIsDeleteTable"] = prot.asc_getIsDeleteTable;
prot["asc_getTitle"] = prot.asc_getTitle;
prot["asc_getDescription"] = prot.asc_getDescription;
window["AscCommonExcel"].asc_CCellInfo = asc_CCellInfo;
prot = asc_CCellInfo.prototype;
......
......@@ -6124,6 +6124,17 @@ TablePart.prototype.checkTotalRowFormula = function(ws)
}
};
TablePart.prototype.changeAltText = function(val)
{
this.altText = val;
};
TablePart.prototype.changeAltTextSummary = function(val)
{
this.altTextSummary = val;
};
/** @constructor */
function AutoFilter() {
this.Ref = null;
......
......@@ -2542,6 +2542,18 @@
{
tablePart.showButton(val);
break;
}
case c_oAscChangeTableStyleInfo.title:
{
tablePart.changeAltText(val);
break;
}
case c_oAscChangeTableStyleInfo.description:
{
tablePart.changeAltTextSummary(val);
break;
}
}
......
......@@ -6960,6 +6960,9 @@
cell_info.formatTableInfo.firstRow = curTablePart.HeaderRowCount === null;
cell_info.formatTableInfo.tableRange = curTablePart.Ref.getAbsName();
cell_info.formatTableInfo.filterButton = curTablePart.isShowButton();
cell_info.formatTableInfo.altText = curTablePart.altText;
cell_info.formatTableInfo.altTextSummary = curTablePart.altTextSummary;
this.af_setDisableProps(curTablePart, cell_info.formatTableInfo);
}
......
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