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>;
|
|
|
|
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());
|
|
|
|
}
|
|
|
|
}
|