Commit d89942bb authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

запись некоторых свойств в html при получении её из контента автофигуры

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56370 954022d7-b5bf-4e40-9824-e11837661b57
parent bd950d03
...@@ -2609,11 +2609,12 @@ ...@@ -2609,11 +2609,12 @@
else if(isIntoShape)//если курсор находится внутри шейпа else if(isIntoShape)//если курсор находится внутри шейпа
{ {
var CopyProcessor = new Asc.CopyProcessor(); var CopyProcessor = new Asc.CopyProcessor();
CopyProcessor.CopyDocument(document.createElement('div'), isIntoShape, true); var divContent = document.createElement('div');
CopyProcessor.CopyDocument(divContent, isIntoShape, true);
var htmlInShape = ""; var htmlInShape = "";
if(CopyProcessor.Para) if(divContent)
htmlInShape = CopyProcessor.Para; htmlInShape = divContent;
return htmlInShape; return htmlInShape;
} }
...@@ -4470,13 +4471,30 @@ ...@@ -4470,13 +4471,30 @@
aTagEnd.push("</i>"); aTagEnd.push("</i>");
} }
if (true == Value.Strikeout) { if (true == Value.Strikeout) {
aTagStart.push("<strike>");
aTagEnd.push("</strike>");
}
if (true == Value.Underline) {
aTagStart.push("<u>"); aTagStart.push("<u>");
aTagEnd.push("</u>"); aTagEnd.push("</u>");
} }
if (null != Value.HighLight && highlight_None != Value.HighLight) if (null != Value.HighLight && highlight_None != Value.HighLight)
aProp.push("background-color:" + this.RGBToCSS(Value.HighLight)); aProp.push("background-color:" + this.RGBToCSS(Value.HighLight));
if (null != Value.Color) {
var color = this.RGBToCSS(Value.Color); var color;
if (null != Value.Unifill)
{
var Unifill = Value.Unifill.getRGBAColor();
if(Unifill)
{
color = this.RGBToCSS(new CDocumentColor(Unifill.R, Unifill.G, Unifill.B));
aProp.push("color:" + color);
aProp.push("mso-style-textfill-fill-color:" + color);
}
}
else if (null != Value.Color)
{
color = this.RGBToCSS(Value.Color);
aProp.push("color:" + color); aProp.push("color:" + color);
aProp.push("mso-style-textfill-fill-color:" + color); aProp.push("mso-style-textfill-fill-color:" + color);
} }
......
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