bidi support

This commit is contained in:
amitm02
2018-07-22 17:03:45 +03:00
parent ee048968cc
commit 4dfce582c8
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,7 @@
import { XmlComponent } from "file/xml-components";
export class Bidi extends XmlComponent {
constructor() {
super("w:bidi");
}
}

View File

@ -13,6 +13,7 @@ import { ISpacingProperties, Spacing } from "./formatting/spacing";
import { Style } from "./formatting/style";
import { CenterTabStop, LeftTabStop, MaxRightTabStop, RightTabStop } from "./formatting/tab-stop";
import { NumberProperties } from "./formatting/unordered-list";
import { Bidi} from "./formatting/bidi"
import { Hyperlink } from "./links";
import { ParagraphProperties } from "./properties";
import { PictureRun, Run, TextRun } from "./run";
@ -192,4 +193,9 @@ export class Paragraph extends XmlComponent {
this.root.splice(1, 0, run);
return this;
}
public bidi(): Paragraph {
this.properties.push(new Bidi());
return this;
}
}