Commit 99259ae7 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Check_TableCoincidence

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57481 954022d7-b5bf-4e40-9824-e11837661b57
parent e44cb490
......@@ -657,24 +657,56 @@ CShape.prototype.Set_CurrentElement = function(bUpdate, pageIndex)
}
}
};
CShape.prototype.GetParaDrawing = function()
{
if(this.group)
{
var cur_group = this.group;
while(cur_group.group)
{
cur_group = cur_group.group;
}
if(cur_group.parent)
{
return cur_group.parent;
}
}
else
{
if(this.parent)
{
return this.parent;
}
}
return null;
};
CShape.prototype.Get_StartPage_Relative = function()
{
return 0;
};
CShape.prototype.Check_TableCoincidence = function(table)
{
var para_drawing = this.GetParaDrawing();
if(para_drawing && para_drawing.DocumentContent)
{
return para_drawing.DocumentContent.Check_TableCoincidence(table);
}
return false;
};
CShape.prototype.Get_PrevElementEndInfo = function(CurElement)
{
if(isRealObject(this.parent) && isRealObject(this.parent.Parent) && (this.parent.Parent.Get_PrevElementEndInfo) )
return this.parent.Parent.Get_PrevElementEndInfo();
var para_drawing = this.GetParaDrawing();
if(isRealObject(para_drawing) && isRealObject(para_drawing.DocumentContent) && (para_drawing.DocumentContent.Get_PrevElementEndInfo) )
return para_drawing.DocumentContent.Get_PrevElementEndInfo();
return null;
};
CShape.prototype.Is_ThisElementCurrent = function(CurElement)
{
return false;
return editor.WordControl.m_oLogicDocument.DrawingObjects.getTargetDocContent() === this.getDocContent();
};
CShape.prototype.Is_HdrFtr = function(bool)
{
......
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