Commit 246543f3 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Set_CurrentElement

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56767 954022d7-b5bf-4e40-9824-e11837661b57
parent 3ff7be24
......@@ -7596,23 +7596,6 @@ function CXfrm()
}
}
this.createDuplicate = function()
{
var duplicate = new CXfrm();
duplicate.offX = this.offX;
duplicate.offY = this.offY;
duplicate.extX = this.extX;
duplicate.extY = this.extY;
duplicate.chOffX = this.chOffX;
duplicate.chOffY = this.chOffY;
duplicate.chExtX = this.chExtX;
duplicate.chExtY = this.chExtY;
duplicate.flipH = this.flipH;
duplicate.flipV = this.flipV;
duplicate.rot = this.rot;
return duplicate;
}
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
......@@ -7641,6 +7624,25 @@ CXfrm.prototype =
this.Id = r.GetString2();
},
createDuplicate: function()
{
var duplicate = new CXfrm();
duplicate.setOffX(this.offX);
duplicate.setOffY(this.offY);
duplicate.setExtX(this.extX);
duplicate.setExtY(this.extY);
duplicate.setChOffX(this.chOffX);
duplicate.setChOffY(this.chOffY);
duplicate.setChExtX(this.chExtX);
duplicate.setChExtY(this.chExtY);
duplicate.setFlipH(this.flipH);
duplicate.setFlipV(this.flipV);
duplicate.setRot(this.rot);
return duplicate;
},
setParent: function(pr)
{
History.Add(this, {Type: historyitem_Xfrm_SetParent, oldPr: this.parent, newPr: pr});
......
......@@ -1891,8 +1891,7 @@ CShape.prototype =
return this.compiledStyles[_level];
},
Set_CurrentElement: function ()
{ },
recalculateTextStyles: function (level)
{
......
......@@ -575,7 +575,37 @@ CShape.prototype.Get_TableStyleForPara = function()
CShape.prototype.Is_Cell = function()
{
return false;
};CShape.prototype.Get_StartPage_Relative = function()
};
CShape.prototype.Set_CurrentElement = function(bUpdate, pageIndex)
{
var drawing_objects = editor.WordControl.m_oLogicDocument.DrawingObjects;
drawing_objects.resetSelection();
if(this.group)
{
var main_group = this.group.getMainGroup();
drawing_objects.selectObject(main_group, pageIndex);
main_group.selectObject(this, pageIndex);
main_group.selection.textSelection = this;
drawing_objects.selection.groupSelection = main_group;
}
else
{
drawing_objects.selectObject(this, pageIndex);
drawing_objects.selection.textSelection = this;
}
var hdr_ftr = main_group.DocumentContent.Is_HdrFtr(true);
if(hdr_ftr)
{
hdr_ftr.Content.CurPos.Type = docpostype_DrawingObjects;
hdr_ftr.Set_CurrentElement(bUpdate);
}
else
{
drawing_objects.document.CurPos.Type = docpostype_DrawingObjects;
}
};
CShape.prototype.Get_StartPage_Relative = function()
{
return 0;
};
......
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