Commit 1c959caf authored by Ilya.Kirillov's avatar Ilya.Kirillov

Исправлен баг с заливкой чужих изменений, теперь заливается только добавленный...

Исправлен баг с заливкой чужих изменений, теперь заливается только добавленный текст, а измененные текстовые настройки не заливаются (исправлен баг 27561). В список исключений орфографии добавлены слова OnlyOffice, API (баг 27568). Исправлен баг с записью в бинарник управляющих символов в формулах (баг 27566).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59690 954022d7-b5bf-4e40-9824-e11837661b57
parent a3c2e2b3
......@@ -349,7 +349,7 @@ ParaSpace.prototype =
Context.SetFontSlot( fontslot_ASCII, this.Get_FontKoef() );
var Temp = Context.Measure(" ");
var Temp = Context.MeasureCode(0x20);
var ResultWidth = (Math.max((Temp.Width + TextPr.Spacing), 0) * 16384) | 0;
this.Width = ResultWidth;
......
......@@ -590,7 +590,7 @@ ParaRun.prototype.Concat_ToContent = function(NewItems)
var StartPos = this.Content.length;
this.Content = this.Content.concat( NewItems );
History.Add( this, { Type : historyitem_ParaRun_AddItem, Pos : StartPos, EndPos : this.Content.length - 1, Items : NewItems } );
History.Add( this, { Type : historyitem_ParaRun_AddItem, Pos : StartPos, EndPos : this.Content.length - 1, Items : NewItems, Color : false } );
// Отмечаем, что надо перемерить элементы в данном ране
this.RecalcInfo.Measure = true;
......@@ -6389,6 +6389,7 @@ ParaRun.prototype.Save_Changes = function(Data, Writer)
{
case historyitem_ParaRun_AddItem:
{
// Bool : Подсвечивать ли данные изменения
// Long : Количество элементов
// Array of :
// {
......@@ -6399,6 +6400,11 @@ ParaRun.prototype.Save_Changes = function(Data, Writer)
var bArray = Data.UseArray;
var Count = Data.Items.length;
if (false === Data.Color)
Writer.WriteBool(false);
else
Writer.WriteBool(true);
Writer.WriteLong( Count );
for ( var Index = 0; Index < Count; Index++ )
......@@ -6787,6 +6793,7 @@ ParaRun.prototype.Load_Changes = function(Reader, Reader2, Color)
{
case historyitem_ParaRun_AddItem :
{
// Bool : Подсвечивать ли данные изменения
// Long : Количество элементов
// Array of :
// {
......@@ -6794,6 +6801,7 @@ ParaRun.prototype.Load_Changes = function(Reader, Reader2, Color)
// Variable : Id Элемента
// }
var bColorChanges = Reader.GetBool();
var Count = Reader.GetLong();
for ( var Index = 0; Index < Count; Index++ )
......@@ -6803,7 +6811,7 @@ ParaRun.prototype.Load_Changes = function(Reader, Reader2, Color)
if ( null != Element )
{
if (null !== Color)
if (true === bColorChanges && null !== Color)
{
this.CollaborativeMarks.Update_OnAdd( Pos );
this.CollaborativeMarks.Add( Pos, Pos + 1, Color );
......
......@@ -2103,7 +2103,11 @@ function Binary_oMathWriter(memory, oMathPara)
{
this.memory.WriteByte(c_oSer_OMathBottomNodesValType.Val);
this.memory.WriteByte(c_oSerPropLenType.Variable);
this.memory.WriteString2(convertUnicodeToUTF16([Chr]));
if (OPERATOR_EMPTY === Chr)
this.memory.WriteString2("");
else
this.memory.WriteString2(convertUnicodeToUTF16([Chr]));
}
this.WriteCount = function(Count)
{
......
......@@ -15,6 +15,12 @@
var DOCUMENT_SPELLING_MAX_PARAGRAPHS = 50; // максимальное количество параграфов, которые мы проверяем в таймере
var DOCUMENT_SPELLING_MAX_ERRORS = 2000; // максимальное количество ошибок, которые отрисовываются
var DOCUMENT_SPELLING_EXCEPTIONAL_WORDS =
{
"Teamlab" : true, "teamlab" : true, "OnlyOffice" : true, "ONLYOFFICE" : true, "API" : true
};
function CDocumentSpelling()
{
this.Use = true;
......@@ -26,10 +32,9 @@ function CDocumentSpelling()
this.WaitingParagraphs = {}; // Параграфы, которые ждут ответа от сервера
this.WaitingParagraphsCount = 0;
// Добавим в список исключений слово Teamlab
this.Words["Teamlab"] = true;
this.Words["teamlab"] = true;
// Заполним начальный список исключений
this.Words = DOCUMENT_SPELLING_EXCEPTIONAL_WORDS;
}
CDocumentSpelling.prototype =
......
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