Commit df918a71 authored by Ilya Kirillov's avatar Ilya Kirillov

Added function to classes ParaPageNum, ParaPageCount to get a value.

parent 008ca811
......@@ -219,6 +219,10 @@ CRunElementBase.prototype.Write_ToBinary = function(Writer)
CRunElementBase.prototype.Read_FromBinary = function(Reader)
{
};
CRunElementBase.prototype.GetType = function()
{
return this.Type;
};
// Класс ParaText
function ParaText(value)
......@@ -1425,6 +1429,18 @@ ParaPageNum.prototype =
{
}
};
ParaPageNum.prototype.GetPageNumValue = function()
{
var nPageNum = parseInt(this.String);
if (isNaN(nPageNum))
return 1;
return nPageNum;
};
ParaPageNum.prototype.GetType = function()
{
return this.Type;
};
function CPageNumRecalculateObject(Type, Widths, String, Width, Copy)
{
......@@ -1942,6 +1958,10 @@ ParaPageCount.prototype.Read_FromBinary = function(Reader)
{
this.PageCount = Reader.GetLong();
};
ParaPageCount.prototype.GetPageCountValue = function()
{
return this.PageCount;
};
function ParagraphContent_Read_FromBinary(Reader)
{
......
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