Commit 49c7b54b authored by GoshaZotov's avatar GoshaZotov

create AdvancedTableInfoSettings(get from menu information about format table advanced settings)

parent cc469450
...@@ -230,8 +230,7 @@ var c_oAscChangeTableStyleInfo = { ...@@ -230,8 +230,7 @@ var c_oAscChangeTableStyleInfo = {
rowTotal: 5, rowTotal: 5,
rowBanded: 6, rowBanded: 6,
filterButton: 7, filterButton: 7,
title: 8, advancedSettings: 8
description: 9
}; };
// Состояние редактора ячейки // Состояние редактора ячейки
......
...@@ -418,6 +418,8 @@ var UndoRedoDataTypes = new function() { ...@@ -418,6 +418,8 @@ var UndoRedoDataTypes = new function() {
this.DefinedName = 39; this.DefinedName = 39;
this.AdvancedTableInfoSettings = 40;
this.GlobalTableIdAdd = 44; this.GlobalTableIdAdd = 44;
this.GraphicObjects = 45; this.GraphicObjects = 45;
this.GOPairProps = 46; this.GOPairProps = 46;
...@@ -485,6 +487,7 @@ var UndoRedoDataTypes = new function() { ...@@ -485,6 +487,7 @@ var UndoRedoDataTypes = new function() {
case this.AutoFilter: return new UndoRedoData_AutoFilter(); break; case this.AutoFilter: return new UndoRedoData_AutoFilter(); break;
case this.AutoFiltersOptions: return new Asc.AutoFiltersOptions(); break; case this.AutoFiltersOptions: return new Asc.AutoFiltersOptions(); break;
case this.AutoFilterObj: return new Asc.AutoFilterObj(); break; case this.AutoFilterObj: return new Asc.AutoFilterObj(); break;
case this.AdvancedTableInfoSettings: return new Asc.AdvancedTableInfoSettings(); break;
case this.CustomFilters: return new Asc.CustomFilters(); break; case this.CustomFilters: return new Asc.CustomFilters(); break;
case this.CustomFilter: return new Asc.CustomFilter(); break; case this.CustomFilter: return new Asc.CustomFilter(); break;
case this.ColorFilter: return new Asc.ColorFilter(); break; case this.ColorFilter: return new Asc.ColorFilter(); break;
......
...@@ -238,6 +238,53 @@ ...@@ -238,6 +238,53 @@
asc_getSortColor : function() { return this.sortColor; } asc_getSortColor : function() { return this.sortColor; }
}; };
var g_oAdvancedTableInfoSettings = {
title : 0,
descritption: 1
};
function AdvancedTableInfoSettings () {
if ( !(this instanceof AutoFiltersOptions) ) {return new AutoFiltersOptions();}
this.Properties = g_oAdvancedTableInfoSettings;
this.title = null;
this.descritption = null;
return this;
}
AdvancedTableInfoSettings.prototype = {
constructor: AdvancedTableInfoSettings,
getType : function () {
return UndoRedoDataTypes.AdvancedTableInfoSettings;
},
getProperties : function () {
return this.Properties;
},
getProperty : function (nType) {
switch (nType) {
case this.Properties.title: return this.title; break;
case this.Properties.descritption: return this.descritption; break;
}
return null;
},
setProperty : function (nType, value) {
switch (nType) {
case this.Properties.title: this.title = value;break;
case this.Properties.descritption: this.descritption = value;break;
}
},
asc_setTitle : function(val) { this.title = val;},
asc_setDescritption : function(val) { this.descritption = val; },
asc_getTitle : function() { return this.title; },
asc_getDescritption : function() { return this.descritption; }
};
var g_oAutoFilterObj = { var g_oAutoFilterObj = {
type : 0, type : 0,
filter : 1 filter : 1
...@@ -2544,15 +2591,12 @@ ...@@ -2544,15 +2591,12 @@
break; break;
} }
case c_oAscChangeTableStyleInfo.title: case c_oAscChangeTableStyleInfo.advancedSettings:
{
tablePart.changeAltText(val);
break;
}
case c_oAscChangeTableStyleInfo.description:
{ {
tablePart.changeAltTextSummary(val); var title = val.asc_getTitle()
var description = val.asc_getDescription()
tablePart.changeAltText(title);
tablePart.changeAltTextSummary(description);
break; break;
} }
...@@ -5154,6 +5198,13 @@ ...@@ -5154,6 +5198,13 @@
prot["asc_setType"] = prot.asc_setType; prot["asc_setType"] = prot.asc_setType;
prot["asc_getFilter"] = prot.asc_getFilter; prot["asc_getFilter"] = prot.asc_getFilter;
window["Asc"]["AdvancedTableInfoSettings"] = window["Asc"].AdvancedTableInfoSettings = AdvancedTableInfoSettings;
prot = AdvancedTableInfoSettings.prototype;
prot["asc_getTitle"] = prot.asc_getTitle;
prot["asc_getDescription"] = prot.asc_getDescription;
prot["asc_setTitle"] = prot.asc_setTitle;
prot["asc_setDescription"] = prot.asc_setDescription;
window["AscCommonExcel"].AutoFiltersOptionsElements = AutoFiltersOptionsElements; window["AscCommonExcel"].AutoFiltersOptionsElements = AutoFiltersOptionsElements;
prot = AutoFiltersOptionsElements.prototype; prot = AutoFiltersOptionsElements.prototype;
prot["asc_getText"] = prot.asc_getText; prot["asc_getText"] = prot.asc_getText;
......
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