add rtl mode

This commit is contained in:
amitm02
2018-07-24 18:52:45 +03:00
parent f299e49966
commit 3015b05c77
3 changed files with 27 additions and 1 deletions

View File

@ -1,7 +1,7 @@
// http://officeopenxml.com/WPtext.php
import { Break } from "./break";
import { Caps, SmallCaps } from "./caps";
import { Bold, Color, DoubleStrike, Italics, Size, Strike } from "./formatting";
import { Bold, Color, DoubleStrike, Italics, Size, RTL, Strike } from "./formatting";
import { Begin, End, Page, Separate } from "./page-number";
import { RunProperties } from "./properties";
import { RunFonts } from "./run-fonts";
@ -46,6 +46,11 @@ export class Run extends XmlComponent {
return this;
}
public rtl(): Run {
this.properties.push(new RTL());
return this;
}
public break(): Run {
this.root.splice(1, 0, new Break());
return this;