2017-09-17 00:01:09 +01:00
|
|
|
import { Size } from "../../docx/run/formatting";
|
2017-03-09 09:45:01 +01:00
|
|
|
import { RunProperties } from "../../docx/run/properties";
|
2017-09-16 08:24:15 -06:00
|
|
|
import { RunFonts } from "../../docx/run/run-fonts";
|
2017-09-17 00:01:09 +01:00
|
|
|
import { XmlComponent } from "../../docx/xml-components";
|
2016-04-09 02:04:53 +01:00
|
|
|
|
2016-04-09 20:16:35 +01:00
|
|
|
export class RunPropertiesDefaults extends XmlComponent {
|
2017-09-16 08:24:15 -06:00
|
|
|
private properties: RunProperties;
|
2016-04-09 20:16:35 +01:00
|
|
|
|
2016-04-09 02:04:53 +01:00
|
|
|
constructor() {
|
2016-04-09 20:16:35 +01:00
|
|
|
super("w:rPrDefault");
|
2017-09-16 08:24:15 -06:00
|
|
|
this.properties = new RunProperties();
|
|
|
|
this.root.push(this.properties);
|
|
|
|
}
|
|
|
|
|
|
|
|
public size(size: number): RunPropertiesDefaults {
|
|
|
|
this.properties.push(new Size(size));
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public font(fontName: string): RunPropertiesDefaults {
|
|
|
|
this.properties.push(new RunFonts(fontName));
|
|
|
|
return this;
|
2016-04-09 02:04:53 +01:00
|
|
|
}
|
2017-03-09 09:45:01 +01:00
|
|
|
}
|