Files
docx-js/src/file/paragraph/formatting/style.ts

23 lines
506 B
TypeScript
Raw Normal View History

import { Attributes, XmlComponent } from "file/xml-components";
2016-03-30 02:55:11 +01:00
2019-06-12 01:03:36 +01:00
export enum HeadingLevel {
HEADING_1 = "Heading1",
HEADING_2 = "Heading2",
HEADING_3 = "Heading3",
HEADING_4 = "Heading4",
HEADING_5 = "Heading5",
HEADING_6 = "Heading6",
TITLE = "Title",
}
2016-04-09 20:16:35 +01:00
export class Style extends XmlComponent {
constructor(styleId: string) {
2016-04-09 20:16:35 +01:00
super("w:pStyle");
2018-01-23 01:33:12 +00:00
this.root.push(
new Attributes({
val: styleId,
2018-01-23 01:33:12 +00:00
}),
);
2016-03-30 02:55:11 +01:00
}
2017-03-08 21:36:09 +00:00
}