Remove old implementation of first page header

This commit is contained in:
Dolan
2018-06-25 22:13:12 +01:00
parent 2a0b45dc20
commit 84ebf8e6c3
5 changed files with 12 additions and 80 deletions

View File

@ -12,7 +12,7 @@ import { PageMargin } from "./page-margin/page-margin";
import { IPageMarginAttributes } from "./page-margin/page-margin-attributes";
import { PageSize } from "./page-size/page-size";
import { IPageSizeAttributes, PageOrientation } from "./page-size/page-size-attributes";
import { TitlePage } from "./title-page/title-page";
// import { TitlePage } from "./title-page/title-page";
export type SectionPropertiesOptions = IPageSizeAttributes &
IPageMarginAttributes &
@ -69,15 +69,16 @@ export class SectionProperties extends XmlComponent {
this.root.push(new Columns(mergedOptions.space));
this.root.push(new DocumentGrid(mergedOptions.linePitch));
if (mergedOptions.differentFirstPageHeader) {
this.root.push(
new HeaderReference({
headerType: HeaderReferenceType.FIRST,
headerId: 5,
}),
);
this.root.push(new TitlePage());
}
// TODO
// if (mergedOptions.differentFirstPageHeader) {
// this.root.push(
// new HeaderReference({
// headerType: HeaderReferenceType.FIRST,
// headerId: 5,
// }),
// );
// this.root.push(new TitlePage());
// }
this.root.push(
new HeaderReference({