Commit 564d6dab authored by Ilya.Kirillov's avatar Ilya.Kirillov

В класс CRevisionsChange добавлено поле с темным цветом пользователя.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66961 954022d7-b5bf-4e40-9824-e11837661b57
parent fc6cc0d2
......@@ -6526,6 +6526,7 @@ function CRevisionsChange()
this.UserName = "";
this.UserId = "";
this.DateTime = "";
this.UserColor = new CColor(0, 0, 0, 255);
this.Paragraph = null;
this.StartPos = null;
......@@ -6537,11 +6538,20 @@ function CRevisionsChange()
this._PosChanged = false;
}
CRevisionsChange.prototype.get_UserId = function(){return this.UserId;};
CRevisionsChange.prototype.put_UserId = function(UserId){this.UserId = UserId;};
CRevisionsChange.prototype.put_UserId = function(UserId)
{
this.UserId = UserId;
this.private_UpdateUserColor();
};
CRevisionsChange.prototype.get_UserName = function(){return this.UserName;};
CRevisionsChange.prototype.put_UserName = function(UserName){this.UserName = UserName;};
CRevisionsChange.prototype.put_UserName = function(UserName)
{
this.UserName = UserName;
this.private_UpdateUserColor();
};
CRevisionsChange.prototype.get_DateTime = function(){return this.DateTime};
CRevisionsChange.prototype.put_DateTime = function(DateTime){this.DateTime = DateTime};
CRevisionsChange.prototype.get_UserColor = function(){return this.UserColor;};
CRevisionsChange.prototype.get_StartPos = function(){return this.StartPos};
CRevisionsChange.prototype.put_StartPos = function(StartPos){this.StartPos = StartPos;};
CRevisionsChange.prototype.get_EndPos = function(){return this.EndPos};
......@@ -6606,6 +6616,10 @@ CRevisionsChange.prototype.ComparePrevPosition = function()
return true;
};
CRevisionsChange.prototype.private_UpdateUserColor = function()
{
this.UserColor = getUserColorById(this.UserId, this.UserName, true, false);
};
asc_docs_api.prototype.asc_undoAllChanges = function ()
{
......
......@@ -725,6 +725,7 @@ CRevisionsChange.prototype['get_UserName'] = CRevisionsChange.prototype.get_User
CRevisionsChange.prototype['put_UserName'] = CRevisionsChange.prototype.put_UserName;
CRevisionsChange.prototype['get_DateTime'] = CRevisionsChange.prototype.get_DateTime;
CRevisionsChange.prototype['put_DateTime'] = CRevisionsChange.prototype.put_DateTime;
CRevisionsChange.prototype['get_UserColor'] = CRevisionsChange.prototype.get_UserColor;
CRevisionsChange.prototype['get_StartPos'] = CRevisionsChange.prototype.get_StartPos;
CRevisionsChange.prototype['put_StartPos'] = CRevisionsChange.prototype.put_StartPos;
CRevisionsChange.prototype['get_EndPos'] = CRevisionsChange.prototype.get_EndPos;
......
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