From cae37b42a1f38c7d61884aa34ab667ed17ec1f66 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 19 May 2016 23:05:28 +0100 Subject: [PATCH] cleanup --- ts/docx/document/document-attributes.ts | 48 ++++++++++++------------- ts/docx/document/index.ts | 34 +++++++++--------- ts/styles/index.ts | 12 +++---- 3 files changed, 47 insertions(+), 47 deletions(-) diff --git a/ts/docx/document/document-attributes.ts b/ts/docx/document/document-attributes.ts index 014c45f57c..fede6c2ed3 100644 --- a/ts/docx/document/document-attributes.ts +++ b/ts/docx/document/document-attributes.ts @@ -30,30 +30,30 @@ export class DocumentAttributes extends XmlAttributeComponent { constructor(properties?: DocumentAttributesProperties) { super({ - wpc: 'xmlns:wpc', - mc: 'xmlns:mc', - o: 'xmlns:o', - r: 'xmlns:r', - m: 'xmlns:m', - v: 'xmlns:v', - wp14: 'xmlns:wp14', - wp: 'xmlns:wp', - w10: 'xmlns:w10', - w: 'xmlns:w', - w14: 'xmlns:w14', - w15: 'xmlns:w15', - wpg: 'xmlns:wpg', - wpi: 'xmlns:wpi', - wne: 'xmlns:wne', - wps: 'xmlns:wps', - Ignorable: 'mc:Ignorable', - cp: 'xmlns:cp', - dc: 'xmlns:dc', - dcterms: 'xmlns:dcterms', - dcmitype: 'xmlns:dcmitype', - xsi: 'xmlns:xsi', - type: 'xsi:type' - }); + wpc: "xmlns:wpc", + mc: "xmlns:mc", + o: "xmlns:o", + r: "xmlns:r", + m: "xmlns:m", + v: "xmlns:v", + wp14: "xmlns:wp14", + wp: "xmlns:wp", + w10: "xmlns:w10", + w: "xmlns:w", + w14: "xmlns:w14", + w15: "xmlns:w15", + wpg: "xmlns:wpg", + wpi: "xmlns:wpi", + wne: "xmlns:wne", + wps: "xmlns:wps", + Ignorable: "mc:Ignorable", + cp: "xmlns:cp", + dc: "xmlns:dc", + dcterms: "xmlns:dcterms", + dcmitype: "xmlns:dcmitype", + xsi: "xmlns:xsi", + type: "xsi:type" + }, properties); this.root = properties diff --git a/ts/docx/document/index.ts b/ts/docx/document/index.ts index 1c2f9d0577..2006c12d63 100644 --- a/ts/docx/document/index.ts +++ b/ts/docx/document/index.ts @@ -9,23 +9,23 @@ export class Document extends XmlComponent { constructor() { super("w:document"); this.root.push(new DocumentAttributes({ - wpc: 'http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas', - mc: 'http://schemas.openxmlformats.org/markup-compatibility/2006', - o: 'urn:schemas-microsoft-com:office:office', - r: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships', - m: 'http://schemas.openxmlformats.org/officeDocument/2006/math', - v: 'urn:schemas-microsoft-com:vml', - wp14: 'http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing', - wp: 'http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing', - w10: 'urn:schemas-microsoft-com:office:word', - w: 'http://schemas.openxmlformats.org/wordprocessingml/2006/main', - w14: 'http://schemas.microsoft.com/office/word/2010/wordml', - w15: 'http://schemas.microsoft.com/office/word/2012/wordml', - wpg: 'http://schemas.microsoft.com/office/word/2010/wordprocessingGroup', - 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' + wpc: "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas", + mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", + o: "urn:schemas-microsoft-com:office:office", + r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", + m: "http://schemas.openxmlformats.org/officeDocument/2006/math", + v: "urn:schemas-microsoft-com:vml", + wp14: "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", + wp: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", + w10: "urn:schemas-microsoft-com:office:word", + w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", + w14: "http://schemas.microsoft.com/office/word/2010/wordml", + w15: "http://schemas.microsoft.com/office/word/2012/wordml", + wpg: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", + 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" })); this.body = new Body(); this.root.push(this.body); diff --git a/ts/styles/index.ts b/ts/styles/index.ts index a4813d33fb..82b7b6559a 100644 --- a/ts/styles/index.ts +++ b/ts/styles/index.ts @@ -10,12 +10,12 @@ export class Styles extends XmlComponent { constructor() { super("w:styles"); this.root.push(new DocumentAttributes({ - mc: 'http://schemas.openxmlformats.org/markup-compatibility/2006', - r: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships', - w: 'http://schemas.openxmlformats.org/wordprocessingml/2006/main', - w14: 'http://schemas.microsoft.com/office/word/2010/wordml', - w15: 'http://schemas.microsoft.com/office/word/2012/wordml', - Ignorable: 'w14 w15' + mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", + r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", + w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", + w14: "http://schemas.microsoft.com/office/word/2010/wordml", + w15: "http://schemas.microsoft.com/office/word/2012/wordml", + Ignorable: "w14 w15" })) //var latentStyles = new LatentStyles(); //latentStyles.push(new LatentStyleException(new LatentStyleExceptionAttributes({