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

не сохранялась заливка текста в PPTX и XLSX в вордартах

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@63547 954022d7-b5bf-4e40-9824-e11837661b57
parent 3443e03e
...@@ -1997,15 +1997,31 @@ DrawingObjectsController.prototype = ...@@ -1997,15 +1997,31 @@ DrawingObjectsController.prototype =
var oAscTextArtProperties = props.textArtProperties; var oAscTextArtProperties = props.textArtProperties;
var oParaTextPr; var oParaTextPr;
var nStyle = oAscTextArtProperties.asc_getStyle(); var nStyle = oAscTextArtProperties.asc_getStyle();
var bWord = (typeof CGraphicObjects !== "undefined" && (this instanceof CGraphicObjects));
if(isRealNumber(nStyle)) if(isRealNumber(nStyle))
{ {
var oPreviewManager = this.getTextArtPreviewManager(); var oPreviewManager = this.getTextArtPreviewManager();
var oStyleTextPr = oPreviewManager.getStylesToApply()[nStyle].Copy(); var oStyleTextPr = oPreviewManager.getStylesToApply()[nStyle].Copy();
oParaTextPr = new ParaTextPr({TextFill: oStyleTextPr.TextFill, TextOutline: oStyleTextPr.TextOutline}); if(bWord)
{
oParaTextPr = new ParaTextPr({TextFill: oStyleTextPr.TextFill, TextOutline: oStyleTextPr.TextOutline});
}
else
{
oParaTextPr = new ParaTextPr({Unifill: oStyleTextPr.TextFill, TextOutline: oStyleTextPr.TextOutline});
}
} }
else else
{ {
oParaTextPr = new ParaTextPr({TextFill: CorrectUniFill(oAscTextArtProperties.asc_getFill(), new CUniFill()), TextOutline: CorrectUniStroke(oAscTextArtProperties.asc_getLine(), new CLn())}); if(bWord)
{
oParaTextPr = new ParaTextPr({TextFill: CorrectUniFill(oAscTextArtProperties.asc_getFill(), new CUniFill()), TextOutline: CorrectUniStroke(oAscTextArtProperties.asc_getLine(), new CLn())});
}
else
{
oParaTextPr = new ParaTextPr({Unifill: CorrectUniFill(oAscTextArtProperties.asc_getFill(), new CUniFill()), TextOutline: CorrectUniStroke(oAscTextArtProperties.asc_getLine(), new CLn())});
}
} }
this.paragraphAdd(oParaTextPr); this.paragraphAdd(oParaTextPr);
} }
...@@ -6019,6 +6035,11 @@ DrawingObjectsController.prototype = ...@@ -6019,6 +6035,11 @@ DrawingObjectsController.prototype =
var oTextPr = oShape.getTextArtPreviewManager().getStylesToApply()[nStyle].Copy(); var oTextPr = oShape.getTextArtPreviewManager().getStylesToApply()[nStyle].Copy();
oTextPr.FontSize = nFontSize; oTextPr.FontSize = nFontSize;
oTextPr.RFonts.Ascii = undefined; oTextPr.RFonts.Ascii = undefined;
if(!((typeof CGraphicObjects !== "undefined") && (this instanceof CGraphicObjects)))
{
oTextPr.Unifill = oTextPr.TextFill;
oTextPr.TextFill = undefined;
}
oContent.Set_ApplyToAll(true); oContent.Set_ApplyToAll(true);
oContent.Paragraph_Add(new ParaTextPr(oTextPr)); oContent.Paragraph_Add(new ParaTextPr(oTextPr));
oContent.Set_ParagraphAlign(align_Center); oContent.Set_ParagraphAlign(align_Center);
......
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