2018-01-29 02:56:35 +00:00
|
|
|
import { XmlComponent } from "file/xml-components";
|
|
|
|
import { HeaderReferenceAttributes } from "./header-reference-attributes";
|
|
|
|
|
|
|
|
export class HeaderReference extends XmlComponent {
|
2018-05-12 20:04:54 -04:00
|
|
|
constructor(order, ref_id) {
|
2018-01-29 02:56:35 +00:00
|
|
|
super("w:headerReference");
|
|
|
|
this.root.push(
|
|
|
|
new HeaderReferenceAttributes({
|
2018-05-12 20:04:54 -04:00
|
|
|
type: order,
|
|
|
|
id: `rId${ref_id}`,
|
2018-01-29 02:56:35 +00:00
|
|
|
}),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|