<?xml version="1.0" encoding="UTF-8"?>

<?context-directive job ctxfile x-setups.ctx ?>

<cd:interface xmlns:cd="http://www.pragma-ade.com/commands">

    <cd:command name="pushattribute" file="attr-ini.mkiv">
        <cd:arguments>
            <cd:csname/>
        </cd:arguments>
    </cd:command>

    <cd:command name="popattribute" file="attr-ini.mkiv">
        <cd:arguments>
            <cd:csname/>
        </cd:arguments>
    </cd:command>

    <cd:command name="installattributestack" file="attr-ini.mkiv">
        <cd:arguments>
            <cd:csname/>
        </cd:arguments>
    </cd:command>

    <cd:command name="defineattribute" file="attr-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:keywords list="yes" optional="yes">
                <cd:constant type="local" default="yes"/>
                <cd:constant type="global"/>
                <cd:constant type="public" default="yes"/>
                <cd:constant type="private"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="definesystemattribute" file="attr-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:keywords list="yes" optional="yes">
                <cd:constant type="local" default="yes"/>
                <cd:constant type="global"/>
                <cd:constant type="public"/>
                <cd:constant type="private" default="yes"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="newattribute" file="attr-ini.mkiv">
        <cd:arguments>
            <cd:csname/>
        </cd:arguments>
    </cd:command>

    <cd:command name="dosetattribute" file="attr-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doresetattribute" file="attr-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="dogetattribute" file="attr-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="dogetattributeid" file="attr-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetallattributes" file="attr-ini.mkiv"/>

    <cd:command name="savecurrentattributes" file="attr-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="restorecurrentattributes" file="attr-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="showattributes" file="attr-ini.mkiv"/>

</cd:interface>
