2022-06-26 23:26:42 +01:00
|
|
|
import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
|
2019-11-24 03:22:50 +00:00
|
|
|
|
2021-05-24 12:00:04 +03:00
|
|
|
// <xsd:simpleType name="ST_TblOverlap">
|
|
|
|
// <xsd:restriction base="xsd:string">
|
|
|
|
// <xsd:enumeration value="never"/>
|
|
|
|
// <xsd:enumeration value="overlap"/>
|
|
|
|
// </xsd:restriction>
|
|
|
|
// </xsd:simpleType>
|
2019-11-24 03:22:50 +00:00
|
|
|
export enum OverlapType {
|
|
|
|
NEVER = "never",
|
|
|
|
OVERLAP = "overlap",
|
|
|
|
}
|
|
|
|
|
2021-05-24 11:28:10 +03:00
|
|
|
// <xsd:complexType name="CT_TblOverlap">
|
|
|
|
// <xsd:attribute name="val" type="ST_TblOverlap" use="required"/>
|
|
|
|
// </xsd:complexType>
|
2019-11-24 03:22:50 +00:00
|
|
|
class TableOverlapAttributes extends XmlAttributeComponent<{ readonly val: OverlapType }> {
|
|
|
|
protected readonly xmlKeys = { val: "w:val" };
|
|
|
|
}
|
|
|
|
|
|
|
|
export class TableOverlap extends XmlComponent {
|
2022-08-31 07:52:27 +01:00
|
|
|
public constructor(type: OverlapType) {
|
2019-11-24 03:22:50 +00:00
|
|
|
super("w:tblOverlap");
|
|
|
|
this.root.push(new TableOverlapAttributes({ val: type }));
|
|
|
|
}
|
|
|
|
}
|