progress on clean up file/paragraph

This commit is contained in:
Tom Hunkapiller
2021-05-24 17:12:10 +03:00
parent 4466145d00
commit 7bfe8f26f0
8 changed files with 80 additions and 396 deletions

View File

@ -1,10 +1,9 @@
import { IShadingAttributesProperties, Shading } from "file/shading";
import { HpsMeasureElement, IgnoreIfEmptyXmlComponent, OnOffElement, XmlComponent } from "file/xml-components";
import { HpsMeasureElement, IgnoreIfEmptyXmlComponent, OnOffElement, StringValueElement, XmlComponent } from "file/xml-components";
import { EmphasisMark, EmphasisMarkType } from "./emphasis-mark";
import { CharacterSpacing, Color, Highlight, HighlightComplexScript } from "./formatting";
import { IFontAttributesProperties, RunFonts } from "./run-fonts";
import { SubScript, SuperScript } from "./script";
import { Style } from "./style";
import { Underline, UnderlineType } from "./underline";
interface IFontOptions {
@ -162,7 +161,7 @@ export class RunProperties extends IgnoreIfEmptyXmlComponent {
}
if (options.style) {
this.push(new Style(options.style));
this.push(new StringValueElement("w:rStyle", options.style));
}
if (options.font) {