@docx4j/core-ts 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +12 -0
  3. package/README.md +126 -0
  4. package/dist/index.d.mts +7 -0
  5. package/dist/index.mjs +10 -0
  6. package/dist/model/content/Body.d.mts +107 -0
  7. package/dist/model/content/Body.mjs +363 -0
  8. package/dist/model/content/Font.d.mts +46 -0
  9. package/dist/model/content/Font.mjs +50 -0
  10. package/dist/model/content/Paragraph.d.mts +99 -0
  11. package/dist/model/content/Paragraph.mjs +364 -0
  12. package/dist/model/content/Range.d.mts +34 -0
  13. package/dist/model/content/Range.mjs +94 -0
  14. package/dist/model/content/index.d.mts +7 -0
  15. package/dist/model/content/index.mjs +9 -0
  16. package/dist/model/content/search.d.mts +12 -0
  17. package/dist/model/content/search.mjs +68 -0
  18. package/dist/model/content/tree.d.mts +40 -0
  19. package/dist/model/content/tree.mjs +120 -0
  20. package/dist/model/index.d.mts +1 -0
  21. package/dist/model/index.mjs +2 -0
  22. package/dist/opc/ContentTypeManager.d.mts +37 -0
  23. package/dist/opc/ContentTypeManager.mjs +126 -0
  24. package/dist/opc/ContentTypes.d.mts +118 -0
  25. package/dist/opc/ContentTypes.mjs +139 -0
  26. package/dist/opc/FlatOpcPartStore.d.mts +42 -0
  27. package/dist/opc/FlatOpcPartStore.mjs +151 -0
  28. package/dist/opc/Load.d.mts +18 -0
  29. package/dist/opc/Load.mjs +123 -0
  30. package/dist/opc/PartName.d.mts +46 -0
  31. package/dist/opc/PartName.mjs +132 -0
  32. package/dist/opc/PartStore.d.mts +45 -0
  33. package/dist/opc/PartStore.mjs +54 -0
  34. package/dist/opc/Save.d.mts +9 -0
  35. package/dist/opc/Save.mjs +52 -0
  36. package/dist/opc/ZipPartStore.d.mts +32 -0
  37. package/dist/opc/ZipPartStore.mjs +117 -0
  38. package/dist/opc/exceptions.d.mts +17 -0
  39. package/dist/opc/exceptions.mjs +22 -0
  40. package/dist/opc/index.d.mts +12 -0
  41. package/dist/opc/index.mjs +13 -0
  42. package/dist/opc/mce/preprocessor.d.mts +15 -0
  43. package/dist/opc/mce/preprocessor.mjs +74 -0
  44. package/dist/opc/mce/understood.d.mts +1 -0
  45. package/dist/opc/mce/understood.mjs +98 -0
  46. package/dist/packages/OpcPackage.d.mts +62 -0
  47. package/dist/packages/OpcPackage.mjs +133 -0
  48. package/dist/packages/PresentationMLPackage.d.mts +12 -0
  49. package/dist/packages/PresentationMLPackage.mjs +39 -0
  50. package/dist/packages/SpreadsheetMLPackage.d.mts +12 -0
  51. package/dist/packages/SpreadsheetMLPackage.mjs +38 -0
  52. package/dist/packages/WordprocessingMLPackage.d.mts +49 -0
  53. package/dist/packages/WordprocessingMLPackage.mjs +130 -0
  54. package/dist/packages/index.d.mts +5 -0
  55. package/dist/packages/index.mjs +6 -0
  56. package/dist/packages/registry.d.mts +7 -0
  57. package/dist/packages/registry.mjs +18 -0
  58. package/dist/parts/BinaryPart.d.mts +38 -0
  59. package/dist/parts/BinaryPart.mjs +72 -0
  60. package/dist/parts/DefaultXmlPart.d.mts +29 -0
  61. package/dist/parts/DefaultXmlPart.mjs +63 -0
  62. package/dist/parts/Namespaces.d.mts +99 -0
  63. package/dist/parts/Namespaces.mjs +99 -0
  64. package/dist/parts/Part.d.mts +50 -0
  65. package/dist/parts/Part.mjs +68 -0
  66. package/dist/parts/PartRegistry.d.mts +20 -0
  67. package/dist/parts/PartRegistry.mjs +142 -0
  68. package/dist/parts/Parts.d.mts +13 -0
  69. package/dist/parts/Parts.mjs +28 -0
  70. package/dist/parts/RelationshipsPart.d.mts +66 -0
  71. package/dist/parts/RelationshipsPart.mjs +224 -0
  72. package/dist/parts/XmlPart.d.mts +46 -0
  73. package/dist/parts/XmlPart.mjs +87 -0
  74. package/dist/parts/customXml/index.d.mts +9 -0
  75. package/dist/parts/customXml/index.mjs +11 -0
  76. package/dist/parts/dml/index.d.mts +54 -0
  77. package/dist/parts/dml/index.mjs +83 -0
  78. package/dist/parts/docProps/index.d.mts +14 -0
  79. package/dist/parts/docProps/index.mjs +18 -0
  80. package/dist/parts/index.d.mts +14 -0
  81. package/dist/parts/index.mjs +15 -0
  82. package/dist/parts/pml/index.d.mts +53 -0
  83. package/dist/parts/pml/index.mjs +90 -0
  84. package/dist/parts/sml/index.d.mts +61 -0
  85. package/dist/parts/sml/index.mjs +107 -0
  86. package/dist/parts/wml/defaultStyles.d.mts +1 -0
  87. package/dist/parts/wml/defaultStyles.mjs +500 -0
  88. package/dist/parts/wml/index.d.mts +102 -0
  89. package/dist/parts/wml/index.mjs +213 -0
  90. package/dist/xml/dom.d.mts +22 -0
  91. package/dist/xml/dom.mjs +92 -0
  92. package/package.json +75 -0
@@ -0,0 +1,500 @@
1
+ // docx4j's default styles (docx4j-core/src/main/resources/org/docx4j/openpackaging/parts/WordprocessingML/styles.xml),
2
+ // the styles a package created with WordprocessingMLPackage.createPackage starts with. Generated; do not edit.
3
+ export const DEFAULT_STYLES_XML = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
4
+ <w:styles xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
5
+ <w:docDefaults>
6
+ <w:rPrDefault>
7
+ <w:rPr>
8
+ <w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi" />
9
+ <w:sz w:val="22" />
10
+ <w:szCs w:val="22" />
11
+ <w:lang w:val="en-US" w:eastAsia="en-US" w:bidi="ar-SA" />
12
+ </w:rPr>
13
+ </w:rPrDefault>
14
+ <w:pPrDefault>
15
+ <w:pPr>
16
+ <w:spacing w:after="200" w:line="276" w:lineRule="auto" />
17
+ </w:pPr>
18
+ </w:pPrDefault>
19
+ </w:docDefaults>
20
+ <w:latentStyles w:defLockedState="0" w:defUIPriority="99" w:defSemiHidden="1" w:defUnhideWhenUsed="1" w:defQFormat="0" w:count="267">
21
+ <w:lsdException w:name="Normal" w:semiHidden="0" w:uiPriority="0" w:unhideWhenUsed="0" w:qFormat="1" />
22
+ <w:lsdException w:name="heading 1" w:semiHidden="0" w:uiPriority="9" w:unhideWhenUsed="0" w:qFormat="1" />
23
+ <w:lsdException w:name="heading 2" w:uiPriority="9" w:qFormat="1" />
24
+ <w:lsdException w:name="heading 3" w:uiPriority="9" w:qFormat="1" />
25
+ <w:lsdException w:name="heading 4" w:uiPriority="9" w:qFormat="1" />
26
+ <w:lsdException w:name="Title" w:semiHidden="0" w:uiPriority="10" w:unhideWhenUsed="0" w:qFormat="1" />
27
+ <w:lsdException w:name="Default Paragraph Font" w:uiPriority="1" />
28
+ <w:lsdException w:name="Subtitle" w:semiHidden="0" w:uiPriority="11" w:unhideWhenUsed="0" w:qFormat="1" />
29
+ <w:lsdException w:name="Emphasis" w:semiHidden="0" w:uiPriority="20" w:unhideWhenUsed="0" w:qFormat="1" />
30
+ <w:lsdException w:name="Table Grid" w:semiHidden="0" w:uiPriority="59" w:unhideWhenUsed="0" />
31
+ </w:latentStyles>
32
+ <w:style w:type="paragraph" w:default="1" w:styleId="Normal">
33
+ <w:name w:val="Normal" />
34
+ <w:qFormat />
35
+ <w:rsid w:val="004A3277" />
36
+ </w:style>
37
+ <w:style w:type="paragraph" w:styleId="Heading1">
38
+ <w:name w:val="heading 1" />
39
+ <w:basedOn w:val="Normal" />
40
+ <w:next w:val="Normal" />
41
+ <w:link w:val="Heading1Char" />
42
+ <w:uiPriority w:val="9" />
43
+ <w:qFormat />
44
+ <w:rsid w:val="00841CD9" />
45
+ <w:pPr>
46
+ <w:keepNext />
47
+ <w:keepLines />
48
+ <w:spacing w:before="480" />
49
+ <w:outlineLvl w:val="0" />
50
+ </w:pPr>
51
+ <w:rPr>
52
+ <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
53
+ <w:b />
54
+ <w:bCs />
55
+ <w:color w:val="365F91" w:themeColor="accent1" w:themeShade="BF" />
56
+ <w:sz w:val="28" />
57
+ <w:szCs w:val="28" />
58
+ </w:rPr>
59
+ </w:style>
60
+ <w:style w:type="paragraph" w:styleId="Heading2">
61
+ <w:name w:val="heading 2" />
62
+ <w:basedOn w:val="Normal" />
63
+ <w:next w:val="Normal" />
64
+ <w:link w:val="Heading2Char" />
65
+ <w:uiPriority w:val="9" />
66
+ <w:unhideWhenUsed />
67
+ <w:qFormat />
68
+ <w:rsid w:val="00841CD9" />
69
+ <w:pPr>
70
+ <w:keepNext />
71
+ <w:keepLines />
72
+ <w:spacing w:before="200" />
73
+ <w:outlineLvl w:val="1" />
74
+ </w:pPr>
75
+ <w:rPr>
76
+ <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
77
+ <w:b />
78
+ <w:bCs />
79
+ <w:color w:val="4F81BD" w:themeColor="accent1" />
80
+ <w:sz w:val="26" />
81
+ <w:szCs w:val="26" />
82
+ </w:rPr>
83
+ </w:style>
84
+ <w:style w:type="paragraph" w:styleId="Heading3">
85
+ <w:name w:val="heading 3" />
86
+ <w:basedOn w:val="Normal" />
87
+ <w:next w:val="Normal" />
88
+ <w:link w:val="Heading3Char" />
89
+ <w:uiPriority w:val="9" />
90
+ <w:unhideWhenUsed />
91
+ <w:qFormat />
92
+ <w:rsid w:val="00841CD9" />
93
+ <w:pPr>
94
+ <w:keepNext />
95
+ <w:keepLines />
96
+ <w:spacing w:before="200" />
97
+ <w:outlineLvl w:val="2" />
98
+ </w:pPr>
99
+ <w:rPr>
100
+ <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
101
+ <w:b />
102
+ <w:bCs />
103
+ <w:color w:val="4F81BD" w:themeColor="accent1" />
104
+ </w:rPr>
105
+ </w:style>
106
+ <w:style w:type="paragraph" w:styleId="Heading4">
107
+ <w:name w:val="heading 4" />
108
+ <w:basedOn w:val="Normal" />
109
+ <w:next w:val="Normal" />
110
+ <w:link w:val="Heading4Char" />
111
+ <w:uiPriority w:val="9" />
112
+ <w:unhideWhenUsed />
113
+ <w:qFormat />
114
+ <w:rsid w:val="00841CD9" />
115
+ <w:pPr>
116
+ <w:keepNext />
117
+ <w:keepLines />
118
+ <w:spacing w:before="200" />
119
+ <w:outlineLvl w:val="3" />
120
+ </w:pPr>
121
+ <w:rPr>
122
+ <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
123
+ <w:b />
124
+ <w:bCs />
125
+ <w:i />
126
+ <w:iCs />
127
+ <w:color w:val="4F81BD" w:themeColor="accent1" />
128
+ </w:rPr>
129
+ </w:style>
130
+ <w:style w:type="character" w:default="1" w:styleId="DefaultParagraphFont">
131
+ <w:name w:val="Default Paragraph Font" />
132
+ <w:uiPriority w:val="1" />
133
+ <w:semiHidden />
134
+ <w:unhideWhenUsed />
135
+ </w:style>
136
+ <!--
137
+ <w:style w:type="paragraph" w:styleId="BlockText">
138
+ <w:name w:val="Block Text" />
139
+ <w:basedOn w:val="Normal" />
140
+ <w:uiPriority w:val="99" />
141
+ <w:unhideWhenUsed />
142
+ <w:rsid w:val="00841CD9" />
143
+ <w:pPr>
144
+ <w:pBdr>
145
+ <w:top w:val="single" w:sz="2" w:space="10" w:color="4F81BD" w:themeColor="accent1" w:shadow="1" />
146
+ <w:left w:val="single" w:sz="2" w:space="10" w:color="4F81BD" w:themeColor="accent1" w:shadow="1" />
147
+ <w:bottom w:val="single" w:sz="2" w:space="10" w:color="4F81BD" w:themeColor="accent1" w:shadow="1" />
148
+ <w:right w:val="single" w:sz="2" w:space="10" w:color="4F81BD" w:themeColor="accent1" w:shadow="1" />
149
+ </w:pBdr>
150
+ <w:ind w:left="1152" w:right="1152" />
151
+ </w:pPr>
152
+ <w:rPr>
153
+ <w:rFonts w:eastAsiaTheme="minorEastAsia" />
154
+ <w:i />
155
+ <w:iCs />
156
+ <w:color w:val="4F81BD" w:themeColor="accent1" />
157
+ </w:rPr>
158
+ </w:style>
159
+ <w:style w:type="paragraph" w:styleId="EndnoteText">
160
+ <w:name w:val="endnote text" />
161
+ <w:basedOn w:val="Normal" />
162
+ <w:link w:val="EndnoteTextChar" />
163
+ <w:uiPriority w:val="99" />
164
+ <w:unhideWhenUsed />
165
+ <w:rsid w:val="00841CD9" />
166
+ <w:rPr>
167
+ <w:sz w:val="20" />
168
+ <w:szCs w:val="20" />
169
+ </w:rPr>
170
+ </w:style>
171
+ <w:style w:type="character" w:customStyle="1" w:styleId="EndnoteTextChar">
172
+ <w:name w:val="Endnote Text Char" />
173
+ <w:basedOn w:val="DefaultParagraphFont" />
174
+ <w:link w:val="EndnoteText" />
175
+ <w:uiPriority w:val="99" />
176
+ <w:rsid w:val="00841CD9" />
177
+ <w:rPr>
178
+ <w:sz w:val="20" />
179
+ <w:szCs w:val="20" />
180
+ </w:rPr>
181
+ </w:style>
182
+ <w:style w:type="paragraph" w:styleId="Footer">
183
+ <w:name w:val="footer" />
184
+ <w:basedOn w:val="Normal" />
185
+ <w:link w:val="FooterChar" />
186
+ <w:uiPriority w:val="99" />
187
+ <w:unhideWhenUsed />
188
+ <w:rsid w:val="00841CD9" />
189
+ <w:pPr>
190
+ <w:tabs>
191
+ <w:tab w:val="center" w:pos="4680" />
192
+ <w:tab w:val="right" w:pos="9360" />
193
+ </w:tabs>
194
+ </w:pPr>
195
+ </w:style>
196
+ <w:style w:type="character" w:customStyle="1" w:styleId="FooterChar">
197
+ <w:name w:val="Footer Char" />
198
+ <w:basedOn w:val="DefaultParagraphFont" />
199
+ <w:link w:val="Footer" />
200
+ <w:uiPriority w:val="99" />
201
+ <w:rsid w:val="00841CD9" />
202
+ </w:style>
203
+ <w:style w:type="paragraph" w:styleId="FootnoteText">
204
+ <w:name w:val="footnote text" />
205
+ <w:basedOn w:val="Normal" />
206
+ <w:link w:val="FootnoteTextChar" />
207
+ <w:uiPriority w:val="99" />
208
+ <w:unhideWhenUsed />
209
+ <w:rsid w:val="00841CD9" />
210
+ <w:rPr>
211
+ <w:sz w:val="20" />
212
+ <w:szCs w:val="20" />
213
+ </w:rPr>
214
+ </w:style>
215
+ <w:style w:type="character" w:customStyle="1" w:styleId="FootnoteTextChar">
216
+ <w:name w:val="Footnote Text Char" />
217
+ <w:basedOn w:val="DefaultParagraphFont" />
218
+ <w:link w:val="FootnoteText" />
219
+ <w:uiPriority w:val="99" />
220
+ <w:rsid w:val="00841CD9" />
221
+ <w:rPr>
222
+ <w:sz w:val="20" />
223
+ <w:szCs w:val="20" />
224
+ </w:rPr>
225
+ </w:style>
226
+ -->
227
+ <w:style w:type="paragraph" w:styleId="Header">
228
+ <w:name w:val="header" />
229
+ <w:basedOn w:val="Normal" />
230
+ <w:link w:val="HeaderChar" />
231
+ <w:uiPriority w:val="99" />
232
+ <w:unhideWhenUsed />
233
+ <w:rsid w:val="00841CD9" />
234
+ <w:pPr>
235
+ <w:tabs>
236
+ <w:tab w:val="center" w:pos="4680" />
237
+ <w:tab w:val="right" w:pos="9360" />
238
+ </w:tabs>
239
+ </w:pPr>
240
+ </w:style>
241
+ <w:style w:type="character" w:customStyle="1" w:styleId="HeaderChar">
242
+ <w:name w:val="Header Char" />
243
+ <w:basedOn w:val="DefaultParagraphFont" />
244
+ <w:link w:val="Header" />
245
+ <w:uiPriority w:val="99" />
246
+ <w:rsid w:val="00841CD9" />
247
+ </w:style>
248
+ <w:style w:type="character" w:customStyle="1" w:styleId="Heading1Char">
249
+ <w:name w:val="Heading 1 Char" />
250
+ <w:basedOn w:val="DefaultParagraphFont" />
251
+ <w:link w:val="Heading1" />
252
+ <w:uiPriority w:val="9" />
253
+ <w:rsid w:val="00841CD9" />
254
+ <w:rPr>
255
+ <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
256
+ <w:b />
257
+ <w:bCs />
258
+ <w:color w:val="365F91" w:themeColor="accent1" w:themeShade="BF" />
259
+ <w:sz w:val="28" />
260
+ <w:szCs w:val="28" />
261
+ </w:rPr>
262
+ </w:style>
263
+ <w:style w:type="character" w:customStyle="1" w:styleId="Heading2Char">
264
+ <w:name w:val="Heading 2 Char" />
265
+ <w:basedOn w:val="DefaultParagraphFont" />
266
+ <w:link w:val="Heading2" />
267
+ <w:uiPriority w:val="9" />
268
+ <w:rsid w:val="00841CD9" />
269
+ <w:rPr>
270
+ <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
271
+ <w:b />
272
+ <w:bCs />
273
+ <w:color w:val="4F81BD" w:themeColor="accent1" />
274
+ <w:sz w:val="26" />
275
+ <w:szCs w:val="26" />
276
+ </w:rPr>
277
+ </w:style>
278
+ <w:style w:type="character" w:customStyle="1" w:styleId="Heading3Char">
279
+ <w:name w:val="Heading 3 Char" />
280
+ <w:basedOn w:val="DefaultParagraphFont" />
281
+ <w:link w:val="Heading3" />
282
+ <w:uiPriority w:val="9" />
283
+ <w:rsid w:val="00841CD9" />
284
+ <w:rPr>
285
+ <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
286
+ <w:b />
287
+ <w:bCs />
288
+ <w:color w:val="4F81BD" w:themeColor="accent1" />
289
+ </w:rPr>
290
+ </w:style>
291
+ <w:style w:type="character" w:customStyle="1" w:styleId="Heading4Char">
292
+ <w:name w:val="Heading 4 Char" />
293
+ <w:basedOn w:val="DefaultParagraphFont" />
294
+ <w:link w:val="Heading4" />
295
+ <w:uiPriority w:val="9" />
296
+ <w:rsid w:val="00841CD9" />
297
+ <w:rPr>
298
+ <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
299
+ <w:b />
300
+ <w:bCs />
301
+ <w:i />
302
+ <w:iCs />
303
+ <w:color w:val="4F81BD" w:themeColor="accent1" />
304
+ </w:rPr>
305
+ </w:style>
306
+ <w:style w:type="paragraph" w:styleId="NormalIndent">
307
+ <w:name w:val="Normal Indent" />
308
+ <w:basedOn w:val="Normal" />
309
+ <w:uiPriority w:val="99" />
310
+ <w:unhideWhenUsed />
311
+ <w:rsid w:val="00841CD9" />
312
+ <w:pPr>
313
+ <w:ind w:left="720" />
314
+ </w:pPr>
315
+ </w:style>
316
+ <w:style w:type="paragraph" w:styleId="Subtitle">
317
+ <w:name w:val="Subtitle" />
318
+ <w:basedOn w:val="Normal" />
319
+ <w:next w:val="Normal" />
320
+ <w:link w:val="SubtitleChar" />
321
+ <w:uiPriority w:val="11" />
322
+ <w:qFormat />
323
+ <w:rsid w:val="00841CD9" />
324
+ <w:pPr>
325
+ <w:numPr>
326
+ <w:ilvl w:val="1" />
327
+ </w:numPr>
328
+ <w:ind w:left="86" />
329
+ </w:pPr>
330
+ <w:rPr>
331
+ <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
332
+ <w:i />
333
+ <w:iCs />
334
+ <w:color w:val="4F81BD" w:themeColor="accent1" />
335
+ <w:spacing w:val="15" />
336
+ <w:sz w:val="24" />
337
+ <w:szCs w:val="24" />
338
+ </w:rPr>
339
+ </w:style>
340
+ <w:style w:type="character" w:customStyle="1" w:styleId="SubtitleChar">
341
+ <w:name w:val="Subtitle Char" />
342
+ <w:basedOn w:val="DefaultParagraphFont" />
343
+ <w:link w:val="Subtitle" />
344
+ <w:uiPriority w:val="11" />
345
+ <w:rsid w:val="00841CD9" />
346
+ <w:rPr>
347
+ <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
348
+ <w:i />
349
+ <w:iCs />
350
+ <w:color w:val="4F81BD" w:themeColor="accent1" />
351
+ <w:spacing w:val="15" />
352
+ <w:sz w:val="24" />
353
+ <w:szCs w:val="24" />
354
+ </w:rPr>
355
+ </w:style>
356
+ <w:style w:type="paragraph" w:styleId="Title">
357
+ <w:name w:val="Title" />
358
+ <w:basedOn w:val="Normal" />
359
+ <w:next w:val="Normal" />
360
+ <w:link w:val="TitleChar" />
361
+ <w:uiPriority w:val="10" />
362
+ <w:qFormat />
363
+ <w:rsid w:val="00841CD9" />
364
+ <w:pPr>
365
+ <w:pBdr>
366
+ <w:bottom w:val="single" w:sz="8" w:space="4" w:color="4F81BD" w:themeColor="accent1" />
367
+ </w:pBdr>
368
+ <w:spacing w:after="300" />
369
+ <w:contextualSpacing />
370
+ </w:pPr>
371
+ <w:rPr>
372
+ <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
373
+ <w:color w:val="17365D" w:themeColor="text2" w:themeShade="BF" />
374
+ <w:spacing w:val="5" />
375
+ <w:kern w:val="28" />
376
+ <w:sz w:val="52" />
377
+ <w:szCs w:val="52" />
378
+ </w:rPr>
379
+ </w:style>
380
+ <w:style w:type="character" w:customStyle="1" w:styleId="TitleChar">
381
+ <w:name w:val="Title Char" />
382
+ <w:basedOn w:val="DefaultParagraphFont" />
383
+ <w:link w:val="Title" />
384
+ <w:uiPriority w:val="10" />
385
+ <w:rsid w:val="00841CD9" />
386
+ <w:rPr>
387
+ <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
388
+ <w:color w:val="17365D" w:themeColor="text2" w:themeShade="BF" />
389
+ <w:spacing w:val="5" />
390
+ <w:kern w:val="28" />
391
+ <w:sz w:val="52" />
392
+ <w:szCs w:val="52" />
393
+ </w:rPr>
394
+ </w:style>
395
+ <!--
396
+ <w:style w:type="character" w:styleId="FootnoteReference">
397
+ <w:name w:val="footnote reference" />
398
+ <w:basedOn w:val="DefaultParagraphFont" />
399
+ <w:uiPriority w:val="99" />
400
+ <w:unhideWhenUsed />
401
+ <w:rsid w:val="00D1197D" />
402
+ <w:rPr>
403
+ <w:vertAlign w:val="superscript" />
404
+ </w:rPr>
405
+ </w:style>
406
+ <w:style w:type="character" w:styleId="EndnoteReference">
407
+ <w:name w:val="endnote reference" />
408
+ <w:basedOn w:val="DefaultParagraphFont" />
409
+ <w:uiPriority w:val="99" />
410
+ <w:unhideWhenUsed />
411
+ <w:rsid w:val="00D1197D" />
412
+ <w:rPr>
413
+ <w:vertAlign w:val="superscript" />
414
+ </w:rPr>
415
+ </w:style>
416
+ -->
417
+ <w:style w:type="character" w:styleId="Emphasis">
418
+ <w:name w:val="Emphasis" />
419
+ <w:basedOn w:val="DefaultParagraphFont" />
420
+ <w:uiPriority w:val="20" />
421
+ <w:qFormat />
422
+ <w:rsid w:val="00D1197D" />
423
+ <w:rPr>
424
+ <w:i />
425
+ <w:iCs />
426
+ </w:rPr>
427
+ </w:style>
428
+ <w:style w:type="character" w:styleId="Hyperlink">
429
+ <w:name w:val="Hyperlink" />
430
+ <w:basedOn w:val="DefaultParagraphFont" />
431
+ <w:uiPriority w:val="99" />
432
+ <w:unhideWhenUsed />
433
+ <w:rPr>
434
+ <w:color w:val="0000FF" w:themeColor="hyperlink" />
435
+ <w:u w:val="single" />
436
+ </w:rPr>
437
+ </w:style>
438
+ <w:style w:type="table" w:styleId="TableGrid">
439
+ <w:name w:val="Table Grid"/>
440
+ <w:basedOn w:val="TableNormal"/>
441
+ <w:uiPriority w:val="59"/>
442
+ <w:pPr>
443
+ <w:spacing w:after="0" w:line="240" w:lineRule="auto"/>
444
+ </w:pPr>
445
+ <w:tblPr>
446
+ <w:tblInd w:w="0" w:type="dxa"/>
447
+ <w:tblBorders>
448
+ <w:top w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
449
+ <w:left w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
450
+ <w:bottom w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
451
+ <w:right w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
452
+ <w:insideH w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
453
+ <w:insideV w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
454
+ </w:tblBorders>
455
+ <w:tblCellMar>
456
+ <w:top w:w="0" w:type="dxa"/>
457
+ <w:left w:w="108" w:type="dxa"/>
458
+ <w:bottom w:w="0" w:type="dxa"/>
459
+ <w:right w:w="108" w:type="dxa"/>
460
+ </w:tblCellMar>
461
+ </w:tblPr>
462
+ </w:style>
463
+ <w:style w:type="table" w:default="1" w:styleId="TableNormal">
464
+ <w:name w:val="Normal Table"/>
465
+ <w:uiPriority w:val="99"/>
466
+ <w:semiHidden/>
467
+ <w:unhideWhenUsed/>
468
+ <w:qFormat/>
469
+ <w:tblPr>
470
+ <w:tblInd w:w="0" w:type="dxa"/>
471
+ <w:tblCellMar>
472
+ <w:top w:w="0" w:type="dxa"/>
473
+ <w:left w:w="108" w:type="dxa"/>
474
+ <w:bottom w:w="0" w:type="dxa"/>
475
+ <w:right w:w="108" w:type="dxa"/>
476
+ </w:tblCellMar>
477
+ </w:tblPr>
478
+ </w:style>
479
+ <w:style w:type="paragraph" w:styleId="Caption">
480
+ <w:name w:val="caption"/>
481
+ <w:basedOn w:val="Normal"/>
482
+ <w:next w:val="Normal"/>
483
+ <w:uiPriority w:val="35"/>
484
+ <w:semiHidden/>
485
+ <w:unhideWhenUsed/>
486
+ <w:qFormat/>
487
+ <w:rsid w:val="007109C0"/>
488
+ <w:pPr>
489
+ <w:spacing w:line="240" w:lineRule="auto"/>
490
+ </w:pPr>
491
+ <w:rPr>
492
+ <w:b/>
493
+ <w:bCs/>
494
+ <w:color w:val="4F81BD" w:themeColor="accent1"/>
495
+ <w:sz w:val="18"/>
496
+ <w:szCs w:val="18"/>
497
+ </w:rPr>
498
+ </w:style>
499
+ </w:styles>
500
+ `;
@@ -0,0 +1,102 @@
1
+ import type * as wml from '@docx4j/generated-objects-ts/modules/org_docx4j_wml';
2
+ import type * as w15 from '@docx4j/generated-objects-ts/modules/org_docx4j_w15';
3
+ import type * as w16cid from '@docx4j/generated-objects-ts/modules/org_docx4j_w16cid';
4
+ import type * as wne from '@docx4j/generated-objects-ts/modules/org_docx4j_com_microsoft_schemas_office_word_x2006_wordml';
5
+ import { XmlPart } from '../XmlPart.mjs';
6
+ import { Part } from '../Part.mjs';
7
+ import { PartName } from '../../opc/PartName.mjs';
8
+ import { DefaultXmlPart } from '../DefaultXmlPart.mjs';
9
+ import { ThemePart } from '../dml/index.mjs';
10
+ import { Body } from '../../model/content/Body.mjs';
11
+ /**
12
+ * Shared by the main document and the glossary document (docx4j DocumentPart): the shortcuts
13
+ * to styles, numbering, fonts, settings, theme, comments and notes.
14
+ */
15
+ export declare abstract class DocumentPart<T> extends XmlPart<T> {
16
+ styleDefinitionsPart: StyleDefinitionsPart | undefined;
17
+ numberingDefinitionsPart: NumberingDefinitionsPart | undefined;
18
+ fontTablePart: FontTablePart | undefined;
19
+ themePart: ThemePart | undefined;
20
+ documentSettingsPart: DocumentSettingsPart | undefined;
21
+ webSettingsPart: WebSettingsPart | undefined;
22
+ commentsPart: CommentsPart | undefined;
23
+ commentsExtendedPart: CommentsExtendedPart | undefined;
24
+ commentsIdsPart: CommentsIdsPart | undefined;
25
+ footnotesPart: FootnotesPart | undefined;
26
+ endnotesPart: EndnotesPart | undefined;
27
+ peoplePart: PeoplePart | undefined;
28
+ setPartShortcut(part: Part, relationshipType: string): boolean;
29
+ /** Header parts related from this document, in relationship order. */
30
+ get headerParts(): HeaderPart[];
31
+ get footerParts(): FooterPart[];
32
+ protected targets(relationshipType: string): Part[];
33
+ }
34
+ /** `/word/document.xml` (docx4j MainDocumentPart). */
35
+ export declare class MainDocumentPart extends DocumentPart<wml.Document> {
36
+ glossaryDocumentPart: GlossaryDocumentPart | undefined;
37
+ constructor(partName?: PartName | string, contentType?: string);
38
+ setPartShortcut(part: Part, relationshipType: string): boolean;
39
+ /** The Office JS-shaped view of `w:body`; the part must be unmarshalled (`getBody()` does that). */
40
+ get body(): Body;
41
+ getBody(): Promise<Body>;
42
+ }
43
+ /** `/word/glossary/document.xml` (docx4j GlossaryDocumentPart). */
44
+ export declare class GlossaryDocumentPart extends DocumentPart<wml.GlossaryDocument> {
45
+ constructor(partName?: PartName | string);
46
+ }
47
+ export declare class StyleDefinitionsPart extends XmlPart<wml.Styles> {
48
+ constructor(partName?: PartName | string);
49
+ }
50
+ export declare class NumberingDefinitionsPart extends XmlPart<wml.Numbering> {
51
+ constructor(partName?: PartName | string);
52
+ }
53
+ export declare class FontTablePart extends XmlPart<wml.Fonts> {
54
+ constructor(partName?: PartName | string);
55
+ }
56
+ export declare class DocumentSettingsPart extends XmlPart<wml.CTSettings> {
57
+ constructor(partName?: PartName | string);
58
+ }
59
+ export declare class WebSettingsPart extends XmlPart<wml.CTWebSettings> {
60
+ constructor(partName?: PartName | string);
61
+ }
62
+ export declare class HeaderPart extends XmlPart<wml.Hdr> {
63
+ constructor(partName?: PartName | string);
64
+ /** The header's content as a Body; addresses are 'header:<relId>/n'. */
65
+ get body(): Body;
66
+ getBody(): Promise<Body>;
67
+ }
68
+ export declare class FooterPart extends XmlPart<wml.Ftr> {
69
+ constructor(partName?: PartName | string);
70
+ /** The footer's content as a Body; addresses are 'footer:<relId>/n'. */
71
+ get body(): Body;
72
+ getBody(): Promise<Body>;
73
+ }
74
+ export declare class FootnotesPart extends XmlPart<wml.CTFootnotes> {
75
+ constructor(partName?: PartName | string);
76
+ }
77
+ export declare class EndnotesPart extends XmlPart<wml.CTEndnotes> {
78
+ constructor(partName?: PartName | string);
79
+ }
80
+ export declare class CommentsPart extends XmlPart<wml.Comments> {
81
+ constructor(partName?: PartName | string);
82
+ }
83
+ export declare class CommentsExtendedPart extends XmlPart<w15.CTCommentsEx> {
84
+ constructor(partName?: PartName | string);
85
+ }
86
+ export declare class CommentsIdsPart extends XmlPart<w16cid.CTCommentsIds> {
87
+ constructor(partName?: PartName | string);
88
+ }
89
+ export declare class PeoplePart extends XmlPart<w15.CTPeople> {
90
+ constructor(partName?: PartName | string);
91
+ }
92
+ export declare class KeyMapCustomizationsPart extends XmlPart<wne.CTTcg> {
93
+ constructor(partName?: PartName | string);
94
+ }
95
+ export declare class VbaDataPart extends XmlPart<wne.CTVbaSuppData> {
96
+ constructor(partName?: PartName | string);
97
+ }
98
+ /** A VML drawing (`/word/vmlDrawing1.vml`, docx4j VMLPart), as a DOM: the root `<xml>` is docx4j's own wrapper, not typed here yet. */
99
+ export declare class VMLPart extends DefaultXmlPart {
100
+ constructor(partName: PartName | string);
101
+ }
102
+ export { ThemePart };