Commit c54b9577 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@66271 954022d7-b5bf-4e40-9824-e11837661b57
parent 708ad0fb
......@@ -13167,6 +13167,12 @@ Paragraph.prototype.Add_PrChange = function()
this.private_UpdateTrackRevisions();
}
};
Paragraph.prototype.Set_PrChange = function(PrChange, ReviewInfo)
{
History.Add(this, {Type : historyitem_Paragraph_PrChange, Old : {PrChange : this.Pr.PrChange, ReviewInfo : this.Pr.ReviewInfo ? this.Pr.ReviewInfo.Copy() : undefined}, New : {PrChange : PrChange, ReviewInfo : ReviewInfo ? ReviewInfo.Copy() : undefined}});
this.Pr.Set_PrChange(PrChange, ReviewInfo);
this.private_UpdateTrackRevisions();
};
Paragraph.prototype.Remove_PrChange = function()
{
if (true === this.Have_PrChange())
......
......@@ -6381,6 +6381,13 @@ ParaRun.prototype.Add_PrChange = function()
}
};
ParaRun.prototype.Set_PrChange = function(PrChange, ReviewInfo)
{
History.Add(this, {Type : historyitem_ParaRun_PrChange, New : {PrChange : PrChange, ReviewInfo : ReviewInfo ? ReviewInfo.Copy() : undefined}, Old : {PrChange : this.Pr.PrChange, ReviewInfo : this.Pr.ReviewInfo ? this.Pr.ReviewInfo.Copy() : undefined}});
this.Pr.Set_PrChange(PrChange, ReviewInfo);
this.private_UpdateTrackRevisions();
};
ParaRun.prototype.Remove_PrChange = function()
{
if (true === this.Have_PrChange())
......@@ -10047,6 +10054,15 @@ ParaRun.prototype.Set_ReviewType = function(Value)
this.private_UpdateTrackRevisions();
}
};
ParaRun.prototype.Set_ReviewTypeWithInfo = function(ReviewType, ReviewInfo)
{
History.Add(this, {Type : historyitem_ParaRun_ReviewType, Old : {ReviewType : this.ReviewType, ReviewInfo : this.ReviewInfo ? this.ReviewInfo.Copy() : undefined}, New : {ReviewType : ReviewType, ReviewInfo : ReviewInfo ? ReviewInfo.Copy() : undefined}});
this.ReviewType = ReviewType;
this.ReviewInfo = ReviewInfo;
this.private_UpdateTrackRevisions();
};
ParaRun.prototype.Get_Parent = function()
{
if (!this.Paragraph)
......
......@@ -8332,6 +8332,12 @@ CTextPr.prototype =
this.ReviewInfo.Update();
},
Set_PrChange : function(PrChange, ReviewInfo)
{
this.PrChange = PrChange;
this.ReviewInfo = ReviewInfo;
},
Remove_PrChange : function()
{
delete this.PrChange;
......@@ -10266,6 +10272,12 @@ CParaPr.prototype =
this.ReviewInfo.Update();
},
Set_PrChange : function(PrChange, ReviewInfo)
{
this.PrChange = PrChange;
this.ReviewInfo = ReviewInfo;
},
Remove_PrChange : function()
{
delete this.PrChange;
......
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