added Spacing for paragraphs and ParagraphStyle

This commit is contained in:
felipe
2017-03-09 12:12:33 +01:00
parent 449d1bc2c3
commit 20ec9b679e
6 changed files with 93 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import { Indent } from "../../docx/paragraph/indent";
import { ParagraphProperties } from "../../docx/paragraph/properties";
import { ISpacingProperties, Spacing } from "../../docx/paragraph/spacing";
import * as formatting from "../../docx/run/formatting";
import { RunProperties } from "../../docx/run/properties";
import { XmlAttributeComponent, XmlComponent } from "../../docx/xml-components";
@ -108,6 +109,11 @@ export class ParagraphStyle extends Style {
this.addParagraphProperty(new Indent(left, hanging));
return this;
}
public spacing(params: ISpacingProperties): ParagraphStyle {
this.addParagraphProperty(new Spacing(params));
return this;
};
}
export class HeadingStyle extends ParagraphStyle {