remove unused XmlProperty code
This commit is contained in:
@ -27,4 +27,3 @@ export abstract class XmlComponent extends BaseXmlComponent {
|
|||||||
export * from "./attributes"
|
export * from "./attributes"
|
||||||
export * from "./default-attributes";
|
export * from "./default-attributes";
|
||||||
export * from "./unit";
|
export * from "./unit";
|
||||||
export * from "./property";
|
|
||||||
|
@ -1,57 +0,0 @@
|
|||||||
import { ParagraphProperties } from "../paragraph/properties";
|
|
||||||
import { RunProperties } from "../run/properties";
|
|
||||||
import { XmlComponent } from "./";
|
|
||||||
|
|
||||||
export class ParagraphPropertyXmlComponent extends XmlComponent {
|
|
||||||
private paragraphProperties: ParagraphProperties;
|
|
||||||
|
|
||||||
constructor(rootKey: string) {
|
|
||||||
super(rootKey);
|
|
||||||
this.paragraphProperties = new ParagraphProperties();
|
|
||||||
this.root.push(this.paragraphProperties);
|
|
||||||
}
|
|
||||||
|
|
||||||
public clearVariables(): void {
|
|
||||||
this.paragraphProperties.clearVariables();
|
|
||||||
|
|
||||||
delete this.paragraphProperties;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class RunPropertyXmlComponent extends XmlComponent {
|
|
||||||
private runProperties: RunProperties;
|
|
||||||
|
|
||||||
constructor(rootKey: string) {
|
|
||||||
super(rootKey);
|
|
||||||
this.runProperties = new RunProperties();
|
|
||||||
this.root.push(this.runProperties);
|
|
||||||
}
|
|
||||||
|
|
||||||
public clearVariables(): void {
|
|
||||||
this.runProperties.clearVariables();
|
|
||||||
|
|
||||||
delete this.runProperties;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class MultiPropertyXmlComponent extends XmlComponent {
|
|
||||||
private runProperties: RunProperties;
|
|
||||||
private paragraphProperties: ParagraphProperties;
|
|
||||||
|
|
||||||
constructor(rootKey: string) {
|
|
||||||
super(rootKey);
|
|
||||||
this.runProperties = new RunProperties();
|
|
||||||
this.root.push(this.runProperties);
|
|
||||||
|
|
||||||
this.paragraphProperties = new ParagraphProperties();
|
|
||||||
this.root.push(this.paragraphProperties);
|
|
||||||
}
|
|
||||||
|
|
||||||
public clearVariables(): void {
|
|
||||||
this.runProperties.clearVariables();
|
|
||||||
this.paragraphProperties.clearVariables();
|
|
||||||
|
|
||||||
delete this.runProperties;
|
|
||||||
delete this.paragraphProperties;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +1,6 @@
|
|||||||
import { ParagraphProperties } from "../docx/paragraph/properties";
|
import { ParagraphProperties } from "../docx/paragraph/properties";
|
||||||
import { RunProperties } from "../docx/run/properties";
|
import { RunProperties } from "../docx/run/properties";
|
||||||
import { Attributes, MultiPropertyXmlComponent, XmlAttributeComponent, XmlComponent } from "../docx/xml-components";
|
import { Attributes, XmlAttributeComponent, XmlComponent } from "../docx/xml-components";
|
||||||
|
|
||||||
interface ILevelAttributesProperties {
|
interface ILevelAttributesProperties {
|
||||||
ilvl?: number;
|
ilvl?: number;
|
||||||
|
Reference in New Issue
Block a user