Commit e7aab61e authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 30324 - [CoEdit] Юзеру приходит текст в автофигуре с границами селекта,...

Bug 30324 - [CoEdit] Юзеру приходит текст в автофигуре с границами селекта, если были применены эффекты для шрифта

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64735 954022d7-b5bf-4e40-9824-e11837661b57
parent 84c8a731
...@@ -1969,6 +1969,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -1969,6 +1969,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.asc_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.Save); this.asc_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.Save);
} }
CollaborativeEditing.Clear_CollaborativeMarks();
// Принимаем чужие изменения // Принимаем чужие изменения
this.collaborativeEditing.applyChanges(); this.collaborativeEditing.applyChanges();
......
...@@ -9,6 +9,8 @@ function CCollaborativeEditing() ...@@ -9,6 +9,8 @@ function CCollaborativeEditing()
this.m_aLinkData = []; this.m_aLinkData = [];
this.m_aNewImages = []; this.m_aNewImages = [];
this.m_aChangedClasses = {};
this.Start_CollaborationEditing = function() this.Start_CollaborationEditing = function()
{ {
}; };
...@@ -193,11 +195,21 @@ function CCollaborativeEditing() ...@@ -193,11 +195,21 @@ function CCollaborativeEditing()
//----------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------
this.Add_ChangedClass = function(Class) this.Add_ChangedClass = function(Class)
{ {
var Id = Class.Get_Id();
this.m_aChangedClasses[Id] = Class;
}; };
this.Clear_CollaborativeMarks = function(bRepaint) this.Clear_CollaborativeMarks = function()
{ {
for ( var Id in this.m_aChangedClasses )
{
this.m_aChangedClasses[Id].Clear_CollaborativeMarks();
}
// Очищаем массив
this.m_aChangedClasses = {};
}; };
} }
var CollaborativeEditing = new CCollaborativeEditing(); var CollaborativeEditing = new CCollaborativeEditing();
\ No newline at end of file
...@@ -2208,24 +2208,27 @@ Paragraph.prototype = ...@@ -2208,24 +2208,27 @@ Paragraph.prototype =
Element = aRunReview.Get_Next(); Element = aRunReview.Get_Next();
} }
// Рисуем рект вокруг измененных ранов (измененных другим пользователем) if(this.bFromDocument)
Element = aCollChange.Get_Next();
while (null !== Element)
{ {
pGraphics.p_color(Element.r, Element.g, Element.b, 255); // Рисуем рект вокруг измененных ранов (измененных другим пользователем)
pGraphics.AddSmartRect(Element.x0, Page.Y + Line.Top, Element.x1 - Element.x0, Line.Bottom - Line.Top, 0);
Element = aCollChange.Get_Next(); Element = aCollChange.Get_Next();
} while (null !== Element)
// Рисуем подчеркивание орфографии {
if(this.bFromDocument && this.LogicDocument && true === this.LogicDocument.Spelling.Use) pGraphics.p_color(Element.r, Element.g, Element.b, 255);
{ pGraphics.AddSmartRect(Element.x0, Page.Y + Line.Top, Element.x1 - Element.x0, Line.Bottom - Line.Top, 0);
pGraphics.p_color( 255, 0, 0, 255 ); Element = aCollChange.Get_Next();
var SpellingW = editor.WordControl.m_oDrawingDocument.GetMMPerDot(1); }
Element = aSpelling.Get_Next(); // Рисуем подчеркивание орфографии
while ( null != Element ) if(this.LogicDocument && true === this.LogicDocument.Spelling.Use)
{ {
pGraphics.DrawSpellingLine(Element.y0, Element.x0, Element.x1, SpellingW); pGraphics.p_color( 255, 0, 0, 255 );
var SpellingW = editor.WordControl.m_oDrawingDocument.GetMMPerDot(1);
Element = aSpelling.Get_Next(); Element = aSpelling.Get_Next();
while ( null != Element )
{
pGraphics.DrawSpellingLine(Element.y0, Element.x0, Element.x1, SpellingW);
Element = aSpelling.Get_Next();
}
} }
} }
if(pGraphics.End_Command) if(pGraphics.End_Command)
......
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