2021-11-24 18:49:27 +02:00
|
|
|
import { Paragraph } from "./paragraph";
|
2021-12-01 17:39:50 +02:00
|
|
|
import { Table } from "./table";
|
2021-11-24 18:49:27 +02:00
|
|
|
|
|
|
|
export class Footer {
|
|
|
|
hasNumberings = false;
|
2021-12-01 17:39:50 +02:00
|
|
|
children: (Paragraph | Table)[] = [];
|
2021-11-24 18:49:27 +02:00
|
|
|
|
|
|
|
addParagraph(p: Paragraph) {
|
|
|
|
if (p.hasNumberings) {
|
|
|
|
this.hasNumberings = true;
|
|
|
|
}
|
|
|
|
this.children.push(p);
|
|
|
|
return this;
|
|
|
|
}
|
2021-12-01 17:39:50 +02:00
|
|
|
|
|
|
|
addTable(t: Table) {
|
|
|
|
if (t.hasNumberings) {
|
|
|
|
this.hasNumberings = true;
|
|
|
|
}
|
|
|
|
this.children.push(t);
|
|
|
|
return this;
|
|
|
|
}
|
2021-11-24 18:49:27 +02:00
|
|
|
}
|