Commit 532fa43d 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@49654 954022d7-b5bf-4e40-9824-e11837661b57
parent 4d88d666
......@@ -307,7 +307,17 @@ CAbstractNum.prototype =
return this.Lvl[Lvl];
},
Set_Lvl : function(iLvl, Lvl_new)
{
if ( "number" != typeof(iLvl) || iLvl < 0 || iLvl >= 9 )
return;
var Lvl_old = this.Lvl[iLvl];
History.Add( this, { Type : historyitem_AbstractNum_LvlChange, Index : iLvl, Old : Lvl_old, New : Lvl_new } );
},
// Определяем многоуровненый список по умолчанию
Create_Default_Numbered : function()
{
......
......@@ -169,17 +169,21 @@ Paragraph.prototype =
return true;
},
Set_Pr : function(oNewPr)
{
var Pr_old = this.Pr;
var Pr_new = oNewPr;
History.Add( Para, { Type : historyitem_Paragraph_Pr, Old : Pr_old, New : Pr_new } );
this.Pr = oNewPr;
},
Copy : function(Parent)
{
var Para = new Paragraph(this.DrawingDocument, Parent, 0, 0, 0, 0, 0);
// Копируем настройки
var Pr_old = Para.Pr;
var Pr_new = this.Pr.Copy();
History.Add( Para, { Type : historyitem_Paragraph_Pr, Old : Pr_old, New : Pr_new } );
Para.Pr = Pr_new;
Para.Set_Pr(this.Pr.Copy());
Para.TextPr.Set_Value( this.TextPr.Value );
......
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