UNPKG

docxml

Version:

TypeScript (component) library for building and parsing a DOCX file

74 lines (73 loc) 5.93 kB
export var FileLocation; (function (FileLocation) { FileLocation["contentTypes"] = "[Content_Types].xml"; FileLocation["relationships"] = "_rels/.rels"; // All other bundle file names are determined by _rels/.rels. What follows are some // sensible/conventional defaults: FileLocation["comments"] = "word/comments.xml"; FileLocation["coreProperties"] = "docProps/core.xml"; FileLocation["mainDocument"] = "word/document.xml"; FileLocation["numbering"] = "word/numbering.xml"; FileLocation["settings"] = "word/settings.xml"; FileLocation["styles"] = "word/styles.xml"; FileLocation["customProperties"] = "docProps/custom.xml"; })(FileLocation || (FileLocation = {})); export var FileMime; (function (FileMime) { // Extension defaults FileMime["rels"] = "application/vnd.openxmlformats-package.relationships+xml"; FileMime["xml"] = "application/xml"; FileMime["json"] = "application/json"; // Overrides FileMime["coreProperties"] = "application/vnd.openxmlformats-package.core-properties+xml"; FileMime["customProperties"] = "application/vnd.openxmlformats-officedocument.custom-properties+xml"; FileMime["endnotes"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml"; FileMime["extendedProperties"] = "application/vnd.openxmlformats-officedocument.extended-properties+xml"; FileMime["fontTable"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"; FileMime["footer"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml"; FileMime["footnotes"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml"; FileMime["header"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml"; FileMime["mainDocument"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"; FileMime["relationships"] = "application/vnd.openxmlformats-package.relationships+xml"; FileMime["settings"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"; FileMime["styles"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"; FileMime["theme"] = "application/vnd.openxmlformats-officedocument.theme+xml"; FileMime["webSettings"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"; FileMime["comments"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml"; FileMime["numbering"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml"; // Images FileMime["jpeg"] = "image/jpeg"; FileMime["png"] = "image/png"; FileMime["gif"] = "image/gif"; FileMime["svg"] = "image/svg+xml"; })(FileMime || (FileMime = {})); export var RelationshipType; (function (RelationshipType) { RelationshipType["commentIds"] = "http://schemas.microsoft.com/office/2016/09/relationships/commentsIds"; RelationshipType["comments"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments"; RelationshipType["commentsExtended"] = "http://schemas.microsoft.com/office/2011/relationships/commentsExtended"; RelationshipType["coreProperties"] = "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"; RelationshipType["customProperties"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties"; RelationshipType["customXml"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml"; RelationshipType["endnotes"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes"; RelationshipType["extendedProperties"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"; RelationshipType["fontTable"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable"; RelationshipType["footer"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer"; RelationshipType["footnotes"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes"; RelationshipType["header"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header"; RelationshipType["image"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"; RelationshipType["numbering"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering"; RelationshipType["officeDocument"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"; RelationshipType["people"] = "http://schemas.microsoft.com/office/2011/relationships/people"; RelationshipType["settings"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings"; RelationshipType["styles"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"; RelationshipType["theme"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"; RelationshipType["webSettings"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings"; RelationshipType["hyperlink"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"; RelationshipType["attachedTemplate"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/attachedTemplate"; // For dotx created with office 2020 RelationshipType["classificationlabels"] = "http://schemas.microsoft.com/office/2020/02/relationships/classificationlabels"; // Legacy template (.dot) RelationshipType["downRev"] = "http://schemas.microsoft.com/office/2006/relationships/downRev"; RelationshipType["graphicFrameDoc"] = "http://schemas.microsoft.com/office/2006/relationships/graphicFrameDoc"; })(RelationshipType || (RelationshipType = {}));