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

Bug #31630 - [TextArt] Не изменяется прозрачность у дефолтного текста из меню настроек textart

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68380 954022d7-b5bf-4e40-9824-e11837661b57
parent 3c895c9e
...@@ -9,7 +9,7 @@ function CheckObjectLine(obj) ...@@ -9,7 +9,7 @@ function CheckObjectLine(obj)
function CheckWordArtTextPr(oTextPr) function CheckWordArtTextPr(oTextPr)
{ {
if(oTextPr.TextFill || oTextPr.TextOutline || (oTextPr.Unifill && oTextPr.Unifill.fill && oTextPr.Unifill.fill.type !== FILL_TYPE_SOLID)) if(oTextPr.TextFill || oTextPr.TextOutline || (oTextPr.Unifill && oTextPr.Unifill.fill && (oTextPr.Unifill.fill.type !== FILL_TYPE_SOLID || oTextPr.Unifill.transparent != null || oTextPr.Unifill.transparent < 255)))
return true; return true;
return false; return false;
} }
...@@ -786,18 +786,24 @@ CShape.prototype = ...@@ -786,18 +786,24 @@ CShape.prototype =
} }
}, },
applyTextFunction: function (docContentFunction, tableFunction, args) { applyTextFunction: function (docContentFunction, tableFunction, args)
{
var content_to_add = this.getDocContent(); var content_to_add = this.getDocContent();
if (!content_to_add) { if (!content_to_add)
if (this.bWordShape) { {
if (this.bWordShape)
{
this.createTextBoxContent(); this.createTextBoxContent();
} }
else { else
{
this.createTextBody(); this.createTextBody();
} }
content_to_add = this.getDocContent(); content_to_add = this.getDocContent();
content_to_add.Cursor_MoveToStartPos();
} }
if (content_to_add) { if (content_to_add)
{
docContentFunction.apply(content_to_add, args); docContentFunction.apply(content_to_add, args);
} }
if(!editor || !editor.noCreatePoint || editor.exucuteHistory) if(!editor || !editor.noCreatePoint || editor.exucuteHistory)
......
...@@ -7245,6 +7245,7 @@ function BinaryPPTYLoader() ...@@ -7245,6 +7245,7 @@ function BinaryPPTYLoader()
{ {
s.Skip2(1); // type s.Skip2(1); // type
var _paragraph = this.ReadParagraph(txbody.content); var _paragraph = this.ReadParagraph(txbody.content);
_paragraph.Correct_Content();
txbody.content.Internal_Content_Add(txbody.content.Content.length, _paragraph); txbody.content.Internal_Content_Add(txbody.content.Content.length, _paragraph);
if(_paragraph.f_type != undefined || _paragraph.f_text != undefined || _paragraph.f_id != undefined) if(_paragraph.f_type != undefined || _paragraph.f_text != undefined || _paragraph.f_id != undefined)
{ {
......
...@@ -1840,7 +1840,7 @@ asc_docs_api.prototype.ShapeApply = function(prop) ...@@ -1840,7 +1840,7 @@ asc_docs_api.prototype.ShapeApply = function(prop)
History.UndoLastPoint(); History.UndoLastPoint();
var slide = this.WordControl.m_oLogicDocument.Slides[this.WordControl.m_oLogicDocument.CurPage]; var slide = this.WordControl.m_oLogicDocument.Slides[this.WordControl.m_oLogicDocument.CurPage];
slide.graphicObjects.applyDrawingProps(prop); slide.graphicObjects.applyDrawingProps(prop);
slide.graphicObjects.recalculate(); this.WordControl.m_oLogicDocument.Recalculate();
this.WordControl.m_oDrawingDocument.OnRecalculatePage(this.WordControl.m_oLogicDocument.CurPage, slide); this.WordControl.m_oDrawingDocument.OnRecalculatePage(this.WordControl.m_oLogicDocument.CurPage, slide);
this.WordControl.m_oDrawingDocument.OnEndRecalculate(); this.WordControl.m_oDrawingDocument.OnEndRecalculate();
} }
...@@ -1878,7 +1878,7 @@ asc_docs_api.prototype.ShapeApply = function(prop) ...@@ -1878,7 +1878,7 @@ asc_docs_api.prototype.ShapeApply = function(prop)
History.UndoLastPoint(); History.UndoLastPoint();
var slide = this.WordControl.m_oLogicDocument.Slides[this.WordControl.m_oLogicDocument.CurPage]; var slide = this.WordControl.m_oLogicDocument.Slides[this.WordControl.m_oLogicDocument.CurPage];
slide.graphicObjects.applyDrawingProps(prop); slide.graphicObjects.applyDrawingProps(prop);
slide.graphicObjects.recalculate(); this.WordControl.m_oLogicDocument.Recalculate();
this.WordControl.m_oDrawingDocument.OnRecalculatePage(this.WordControl.m_oLogicDocument.CurPage, slide); this.WordControl.m_oDrawingDocument.OnRecalculatePage(this.WordControl.m_oLogicDocument.CurPage, slide);
this.WordControl.m_oDrawingDocument.OnEndRecalculate(); this.WordControl.m_oDrawingDocument.OnEndRecalculate();
} }
......
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