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