Files
docx-js/src/file/document/body/section-properties/page-margin/page-margin-attributes.ts

26 lines
693 B
TypeScript
Raw Normal View History

2018-01-24 00:01:38 +00:00
import { XmlAttributeComponent } from "file/xml-components";
export interface IPageMarginAttributes {
readonly top?: number;
readonly right?: number;
readonly bottom?: number;
readonly left?: number;
readonly header?: number;
readonly footer?: number;
readonly gutter?: number;
readonly mirror?: boolean;
2018-01-24 00:01:38 +00:00
}
export class PageMarginAttributes extends XmlAttributeComponent<IPageMarginAttributes> {
protected readonly xmlKeys = {
2018-01-24 00:01:38 +00:00
top: "w:top",
right: "w:right",
bottom: "w:bottom",
left: "w:left",
header: "w:header",
footer: "w:footer",
gutter: "w:gutter",
2018-09-18 21:03:20 -03:00
mirror: "w:mirrorMargins",
2018-01-24 00:01:38 +00:00
};
}