more tslinting
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
import {XmlComponent, Attributes} from "../../xml-components";
|
import { Attributes, XmlComponent } from "../../xml-components";
|
||||||
|
|
||||||
export class Columns extends XmlComponent {
|
export class Columns extends XmlComponent {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {XmlComponent, Attributes} from "../../xml-components";
|
import { Attributes, XmlComponent } from "../../xml-components";
|
||||||
|
|
||||||
export class DocumentGrid extends XmlComponent {
|
export class DocumentGrid extends XmlComponent {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {XmlComponent, Attributes} from "../../xml-components";
|
import { Attributes, XmlComponent } from "../../xml-components";
|
||||||
import {SectionProperties} from "./section-properties";
|
import {SectionProperties} from "./section-properties";
|
||||||
|
|
||||||
export class Body extends XmlComponent {
|
export class Body extends XmlComponent {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {XmlComponent, Attributes} from "../../xml-components";
|
import { Attributes, XmlComponent } from "../../xml-components";
|
||||||
|
|
||||||
export class PageMargin extends XmlComponent {
|
export class PageMargin extends XmlComponent {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {XmlComponent, Attributes} from "../../xml-components";
|
import { Attributes, XmlComponent } from "../../xml-components";
|
||||||
|
|
||||||
export class PageSize extends XmlComponent {
|
export class PageSize extends XmlComponent {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {XmlComponent, Attributes} from "../../xml-components";
|
import { Attributes, XmlComponent } from "../../xml-components";
|
||||||
import {PageSize} from "./page-size";
|
import {PageSize} from "./page-size";
|
||||||
import {PageMargin} from "./page-margin";
|
import {PageMargin} from "./page-margin";
|
||||||
import {Columns} from "./columns";
|
import {Columns} from "./columns";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {XmlAttributeComponent} from "../xml-components";
|
import { XmlAttributeComponent } from "../xml-components";
|
||||||
|
|
||||||
interface DocumentAttributesProperties {
|
interface IDocumentAttributesProperties {
|
||||||
wpc?: string;
|
wpc?: string;
|
||||||
mc?: string;
|
mc?: string;
|
||||||
o?: string;
|
o?: string;
|
||||||
@ -28,7 +28,7 @@ interface DocumentAttributesProperties {
|
|||||||
|
|
||||||
export class DocumentAttributes extends XmlAttributeComponent {
|
export class DocumentAttributes extends XmlAttributeComponent {
|
||||||
|
|
||||||
constructor(properties?: DocumentAttributesProperties) {
|
constructor(properties?: IDocumentAttributesProperties) {
|
||||||
super({
|
super({
|
||||||
wpc: "xmlns:wpc",
|
wpc: "xmlns:wpc",
|
||||||
mc: "xmlns:mc",
|
mc: "xmlns:mc",
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import {XmlComponent} from "../xml-components";
|
import { Paragraph } from "../paragraph";
|
||||||
import {DocumentAttributes} from "./document-attributes";
|
import { XmlComponent } from "../xml-components";
|
||||||
import {Body} from "./body";
|
import { Body } from "./body";
|
||||||
import {Paragraph} from "../paragraph";
|
import { DocumentAttributes } from "./document-attributes";
|
||||||
|
|
||||||
export class Document extends XmlComponent {
|
export class Document extends XmlComponent {
|
||||||
private body: Body;
|
private body: Body;
|
||||||
|
|
||||||
@ -25,17 +24,17 @@ export class Document extends XmlComponent {
|
|||||||
wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk",
|
wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk",
|
||||||
wne: "http://schemas.microsoft.com/office/word/2006/wordml",
|
wne: "http://schemas.microsoft.com/office/word/2006/wordml",
|
||||||
wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape",
|
wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape",
|
||||||
Ignorable: "w14 w15 wp14"
|
Ignorable: "w14 w15 wp14",
|
||||||
}));
|
}));
|
||||||
this.body = new Body();
|
this.body = new Body();
|
||||||
this.root.push(this.body);
|
this.root.push(this.body);
|
||||||
}
|
}
|
||||||
|
|
||||||
addParagraph(paragraph: Paragraph): void {
|
public addParagraph(paragraph: Paragraph): void {
|
||||||
this.body.push(paragraph);
|
this.body.push(paragraph);
|
||||||
}
|
}
|
||||||
|
|
||||||
clearVariables(): void {
|
public clearVariables(): void {
|
||||||
this.body.clearVariables();
|
this.body.clearVariables();
|
||||||
delete this.body;
|
delete this.body;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {XmlComponent, Attributes} from "../xml-components";
|
import { Attributes, XmlComponent } from "../xml-components";
|
||||||
|
|
||||||
class Border extends XmlComponent {
|
class Border extends XmlComponent {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {XmlComponent, Attributes} from "../xml-components";
|
import { Attributes, XmlComponent } from "../xml-components";
|
||||||
import {ThematicBreak} from "./border";
|
import {ThematicBreak} from "./border";
|
||||||
import {PageBreak} from "./page-break";
|
import {PageBreak} from "./page-break";
|
||||||
import {TextRun} from "../run/text-run";
|
import {TextRun} from "../run/text-run";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {XmlComponent, Attributes} from "../xml-components";
|
import { Attributes, XmlComponent } from "../xml-components";
|
||||||
import {Run} from "../run";
|
import {Run} from "../run";
|
||||||
|
|
||||||
class Break extends XmlComponent {
|
class Break extends XmlComponent {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {XmlComponent, Attributes} from "../xml-components";
|
import { Attributes, XmlComponent } from "../xml-components";
|
||||||
|
|
||||||
export class ParagraphProperties extends XmlComponent {
|
export class ParagraphProperties extends XmlComponent {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {XmlComponent, Attributes} from "../xml-components";
|
import { Attributes, XmlComponent } from "../xml-components";
|
||||||
|
|
||||||
export class Style extends XmlComponent {
|
export class Style extends XmlComponent {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {XmlComponent, Attributes} from "../xml-components";
|
import { Attributes, XmlComponent } from "../xml-components";
|
||||||
|
|
||||||
class TabStop extends XmlComponent {
|
class TabStop extends XmlComponent {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {XmlComponent, Attributes} from "../xml-components";
|
import { Attributes, XmlComponent } from "../xml-components";
|
||||||
import {Style} from "./style";
|
import {Style} from "./style";
|
||||||
|
|
||||||
export class NumberProperties extends XmlComponent {
|
export class NumberProperties extends XmlComponent {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {XmlComponent, Attributes} from "../xml-components";
|
import { Attributes, XmlComponent } from "../xml-components";
|
||||||
|
|
||||||
abstract class BaseUnderline extends XmlComponent {
|
abstract class BaseUnderline extends XmlComponent {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user