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

Get_StyleFromFormatting

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@63706 954022d7-b5bf-4e40-9824-e11837661b57
parent a6f4d29e
...@@ -9272,13 +9272,13 @@ CDocumentContent.prototype.Get_StyleFromFormatting = function() ...@@ -9272,13 +9272,13 @@ CDocumentContent.prototype.Get_StyleFromFormatting = function()
if (true == this.Selection.Use) if (true == this.Selection.Use)
{ {
if (this.Selection.StartPos > this.Selection.EndPos) if (this.Selection.StartPos > this.Selection.EndPos)
return this.Content[this.Selection.EndPos].Get_StyleFromFormatting(oStyle); return this.Content[this.Selection.EndPos].Get_StyleFromFormatting();
else else
return this.Content[this.Selection.StartPos].Get_StyleFromFormatting(oStyle); return this.Content[this.Selection.StartPos].Get_StyleFromFormatting();
} }
else else
{ {
return this.Content[this.CurPos.ContentPos].Get_StyleFromFormatting(oStyle); return this.Content[this.CurPos.ContentPos].Get_StyleFromFormatting();
} }
} }
}; };
......
...@@ -1696,6 +1696,27 @@ CGraphicObjects.prototype = ...@@ -1696,6 +1696,27 @@ CGraphicObjects.prototype =
return this.document.Get_ColorMap(); return this.document.Get_ColorMap();
}, },
Get_StyleFromFormatting: function()
{
var oContent = this.getTargetDocContent();
if(oContent)
{
var oStyleFormatting = oContent.Get_StyleFromFormatting();
var oTextPr = oStyleFormatting.TextPr;
if(oTextPr.TextFill)
{
oTextPr.TextFill = undefined;
}
if(oTextPr.TextOutline)
{
oTextPr.TextOutline = undefined;
}
return oStyleFormatting;
}
return null;
},
getParagraphTextPr: function() getParagraphTextPr: function()
{ {
var ret = DrawingObjectsController.prototype.getParagraphTextPr.call(this); var ret = DrawingObjectsController.prototype.getParagraphTextPr.call(this);
......
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