2017-12-30 20:25:16 +00:00
|
|
|
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
|
2017-03-13 00:02:56 +00:00
|
|
|
|
2017-03-13 00:40:39 +00:00
|
|
|
interface IBlipProperties {
|
|
|
|
embed: string;
|
2017-03-13 00:02:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class BlipAttributes extends XmlAttributeComponent<IBlipProperties> {
|
|
|
|
protected xmlKeys = {
|
|
|
|
embed: "r:embed",
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Blip extends XmlComponent {
|
|
|
|
|
|
|
|
constructor(referenceId: number) {
|
|
|
|
super("a:blip");
|
|
|
|
this.root.push(new BlipAttributes({
|
|
|
|
embed: `rId${referenceId}`,
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|