diff --git a/ts/docx/document/body/columns.ts b/ts/docx/document/body/columns.ts index 9614f3c75a..cd721c6f12 100644 --- a/ts/docx/document/body/columns.ts +++ b/ts/docx/document/body/columns.ts @@ -1,4 +1,4 @@ -import {XmlComponent, Attributes} from "../../xml-components"; +import { Attributes, XmlComponent } from "../../xml-components"; export class Columns extends XmlComponent { diff --git a/ts/docx/document/body/doc-grid.ts b/ts/docx/document/body/doc-grid.ts index 5c2c0509c3..e8437b8a38 100644 --- a/ts/docx/document/body/doc-grid.ts +++ b/ts/docx/document/body/doc-grid.ts @@ -1,4 +1,4 @@ -import {XmlComponent, Attributes} from "../../xml-components"; +import { Attributes, XmlComponent } from "../../xml-components"; export class DocumentGrid extends XmlComponent { diff --git a/ts/docx/document/body/index.ts b/ts/docx/document/body/index.ts index 8e29a5056f..ae491e456b 100644 --- a/ts/docx/document/body/index.ts +++ b/ts/docx/document/body/index.ts @@ -1,4 +1,4 @@ -import {XmlComponent, Attributes} from "../../xml-components"; +import { Attributes, XmlComponent } from "../../xml-components"; import {SectionProperties} from "./section-properties"; export class Body extends XmlComponent { diff --git a/ts/docx/document/body/page-margin.ts b/ts/docx/document/body/page-margin.ts index b98525d988..8f3dc655e9 100644 --- a/ts/docx/document/body/page-margin.ts +++ b/ts/docx/document/body/page-margin.ts @@ -1,4 +1,4 @@ -import {XmlComponent, Attributes} from "../../xml-components"; +import { Attributes, XmlComponent } from "../../xml-components"; export class PageMargin extends XmlComponent { diff --git a/ts/docx/document/body/page-size.ts b/ts/docx/document/body/page-size.ts index 9ed44cdf34..da19557c62 100644 --- a/ts/docx/document/body/page-size.ts +++ b/ts/docx/document/body/page-size.ts @@ -1,4 +1,4 @@ -import {XmlComponent, Attributes} from "../../xml-components"; +import { Attributes, XmlComponent } from "../../xml-components"; export class PageSize extends XmlComponent { diff --git a/ts/docx/document/body/section-properties.ts b/ts/docx/document/body/section-properties.ts index 0f6d9a123b..72d4c5e7ac 100644 --- a/ts/docx/document/body/section-properties.ts +++ b/ts/docx/document/body/section-properties.ts @@ -1,4 +1,4 @@ -import {XmlComponent, Attributes} from "../../xml-components"; +import { Attributes, XmlComponent } from "../../xml-components"; import {PageSize} from "./page-size"; import {PageMargin} from "./page-margin"; import {Columns} from "./columns"; diff --git a/ts/docx/document/document-attributes.ts b/ts/docx/document/document-attributes.ts index a23be1d38d..2583de85eb 100644 --- a/ts/docx/document/document-attributes.ts +++ b/ts/docx/document/document-attributes.ts @@ -1,6 +1,6 @@ -import {XmlAttributeComponent} from "../xml-components"; +import { XmlAttributeComponent } from "../xml-components"; -interface DocumentAttributesProperties { +interface IDocumentAttributesProperties { wpc?: string; mc?: string; o?: string; @@ -28,7 +28,7 @@ interface DocumentAttributesProperties { export class DocumentAttributes extends XmlAttributeComponent { - constructor(properties?: DocumentAttributesProperties) { + constructor(properties?: IDocumentAttributesProperties) { super({ wpc: "xmlns:wpc", mc: "xmlns:mc", @@ -61,4 +61,4 @@ export class DocumentAttributes extends XmlAttributeComponent { this.root = {}; } } -} \ No newline at end of file +} diff --git a/ts/docx/document/index.ts b/ts/docx/document/index.ts index c7fc59ea45..cffa5f17d2 100644 --- a/ts/docx/document/index.ts +++ b/ts/docx/document/index.ts @@ -1,8 +1,7 @@ -import {XmlComponent} from "../xml-components"; -import {DocumentAttributes} from "./document-attributes"; -import {Body} from "./body"; -import {Paragraph} from "../paragraph"; - +import { Paragraph } from "../paragraph"; +import { XmlComponent } from "../xml-components"; +import { Body } from "./body"; +import { DocumentAttributes } from "./document-attributes"; export class Document extends XmlComponent { private body: Body; @@ -25,18 +24,18 @@ export class Document extends XmlComponent { wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", wne: "http://schemas.microsoft.com/office/word/2006/wordml", wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape", - Ignorable: "w14 w15 wp14" + Ignorable: "w14 w15 wp14", })); this.body = new Body(); this.root.push(this.body); } - addParagraph(paragraph: Paragraph): void { + public addParagraph(paragraph: Paragraph): void { this.body.push(paragraph); } - clearVariables(): void { + public clearVariables(): void { this.body.clearVariables(); delete this.body; } -} \ No newline at end of file +} diff --git a/ts/docx/paragraph/border.ts b/ts/docx/paragraph/border.ts index ac4d8f77da..326ce3f30f 100644 --- a/ts/docx/paragraph/border.ts +++ b/ts/docx/paragraph/border.ts @@ -1,4 +1,4 @@ -import {XmlComponent, Attributes} from "../xml-components"; +import { Attributes, XmlComponent } from "../xml-components"; class Border extends XmlComponent { diff --git a/ts/docx/paragraph/index.ts b/ts/docx/paragraph/index.ts index 9b1c0cc08d..06c58a7d46 100644 --- a/ts/docx/paragraph/index.ts +++ b/ts/docx/paragraph/index.ts @@ -1,4 +1,4 @@ -import {XmlComponent, Attributes} from "../xml-components"; +import { Attributes, XmlComponent } from "../xml-components"; import {ThematicBreak} from "./border"; import {PageBreak} from "./page-break"; import {TextRun} from "../run/text-run"; diff --git a/ts/docx/paragraph/page-break.ts b/ts/docx/paragraph/page-break.ts index c7bf5811a0..65761a3e3d 100644 --- a/ts/docx/paragraph/page-break.ts +++ b/ts/docx/paragraph/page-break.ts @@ -1,4 +1,4 @@ -import {XmlComponent, Attributes} from "../xml-components"; +import { Attributes, XmlComponent } from "../xml-components"; import {Run} from "../run"; class Break extends XmlComponent { diff --git a/ts/docx/paragraph/properties.ts b/ts/docx/paragraph/properties.ts index 9d0e6117d7..bbb5dd48fe 100644 --- a/ts/docx/paragraph/properties.ts +++ b/ts/docx/paragraph/properties.ts @@ -1,4 +1,4 @@ -import {XmlComponent, Attributes} from "../xml-components"; +import { Attributes, XmlComponent } from "../xml-components"; export class ParagraphProperties extends XmlComponent { diff --git a/ts/docx/paragraph/style.ts b/ts/docx/paragraph/style.ts index b47c6989b4..5b6c560ca4 100644 --- a/ts/docx/paragraph/style.ts +++ b/ts/docx/paragraph/style.ts @@ -1,4 +1,4 @@ -import {XmlComponent, Attributes} from "../xml-components"; +import { Attributes, XmlComponent } from "../xml-components"; export class Style extends XmlComponent { diff --git a/ts/docx/paragraph/tab-stop.ts b/ts/docx/paragraph/tab-stop.ts index 0a84eb81e6..8f04f75978 100644 --- a/ts/docx/paragraph/tab-stop.ts +++ b/ts/docx/paragraph/tab-stop.ts @@ -1,4 +1,4 @@ -import {XmlComponent, Attributes} from "../xml-components"; +import { Attributes, XmlComponent } from "../xml-components"; class TabStop extends XmlComponent { diff --git a/ts/docx/paragraph/unordered-list.ts b/ts/docx/paragraph/unordered-list.ts index 9a6611b273..a3b9006deb 100644 --- a/ts/docx/paragraph/unordered-list.ts +++ b/ts/docx/paragraph/unordered-list.ts @@ -1,4 +1,4 @@ -import {XmlComponent, Attributes} from "../xml-components"; +import { Attributes, XmlComponent } from "../xml-components"; import {Style} from "./style"; export class NumberProperties extends XmlComponent { diff --git a/ts/docx/run/underline.ts b/ts/docx/run/underline.ts index 56df04aade..bdb294a4e5 100644 --- a/ts/docx/run/underline.ts +++ b/ts/docx/run/underline.ts @@ -1,4 +1,4 @@ -import {XmlComponent, Attributes} from "../xml-components"; +import { Attributes, XmlComponent } from "../xml-components"; abstract class BaseUnderline extends XmlComponent {