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 {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {XmlComponent, Attributes} from "../../xml-components";
|
||||
import { Attributes, XmlComponent } from "../../xml-components";
|
||||
|
||||
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";
|
||||
|
||||
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 {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {XmlComponent, Attributes} from "../../xml-components";
|
||||
import { Attributes, XmlComponent } from "../../xml-components";
|
||||
|
||||
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 {PageMargin} from "./page-margin";
|
||||
import {Columns} from "./columns";
|
||||
|
@ -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 = {};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {XmlComponent, Attributes} from "../xml-components";
|
||||
import { Attributes, XmlComponent } from "../xml-components";
|
||||
|
||||
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 {PageBreak} from "./page-break";
|
||||
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";
|
||||
|
||||
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 {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {XmlComponent, Attributes} from "../xml-components";
|
||||
import { Attributes, XmlComponent } from "../xml-components";
|
||||
|
||||
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 {
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {XmlComponent, Attributes} from "../xml-components";
|
||||
import { Attributes, XmlComponent } from "../xml-components";
|
||||
|
||||
abstract class BaseUnderline extends XmlComponent {
|
||||
|
||||
|
Reference in New Issue
Block a user