Make Bookmark declarative

This commit is contained in:
Dolan Miu
2019-12-21 03:59:40 +00:00
parent ee5425bef7
commit b83d2c388f
4 changed files with 17 additions and 38 deletions

View File

@ -17,7 +17,7 @@ import { Footer, Header } from "./header";
import { HeaderWrapper, IDocumentHeader } from "./header-wrapper";
import { Media } from "./media";
import { Numbering } from "./numbering";
import { Bookmark, Hyperlink, HyperlinkRef, HyperlinkType, Paragraph } from "./paragraph";
import { Hyperlink, HyperlinkRef, HyperlinkType, Paragraph } from "./paragraph";
import { Relationships } from "./relationships";
import { TargetModeType } from "./relationships/relationship/relationship";
import { Settings } from "./settings";
@ -172,10 +172,6 @@ export class File {
}
}
public createBookmark(name: string, text: string = name): Bookmark {
return new Bookmark(name, text, this.docRelationships.RelationshipCount);
}
public addSection({
headers = { default: new Header() },
footers = { default: new Header() },