Files
docx-js/ts/docx/paragraph/page-break.ts

25 lines
472 B
TypeScript
Raw Normal View History

2016-03-30 03:50:53 +01:00
import {XmlComponent, Attributes} from "../xml-components";
import {Run} from "../run";
2016-03-30 00:28:05 +01:00
class Break implements XmlComponent {
private br: Array<XmlComponent>;
2016-04-03 01:44:18 +01:00
xmlKeys = {
br: 'w:br'
}
2016-03-30 00:28:05 +01:00
constructor() {
this.br = new Array<XmlComponent>();
this.br.push(new Attributes({
type: "page"
}))
}
}
export class PageBreak extends Run {
constructor() {
super();
this.r.push(new Break());
}
}