2016-03-30 03:50:53 +01:00
|
|
|
import {XmlComponent, Attributes} from "../xml-components";
|
|
|
|
import {RunProperties} from "./properties";
|
2016-03-30 04:30:58 +01:00
|
|
|
import {Bold} from "./emphasis";
|
2016-03-30 03:50:53 +01:00
|
|
|
|
|
|
|
export class Run implements XmlComponent {
|
|
|
|
protected r: Array<XmlComponent>;
|
|
|
|
private properties: RunProperties;
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
this.r = new Array<XmlComponent>();
|
|
|
|
this.properties = new RunProperties();
|
|
|
|
this.r.push(this.properties);
|
|
|
|
}
|
|
|
|
|
2016-03-30 04:30:58 +01:00
|
|
|
bold(): Run {
|
|
|
|
this.properties.push(new Bold());
|
|
|
|
return this;
|
|
|
|
}
|
2016-03-30 03:50:53 +01:00
|
|
|
}
|