Commit fd037cd8 authored by konovalovsergey's avatar konovalovsergey

export for minimization

parent cff66702
......@@ -1004,7 +1004,7 @@ var editor;
}
}).then(function (content) {
if (content) {
pivotTableCacheDefinition = new CT_PivotCacheDefinition();
pivotTableCacheDefinition = new Asc.CT_PivotCacheDefinition();
new openXml.SaxParserBase().parse(content, pivotTableCacheDefinition);
if (pivotTableCacheDefinition.isValidCacheSource()) {
wb.pivotCaches[wbPivotCacheXml.cacheId] = pivotTableCacheDefinition;
......@@ -1017,7 +1017,7 @@ var editor;
}
}).then(function (content) {
if (content) {
var pivotTableCacheRecords = new CT_PivotCacheRecords();
var pivotTableCacheRecords = new Asc.CT_PivotCacheRecords();
new openXml.SaxParserBase().parse(content, pivotTableCacheRecords);
pivotTableCacheDefinition.cacheRecords = pivotTableCacheRecords;
}
......@@ -1044,7 +1044,7 @@ var editor;
if (res) {
var ws = wb.getWorksheet(wsIndex);
for (var i = 0; i < res.length; ++i) {
var pivotTable = new CT_pivotTableDefinition();
var pivotTable = new Asc.CT_pivotTableDefinition();
new openXml.SaxParserBase().parse(res[i], pivotTable);
var cacheDefinition = wb.pivotCaches[pivotTable.cacheId];
if (cacheDefinition) {
......
......@@ -10362,7 +10362,11 @@ prot['Second'] = prot.Second;
window['AscCommonExcel'].ToName_ST_ItemType = ToName_ST_ItemType;
window["Asc"]["CT_pivotTableDefinition"] = CT_pivotTableDefinition;
window['Asc']['CT_PivotCacheDefinition'] = window['Asc'].CT_PivotCacheDefinition = CT_PivotCacheDefinition;
window['Asc']['CT_PivotCacheRecords'] = window['Asc'].CT_PivotCacheRecords = CT_PivotCacheRecords;
window["Asc"]["CT_pivotTableDefinition"] = window['Asc'].CT_pivotTableDefinition = CT_pivotTableDefinition;
prot = CT_pivotTableDefinition.prototype;
prot["asc_getName"] = prot.asc_getName;
prot["asc_getPageWrap"] = prot.asc_getPageWrap;
......
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