Commit d1a368bb authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Доработка нового параграфа (переделываение отрисовки). Исправлен баг с выставлением шрифта.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53269 954022d7-b5bf-4e40-9824-e11837661b57
parent 3c6c464d
......@@ -389,8 +389,6 @@ var historyitem_SetShape = 0;
var historyitem_SetDocContent = 1;
var historyitem_SetLstStyle = 2;
function CHistory(Document)
{
this.Index = -1;
......
This diff is collapsed.
......@@ -601,18 +601,18 @@ ParaTextPr.prototype =
this.Set_Position( undefined );
if ( undefined != this.Value.RFonts.Ascii )
this.Set_RFonts_Ascii( RFonts.Ascii );
this.Set_RFonts_Ascii( undefined );
if ( undefined != this.Value.HAnsi )
if ( undefined != this.Value.RFonts.HAnsi )
this.Set_RFonts_HAnsi( undefined );
if ( undefined != this.Value.CS )
if ( undefined != this.Value.RFonts.CS )
this.Set_RFonts_CS( undefined );
if ( undefined != this.Value.EastAsia )
if ( undefined != this.Value.RFonts.EastAsia )
this.Set_RFonts_EastAsia( undefined );
if ( undefined != this.Value.Hint )
if ( undefined != this.Value.RFonts.Hint )
this.Set_RFonts_Hint( undefined );
},
......@@ -2661,7 +2661,7 @@ function ParaNumbering()
{
this.Type = para_Numbering;
this.Item = undefined;
this.Pos = new CParagraphRecalculatePos();
this.Pos = new CParagraphContentPos();
this.Internal =
{
......
......@@ -30,6 +30,8 @@ function ParaRun(Document)
this.Lines = new Array(); // Массив CParaRunLine
this.StartLine = 0; // Строка, с которой начинается данный ран
this.CollaborativeMarks = new Array(); // Массив CParaRunCollaborativeMark
// Добавляем данный класс в таблицу Id (обязательно в конце конструктора)
g_oTableId.Add( this, this.Id );
}
......@@ -1230,6 +1232,26 @@ ParaRun.prototype =
}
},
//-----------------------------------------------------------------------------------
// Функции отрисовки
//-----------------------------------------------------------------------------------
Check_CollabotativeMarks : function(Pos)
{
// TODO: Ускорить работу данной функции
var Counter = 0;
var CollaborativeMarksCount = this.CollaborativeMarks.length;
for ( var MarkPos = 0; MarkPos < CollaborativeMarksCount; MarkPos++ )
{
var CollMark = this.CollaborativeMarks[MarkPos];
if ( CollMark.Pos < Pos && pararun_CollaborativeMark_End === CollMark.Type )
Counter--;
else if ( CollMark.Pos <= Pos && pararun_CollaborativeMark_Start === CollMark.Type )
Counter++;
}
return Counter;
},
//-----------------------------------------------------------------------------------
// Функции для работы с настройками текста свойств
//-----------------------------------------------------------------------------------
Recalc_CompiledPr : function(RecalcMeasure)
......@@ -1794,4 +1816,14 @@ CParaRunLine.prototype =
{
this.Ranges[RangeIndex] = new CParaRunRange( StartPos, EndPos );
}
};
\ No newline at end of file
};
// Метка о конце или начале изменений пришедших от других соавторов документа
var pararun_CollaborativeMark_Start = 0x00;
var pararun_CollaborativeMark_End = 0x01;
function CParaRunCollaborativeMark(Pos, Type)
{
this.Pos = Pos;
this.Type = Type;
}
\ No newline at end of file
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