This commit is contained in:
Dolan Miu
2016-05-19 23:05:28 +01:00
parent b47eaf739e
commit cae37b42a1
3 changed files with 47 additions and 47 deletions

View File

@ -30,30 +30,30 @@ export class DocumentAttributes extends XmlAttributeComponent {
constructor(properties?: DocumentAttributesProperties) { constructor(properties?: DocumentAttributesProperties) {
super({ super({
wpc: 'xmlns:wpc', wpc: "xmlns:wpc",
mc: 'xmlns:mc', mc: "xmlns:mc",
o: 'xmlns:o', o: "xmlns:o",
r: 'xmlns:r', r: "xmlns:r",
m: 'xmlns:m', m: "xmlns:m",
v: 'xmlns:v', v: "xmlns:v",
wp14: 'xmlns:wp14', wp14: "xmlns:wp14",
wp: 'xmlns:wp', wp: "xmlns:wp",
w10: 'xmlns:w10', w10: "xmlns:w10",
w: 'xmlns:w', w: "xmlns:w",
w14: 'xmlns:w14', w14: "xmlns:w14",
w15: 'xmlns:w15', w15: "xmlns:w15",
wpg: 'xmlns:wpg', wpg: "xmlns:wpg",
wpi: 'xmlns:wpi', wpi: "xmlns:wpi",
wne: 'xmlns:wne', wne: "xmlns:wne",
wps: 'xmlns:wps', wps: "xmlns:wps",
Ignorable: 'mc:Ignorable', Ignorable: "mc:Ignorable",
cp: 'xmlns:cp', cp: "xmlns:cp",
dc: 'xmlns:dc', dc: "xmlns:dc",
dcterms: 'xmlns:dcterms', dcterms: "xmlns:dcterms",
dcmitype: 'xmlns:dcmitype', dcmitype: "xmlns:dcmitype",
xsi: 'xmlns:xsi', xsi: "xmlns:xsi",
type: 'xsi:type' type: "xsi:type"
}); }, properties);
this.root = properties this.root = properties

View File

@ -9,23 +9,23 @@ export class Document extends XmlComponent {
constructor() { constructor() {
super("w:document"); super("w:document");
this.root.push(new DocumentAttributes({ this.root.push(new DocumentAttributes({
wpc: 'http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas', wpc: "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",
mc: 'http://schemas.openxmlformats.org/markup-compatibility/2006', mc: "http://schemas.openxmlformats.org/markup-compatibility/2006",
o: 'urn:schemas-microsoft-com:office:office', o: "urn:schemas-microsoft-com:office:office",
r: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships', r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
m: 'http://schemas.openxmlformats.org/officeDocument/2006/math', m: "http://schemas.openxmlformats.org/officeDocument/2006/math",
v: 'urn:schemas-microsoft-com:vml', v: "urn:schemas-microsoft-com:vml",
wp14: 'http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing', wp14: "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",
wp: 'http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing', wp: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",
w10: 'urn:schemas-microsoft-com:office:word', w10: "urn:schemas-microsoft-com:office:word",
w: 'http://schemas.openxmlformats.org/wordprocessingml/2006/main', w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main",
w14: 'http://schemas.microsoft.com/office/word/2010/wordml', w14: "http://schemas.microsoft.com/office/word/2010/wordml",
w15: 'http://schemas.microsoft.com/office/word/2012/wordml', w15: "http://schemas.microsoft.com/office/word/2012/wordml",
wpg: 'http://schemas.microsoft.com/office/word/2010/wordprocessingGroup', wpg: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",
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);

View File

@ -10,12 +10,12 @@ export class Styles extends XmlComponent {
constructor() { constructor() {
super("w:styles"); super("w:styles");
this.root.push(new DocumentAttributes({ this.root.push(new DocumentAttributes({
mc: 'http://schemas.openxmlformats.org/markup-compatibility/2006', mc: "http://schemas.openxmlformats.org/markup-compatibility/2006",
r: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships', r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
w: 'http://schemas.openxmlformats.org/wordprocessingml/2006/main', w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main",
w14: 'http://schemas.microsoft.com/office/word/2010/wordml', w14: "http://schemas.microsoft.com/office/word/2010/wordml",
w15: 'http://schemas.microsoft.com/office/word/2012/wordml', w15: "http://schemas.microsoft.com/office/word/2012/wordml",
Ignorable: 'w14 w15' Ignorable: "w14 w15"
})) }))
//var latentStyles = new LatentStyles(); //var latentStyles = new LatentStyles();
//latentStyles.push(new LatentStyleException(new LatentStyleExceptionAttributes({ //latentStyles.push(new LatentStyleException(new LatentStyleExceptionAttributes({