Commit 9052c99e authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

Копирование символа конца параграфа через бинарник.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48955 954022d7-b5bf-4e40-9824-e11837661b57
parent d749cf6b
...@@ -2530,11 +2530,10 @@ PasteProcessor.prototype = ...@@ -2530,11 +2530,10 @@ PasteProcessor.prototype =
} }
} }
if(aContent.length > 0) if(oReadResult.bLastRun)
{ this.bInBlock = false;
//todo в зависимости от наличия символа конца параграфа else
this.bInBlock = true; this.bInBlock = true;
}
//создаем список используемых шрифтов //создаем список используемых шрифтов
var AllFonts = new Object(); var AllFonts = new Object();
for ( var Index = 0, Count = aContent.length; Index < Count; Index++ ) for ( var Index = 0, Count = aContent.length; Index < Count; Index++ )
......
...@@ -268,7 +268,8 @@ var c_oSerRunType = { ...@@ -268,7 +268,8 @@ var c_oSerRunType = {
fldstart: 9, fldstart: 9,
fldend: 10, fldend: 10,
CommentReference: 11, CommentReference: 11,
pptxDrawing: 12 pptxDrawing: 12,
_LastRun: 13 //для копирования через бинарник
}; };
var c_oSerImageType = { var c_oSerImageType = {
MediaId:0, MediaId:0,
...@@ -2260,6 +2261,13 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap) ...@@ -2260,6 +2261,13 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap)
oThis.memory.WriteLong(c_oSerPropLenType.Null); oThis.memory.WriteLong(c_oSerPropLenType.Null);
}); });
} }
if(bUseSelection && ParaEnd < Content.length - 1)
{
this.WriteRun(function(){
oThis.memory.WriteByte(c_oSerRunType._LastRun);
oThis.memory.WriteLong(c_oSerPropLenType.Null);
});
}
}; };
this.WriteText = function() this.WriteText = function()
{ {
...@@ -2992,7 +3000,8 @@ function BinaryFileReader(doc, openParams) ...@@ -2992,7 +3000,8 @@ function BinaryFileReader(doc, openParams)
lvlStyles: null, lvlStyles: null,
DefpPr: null, DefpPr: null,
DefrPr: null, DefrPr: null,
DocumentContent: null DocumentContent: null,
bLastRun: null
}; };
this.getbase64DecodedData = function(szSrc) this.getbase64DecodedData = function(szSrc)
{ {
...@@ -3153,6 +3162,7 @@ function BinaryFileReader(doc, openParams) ...@@ -3153,6 +3162,7 @@ function BinaryFileReader(doc, openParams)
this.oReadResult.tableStyles = []; this.oReadResult.tableStyles = [];
this.oReadResult.lvlStyles = []; this.oReadResult.lvlStyles = [];
this.oReadResult.DocumentContent = []; this.oReadResult.DocumentContent = [];
this.oReadResult.bLastRun = null;
var res = c_oSerConstants.ReadOk; var res = c_oSerConstants.ReadOk;
//mtLen //mtLen
...@@ -5530,6 +5540,8 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow ...@@ -5530,6 +5540,8 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
this.oComments[oCommon.Id] = {Ref: oCommon}; this.oComments[oCommon.Id] = {Ref: oCommon};
} }
} }
else if (c_oSerRunType._LastRun === type)
this.oReadResult.bLastRun = true;
else else
res = c_oSerConstants.ReadUnknown; res = c_oSerConstants.ReadUnknown;
return res; return res;
......
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