added stdPr and stdContent to table of contents

This commit is contained in:
Sergio Mendonça
2018-09-19 11:01:07 -03:00
parent baf0f17bd6
commit 7cd8864fb9
6 changed files with 49 additions and 8 deletions

View File

@ -0,0 +1,12 @@
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
class AliasAttributes extends XmlAttributeComponent<{ alias: string }> {
protected xmlKeys = { alias: "w:val" };
}
export class Alias extends XmlComponent {
constructor(alias: string) {
super("w:alias");
this.root.push(new AliasAttributes({ alias }));
}
}