Commit 603b51f7 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #35289

parent e33d854b
......@@ -668,6 +668,28 @@ CDocumentContentElementBase.prototype.AcceptRevisionChanges = function(Type, bAl
CDocumentContentElementBase.prototype.RejectRevisionChanges = function(Type, bAll)
{
};
CDocumentContentElementBase.prototype.GetDocumentPositionFromObject = function(PosArray)
{
if (!PosArray)
PosArray = [];
if (this.Parent)
{
PosArray.splice(0, 0, {Class : this.Parent, Position : this.Get_Index()});
this.Parent.GetDocumentPositionFromObject(PosArray);
}
return PosArray;
};
CDocumentContentElementBase.prototype.Get_Index = function()
{
if (!this.Parent)
return -1;
this.Parent.Update_ContentIndexing();
return this.Index;
};
//----------------------------------------------------------------------------------------------------------------------
// Функции для работы с номерами страниц
//----------------------------------------------------------------------------------------------------------------------
......
......@@ -11022,15 +11022,6 @@ Paragraph.prototype.GetTopElement = function()
return this.Parent.GetTopElement();
};
Paragraph.prototype.Get_Index = function()
{
if (!this.Parent)
return -1;
this.Parent.Update_ContentIndexing();
return this.Index;
};
Paragraph.prototype.CompareDrawingsLogicPositions = function(CompareObject)
{
var Run1 = this.Get_DrawingObjectRun(CompareObject.Drawing1.Get_Id());
......@@ -11670,19 +11661,6 @@ Paragraph.prototype.SetContentPosition = function(DocPos, Depth, Flag)
else
this.Correct_ContentPos2();
};
Paragraph.prototype.GetDocumentPositionFromObject = function(PosArray)
{
if (!PosArray)
PosArray = [];
if (this.Parent)
{
PosArray.splice(0, 0, {Class : this.Parent, Position : this.Get_Index()});
this.Parent.GetDocumentPositionFromObject(PosArray);
}
return PosArray;
};
Paragraph.prototype.Get_XYByContentPos = function(ContentPos)
{
var ParaContentPos = this.Get_ParaContentPos(false, false);
......
......@@ -923,16 +923,6 @@ CBlockLevelSdt.prototype.GetTopElement = function()
return this.Parent.GetTopElement();
};
CBlockLevelSdt.prototype.GetDocumentPositionFromObject = function(PosArray)
{
if (!PosArray)
PosArray = [];
if (this.Parent && this.Parent.GetDocumentPositionFromObject)
this.Parent.GetDocumentPositionFromObject(PosArray);
return PosArray;
};
CBlockLevelSdt.prototype.GetMargins = function()
{
return this.Parent.GetMargins();
......
......@@ -11228,15 +11228,6 @@ CTable.prototype.GetTopElement = function()
return this.Parent.GetTopElement();
};
CTable.prototype.Get_Index = function()
{
if (!this.Parent)
return -1;
this.Parent.Update_ContentIndexing();
return this.Index;
};
CTable.prototype.Get_RowsCount = function()
{
return this.Content.length;
......@@ -11468,19 +11459,6 @@ CTable.prototype.Get_Index = function()
this.Parent.Update_ContentIndexing();
return this.Index;
};
CTable.prototype.GetDocumentPositionFromObject = function(PosArray)
{
if (!PosArray)
PosArray = [];
if (this.Parent)
{
PosArray.splice(0, 0, {Class : this.Parent, Position : this.Get_Index()});
this.Parent.GetDocumentPositionFromObject(PosArray);
}
return PosArray;
};
CTable.prototype.SetContentSelection = function(StartDocPos, EndDocPos, Depth, StartFlag, EndFlag)
{
if ((0 === StartFlag && (!StartDocPos[Depth] || this !== StartDocPos[Depth].Class)) || (0 === EndFlag && (!EndDocPos[Depth] || this !== EndDocPos[Depth].Class)))
......
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