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

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50115 954022d7-b5bf-4e40-9824-e11837661b57
parent eeb1a8db
......@@ -4575,6 +4575,21 @@ function CTheme()
}
return new CLn();
}
this.changeColorScheme = function(clrScheme)
{
this.themeElements.clrScheme = clrScheme;
};
this.setFontScheme = function(fontScheme)
{
this.themeElements.fontScheme = fontScheme;
};
this.setFormatScheme = function(fmtScheme)
{
this.themeElements.fmtScheme = fmtScheme;
};
}
// ----------------------------------
......
......@@ -1020,6 +1020,17 @@ CPresentation.prototype =
return this.DrawingObjects.canUnGroup();
},
groupShapes: function()
{
if(this.Document_Is_SelectionLocked(changestype_DrawingProps) === false)
{
this.Slides[this.CurPage].graphicObjects.groupShapes();
this.Recalculate();
}
},
Add_FlowImage : function(W, H, Img)
{
this.Slides[this.CurPage].graphicObjects.Add_FlowImage(W, H, Img);
......
......@@ -3469,7 +3469,7 @@ CShape.prototype =
canGroup: function()
{
return true;//TODO
return !this.isPlaceholder();//TODO
},
......
......@@ -1613,6 +1613,26 @@ CGraphicObjects.prototype = {
editor.WordControl.m_oLogicDocument.recalcMap[image.Id] = image;
},
groupShapes: function()
{
var objects_for_group = [];
var spTree = this.slide.cSld.spTree;
for(var i = 0; i < spTree.length; ++i)
{
if(spTree[i].selected)
{
objects_for_group.push(spTree[i]);
}
}
this.slide.removeSelectedObjects();
for(var i = 0; i < objects_for_group.length; ++i)
{
}
},
addChart: function(binary)
{
var chart = new CChartAsGroup(this.slide);
......
......@@ -3464,6 +3464,20 @@ function CTheme()
}
return new CLn();
}
this.changeColorScheme = function(clrScheme)
{
this.themeElements.clrScheme = clrScheme;
};
this.setFontScheme = function(fontScheme)
{
this.themeElements.fontScheme = fontScheme;
};
this.setFormatScheme = function(fmtScheme)
{
this.themeElements.fmtScheme = fmtScheme;
};
}
// ----------------------------------
......
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