Commit 1ee832aa authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

Bug 26730 - Autosave: Пропадает выделение комментария в колонтитуле после сборки версии.

Bug 26166 - [Conversion] Теряется комментарий в автофигуре после конвертации в DOCX.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59230 954022d7-b5bf-4e40-9824-e11837661b57
parent db0cf18b
...@@ -805,7 +805,7 @@ function BinaryFileWriter(doc) ...@@ -805,7 +805,7 @@ function BinaryFileWriter(doc)
//Write StyleTable //Write StyleTable
this.WriteTable(c_oSerTableTypes.Style, new BinaryStyleTableWriter(this.memory, this.Document, oNumIdMap)); this.WriteTable(c_oSerTableTypes.Style, new BinaryStyleTableWriter(this.memory, this.Document, oNumIdMap));
//Write DocumentTable //Write DocumentTable
var oBinaryHeaderFooterTableWriter = new BinaryHeaderFooterTableWriter(this.memory, this.Document, oNumIdMap); var oBinaryHeaderFooterTableWriter = new BinaryHeaderFooterTableWriter(this.memory, this.Document, oNumIdMap, oMapCommentId);
this.WriteTable(c_oSerTableTypes.Document, new BinaryDocumentTableWriter(this.memory, this.Document, oMapCommentId, oNumIdMap, null, oBinaryHeaderFooterTableWriter)); this.WriteTable(c_oSerTableTypes.Document, new BinaryDocumentTableWriter(this.memory, this.Document, oMapCommentId, oNumIdMap, null, oBinaryHeaderFooterTableWriter));
//Write HeaderFooter //Write HeaderFooter
this.WriteTable(c_oSerTableTypes.HdrFtr, oBinaryHeaderFooterTableWriter); this.WriteTable(c_oSerTableTypes.HdrFtr, oBinaryHeaderFooterTableWriter);
...@@ -3208,11 +3208,12 @@ Binary_tblPrWriter.prototype = ...@@ -3208,11 +3208,12 @@ Binary_tblPrWriter.prototype =
} }
} }
}; };
function BinaryHeaderFooterTableWriter(memory, doc, oNumIdMap) function BinaryHeaderFooterTableWriter(memory, doc, oNumIdMap, oMapCommentId)
{ {
this.memory = memory; this.memory = memory;
this.Document = doc; this.Document = doc;
this.oNumIdMap = oNumIdMap; this.oNumIdMap = oNumIdMap;
this.oMapCommentId = oMapCommentId;
this.aHeaders = []; this.aHeaders = [];
this.aFooters = []; this.aFooters = [];
this.bs = new BinaryCommonWriter(this.memory); this.bs = new BinaryCommonWriter(this.memory);
...@@ -3244,7 +3245,7 @@ function BinaryHeaderFooterTableWriter(memory, doc, oNumIdMap) ...@@ -3244,7 +3245,7 @@ function BinaryHeaderFooterTableWriter(memory, doc, oNumIdMap)
{ {
var oThis = this; var oThis = this;
//Content //Content
var dtw = new BinaryDocumentTableWriter(this.memory, this.Document, null, this.oNumIdMap, null, null); var dtw = new BinaryDocumentTableWriter(this.memory, this.Document, this.oMapCommentId, this.oNumIdMap, null, null);
this.bs.WriteItem(c_oSerHdrFtrTypes.HdrFtr_Content, function(){dtw.WriteDocumentContent(item.Content);}); this.bs.WriteItem(c_oSerHdrFtrTypes.HdrFtr_Content, function(){dtw.WriteDocumentContent(item.Content);});
}; };
}; };
...@@ -7137,7 +7138,7 @@ function Binary_HdrFtrTableReader(doc, oReadResult, openParams, stream) ...@@ -7137,7 +7138,7 @@ function Binary_HdrFtrTableReader(doc, oReadResult, openParams, stream)
this.openParams = openParams; this.openParams = openParams;
this.stream = stream; this.stream = stream;
this.bcr = new Binary_CommonReader(this.stream); this.bcr = new Binary_CommonReader(this.stream);
this.bdtr = new Binary_DocumentTableReader(this.Document, this.oReadResult, this.openParams, this.stream, true, {}); this.bdtr = new Binary_DocumentTableReader(this.Document, this.oReadResult, this.openParams, this.stream, true, this.oReadResult.oCommentsPlaces);
this.Read = function() this.Read = function()
{ {
var oThis = this; var oThis = this;
......
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