blob: 71c2cba50c7f6d39996b81412ef3d21dfb151b05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package org.zwobble.mammoth.tests.docx;
import org.zwobble.mammoth.internal.xml.XmlElement;
import static java.util.Arrays.asList;
import static org.zwobble.mammoth.internal.util.Maps.map;
import static org.zwobble.mammoth.internal.xml.XmlNodes.element;
public class OfficeXmlBuilders {
public static XmlElement wTr(XmlElement... children) {
return element("w:tr", asList(children));
}
public static XmlElement wTc(XmlElement... children) {
return element("w:tc", asList(children));
}
public static XmlElement wTcPr(XmlElement... children) {
return element("w:tcPr", asList(children));
}
public static XmlElement wGridspan(String val) {
return element("w:gridSpan", map("w:val", val));
}
public static XmlElement wVmerge(String val) {
return element("w:vMerge", map("w:val", val));
}
}
|