2017-03-13 00:40:39 +00:00
|
|
|
import { XmlAttributeComponent, XmlComponent } from "../../../../../xml-components";
|
2017-03-13 00:02:56 +00:00
|
|
|
import { GraphicData } from "./graphic-data";
|
2017-03-12 23:31:43 +00:00
|
|
|
|
2017-03-13 00:40:39 +00:00
|
|
|
|
|
|
|
interface IGraphicProperties {
|
|
|
|
a: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
class GraphicAttributes extends XmlAttributeComponent<IGraphicProperties> {
|
|
|
|
protected xmlKeys = {
|
|
|
|
a: "xmlns:a",
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-03-12 23:31:43 +00:00
|
|
|
export class Graphic extends XmlComponent {
|
|
|
|
|
2017-03-13 00:02:56 +00:00
|
|
|
constructor(referenceId: number) {
|
2017-03-12 23:31:43 +00:00
|
|
|
super("a:graphic");
|
2017-03-13 00:40:39 +00:00
|
|
|
this.root.push(new GraphicAttributes({
|
|
|
|
a: "http://schemas.openxmlformats.org/drawingml/2006/main",
|
|
|
|
}));
|
2017-03-13 00:02:56 +00:00
|
|
|
this.root.push(new GraphicData(referenceId));
|
2017-03-12 23:31:43 +00:00
|
|
|
}
|
|
|
|
}
|