/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import * as tslib_1 from "tslib";
import { XmlPartManagerBase } from "./XmlPartManagerBase";
import { Base, typeCast, markType } from "igniteui-angular-core";
import { DocCoreUtils } from "./DocCoreUtils";
import { BinaryData } from "./BinaryData";
import { WorkItem } from "./WorkItem";
import { InvalidOperationException } from "igniteui-angular-core";
/**
 * @hidden
 */
var PrinterSettingsPartManager = /** @class */ (function (_super) {
    tslib_1.__extends(PrinterSettingsPartManager, _super);
    function PrinterSettingsPartManager() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    PrinterSettingsPartManager.prototype.n = function (a) {
        switch (a) {
            case 0: return "/xl" + "/printerSettings/printerSettings.bin";
            default: return null;
        }
    };
    PrinterSettingsPartManager.prototype.o = function (a) {
        switch (a) {
            case 0: return PrinterSettingsPartManager.a6;
            case 1: return PrinterSettingsPartManager.a5;
            default: return PrinterSettingsPartManager.a6;
        }
    };
    PrinterSettingsPartManager.prototype.get_g = function () {
        return true;
    };
    Object.defineProperty(PrinterSettingsPartManager.prototype, "g", {
        get: function () {
            return this.get_g();
        },
        enumerable: true,
        configurable: true
    });
    PrinterSettingsPartManager.prototype.a = function () {
        return WorkItem.g(Base.$, new BinaryData(DocCoreUtils.c(this.l)));
    };
    PrinterSettingsPartManager.prototype.b = function (a) {
        var b = typeCast(BinaryData.$, a);
        if (b == null) {
            return null;
        }
        this.l.write(b.a, 0, b.a.length);
        return null;
    };
    PrinterSettingsPartManager.prototype.u = function (a) {
        throw new InvalidOperationException(0);
    };
    PrinterSettingsPartManager.$t = markType(PrinterSettingsPartManager, 'PrinterSettingsPartManager', XmlPartManagerBase.$);
    PrinterSettingsPartManager.a3 = "application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings";
    PrinterSettingsPartManager.a4 = "application/vnd.openxmlformats-officedocument.wordprocessingml.printerSettings";
    PrinterSettingsPartManager.a6 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/printerSettings";
    PrinterSettingsPartManager.a5 = "http://purl.oclc.org/ooxml/officeDocument/relationships/printerSettings";
    return PrinterSettingsPartManager;
}(XmlPartManagerBase));
export { PrinterSettingsPartManager };
//# sourceMappingURL=PrinterSettingsPartManager.js.map