add keepLines and keepNext support for paragraph formatting

This commit adds it to the three places where paragraph formatting can
be applied right now (directly on the paragraph, paragraph styles, and
bullets/numbering styles). I'm separately adding an entry to the wiki
regarding what these methods do (widow/orphan control)
This commit is contained in:
felipe
2017-04-14 21:13:11 +02:00
parent 94716e081b
commit 0453f28951
8 changed files with 111 additions and 0 deletions

View File

@ -205,6 +205,16 @@ class LevelBase extends XmlComponent {
this.addParagraphProperty(new paragraph.Spacing(params));
return this;
};
public keepNext(): Level {
this.addParagraphProperty(new paragraph.KeepNext());
return this;
}
public keepLines(): Level {
this.addParagraphProperty(new paragraph.KeepLines());
return this;
}
}
export class Level extends LevelBase {