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