Commit a34dadca authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

WorkbookView.prototype.getTablePictures - в данной функции можно создавать...

WorkbookView.prototype.getTablePictures - в данной функции можно создавать класс AutoFilters без параметра

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61821 954022d7-b5bf-4e40-9824-e11837661b57
parent ffc55535
...@@ -1871,7 +1871,7 @@ var maxValRow = 100000; ...@@ -1871,7 +1871,7 @@ var maxValRow = 100000;
displayName: customStyles[i].displayName, displayName: customStyles[i].displayName,
type: 'custom', type: 'custom',
image: this._drawSmallIconTable(canvas, customStyles[i], fmgrGraphics, oFont) image: this._drawSmallIconTable(canvas, customStyles[i], fmgrGraphics, oFont)
}; }
result[n] = new formatTablePictures(options); result[n] = new formatTablePictures(options);
n++; n++;
} }
...@@ -1890,7 +1890,7 @@ var maxValRow = 100000; ...@@ -1890,7 +1890,7 @@ var maxValRow = 100000;
displayName: defaultStyles[i].displayName, displayName: defaultStyles[i].displayName,
type: 'default', type: 'default',
image: this._drawSmallIconTable(canvas, defaultStyles[i], fmgrGraphics, oFont) image: this._drawSmallIconTable(canvas, defaultStyles[i], fmgrGraphics, oFont)
}; }
result[n] = new formatTablePictures(options); result[n] = new formatTablePictures(options);
n++; n++;
} }
...@@ -5980,20 +5980,12 @@ var maxValRow = 100000; ...@@ -5980,20 +5980,12 @@ var maxValRow = 100000;
return return
var canvas = document.getElementById('drawIcon');*/ var canvas = document.getElementById('drawIcon');*/
var aWs = this._getCurrentWS();
var ctx = new Asc.DrawingContext({canvas: canvas, units: 1/*pt*/, fmgrGraphics: fmgrGraphics, font: oFont}); var ctx = new Asc.DrawingContext({canvas: canvas, units: 1/*pt*/, fmgrGraphics: fmgrGraphics, font: oFont});
var styleOptions = style;
if(style == undefined)
style = 'TableStyleLight1';
var styleOptions;
if(typeof style == 'object')
styleOptions = style;
else
styleOptions = aWs.workbook.TableStyles.AllStyles[style];
//по умолчанию ставим строку заголовка и чередующиеся строки, позже нужно будет получать параметр //по умолчанию ставим строку заголовка и чередующиеся строки, позже нужно будет получать параметр
var styleInfo = false; var styleInfo = false;
var tableParts = undefined;
/*var tableParts = undefined;
if(aWs && tableParts) if(aWs && tableParts)
{ {
styleInfo = { styleInfo = {
...@@ -6004,7 +5996,7 @@ var maxValRow = 100000; ...@@ -6004,7 +5996,7 @@ var maxValRow = 100000;
TotalsRowCount: tableParts.TotalsRowCount TotalsRowCount: tableParts.TotalsRowCount
} }
} }*/
if(!styleInfo) if(!styleInfo)
{ {
......
...@@ -1207,7 +1207,7 @@ ...@@ -1207,7 +1207,7 @@
}; };
WorkbookView.prototype.getTablePictures = function () { WorkbookView.prototype.getTablePictures = function () {
var autoFilters = new asc.AutoFilters(this.getWorksheet(this.wsActive)); var autoFilters = new asc.AutoFilters();
return autoFilters.getTablePictures(this.model, this.fmgrGraphics, this.m_oFont); return autoFilters.getTablePictures(this.model, this.fmgrGraphics, this.m_oFont);
}; };
......
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