Use method approach to different first page header

This commit is contained in:
Dolan
2018-06-26 00:03:28 +01:00
parent 84ebf8e6c3
commit cee091fa58
3 changed files with 17 additions and 33 deletions

View File

@ -40,7 +40,6 @@ export class SectionProperties extends XmlComponent {
space: 708,
linePitch: 360,
orientation: PageOrientation.PORTRAIT,
differentFirstPageHeader: false,
headerType: HeaderReferenceType.DEFAULT,
headerId: 0,
footerType: FooterReferenceType.DEFAULT,
@ -69,17 +68,6 @@ export class SectionProperties extends XmlComponent {
this.root.push(new Columns(mergedOptions.space));
this.root.push(new DocumentGrid(mergedOptions.linePitch));
// TODO
// if (mergedOptions.differentFirstPageHeader) {
// this.root.push(
// new HeaderReference({
// headerType: HeaderReferenceType.FIRST,
// headerId: 5,
// }),
// );
// this.root.push(new TitlePage());
// }
this.root.push(
new HeaderReference({
headerType: mergedOptions.headerType,