vendor: amis 6.13.0 base (fork root)
This commit is contained in:
6
packages/office-viewer/.gitignore
vendored
Normal file
6
packages/office-viewer/.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
coverage
|
||||
lib
|
||||
esm
|
||||
.rollup.cache
|
||||
~$*
|
||||
.antlr
|
||||
524
packages/office-viewer/.vscode/settings.json
vendored
Normal file
524
packages/office-viewer/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,524 @@
|
||||
{
|
||||
"cSpell.words": [
|
||||
"ABS",
|
||||
"ACCRINT",
|
||||
"ACCRINTM",
|
||||
"ACOS",
|
||||
"ACOSH",
|
||||
"ACOT",
|
||||
"ACOTH",
|
||||
"ADDRESS",
|
||||
"AGGREGATE",
|
||||
"AMORDEGRC",
|
||||
"AMORLINC",
|
||||
"AND",
|
||||
"ARABIC",
|
||||
"AREAS",
|
||||
"ARRAYTOTEXT",
|
||||
"ASC",
|
||||
"ASIN",
|
||||
"ASINH",
|
||||
"ATAN",
|
||||
"ATAN2",
|
||||
"ATANH",
|
||||
"AVEDEV",
|
||||
"AVERAGE",
|
||||
"AVERAGEA",
|
||||
"AVERAGEIF",
|
||||
"AVERAGEIFS",
|
||||
"BAHTTEXT",
|
||||
"BASE",
|
||||
"BESSELI",
|
||||
"BESSELJ",
|
||||
"BESSELK",
|
||||
"BESSELY",
|
||||
"BETA.DIST",
|
||||
"BETA.INV",
|
||||
"BETADIST",
|
||||
"BETAINV",
|
||||
"BIN2DEC",
|
||||
"BIN2HEX",
|
||||
"BIN2OCT",
|
||||
"BINOM.DIST",
|
||||
"BINOM.DIST.RANGE",
|
||||
"BINOM.INV",
|
||||
"BINOMDIST",
|
||||
"BITAND",
|
||||
"BITLSHIFT",
|
||||
"BITOR",
|
||||
"BITRSHIFT",
|
||||
"BITXOR",
|
||||
"CALL",
|
||||
"CDXCIX",
|
||||
"CEILING",
|
||||
"CEILING.MATH",
|
||||
"CEILING.PRECISE",
|
||||
"CELL",
|
||||
"cellspacing",
|
||||
"cfvo",
|
||||
"CHAR",
|
||||
"CHIDIST",
|
||||
"CHIINV",
|
||||
"CHISQ.DIST",
|
||||
"CHISQ.DIST.RT",
|
||||
"CHISQ.INV",
|
||||
"CHISQ.INV.RT",
|
||||
"CHISQ.TEST",
|
||||
"CHITEST",
|
||||
"CLEAN",
|
||||
"CODE",
|
||||
"colspan",
|
||||
"COLUMN",
|
||||
"COLUMNS",
|
||||
"COMBIN",
|
||||
"COMBINA",
|
||||
"COMPLEX",
|
||||
"CONCAT",
|
||||
"CONCATENATE",
|
||||
"CONFIDENCE",
|
||||
"CONFIDENCE.NORM",
|
||||
"CONFIDENCE.T",
|
||||
"CONFINT",
|
||||
"Consts",
|
||||
"CONVERT",
|
||||
"CORREL",
|
||||
"COS",
|
||||
"COSH",
|
||||
"COT",
|
||||
"COTH",
|
||||
"COUNT",
|
||||
"COUNTA",
|
||||
"COUNTBLANK",
|
||||
"COUNTIF",
|
||||
"COUNTIFS",
|
||||
"COUPDAYBS",
|
||||
"COUPDAYS",
|
||||
"COUPDAYSNC",
|
||||
"COUPNCD",
|
||||
"COUPNUM",
|
||||
"COUPPCD",
|
||||
"COVAR",
|
||||
"COVARIANCE.P",
|
||||
"COVARIANCE.S",
|
||||
"CRITBINOM",
|
||||
"CSC",
|
||||
"CSCH",
|
||||
"CUBEKPIMEMBER",
|
||||
"CUBEMEMBER",
|
||||
"CUBEMEMBERPROPERTY",
|
||||
"CUBERANKEDMEMBER",
|
||||
"CUBESET",
|
||||
"CUBESETCOUNT",
|
||||
"CUBEVALUE",
|
||||
"CUMIPMT",
|
||||
"CUMPRINC",
|
||||
"cust",
|
||||
"DATE",
|
||||
"DATEDIF",
|
||||
"DATEVALUE",
|
||||
"DAVERAGE",
|
||||
"DAY",
|
||||
"DAYS",
|
||||
"DAYS360",
|
||||
"DB",
|
||||
"DBCS",
|
||||
"DCCC",
|
||||
"DCOUNT",
|
||||
"DCOUNTA",
|
||||
"DDB",
|
||||
"DEC2BIN",
|
||||
"DEC2HEX",
|
||||
"DEC2OCT",
|
||||
"DECIMAL",
|
||||
"DEGREES",
|
||||
"DELTA",
|
||||
"DEVSQ",
|
||||
"DGET",
|
||||
"DISC",
|
||||
"Divs",
|
||||
"DMAX",
|
||||
"DMIN",
|
||||
"DOLLAR",
|
||||
"DOLLARDE",
|
||||
"DOLLARFR",
|
||||
"DPRODUCT",
|
||||
"DSTDEV",
|
||||
"DSTDEVP",
|
||||
"DSUM",
|
||||
"DURATION",
|
||||
"DVAR",
|
||||
"DVARP",
|
||||
"dxfs",
|
||||
"echarts",
|
||||
"EDATE",
|
||||
"EFFECT",
|
||||
"ENCODEURL",
|
||||
"EOMONTH",
|
||||
"ERF",
|
||||
"ERF.PRECISE",
|
||||
"ERFC",
|
||||
"ERFC.PRECISE",
|
||||
"ERROR.TYPE",
|
||||
"EUROCONVERT",
|
||||
"EVEN",
|
||||
"EXACT",
|
||||
"EXP",
|
||||
"EXPON.DIST",
|
||||
"EXPONDIST",
|
||||
"F.DIST",
|
||||
"F.DIST.RT",
|
||||
"F.INV",
|
||||
"F.INV.RT",
|
||||
"F.TEST",
|
||||
"FACT",
|
||||
"FACTDOUBLE",
|
||||
"FALSE",
|
||||
"FDIST",
|
||||
"fflate",
|
||||
"FILTER",
|
||||
"FILTERXML",
|
||||
"FIND",
|
||||
"FINDB",
|
||||
"FINV",
|
||||
"FISHER",
|
||||
"FISHERINV",
|
||||
"FIXED",
|
||||
"FLOOR",
|
||||
"FLOOR.MATH",
|
||||
"FLOOR.PRECISE",
|
||||
"Fmla",
|
||||
"Fmts",
|
||||
"FORECAST",
|
||||
"FORECAST.ETS",
|
||||
"FORECAST.ETS.CONFINT",
|
||||
"FORECAST.ETS.SEASONALITY",
|
||||
"FORECAST.ETS.STAT",
|
||||
"FORECAST.LINEAR",
|
||||
"Formattings",
|
||||
"FORMULATEXT",
|
||||
"FREQUENCY",
|
||||
"FTEST",
|
||||
"FV",
|
||||
"FVSCHEDULE",
|
||||
"GAMMA",
|
||||
"GAMMA.DIST",
|
||||
"GAMMA.INV",
|
||||
"GAMMADIST",
|
||||
"GAMMAINV",
|
||||
"GAMMALN",
|
||||
"GAMMALN.PRECISE",
|
||||
"GAUSS",
|
||||
"GCD",
|
||||
"GEOMEAN",
|
||||
"GESTEP",
|
||||
"GETPIVOTDATA",
|
||||
"GOSA",
|
||||
"GROWTH",
|
||||
"HARMEAN",
|
||||
"HEX2BIN",
|
||||
"HEX2DEC",
|
||||
"HEX2OCT",
|
||||
"hlink",
|
||||
"HLOOKUP",
|
||||
"HOUR",
|
||||
"HYPERLINK",
|
||||
"HYPGEOM.DIST",
|
||||
"HYPGEOMDIST",
|
||||
"IFERROR",
|
||||
"IFNA",
|
||||
"IFS",
|
||||
"IMABS",
|
||||
"IMAGINARY",
|
||||
"IMARGUMENT",
|
||||
"IMCONJUGATE",
|
||||
"IMCOS",
|
||||
"IMCOSH",
|
||||
"IMCOT",
|
||||
"IMCSC",
|
||||
"IMCSCH",
|
||||
"IMDIV",
|
||||
"IMEXP",
|
||||
"IMLN",
|
||||
"IMLOG10",
|
||||
"IMLOG2",
|
||||
"IMPOWER",
|
||||
"IMPRODUCT",
|
||||
"IMREAL",
|
||||
"IMSEC",
|
||||
"IMSECH",
|
||||
"IMSIN",
|
||||
"IMSINH",
|
||||
"IMSQRT",
|
||||
"IMSUB",
|
||||
"IMSUM",
|
||||
"IMTAN",
|
||||
"INFO",
|
||||
"INT",
|
||||
"INTERCEPT",
|
||||
"INTRATE",
|
||||
"IPMT",
|
||||
"IRR",
|
||||
"ISBLANK",
|
||||
"ISERR",
|
||||
"ISERROR",
|
||||
"ISEVEN",
|
||||
"ISFORMULA",
|
||||
"ISLOGICAL",
|
||||
"ISNA",
|
||||
"ISNONTEXT",
|
||||
"ISNUMBER",
|
||||
"ISO.CEILING",
|
||||
"ISODD",
|
||||
"ISOWEEKNUM",
|
||||
"ISPMT",
|
||||
"ISREF",
|
||||
"ISTEXT",
|
||||
"JIS",
|
||||
"jstat",
|
||||
"KURT",
|
||||
"LARGE",
|
||||
"Lbls",
|
||||
"LCM",
|
||||
"LEFT",
|
||||
"LEFTB",
|
||||
"LEN",
|
||||
"LENB",
|
||||
"LET",
|
||||
"Levithan",
|
||||
"LINEST",
|
||||
"LN",
|
||||
"LOG",
|
||||
"LOG10",
|
||||
"LOGEST",
|
||||
"LOGINV",
|
||||
"LOGNORM.DIST",
|
||||
"LOGNORM.INV",
|
||||
"LOGNORMDIST",
|
||||
"LOOKUP",
|
||||
"LOWER",
|
||||
"LVIIA",
|
||||
"LXXX",
|
||||
"MATCH",
|
||||
"MAX",
|
||||
"MAXA",
|
||||
"MAXIFS",
|
||||
"MDETERM",
|
||||
"MDLV",
|
||||
"MDURATION",
|
||||
"MEDIAN",
|
||||
"MID",
|
||||
"MIDB",
|
||||
"MIN",
|
||||
"MINA",
|
||||
"MINIFS",
|
||||
"MINUTE",
|
||||
"MINVERSE",
|
||||
"MIRR",
|
||||
"MMULT",
|
||||
"MOD",
|
||||
"MODE",
|
||||
"MODE.MULT",
|
||||
"MODE.SNGL",
|
||||
"moize",
|
||||
"MONTH",
|
||||
"MROUND",
|
||||
"MULTINOMIAL",
|
||||
"MUNIT",
|
||||
"N",
|
||||
"NA",
|
||||
"NEGBINOM.DIST",
|
||||
"NEGBINOMDIST",
|
||||
"NETWORKDAYS",
|
||||
"NETWORKDAYS.INTL",
|
||||
"NOMINAL",
|
||||
"NORM.DIST",
|
||||
"NORM.INV",
|
||||
"NORM.S.DIST",
|
||||
"NORM.S.INV",
|
||||
"NORMDIST",
|
||||
"NORMINV",
|
||||
"NORMSDIST",
|
||||
"NORMSINV",
|
||||
"NOT",
|
||||
"NOW",
|
||||
"NPER",
|
||||
"NPV",
|
||||
"NUMBERVALUE",
|
||||
"numfmt",
|
||||
"OCT2BIN",
|
||||
"OCT2DEC",
|
||||
"OCT2HEX",
|
||||
"ODD",
|
||||
"ODDFPRICE",
|
||||
"ODDFYIELD",
|
||||
"ODDLPRICE",
|
||||
"ODDLYIELD",
|
||||
"openxml",
|
||||
"OR",
|
||||
"papaparse",
|
||||
"PDURATION",
|
||||
"PEARSON",
|
||||
"PERCENTILE",
|
||||
"PERCENTILE.EXC",
|
||||
"PERCENTILE.INC",
|
||||
"PERCENTRANK",
|
||||
"PERCENTRANK.EXC",
|
||||
"PERCENTRANK.INC",
|
||||
"PERMUT",
|
||||
"PERMUTATIONA",
|
||||
"PHI",
|
||||
"PHONETIC",
|
||||
"PI",
|
||||
"PMT",
|
||||
"POISSON",
|
||||
"POISSON.DIST",
|
||||
"POWER",
|
||||
"PPMT",
|
||||
"PRICE",
|
||||
"PRICEDISC",
|
||||
"PRICEMAT",
|
||||
"PROB",
|
||||
"PRODUCT",
|
||||
"PROPER",
|
||||
"prst",
|
||||
"PV",
|
||||
"QUARTILE",
|
||||
"QUARTILE.EXC",
|
||||
"QUARTILE.INC",
|
||||
"QUOTIENT",
|
||||
"RADIANS",
|
||||
"RAND",
|
||||
"RANDARRAY",
|
||||
"RANDBETWEEN",
|
||||
"RANK",
|
||||
"RANK.AVG",
|
||||
"RANK.EQ",
|
||||
"RATE",
|
||||
"RECEIVED",
|
||||
"REGISTER.ID",
|
||||
"rels",
|
||||
"relt",
|
||||
"REPLACE",
|
||||
"REPLACEB",
|
||||
"REPT",
|
||||
"RIGHT",
|
||||
"RIGHTB",
|
||||
"ROMAN",
|
||||
"ROUND",
|
||||
"ROUNDDOWN",
|
||||
"ROUNDUP",
|
||||
"ROW",
|
||||
"ROWS",
|
||||
"rowspan",
|
||||
"RRI",
|
||||
"RSQ",
|
||||
"RTD",
|
||||
"SEARCH",
|
||||
"SEARCHB",
|
||||
"SEC",
|
||||
"SECH",
|
||||
"SECOND",
|
||||
"SEQUENCE",
|
||||
"SERIESSUM",
|
||||
"SHEET",
|
||||
"SHEETS",
|
||||
"SIGN",
|
||||
"SIN",
|
||||
"SINH",
|
||||
"SKEW",
|
||||
"SKEW.P",
|
||||
"SLN",
|
||||
"SLOPE",
|
||||
"SMALL",
|
||||
"SORT",
|
||||
"SORTBY",
|
||||
"Sparkline",
|
||||
"sparklines",
|
||||
"spreadsheetml",
|
||||
"sqref",
|
||||
"SQRT",
|
||||
"SQRTPI",
|
||||
"STANDARDIZE",
|
||||
"STDEV",
|
||||
"STDEV.P",
|
||||
"STDEV.S",
|
||||
"STDEVA",
|
||||
"STDEVP",
|
||||
"STDEVPA",
|
||||
"STEYX",
|
||||
"SUBSTITUTE",
|
||||
"SUBTOTAL",
|
||||
"SUM",
|
||||
"SUMIF",
|
||||
"SUMIFS",
|
||||
"SUMPRODUCT",
|
||||
"SUMSQ",
|
||||
"SUMX2MY2",
|
||||
"SUMX2PY2",
|
||||
"SUMXMY2",
|
||||
"SWITCH",
|
||||
"SYD",
|
||||
"T",
|
||||
"T.DIST",
|
||||
"T.DIST.2T",
|
||||
"T.DIST.RT",
|
||||
"T.INV",
|
||||
"T.INV.2T",
|
||||
"T.TEST",
|
||||
"TAN",
|
||||
"TANH",
|
||||
"TBILLEQ",
|
||||
"TBILLPRICE",
|
||||
"TBILLYIELD",
|
||||
"TDIST",
|
||||
"TEXT",
|
||||
"TEXTJOIN",
|
||||
"TIME",
|
||||
"TIMEVALUE",
|
||||
"TINV",
|
||||
"TODAY",
|
||||
"TRANSPOSE",
|
||||
"TREND",
|
||||
"TRIM",
|
||||
"TRIMMEAN",
|
||||
"TRUE",
|
||||
"TRUNC",
|
||||
"TTEST",
|
||||
"TYPE",
|
||||
"UNICHAR",
|
||||
"UNICODE",
|
||||
"UNIQUE",
|
||||
"UPPER",
|
||||
"VALUE",
|
||||
"VALUETOTEXT",
|
||||
"VAR",
|
||||
"VAR.P",
|
||||
"VAR.S",
|
||||
"VARA",
|
||||
"VARP",
|
||||
"VARPA",
|
||||
"VDB",
|
||||
"VLOOKUP",
|
||||
"WEBSERVICE",
|
||||
"WEEKDAY",
|
||||
"WEEKNUM",
|
||||
"WEIBULL",
|
||||
"WEIBULL.DIST",
|
||||
"wordprocessingml",
|
||||
"WORKDAY",
|
||||
"WORKDAY.INTL",
|
||||
"xfrm",
|
||||
"XIRR",
|
||||
"XLOOKUP",
|
||||
"XMATCH",
|
||||
"XNPV",
|
||||
"XOR",
|
||||
"YEAR",
|
||||
"YEARFRAC",
|
||||
"YIELD",
|
||||
"YIELDDISC",
|
||||
"YIELDMAT",
|
||||
"Z.TEST",
|
||||
"ZTEST"
|
||||
]
|
||||
}
|
||||
36
packages/office-viewer/README.md
Normal file
36
packages/office-viewer/README.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# 说明
|
||||
|
||||
Word 和 Excel 渲染器,目前接口还未完全稳定,新版可能会修改,请参考 examples
|
||||
|
||||
## Word 渲染
|
||||
|
||||
### 原理
|
||||
|
||||
Word 渲染器,原理是将 docx 里的 xml 格式转成 html
|
||||
|
||||
相对于 Canvas 渲染,这个实现方案比较简单,最终页面也可以很方便复制,但无法保证和原始 docx 文件展现一致,因为有部分功能难以在 HTML 中实现,比如图文环绕效果。
|
||||
|
||||
### 已知不支持的功能
|
||||
|
||||
- 艺术字
|
||||
- 域
|
||||
- 对象
|
||||
- wmf,需要使用 https://github.com/SheetJS/js-wmf
|
||||
|
||||
### 参考资料
|
||||
|
||||
- [官方规范](https://www.ecma-international.org/publications-and-standards/standards/ecma-376/)
|
||||
- [标签的在线文档](http://webapp.docx4java.org/OnlineDemo/ecma376/WordML/index.html)
|
||||
|
||||
日常开发可以使用 [OOXML viewer](https://marketplace.visualstudio.com/items?itemName=yuenm18.ooxml-viewer) 插件查看
|
||||
|
||||
开发过程啊参考了
|
||||
|
||||
- [docx](https://github.com/dolanmiu/docx) 的类型定义
|
||||
- [docxjs](https://github.com/zVolodymyr/docxjs) 里格式的实现
|
||||
|
||||
## Excel 渲染
|
||||
|
||||
### 原理
|
||||
|
||||
使用 Canvas 渲染
|
||||
16
packages/office-viewer/__tests__/EmptyWord.ts
Normal file
16
packages/office-viewer/__tests__/EmptyWord.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* 构建一个空 word,主要是很多传参依赖
|
||||
*/
|
||||
|
||||
import Word from '../src/Word';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import XMLPackageParser from '../src/package/XMLPackageParser';
|
||||
|
||||
export function createWord() {
|
||||
const xmlContent = fs.readFileSync(
|
||||
path.join(__dirname, './docx/empty.xml'),
|
||||
'utf-8'
|
||||
);
|
||||
return new Word(xmlContent, {}, new XMLPackageParser());
|
||||
}
|
||||
362
packages/office-viewer/__tests__/OpenXML.test.ts
Normal file
362
packages/office-viewer/__tests__/OpenXML.test.ts
Normal file
@@ -0,0 +1,362 @@
|
||||
import {createWord} from './EmptyWord';
|
||||
import {mergeRun} from '../src/util/mergeRun';
|
||||
import {parseXML} from '../src/util/xml';
|
||||
|
||||
test('proofErr', async () => {
|
||||
const xmlDoc = parseXML(
|
||||
`
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
||||
<w:body>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>{{var</w:t>
|
||||
</w:r>
|
||||
<w:proofErr w:type="gramStart"/>
|
||||
<w:r>
|
||||
<w:t>}}</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:body>
|
||||
</w:document>
|
||||
`.trim()
|
||||
);
|
||||
|
||||
const word = createWord();
|
||||
|
||||
mergeRun(word, xmlDoc);
|
||||
|
||||
expect(xmlDoc.getElementsByTagName('w:t')[0]?.innerHTML).toBe('{{var}}');
|
||||
});
|
||||
|
||||
test('font hint', async () => {
|
||||
const xmlDoc = parseXML(
|
||||
`
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
||||
<w:body>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
<w:rFonts w:hint="eastAsia"/>
|
||||
</w:rPr>
|
||||
<w:t>B</w:t>
|
||||
</w:r>
|
||||
<w:r>
|
||||
<w:t>6</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:body>
|
||||
</w:document>
|
||||
`.trim()
|
||||
);
|
||||
|
||||
const word = createWord();
|
||||
mergeRun(word, xmlDoc);
|
||||
expect(xmlDoc.getElementsByTagName('w:t')[0]?.innerHTML).toBe('B6');
|
||||
});
|
||||
|
||||
test('space', async () => {
|
||||
const xmlDoc = parseXML(
|
||||
`
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
||||
<w:body>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>C</w:t>
|
||||
</w:r>
|
||||
<w:r w:rsidR="007D7B36">
|
||||
<w:t>ustom</w:t>
|
||||
</w:r>
|
||||
<w:r>
|
||||
<w:t xml:space="preserve"> </w:t>
|
||||
</w:r>
|
||||
<w:r w:rsidR="007D7B36">
|
||||
<w:t>Style</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:body>
|
||||
</w:document>
|
||||
`.trim()
|
||||
);
|
||||
|
||||
const word = createWord();
|
||||
|
||||
mergeRun(word, xmlDoc);
|
||||
|
||||
expect(xmlDoc.getElementsByTagName('w:t')[0]?.innerHTML).toBe('Custom');
|
||||
});
|
||||
|
||||
test('multi_proofErr', async () => {
|
||||
const xmlDoc = parseXML(
|
||||
`
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
||||
<w:body>
|
||||
<w:p w:rsidR="00EA74AA" w:rsidRDefault="001F5EBE" w:rsidP="003D533A">
|
||||
<w:pPr>
|
||||
<w:spacing w:line="560" w:lineRule="exact"/>
|
||||
<w:jc w:val="center"/>
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="SimSun" w:eastAsia="SimSun" w:hAnsi="SimSun" w:cs="Times New Roman"/>
|
||||
<w:color w:val="FF0000"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
</w:pPr>
|
||||
<w:r w:rsidRPr="001F5EBE">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="SimSun" w:eastAsia="SimSun" w:hAnsi="SimSun" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>{{</w:t>
|
||||
</w:r>
|
||||
<w:proofErr w:type="spellStart"/>
|
||||
<w:r w:rsidRPr="001F5EBE">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="SimSun" w:eastAsia="SimSun" w:hAnsi="SimSun" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>operate_</w:t>
|
||||
</w:r>
|
||||
<w:proofErr w:type="gramStart"/>
|
||||
<w:r w:rsidRPr="001F5EBE">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="SimSun" w:eastAsia="SimSun" w:hAnsi="SimSun" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>applicant.label</w:t>
|
||||
</w:r>
|
||||
<w:proofErr w:type="spellEnd"/>
|
||||
<w:proofErr w:type="gramEnd"/>
|
||||
<w:r w:rsidRPr="001F5EBE">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="SimSun" w:eastAsia="SimSun" w:hAnsi="SimSun" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>}}</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:body>
|
||||
</w:document>
|
||||
`.trim()
|
||||
);
|
||||
|
||||
const word = createWord();
|
||||
|
||||
mergeRun(word, xmlDoc);
|
||||
|
||||
expect(xmlDoc.getElementsByTagName('w:t')[0]?.innerHTML).toBe(
|
||||
'{{operate_applicant.label}}'
|
||||
);
|
||||
});
|
||||
|
||||
test('multi_run', async () => {
|
||||
const xmlDoc = parseXML(
|
||||
`
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
||||
<w:body>
|
||||
<w:p w:rsidR="00EA74AA" w:rsidRDefault="0089111F" w:rsidP="003D533A">
|
||||
<w:pPr>
|
||||
<w:spacing w:line="560" w:lineRule="exact"/>
|
||||
<w:jc w:val="center"/>
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman"/>
|
||||
<w:color w:val="FF0000"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
</w:pPr>
|
||||
<w:r w:rsidRPr="003826F8">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman" w:hint="eastAsia"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>{</w:t>
|
||||
</w:r>
|
||||
<w:r w:rsidRPr="003826F8">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>{</w:t>
|
||||
</w:r>
|
||||
<w:r w:rsidR="00887A64" w:rsidRPr="00D1772D">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>operate</w:t>
|
||||
</w:r>
|
||||
<w:r w:rsidR="00636549">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>_</w:t>
|
||||
</w:r>
|
||||
<w:r w:rsidR="00636549">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman" w:hint="eastAsia"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>a</w:t>
|
||||
</w:r>
|
||||
<w:r w:rsidR="00887A64" w:rsidRPr="00D1772D">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>pplicate</w:t>
|
||||
</w:r>
|
||||
<w:r w:rsidR="00636549">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>_u</w:t>
|
||||
</w:r>
|
||||
<w:r w:rsidR="00887A64" w:rsidRPr="00D1772D">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>nit</w:t>
|
||||
</w:r>
|
||||
<w:r w:rsidR="00343289">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>.label</w:t>
|
||||
</w:r>
|
||||
<w:r w:rsidRPr="003826F8">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>}}</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:body>
|
||||
</w:document>
|
||||
`.trim()
|
||||
);
|
||||
|
||||
const word = createWord();
|
||||
|
||||
mergeRun(word, xmlDoc);
|
||||
|
||||
expect(xmlDoc.getElementsByTagName('w:t')[0]?.innerHTML).toBe(
|
||||
'{{operate_applicate_unit.label}}'
|
||||
);
|
||||
});
|
||||
|
||||
test('error_proof', async () => {
|
||||
const xmlDoc = parseXML(
|
||||
`
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
||||
<w:body>
|
||||
<w:p w:rsidR="00EA74AA" w:rsidRPr="00343289" w:rsidRDefault="00D06055" w:rsidP="00D06055">
|
||||
<w:pPr>
|
||||
<w:spacing w:line="560" w:lineRule="exact"/>
|
||||
<w:jc w:val="center"/>
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>{{</w:t>
|
||||
</w:r>
|
||||
<w:proofErr w:type="spellStart"/>
|
||||
<w:r w:rsidRPr="00D06055">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>operate_work_type</w:t>
|
||||
</w:r>
|
||||
<w:r w:rsidR="00942520">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>.</w:t>
|
||||
</w:r>
|
||||
<w:r w:rsidR="00942520">
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>label</w:t>
|
||||
</w:r>
|
||||
<w:proofErr w:type="spellEnd"/>
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="Times New Roman"/>
|
||||
<w:color w:val="000000" w:themeColor="text1"/>
|
||||
<w:sz w:val="18"/>
|
||||
<w:szCs w:val="18"/>
|
||||
</w:rPr>
|
||||
<w:t>}}</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:body>
|
||||
</w:document>
|
||||
`.trim()
|
||||
);
|
||||
|
||||
const word = createWord();
|
||||
|
||||
mergeRun(word, xmlDoc);
|
||||
|
||||
expect(xmlDoc.getElementsByTagName('w:t')[0]?.innerHTML).toBe(
|
||||
'{{operate_work_type.label}}'
|
||||
);
|
||||
});
|
||||
3
packages/office-viewer/__tests__/README.md
Normal file
3
packages/office-viewer/__tests__/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
sample-docs 来自 https://docx4java.org/docx4j/docx4j-8.3.9/docx4j-samples-docx4j-8.3.9.zip
|
||||
|
||||
目前主要用 simple type,组合类型目前还是手动解析,后续考虑改成自动解析
|
||||
3
packages/office-viewer/__tests__/docx/dedocx/README.md
Normal file
3
packages/office-viewer/__tests__/docx/dedocx/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
来自 https://github.com/science-periodicals/dedocx
|
||||
|
||||
似乎很关注公式及引用相关的
|
||||
BIN
packages/office-viewer/__tests__/docx/dedocx/custom-list.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/custom-list.docx
Executable file
Binary file not shown.
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/footnotes-repeated.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/footnotes-repeated.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/footnotes.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/footnotes.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/full-tables.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/full-tables.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/inline-and-block-image-styles.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/inline-and-block-image-styles.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/list-of-citations.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/list-of-citations.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/list-test.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/list-test.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/lists.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/lists.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/minimum-test-document.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/minimum-test-document.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/picture-grid.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/picture-grid.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/playground.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/playground.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/runs.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/runs.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/section-links.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/section-links.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/symbols.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/symbols.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/tables-with-equations.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/tables-with-equations.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/tables.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/tables.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/textboxes.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/textboxes.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/tooltip.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/tooltip.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/uncaptioned-images.ds3.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/uncaptioned-images.ds3.docx
Executable file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/dedocx/undefined-bookmarks.docx
Executable file
BIN
packages/office-viewer/__tests__/docx/dedocx/undefined-bookmarks.docx
Executable file
Binary file not shown.
Binary file not shown.
2697
packages/office-viewer/__tests__/docx/docx4j/2003/word2003xml.xml
Normal file
2697
packages/office-viewer/__tests__/docx/docx4j/2003/word2003xml.xml
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/docx4j/ArialUnicodeMS.docx
Normal file
BIN
packages/office-viewer/__tests__/docx/docx4j/ArialUnicodeMS.docx
Normal file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/docx4j/Symbols.docx
Normal file
BIN
packages/office-viewer/__tests__/docx/docx4j/Symbols.docx
Normal file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/docx4j/Word2007-fonts.docx
Normal file
BIN
packages/office-viewer/__tests__/docx/docx4j/Word2007-fonts.docx
Normal file
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,28 @@
|
||||
A simple HelloWorld docx created in Word Online on 20181129:
|
||||
|
||||
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
||||
<Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml" Id="rId3" />
|
||||
<Relationship Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml" Id="rId2" />
|
||||
<Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="/word/document22.xml" Id="rId1" />
|
||||
</Relationships>
|
||||
|
||||
Note Target="/word/document22.xml"!!!
|
||||
compare others which don't start with "/"
|
||||
|
||||
Compare Word 2016 (which is correct):
|
||||
|
||||
-<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
||||
|
||||
<Relationship Target="docProps/app.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Id="rId3"/>
|
||||
<Relationship Target="docProps/core.xml" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Id="rId2"/>
|
||||
<Relationship Target="word/document.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Id="rId1"/>
|
||||
|
||||
</Relationships>
|
||||
|
||||
[Content_Types].xml is consistent; there the partname starts with "/":
|
||||
|
||||
<Override PartName="/word/document22.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml" />
|
||||
|
||||
If you open the Word Online docx in Word 2016 then save it, it "normalises" the rel to Target="word/document.xml"
|
||||
|
||||
docx4j should do the same (but currently leaves things as-is). Tracking at https://github.com/plutext/docx4j/issues/332
|
||||
BIN
packages/office-viewer/__tests__/docx/docx4j/chart.docx
Normal file
BIN
packages/office-viewer/__tests__/docx/docx4j/chart.docx
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
<myxml>
|
||||
<element1>hydrogen</element1>
|
||||
<element2>helium</element2>
|
||||
<element3>lithium</element3>
|
||||
</myxml>
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><invoice>
|
||||
|
||||
<date>2019-01-15</date>
|
||||
<customer>
|
||||
<name>Joe Bloggs</name>
|
||||
</customer>
|
||||
<items>
|
||||
<item>
|
||||
<name>apples</name>
|
||||
<price>$20</price>
|
||||
</item>
|
||||
<item>
|
||||
<name>bananas</name>
|
||||
<price>$30</price>
|
||||
</item>
|
||||
<item>
|
||||
<name>gas</name>
|
||||
<price>$40</price>
|
||||
</item>
|
||||
</items>
|
||||
<misc>
|
||||
<includeBankDetails>true</includeBankDetails>
|
||||
<wantspam>false</wantspam>
|
||||
</misc>
|
||||
</invoice>
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/docx4j/decracdiscrim1.docx
Normal file
BIN
packages/office-viewer/__tests__/docx/docx4j/decracdiscrim1.docx
Normal file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/docx4j/docProps.docx
Normal file
BIN
packages/office-viewer/__tests__/docx/docx4j/docProps.docx
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,402 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<?mso-application progid="Word.Document"?>
|
||||
<pkg:package
|
||||
xmlns:pkg="http://schemas.microsoft.com/office/2006/xmlPackage">
|
||||
<pkg:part pkg:name="/_rels/.rels"
|
||||
pkg:contentType="application/vnd.openxmlformats-package.relationships+xml"
|
||||
pkg:padding="512">
|
||||
<pkg:xmlData>
|
||||
<Relationships
|
||||
xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
||||
<Relationship Id="rId1"
|
||||
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"
|
||||
Target="word/document.xml" />
|
||||
</Relationships>
|
||||
</pkg:xmlData>
|
||||
</pkg:part>
|
||||
<pkg:part pkg:name="/word/_rels/document.xml.rels"
|
||||
pkg:contentType="application/vnd.openxmlformats-package.relationships+xml"
|
||||
pkg:padding="256">
|
||||
<pkg:xmlData>
|
||||
<Relationships
|
||||
xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
||||
<Relationship Id="rId2"
|
||||
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"
|
||||
Target="styles.xml" />
|
||||
<Relationship Id="rId1"
|
||||
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering"
|
||||
Target="numbering.xml" />
|
||||
</Relationships>
|
||||
</pkg:xmlData>
|
||||
</pkg:part>
|
||||
<pkg:part pkg:name="/word/document.xml"
|
||||
pkg:contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml">
|
||||
<pkg:xmlData>
|
||||
<w:document
|
||||
xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:o="urn:schemas-microsoft-com:office:office"
|
||||
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
||||
xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"
|
||||
xmlns:v="urn:schemas-microsoft-com:vml"
|
||||
xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
|
||||
xmlns:w10="urn:schemas-microsoft-com:office:word"
|
||||
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
||||
xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml">
|
||||
<w:body>
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="ListParagraph" />
|
||||
<w:numPr>
|
||||
<w:ilvl w:val="0" />
|
||||
<w:numId w:val="1" />
|
||||
</w:numPr>
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:t>A</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="ListParagraph"/>
|
||||
<w:numPr>
|
||||
<w:ilvl w:val="0"/>
|
||||
<w:numId w:val="1"/>
|
||||
</w:numPr>
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:t>B</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="ListParagraph"/>
|
||||
<w:numPr>
|
||||
<w:ilvl w:val="0"/>
|
||||
<w:numId w:val="1"/>
|
||||
</w:numPr>
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:t>C</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="ListParagraph"/>
|
||||
<w:numPr>
|
||||
<w:ilvl w:val="0"/>
|
||||
<w:numId w:val="1"/>
|
||||
</w:numPr>
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:t>D</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="ListParagraph"/>
|
||||
<w:numPr>
|
||||
<w:ilvl w:val="0"/>
|
||||
<w:numId w:val="2"/>
|
||||
</w:numPr>
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:t>Aa</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="ListParagraph"/>
|
||||
<w:numPr>
|
||||
<w:ilvl w:val="0"/>
|
||||
<w:numId w:val="2"/>
|
||||
</w:numPr>
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:t>Inserted</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="ListParagraph"/>
|
||||
<w:numPr>
|
||||
<w:ilvl w:val="0"/>
|
||||
<w:numId w:val="2"/>
|
||||
</w:numPr>
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:t>Bb</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="ListParagraph"/>
|
||||
<w:numPr>
|
||||
<w:ilvl w:val="0"/>
|
||||
<w:numId w:val="1"/>
|
||||
</w:numPr>
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:t>Inserted</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="ListParagraph"/>
|
||||
<w:numPr>
|
||||
<w:ilvl w:val="0"/>
|
||||
<w:numId w:val="1"/>
|
||||
</w:numPr>
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:t>Inserted</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p/>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>To restart numbering, use:</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t xml:space="preserve"> <w:num w:numId="2"></w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t xml:space="preserve"> <w:abstractNumId w:val="0"/></w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t xml:space="preserve"> <w:lvlOverride w:ilvl="0"></w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t xml:space="preserve"> <w:startOverride w:val="10"/></w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t xml:space="preserve"> </w:lvlOverride></w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t xml:space="preserve"> </w:num></w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>It has to refer to the same abstractNumId.</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t xml:space="preserve"> <w:num w:numId="1"></w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t xml:space="preserve"> <w:abstractNumId w:val="0"/></w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t xml:space="preserve"> </w:num></w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>It doesn’t matter whether subsequent numbers refer to numId=”1” or “2”; what appears in the document is the same.</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:sectPr>
|
||||
<w:pgSz w:w="12240" w:h="15840"/>
|
||||
<w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="708" w:footer="708" w:gutter="0"/>
|
||||
<w:cols w:space="708"/>
|
||||
<w:docGrid w:linePitch="360"/>
|
||||
</w:sectPr>
|
||||
</w:body>
|
||||
</w:document>
|
||||
</pkg:xmlData>
|
||||
</pkg:part>
|
||||
<pkg:part pkg:name="/word/styles.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml">
|
||||
<pkg:xmlData>
|
||||
<w:styles xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
||||
<w:docDefaults>
|
||||
<w:rPrDefault>
|
||||
<w:rPr>
|
||||
<w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi"/>
|
||||
<w:sz w:val="22"/>
|
||||
<w:szCs w:val="22"/>
|
||||
<w:lang w:val="en-US" w:eastAsia="en-US" w:bidi="ar-SA"/>
|
||||
</w:rPr>
|
||||
</w:rPrDefault>
|
||||
<w:pPrDefault>
|
||||
<w:pPr>
|
||||
<w:spacing w:after="200" w:line="276" w:lineRule="auto"/>
|
||||
</w:pPr>
|
||||
</w:pPrDefault>
|
||||
</w:docDefaults>
|
||||
<w:latentStyles w:defLockedState="0" w:defUIPriority="99" w:defSemiHidden="1" w:defUnhideWhenUsed="1" w:defQFormat="0" w:count="267">
|
||||
<w:lsdException w:name="Normal" w:semiHidden="0" w:uiPriority="0" w:unhideWhenUsed="0" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 1" w:semiHidden="0" w:uiPriority="9" w:unhideWhenUsed="0" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 2" w:uiPriority="9" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 3" w:uiPriority="9" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 4" w:uiPriority="9" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 5" w:uiPriority="9" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 6" w:uiPriority="9" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 7" w:uiPriority="9" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 8" w:uiPriority="9" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 9" w:uiPriority="9" w:qFormat="1"/>
|
||||
</w:latentStyles>
|
||||
<w:style w:type="paragraph" w:default="1" w:styleId="Normal">
|
||||
<w:name w:val="Normal"/>
|
||||
<w:qFormat/>
|
||||
</w:style>
|
||||
<w:style w:type="character" w:default="1" w:styleId="DefaultParagraphFont">
|
||||
<w:name w:val="Default Paragraph Font"/>
|
||||
<w:uiPriority w:val="1"/>
|
||||
<w:semiHidden/>
|
||||
<w:unhideWhenUsed/>
|
||||
</w:style>
|
||||
<w:style w:type="table" w:default="1" w:styleId="TableNormal">
|
||||
<w:name w:val="Normal Table"/>
|
||||
<w:uiPriority w:val="99"/>
|
||||
<w:semiHidden/>
|
||||
<w:unhideWhenUsed/>
|
||||
<w:qFormat/>
|
||||
<w:tblPr>
|
||||
<w:tblInd w:w="0" w:type="dxa"/>
|
||||
<w:tblCellMar>
|
||||
<w:top w:w="0" w:type="dxa"/>
|
||||
<w:left w:w="108" w:type="dxa"/>
|
||||
<w:bottom w:w="0" w:type="dxa"/>
|
||||
<w:right w:w="108" w:type="dxa"/>
|
||||
</w:tblCellMar>
|
||||
</w:tblPr>
|
||||
</w:style>
|
||||
<w:style w:type="numbering" w:default="1" w:styleId="NoList">
|
||||
<w:name w:val="No List"/>
|
||||
<w:uiPriority w:val="99"/>
|
||||
<w:semiHidden/>
|
||||
<w:unhideWhenUsed/>
|
||||
</w:style>
|
||||
<w:style w:type="paragraph" w:styleId="ListParagraph">
|
||||
<w:name w:val="List Paragraph"/>
|
||||
<w:basedOn w:val="Normal"/>
|
||||
<w:uiPriority w:val="34"/>
|
||||
<w:qFormat/>
|
||||
<w:pPr>
|
||||
<w:ind w:left="720"/>
|
||||
<w:contextualSpacing/>
|
||||
</w:pPr>
|
||||
</w:style>
|
||||
</w:styles>
|
||||
</pkg:xmlData>
|
||||
</pkg:part>
|
||||
<pkg:part pkg:name="/word/numbering.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml">
|
||||
<pkg:xmlData>
|
||||
<w:numbering xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml">
|
||||
<w:abstractNum w:abstractNumId="0">
|
||||
<w:nsid w:val="2DD860C0"/>
|
||||
<w:multiLevelType w:val="multilevel"/>
|
||||
<w:tmpl w:val="0409001D"/>
|
||||
<w:lvl w:ilvl="0">
|
||||
<w:start w:val="1"/>
|
||||
<w:numFmt w:val="decimal"/>
|
||||
<w:lvlText w:val="%1)"/>
|
||||
<w:lvlJc w:val="left"/>
|
||||
<w:pPr>
|
||||
<w:ind w:left="360" w:hanging="360"/>
|
||||
</w:pPr>
|
||||
</w:lvl>
|
||||
<w:lvl w:ilvl="1">
|
||||
<w:start w:val="1"/>
|
||||
<w:numFmt w:val="lowerLetter"/>
|
||||
<w:lvlText w:val="%2)"/>
|
||||
<w:lvlJc w:val="left"/>
|
||||
<w:pPr>
|
||||
<w:ind w:left="720" w:hanging="360"/>
|
||||
</w:pPr>
|
||||
</w:lvl>
|
||||
<w:lvl w:ilvl="2">
|
||||
<w:start w:val="1"/>
|
||||
<w:numFmt w:val="lowerRoman"/>
|
||||
<w:lvlText w:val="%3)"/>
|
||||
<w:lvlJc w:val="left"/>
|
||||
<w:pPr>
|
||||
<w:ind w:left="1080" w:hanging="360"/>
|
||||
</w:pPr>
|
||||
</w:lvl>
|
||||
<w:lvl w:ilvl="3">
|
||||
<w:start w:val="1"/>
|
||||
<w:numFmt w:val="decimal"/>
|
||||
<w:lvlText w:val="(%4)"/>
|
||||
<w:lvlJc w:val="left"/>
|
||||
<w:pPr>
|
||||
<w:ind w:left="1440" w:hanging="360"/>
|
||||
</w:pPr>
|
||||
</w:lvl>
|
||||
<w:lvl w:ilvl="4">
|
||||
<w:start w:val="1"/>
|
||||
<w:numFmt w:val="lowerLetter"/>
|
||||
<w:lvlText w:val="(%5)"/>
|
||||
<w:lvlJc w:val="left"/>
|
||||
<w:pPr>
|
||||
<w:ind w:left="1800" w:hanging="360"/>
|
||||
</w:pPr>
|
||||
</w:lvl>
|
||||
<w:lvl w:ilvl="5">
|
||||
<w:start w:val="1"/>
|
||||
<w:numFmt w:val="lowerRoman"/>
|
||||
<w:lvlText w:val="(%6)"/>
|
||||
<w:lvlJc w:val="left"/>
|
||||
<w:pPr>
|
||||
<w:ind w:left="2160" w:hanging="360"/>
|
||||
</w:pPr>
|
||||
</w:lvl>
|
||||
<w:lvl w:ilvl="6">
|
||||
<w:start w:val="1"/>
|
||||
<w:numFmt w:val="decimal"/>
|
||||
<w:lvlText w:val="%7."/>
|
||||
<w:lvlJc w:val="left"/>
|
||||
<w:pPr>
|
||||
<w:ind w:left="2520" w:hanging="360"/>
|
||||
</w:pPr>
|
||||
</w:lvl>
|
||||
<w:lvl w:ilvl="7">
|
||||
<w:start w:val="1"/>
|
||||
<w:numFmt w:val="lowerLetter"/>
|
||||
<w:lvlText w:val="%8."/>
|
||||
<w:lvlJc w:val="left"/>
|
||||
<w:pPr>
|
||||
<w:ind w:left="2880" w:hanging="360"/>
|
||||
</w:pPr>
|
||||
</w:lvl>
|
||||
<w:lvl w:ilvl="8">
|
||||
<w:start w:val="1"/>
|
||||
<w:numFmt w:val="lowerRoman"/>
|
||||
<w:lvlText w:val="%9."/>
|
||||
<w:lvlJc w:val="left"/>
|
||||
<w:pPr>
|
||||
<w:ind w:left="3240" w:hanging="360"/>
|
||||
</w:pPr>
|
||||
</w:lvl>
|
||||
</w:abstractNum>
|
||||
<w:num w:numId="1">
|
||||
<w:abstractNumId w:val="0"/>
|
||||
</w:num>
|
||||
<w:num w:numId="2">
|
||||
<w:abstractNumId w:val="0"/>
|
||||
<w:lvlOverride w:ilvl="0">
|
||||
<w:startOverride w:val="10"/>
|
||||
</w:lvlOverride>
|
||||
</w:num>
|
||||
</w:numbering>
|
||||
</pkg:xmlData>
|
||||
</pkg:part>
|
||||
</pkg:package>
|
||||
4963
packages/office-viewer/__tests__/docx/docx4j/sample-docx.xml
Normal file
4963
packages/office-viewer/__tests__/docx/docx4j/sample-docx.xml
Normal file
File diff suppressed because it is too large
Load Diff
2115
packages/office-viewer/__tests__/docx/docx4j/table-features.xml
Normal file
2115
packages/office-viewer/__tests__/docx/docx4j/table-features.xml
Normal file
File diff suppressed because it is too large
Load Diff
390
packages/office-viewer/__tests__/docx/docx4j/table-spans.xml
Normal file
390
packages/office-viewer/__tests__/docx/docx4j/table-spans.xml
Normal file
@@ -0,0 +1,390 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<?mso-application progid="Word.Document"?>
|
||||
<pkg:package xmlns:pkg="http://schemas.microsoft.com/office/2006/xmlPackage">
|
||||
<pkg:part pkg:name="/_rels/.rels" pkg:contentType="application/vnd.openxmlformats-package.relationships+xml" pkg:padding="512">
|
||||
<pkg:xmlData>
|
||||
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
||||
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/>
|
||||
</Relationships>
|
||||
</pkg:xmlData>
|
||||
</pkg:part>
|
||||
<pkg:part pkg:name="/word/_rels/document.xml.rels" pkg:contentType="application/vnd.openxmlformats-package.relationships+xml" pkg:padding="256">
|
||||
<pkg:xmlData>
|
||||
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
||||
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>
|
||||
</Relationships>
|
||||
</pkg:xmlData>
|
||||
</pkg:part>
|
||||
<pkg:part pkg:name="/word/document.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml">
|
||||
<pkg:xmlData>
|
||||
<w:document xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml">
|
||||
<w:body>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>Simple table:</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:tbl>
|
||||
<w:tblPr>
|
||||
<w:tblStyle w:val="TableGrid"/>
|
||||
<w:tblW w:w="0" w:type="auto"/>
|
||||
<w:tblLook w:val="04A0"/>
|
||||
</w:tblPr>
|
||||
<w:tblGrid>
|
||||
<w:gridCol w:w="4788"/>
|
||||
<w:gridCol w:w="4788"/>
|
||||
</w:tblGrid>
|
||||
<w:tr>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="4788" w:type="dxa"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R1c1</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="4788" w:type="dxa"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R1c2</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
</w:tr>
|
||||
<w:tr>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="4788" w:type="dxa"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R2c1</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="4788" w:type="dxa"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R2c2</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
</w:tr>
|
||||
</w:tbl>
|
||||
<w:p/>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>Horizontal merge:</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:tbl>
|
||||
<w:tblPr>
|
||||
<w:tblStyle w:val="TableGrid"/>
|
||||
<w:tblW w:w="0" w:type="auto"/>
|
||||
<w:tblLook w:val="04A0"/>
|
||||
</w:tblPr>
|
||||
<w:tblGrid>
|
||||
<w:gridCol w:w="3192"/>
|
||||
<w:gridCol w:w="3192"/>
|
||||
<w:gridCol w:w="3192"/>
|
||||
</w:tblGrid>
|
||||
<w:tr>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="6384" w:type="dxa"/>
|
||||
<w:gridSpan w:val="2"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R1 c1 & c2</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="3192" w:type="dxa"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R1 c3</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
</w:tr>
|
||||
<w:tr>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="3192" w:type="dxa"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R2c1</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="3192" w:type="dxa"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R2c2</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="3192" w:type="dxa"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R2c3</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
</w:tr>
|
||||
<w:tr>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="3192" w:type="dxa"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R3c1</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="6384" w:type="dxa"/>
|
||||
<w:gridSpan w:val="2"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R3 c2 & c3</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
</w:tr>
|
||||
</w:tbl>
|
||||
<w:p/>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>Vertical merge:</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:tbl>
|
||||
<w:tblPr>
|
||||
<w:tblStyle w:val="TableGrid"/>
|
||||
<w:tblW w:w="0" w:type="auto"/>
|
||||
<w:tblLook w:val="04A0"/>
|
||||
</w:tblPr>
|
||||
<w:tblGrid>
|
||||
<w:gridCol w:w="3192"/>
|
||||
<w:gridCol w:w="3192"/>
|
||||
<w:gridCol w:w="3192"/>
|
||||
</w:tblGrid>
|
||||
<w:tr>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="3192" w:type="dxa"/>
|
||||
<w:vMerge w:val="restart"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R1 & r2, c1</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="3192" w:type="dxa"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R1c2</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="3192" w:type="dxa"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R1c3</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
</w:tr>
|
||||
<w:tr>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="3192" w:type="dxa"/>
|
||||
<w:vMerge/>
|
||||
</w:tcPr>
|
||||
<w:p/>
|
||||
</w:tc>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="3192" w:type="dxa"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R2c2</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="3192" w:type="dxa"/>
|
||||
<w:vMerge w:val="restart"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R2 & r3, c3</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
</w:tr>
|
||||
<w:tr>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="3192" w:type="dxa"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R3c1</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="3192" w:type="dxa"/>
|
||||
</w:tcPr>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>R3c2</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</w:tc>
|
||||
<w:tc>
|
||||
<w:tcPr>
|
||||
<w:tcW w:w="3192" w:type="dxa"/>
|
||||
<w:vMerge/>
|
||||
</w:tcPr>
|
||||
<w:p/>
|
||||
</w:tc>
|
||||
</w:tr>
|
||||
</w:tbl>
|
||||
<w:p/>
|
||||
<w:p/>
|
||||
<w:sectPr>
|
||||
<w:pgSz w:w="12240" w:h="15840"/>
|
||||
<w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="708" w:footer="708" w:gutter="0"/>
|
||||
<w:cols w:space="708"/>
|
||||
<w:docGrid w:linePitch="360"/>
|
||||
</w:sectPr>
|
||||
</w:body>
|
||||
</w:document>
|
||||
</pkg:xmlData>
|
||||
</pkg:part>
|
||||
<pkg:part pkg:name="/word/styles.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml">
|
||||
<pkg:xmlData>
|
||||
<w:styles xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
||||
<w:docDefaults>
|
||||
<w:rPrDefault>
|
||||
<w:rPr>
|
||||
<w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi"/>
|
||||
<w:sz w:val="22"/>
|
||||
<w:szCs w:val="22"/>
|
||||
<w:lang w:val="en-US" w:eastAsia="en-US" w:bidi="ar-SA"/>
|
||||
</w:rPr>
|
||||
</w:rPrDefault>
|
||||
<w:pPrDefault>
|
||||
<w:pPr>
|
||||
<w:spacing w:after="200" w:line="276" w:lineRule="auto"/>
|
||||
</w:pPr>
|
||||
</w:pPrDefault>
|
||||
</w:docDefaults>
|
||||
<w:latentStyles w:defLockedState="0" w:defUIPriority="99" w:defSemiHidden="1" w:defUnhideWhenUsed="1" w:defQFormat="0" w:count="267">
|
||||
<w:lsdException w:name="Normal" w:semiHidden="0" w:uiPriority="0" w:unhideWhenUsed="0" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 1" w:semiHidden="0" w:uiPriority="9" w:unhideWhenUsed="0" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 2" w:uiPriority="9" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 3" w:uiPriority="9" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 4" w:uiPriority="9" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 5" w:uiPriority="9" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 6" w:uiPriority="9" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 7" w:uiPriority="9" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 8" w:uiPriority="9" w:qFormat="1"/>
|
||||
<w:lsdException w:name="heading 9" w:uiPriority="9" w:qFormat="1"/>
|
||||
</w:latentStyles>
|
||||
<w:style w:type="paragraph" w:default="1" w:styleId="Normal">
|
||||
<w:name w:val="Normal"/>
|
||||
<w:qFormat/>
|
||||
</w:style>
|
||||
<w:style w:type="character" w:default="1" w:styleId="DefaultParagraphFont">
|
||||
<w:name w:val="Default Paragraph Font"/>
|
||||
<w:uiPriority w:val="1"/>
|
||||
<w:semiHidden/>
|
||||
<w:unhideWhenUsed/>
|
||||
</w:style>
|
||||
<w:style w:type="table" w:default="1" w:styleId="TableNormal">
|
||||
<w:name w:val="Normal Table"/>
|
||||
<w:uiPriority w:val="99"/>
|
||||
<w:semiHidden/>
|
||||
<w:unhideWhenUsed/>
|
||||
<w:qFormat/>
|
||||
<w:tblPr>
|
||||
<w:tblInd w:w="0" w:type="dxa"/>
|
||||
<w:tblCellMar>
|
||||
<w:top w:w="0" w:type="dxa"/>
|
||||
<w:left w:w="108" w:type="dxa"/>
|
||||
<w:bottom w:w="0" w:type="dxa"/>
|
||||
<w:right w:w="108" w:type="dxa"/>
|
||||
</w:tblCellMar>
|
||||
</w:tblPr>
|
||||
</w:style>
|
||||
<w:style w:type="numbering" w:default="1" w:styleId="NoList">
|
||||
<w:name w:val="No List"/>
|
||||
<w:uiPriority w:val="99"/>
|
||||
<w:semiHidden/>
|
||||
<w:unhideWhenUsed/>
|
||||
</w:style>
|
||||
<w:style w:type="table" w:styleId="TableGrid">
|
||||
<w:name w:val="Table Grid"/>
|
||||
<w:basedOn w:val="TableNormal"/>
|
||||
<w:uiPriority w:val="59"/>
|
||||
<w:pPr>
|
||||
<w:spacing w:after="0" w:line="240" w:lineRule="auto"/>
|
||||
</w:pPr>
|
||||
<w:tblPr>
|
||||
<w:tblInd w:w="0" w:type="dxa"/>
|
||||
<w:tblBorders>
|
||||
<w:top w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
|
||||
<w:left w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
|
||||
<w:bottom w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
|
||||
<w:right w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
|
||||
<w:insideH w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
|
||||
<w:insideV w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
|
||||
</w:tblBorders>
|
||||
<w:tblCellMar>
|
||||
<w:top w:w="0" w:type="dxa"/>
|
||||
<w:left w:w="108" w:type="dxa"/>
|
||||
<w:bottom w:w="0" w:type="dxa"/>
|
||||
<w:right w:w="108" w:type="dxa"/>
|
||||
</w:tblCellMar>
|
||||
</w:tblPr>
|
||||
</w:style>
|
||||
</w:styles>
|
||||
</pkg:xmlData>
|
||||
</pkg:part>
|
||||
</pkg:package>
|
||||
BIN
packages/office-viewer/__tests__/docx/docx4j/toc.docx
Normal file
BIN
packages/office-viewer/__tests__/docx/docx4j/toc.docx
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
115
packages/office-viewer/__tests__/docx/empty.xml
Normal file
115
packages/office-viewer/__tests__/docx/empty.xml
Normal file
@@ -0,0 +1,115 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<?mso-application progid="Word.Document"?>
|
||||
<pkg:package xmlns:pkg="http://schemas.microsoft.com/office/2006/xmlPackage">
|
||||
<pkg:part pkg:name="/_rels/.rels" pkg:contentType="application/vnd.openxmlformats-package.relationships+xml" pkg:padding="512">
|
||||
<pkg:xmlData>
|
||||
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
||||
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/>
|
||||
</Relationships>
|
||||
</pkg:xmlData>
|
||||
</pkg:part>
|
||||
<pkg:part pkg:name="/word/_rels/document.xml.rels" pkg:contentType="application/vnd.openxmlformats-package.relationships+xml" pkg:padding="256">
|
||||
<pkg:xmlData>
|
||||
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
||||
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>
|
||||
</Relationships>
|
||||
</pkg:xmlData>
|
||||
</pkg:part>
|
||||
<pkg:part pkg:name="/word/document.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml">
|
||||
<pkg:xmlData>
|
||||
<w:document xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml">
|
||||
<w:body>
|
||||
<w:p>
|
||||
<w:r>
|
||||
<w:t>empty</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<w:sectPr>
|
||||
<w:pgSz w:w="12240" w:h="15840"/>
|
||||
<w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="708" w:footer="708" w:gutter="0"/>
|
||||
<w:cols w:space="708"/>
|
||||
<w:docGrid w:linePitch="360"/>
|
||||
</w:sectPr>
|
||||
</w:body>
|
||||
</w:document>
|
||||
</pkg:xmlData>
|
||||
</pkg:part>
|
||||
<pkg:part pkg:name="/word/styles.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml">
|
||||
<pkg:xmlData>
|
||||
<w:styles xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
||||
<w:docDefaults>
|
||||
<w:rPrDefault>
|
||||
<w:rPr>
|
||||
<w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi"/>
|
||||
<w:sz w:val="22"/>
|
||||
<w:szCs w:val="22"/>
|
||||
<w:lang w:val="en-US" w:eastAsia="en-US" w:bidi="ar-SA"/>
|
||||
</w:rPr>
|
||||
</w:rPrDefault>
|
||||
<w:pPrDefault>
|
||||
<w:pPr>
|
||||
<w:spacing w:after="200" w:line="276" w:lineRule="auto"/>
|
||||
</w:pPr>
|
||||
</w:pPrDefault>
|
||||
</w:docDefaults>
|
||||
<w:style w:type="paragraph" w:default="1" w:styleId="Normal">
|
||||
<w:name w:val="Normal"/>
|
||||
<w:qFormat/>
|
||||
</w:style>
|
||||
<w:style w:type="character" w:default="1" w:styleId="DefaultParagraphFont">
|
||||
<w:name w:val="Default Paragraph Font"/>
|
||||
<w:uiPriority w:val="1"/>
|
||||
<w:semiHidden/>
|
||||
<w:unhideWhenUsed/>
|
||||
</w:style>
|
||||
<w:style w:type="table" w:default="1" w:styleId="TableNormal">
|
||||
<w:name w:val="Normal Table"/>
|
||||
<w:uiPriority w:val="99"/>
|
||||
<w:semiHidden/>
|
||||
<w:unhideWhenUsed/>
|
||||
<w:qFormat/>
|
||||
<w:tblPr>
|
||||
<w:tblInd w:w="0" w:type="dxa"/>
|
||||
<w:tblCellMar>
|
||||
<w:top w:w="0" w:type="dxa"/>
|
||||
<w:left w:w="108" w:type="dxa"/>
|
||||
<w:bottom w:w="0" w:type="dxa"/>
|
||||
<w:right w:w="108" w:type="dxa"/>
|
||||
</w:tblCellMar>
|
||||
</w:tblPr>
|
||||
</w:style>
|
||||
<w:style w:type="numbering" w:default="1" w:styleId="NoList">
|
||||
<w:name w:val="No List"/>
|
||||
<w:uiPriority w:val="99"/>
|
||||
<w:semiHidden/>
|
||||
<w:unhideWhenUsed/>
|
||||
</w:style>
|
||||
<w:style w:type="table" w:styleId="TableGrid">
|
||||
<w:name w:val="Table Grid"/>
|
||||
<w:basedOn w:val="TableNormal"/>
|
||||
<w:uiPriority w:val="59"/>
|
||||
<w:pPr>
|
||||
<w:spacing w:after="0" w:line="240" w:lineRule="auto"/>
|
||||
</w:pPr>
|
||||
<w:tblPr>
|
||||
<w:tblInd w:w="0" w:type="dxa"/>
|
||||
<w:tblBorders>
|
||||
<w:top w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
|
||||
<w:left w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
|
||||
<w:bottom w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
|
||||
<w:right w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
|
||||
<w:insideH w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
|
||||
<w:insideV w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
|
||||
</w:tblBorders>
|
||||
<w:tblCellMar>
|
||||
<w:top w:w="0" w:type="dxa"/>
|
||||
<w:left w:w="108" w:type="dxa"/>
|
||||
<w:bottom w:w="0" w:type="dxa"/>
|
||||
<w:right w:w="108" w:type="dxa"/>
|
||||
</w:tblCellMar>
|
||||
</w:tblPr>
|
||||
</w:style>
|
||||
</w:styles>
|
||||
</pkg:xmlData>
|
||||
</pkg:part>
|
||||
</pkg:package>
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2268
packages/office-viewer/__tests__/docx/simple/alt-text.xml
Normal file
2268
packages/office-viewer/__tests__/docx/simple/alt-text.xml
Normal file
File diff suppressed because it is too large
Load Diff
3224
packages/office-viewer/__tests__/docx/simple/bold.xml
Normal file
3224
packages/office-viewer/__tests__/docx/simple/bold.xml
Normal file
File diff suppressed because it is too large
Load Diff
1097
packages/office-viewer/__tests__/docx/simple/br.xml
Normal file
1097
packages/office-viewer/__tests__/docx/simple/br.xml
Normal file
File diff suppressed because it is too large
Load Diff
1367
packages/office-viewer/__tests__/docx/simple/break-page.xml
Normal file
1367
packages/office-viewer/__tests__/docx/simple/break-page.xml
Normal file
File diff suppressed because it is too large
Load Diff
4849
packages/office-viewer/__tests__/docx/simple/cover.xml
Normal file
4849
packages/office-viewer/__tests__/docx/simple/cover.xml
Normal file
File diff suppressed because it is too large
Load Diff
1097
packages/office-viewer/__tests__/docx/simple/cr.xml
Normal file
1097
packages/office-viewer/__tests__/docx/simple/cr.xml
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
1084
packages/office-viewer/__tests__/docx/simple/drop-cap.xml
Normal file
1084
packages/office-viewer/__tests__/docx/simple/drop-cap.xml
Normal file
File diff suppressed because it is too large
Load Diff
1123
packages/office-viewer/__tests__/docx/simple/em.xml
Normal file
1123
packages/office-viewer/__tests__/docx/simple/em.xml
Normal file
File diff suppressed because it is too large
Load Diff
1251
packages/office-viewer/__tests__/docx/simple/embed-font.xml
Normal file
1251
packages/office-viewer/__tests__/docx/simple/embed-font.xml
Normal file
File diff suppressed because it is too large
Load Diff
1087
packages/office-viewer/__tests__/docx/simple/eq-br.xml
Normal file
1087
packages/office-viewer/__tests__/docx/simple/eq-br.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
packages/office-viewer/__tests__/docx/simple/group-in-group.docx
Normal file
BIN
packages/office-viewer/__tests__/docx/simple/group-in-group.docx
Normal file
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/simple/group.docx
Normal file
BIN
packages/office-viewer/__tests__/docx/simple/group.docx
Normal file
Binary file not shown.
2224
packages/office-viewer/__tests__/docx/simple/header-footer.xml
Normal file
2224
packages/office-viewer/__tests__/docx/simple/header-footer.xml
Normal file
File diff suppressed because it is too large
Load Diff
11634
packages/office-viewer/__tests__/docx/simple/header.xml
Normal file
11634
packages/office-viewer/__tests__/docx/simple/header.xml
Normal file
File diff suppressed because it is too large
Load Diff
1161
packages/office-viewer/__tests__/docx/simple/hideMark.xml
Normal file
1161
packages/office-viewer/__tests__/docx/simple/hideMark.xml
Normal file
File diff suppressed because it is too large
Load Diff
1341
packages/office-viewer/__tests__/docx/simple/highlight.xml
Normal file
1341
packages/office-viewer/__tests__/docx/simple/highlight.xml
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
BIN
packages/office-viewer/__tests__/docx/simple/image-var.docx
Normal file
BIN
packages/office-viewer/__tests__/docx/simple/image-var.docx
Normal file
Binary file not shown.
1275
packages/office-viewer/__tests__/docx/simple/image.xml
Normal file
1275
packages/office-viewer/__tests__/docx/simple/image.xml
Normal file
File diff suppressed because it is too large
Load Diff
1856
packages/office-viewer/__tests__/docx/simple/info.xml
Normal file
1856
packages/office-viewer/__tests__/docx/simple/info.xml
Normal file
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user