forked from FontoXML/docxml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenums.ts
More file actions
82 lines (76 loc) · 4.96 KB
/
Copy pathenums.ts
File metadata and controls
82 lines (76 loc) · 4.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
export enum FileLocation {
contentTypes = '[Content_Types].xml',
relationships = '_rels/.rels',
// All other bundle file names are determined by _rels/.rels. What follows are some
// sensible/conventional defaults:
comments = 'word/comments.xml',
commentsExtended = 'word/commentsExtended.xml',
coreProperties = 'docProps/core.xml',
endnotes = 'word/endnotes.xml',
footnotes = 'word/footnotes.xml',
mainDocument = 'word/document.xml',
numbering = 'word/numbering.xml',
settings = 'word/settings.xml',
styles = 'word/styles.xml',
customProperties = 'docProps/custom.xml',
}
export enum FileMime {
// Extension defaults
rels = 'application/vnd.openxmlformats-package.relationships+xml',
xml = 'application/xml',
json = 'application/json',
// Overrides
coreProperties = 'application/vnd.openxmlformats-package.core-properties+xml',
customProperties = 'application/vnd.openxmlformats-officedocument.custom-properties+xml',
endnotes = 'application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml',
extendedProperties = 'application/vnd.openxmlformats-officedocument.extended-properties+xml',
fontTable = 'application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml',
footer = 'application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml',
footnotes = 'application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml',
header = 'application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml',
mainDocument = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml',
relationships = 'application/vnd.openxmlformats-package.relationships+xml',
settings = 'application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml',
styles = 'application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml',
theme = 'application/vnd.openxmlformats-officedocument.theme+xml',
webSettings = 'application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml',
comments = 'application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml',
commentsExtended = 'application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml',
numbering = 'application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml',
// Images
jpeg = 'image/jpeg',
png = 'image/png',
gif = 'image/gif',
svg = 'image/svg+xml',
}
export enum RelationshipType {
commentIds = 'http://schemas.microsoft.com/office/2016/09/relationships/commentsIds',
comments = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments',
commentsExtended = 'http://schemas.microsoft.com/office/2011/relationships/commentsExtended',
corePropertiesAlternative = 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties',
coreProperties = 'http://schemas.openxmlformats.org/officedocument/2006/relationships/metadata/core-properties',
customProperties = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties',
customXml = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml',
endnotes = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes',
extendedProperties = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties',
fontTable = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable',
footer = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer',
footnotes = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes',
glossary = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/glossaryDocument',
header = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/header',
image = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image',
numbering = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering',
officeDocument = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument',
people = 'http://schemas.microsoft.com/office/2011/relationships/people',
settings = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings',
styles = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles',
theme = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme',
webSettings = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings',
hyperlink = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink',
attachedTemplate = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/attachedTemplate',
// For dotx created with office 2020
classificationlabels = 'http://schemas.microsoft.com/office/2020/02/relationships/classificationlabels',
// Legacy template (.dot)
downRev = 'http://schemas.microsoft.com/office/2006/relationships/downRev',
graphicFrameDoc = 'http://schemas.microsoft.com/office/2006/relationships/graphicFrameDoc',
}