Add styles to footnote

This commit is contained in:
Dolan
2018-06-28 03:01:25 +01:00
parent 802e461792
commit 5dc82d8176
7 changed files with 101 additions and 4 deletions

View File

@ -1,6 +1,7 @@
import { XmlComponent } from "file/xml-components";
import { Paragraph } from "../../paragraph";
import { FootnoteAttributes } from "./footnote-attributes";
import { FootnoteRefRun } from "./run/footnote-ref-run";
export class FootNote extends XmlComponent {
constructor(id: number, type?: string) {
@ -14,6 +15,7 @@ export class FootNote extends XmlComponent {
}
public addParagraph(paragraph: Paragraph): void {
paragraph.addRunToFront(new FootnoteRefRun());
this.root.push(paragraph);
}
}