Commit 97ac4291 authored by Ilya Kirillov's avatar Ilya Kirillov

Added Set_CharCode function for ParaInstrText. Also added lock check before updating a field.

parent 2854151c
...@@ -174,6 +174,10 @@ ParaInstrText.prototype.GetValue = function() ...@@ -174,6 +174,10 @@ ParaInstrText.prototype.GetValue = function()
{ {
return String.fromCharCode(this.Value); return String.fromCharCode(this.Value);
}; };
ParaInstrText.prototype.Set_CharCode = function(CharCode)
{
this.Value = CharCode;
};
function CComplexField(oLogicDocument) function CComplexField(oLogicDocument)
{ {
...@@ -236,6 +240,9 @@ CComplexField.prototype.Update = function() ...@@ -236,6 +240,9 @@ CComplexField.prototype.Update = function()
this.private_SelectFieldValue(); this.private_SelectFieldValue();
if (true === this.LogicDocument.Document_Is_SelectionLocked(changestype_Paragraph_Content))
return;
var nFieldCode = this.Instruction.GetFieldCode(); var nFieldCode = this.Instruction.GetFieldCode();
if (fieldtype_PAGENUM === nFieldCode) if (fieldtype_PAGENUM === nFieldCode)
{ {
......
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