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
|
|
|
|
2016-04-09 20:16:35 +01:00
|
|
|
class Break extends XmlComponent {
|
2016-04-03 01:44:18 +01:00
|
|
|
|
2016-03-30 00:28:05 +01:00
|
|
|
constructor() {
|
2016-04-09 20:16:35 +01:00
|
|
|
super("w:br");
|
|
|
|
this.root.push(new Attributes({
|
2016-03-30 00:28:05 +01:00
|
|
|
type: "page"
|
2016-04-09 20:16:35 +01:00
|
|
|
}));
|
2016-03-30 00:28:05 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class PageBreak extends Run {
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super();
|
2016-04-09 20:16:35 +01:00
|
|
|
this.root.push(new Break());
|
2016-03-30 00:28:05 +01:00
|
|
|
}
|
|
|
|
}
|