提交 127cd745 编写于 作者: NoSubject's avatar NoSubject 提交者: NoSubject

正文转word样式优化


(cherry picked from commit 476cf4e5)
上级 4c8a1694
......@@ -127,7 +127,7 @@
<p class="MsoNormal" align=center style='text-align:center'><span class="doc_layout_fileno" style='mso-bidi-font-size:16.0pt;font-family:"Times New Roman",仿宋;mso-fareast-font-family:仿宋;mso-ascii-font-family:"Times New Roman"'></span></p>
</div>
<table class="doc_block doc_layout_filenoup" border=0 cellspacing=0 cellpadding=0 style='margin-top:10px;border-collapse:collapse;border:none;mso-padding-alt: 0cm 0cm 0cm 0cm;'>
<table class="doc_block doc_layout_filenoup" border=0 cellspacing=0 cellpadding=0 style='width:100%; margin-top:10px;border-collapse:collapse;border:none;mso-padding-alt: 0cm 0cm 0cm 0cm;'>
<tr>
<td colspan="2" style='padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal align=center style='text-align:center'><span style='font-size:16.0pt;font-family:仿宋'>&nbsp;</span></p>
......@@ -154,7 +154,7 @@
</table>
<!-- <p class="doc_block MsoNormal" align=left style='line-height:8.0pt'>-->
<hr class="doc_layout_redline" style="height: 1.5pt;line-height:8.0pt; background-color: red;" color=red />
<hr class="doc_layout_redline" style="width:100%; height: 1.5pt;line-height:8.0pt; background-color: red;" color=red />
<!-- </p>-->
<div class="doc_block">
......
......@@ -1498,43 +1498,19 @@ o2.xApplication.process.Xform.widget.OOXML.WordprocessingML = o2.OOXML.WML = new
this.insertSiblings(oo_wsp, [oo_cNvCnPr, oo_spPr, oo_style, oo_bodyPr], "beforeend");
// <a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
// <a:graphicData uri="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">
// <wps:wsp>
// <wps:cNvCnPr/>
// <wps:spPr>
// <a:xfrm>
// <a:off x="0" y="0"/>
// <a:ext cx="5631180" cy="0"/>
// </a:xfrm>
// <a:prstGeom prst="line">
// <a:avLst/>
// </a:prstGeom>
// <a:ln w="19050">
// <a:solidFill>
// <a:srgbClr val="FF0000"/>
// </a:solidFill>
// </a:ln>
// </wps:spPr>
// <wps:style>
// <a:lnRef idx="1">
// <a:schemeClr val="accent1"/>
// </a:lnRef>
// <a:fillRef idx="0">
// <a:schemeClr val="accent1"/>
// </a:fillRef>
// <a:effectRef idx="0">
// <a:schemeClr val="accent1"/>
// </a:effectRef>
// <a:fontRef idx="minor">
// <a:schemeClr val="tx1"/>
// </a:fontRef>
// </wps:style>
// <wps:bodyPr/>
// </wps:wsp>
// </a:graphicData>
// </a:graphic>
var w = hr.style.width;
if (w && o2.typeOf(w)==="string"){
var u = w.substring(w.length-1, w.length);
if (u==="%"){
w = w.toFloat()*1000;
var oo_sizeRelH = this.createEl(oo_doc, "sizeRelH", "wp14");
this.setAttrs(oo_sizeRelH, {"relativeFrom": "margin"}, false);
var oo_pctWidth = this.createEl(oo_doc, "pctWidth", "wp14");
oo_pctWidth.appendChild(oo_doc.createTextNode(w));
oo_sizeRelH.appendChild(oo_pctWidth);
oo_anchor.appendChild(oo_sizeRelH);
}
}
oo_p.appendChild(oo_run);
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册