Commit a4a863f7 authored by SergeyLuzyanin's avatar SergeyLuzyanin

GetAllContentControls

parent aa61d3e7
...@@ -1117,6 +1117,12 @@ CGraphicFrame.prototype.Is_ThisElementCurrent = function() ...@@ -1117,6 +1117,12 @@ CGraphicFrame.prototype.Is_ThisElementCurrent = function()
return false; return false;
}; };
CGraphicFrame.prototype.GetAllContentControls = function(arrContentControls){
if(this.graphicObject){
this.graphicObject.GetAllContentControls(arrContentControls);
}
};
//--------------------------------------------------------export---------------------------------------------------- //--------------------------------------------------------export----------------------------------------------------
window['AscFormat'] = window['AscFormat'] || {}; window['AscFormat'] = window['AscFormat'] || {};
window['AscFormat'].CGraphicFrame = CGraphicFrame; window['AscFormat'].CGraphicFrame = CGraphicFrame;
......
...@@ -779,6 +779,10 @@ ...@@ -779,6 +779,10 @@
{ {
}; };
CGraphicObjectBase.prototype.GetAllContentControls = function(arrContentControls)
{
};
window['AscFormat'] = window['AscFormat'] || {}; window['AscFormat'] = window['AscFormat'] || {};
window['AscFormat'].CGraphicObjectBase = CGraphicObjectBase; window['AscFormat'].CGraphicObjectBase = CGraphicObjectBase;
window['AscFormat'].CGraphicBounds = CGraphicBounds; window['AscFormat'].CGraphicBounds = CGraphicBounds;
......
...@@ -1834,6 +1834,13 @@ function CGroupShape() ...@@ -1834,6 +1834,13 @@ function CGroupShape()
} }
}; };
CGroupShape.prototype.GetAllContentControls = function(arrContentControls){
for(var i = 0; i < this.spTree.length; ++i)
{
this.spTree[i].GetAllContentControls(arrContentControls);
}
};
//--------------------------------------------------------export---------------------------------------------------- //--------------------------------------------------------export----------------------------------------------------
window['AscFormat'] = window['AscFormat'] || {}; window['AscFormat'] = window['AscFormat'] || {};
window['AscFormat'].CGroupShape = CGroupShape; window['AscFormat'].CGroupShape = CGroupShape;
......
...@@ -5363,6 +5363,12 @@ CShape.prototype.getColumnNumber = function(){ ...@@ -5363,6 +5363,12 @@ CShape.prototype.getColumnNumber = function(){
} }
} }
}; };
CShape.prototype.GetAllContentControls = function(arrContentControls){
var oContent = this.getDocContent();
if(oContent){
oContent.GetAllContentControls(arrContentControls);
}
};
function CreateBinaryReader(szSrc, offset, srcLen) function CreateBinaryReader(szSrc, offset, srcLen)
{ {
......
...@@ -2472,7 +2472,10 @@ ParaDrawing.prototype.Get_ObjectType = function() ...@@ -2472,7 +2472,10 @@ ParaDrawing.prototype.Get_ObjectType = function()
}; };
ParaDrawing.prototype.GetAllContentControls = function(arrContentControls) ParaDrawing.prototype.GetAllContentControls = function(arrContentControls)
{ {
// TODO: Реализовать if(this.GraphicObj)
{
this.GraphicObj.GetAllContentControls(arrContentControls);
}
}; };
......
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