37 lines
617 B
TypeScript
37 lines
617 B
TypeScript
![]() |
export interface P {
|
||
|
|
||
|
}
|
||
|
|
||
|
export class Attributes implements P {
|
||
|
private _attrs: Object;
|
||
|
|
||
|
constructor() {
|
||
|
this._attrs = {};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export class ParagraphProperties implements P {
|
||
|
private pPr: Array<P>;
|
||
|
|
||
|
constructor() {
|
||
|
this.pPr = new Array<P>();
|
||
|
this.pPr.push(new Attributes());
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export class Run implements P {
|
||
|
private r: Array<P>;
|
||
|
|
||
|
constructor(text: string) {
|
||
|
this.r = new Array<P>();
|
||
|
this.r.push(new Text(text));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export class Text implements P {
|
||
|
private t: string;
|
||
|
|
||
|
constructor(text: string) {
|
||
|
this.t = text;
|
||
|
}
|
||
|
}
|