2017-03-08 21:49:41 +00:00
|
|
|
import { XmlAttributeComponent } from "./default-attributes";
|
2016-05-20 00:40:31 +01:00
|
|
|
|
2017-03-08 21:49:41 +00:00
|
|
|
interface IAttributesProperties {
|
|
|
|
val?: string | number | boolean;
|
2016-05-20 00:40:31 +01:00
|
|
|
color?: string;
|
|
|
|
space?: string;
|
|
|
|
sz?: string;
|
|
|
|
type?: string;
|
|
|
|
rsidR?: string;
|
|
|
|
rsidRPr?: string;
|
|
|
|
rsidSect?: string;
|
|
|
|
w?: string;
|
|
|
|
h?: string;
|
|
|
|
top?: string;
|
|
|
|
right?: string;
|
|
|
|
bottom?: string;
|
|
|
|
left?: string;
|
|
|
|
header?: string;
|
|
|
|
footer?: string;
|
|
|
|
gutter?: string;
|
|
|
|
linePitch?: string;
|
|
|
|
pos?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Attributes extends XmlAttributeComponent {
|
|
|
|
|
2017-03-08 21:49:41 +00:00
|
|
|
constructor(properties?: IAttributesProperties) {
|
2016-05-20 00:40:31 +01:00
|
|
|
super({
|
|
|
|
val: "w:val",
|
|
|
|
color: "w:color",
|
|
|
|
space: "w:space",
|
|
|
|
sz: "w:sz",
|
|
|
|
type: "w:type",
|
|
|
|
rsidR: "w:rsidR",
|
|
|
|
rsidRPr: "w:rsidRPr",
|
|
|
|
rsidSect: "w:rsidSect",
|
|
|
|
w: "w:w",
|
|
|
|
h: "w:h",
|
|
|
|
top: "w:top",
|
|
|
|
right: "w:right",
|
|
|
|
bottom: "w:bottom",
|
|
|
|
left: "w:left",
|
|
|
|
header: "w:header",
|
|
|
|
footer: "w:footer",
|
|
|
|
gutter: "w:gutter",
|
2016-06-10 15:03:44 +01:00
|
|
|
linePitch: "w:linePitch",
|
2017-03-08 21:49:41 +00:00
|
|
|
pos: "w:pos",
|
2016-05-20 00:40:31 +01:00
|
|
|
}, properties);
|
|
|
|
}
|
2017-03-08 21:49:41 +00:00
|
|
|
}
|