"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppHeadingPairsXform = void 0;
const base_xform_1 = require("../base-xform.js");
class AppHeadingPairsXform extends base_xform_1.BaseXform {
    render(xmlStream, model) {
        xmlStream.openNode("HeadingPairs");
        xmlStream.openNode("vt:vector", { size: 2, baseType: "variant" });
        xmlStream.openNode("vt:variant");
        xmlStream.leafNode("vt:lpstr", undefined, "Worksheets");
        xmlStream.closeNode();
        xmlStream.openNode("vt:variant");
        xmlStream.leafNode("vt:i4", undefined, model.length);
        xmlStream.closeNode();
        xmlStream.closeNode();
        xmlStream.closeNode();
    }
    parseOpen(node) {
        // no parsing
        return node.name === "HeadingPairs";
    }
    parseText() { }
    parseClose(name) {
        return name !== "HeadingPairs";
    }
}
exports.AppHeadingPairsXform = AppHeadingPairsXform;
