refactored out xml components into multiple files

This commit is contained in:
Dolan Miu
2016-05-20 00:40:31 +01:00
parent 606e03d156
commit 37ac9f97a4
6 changed files with 167 additions and 157 deletions

View File

@ -0,0 +1,49 @@
import {XmlAttributeComponent} from "./default-attributes";
interface AttributesProperties {
val?: any;
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 {
constructor(properties?: AttributesProperties) {
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",
linePitch: "w:linePitch"
}, properties);
}
}