<?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="defineprofile" level="style" category="pdf" file="spac-prf.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupprofile"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupprofile" level="style" category="pdf" file="spac-prf.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="height">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="depth">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="factor">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="lines">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:constant type="strict" default="yes"/>
                    <cd:constant type="fixed"/>
                    <cd:constant type="none"/>
                </cd:parameter>
                <cd:parameter name="define">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="profile" type="environment" generated="yes" variant="example" level="document" category="pdf" file="spac-prf.mklx">
        <cd:sequence>
            <cd:variable value="profile"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="profile" type="environment" generated="yes" variant="example:assignment" level="document" category="pdf" file="spac-prf.mklx">
        <cd:sequence>
            <cd:variable value="profile"/>
        </cd:sequence>
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupprofile"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="profile" type="environment" level="document" category="pdf" file="spac-prf.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="profile" type="environment" variant="assignment" level="document" category="pdf" file="spac-prf.mklx">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupprofile"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setprofile" level="system" category="pdf" file="spac-prf.mklx">
        <cd:arguments>
            <cd:keywords>
                <cd:constant type="none"/>
                <cd:constant type="fixed"/>
                <cd:constant type="strict"/>
                <cd:constant type="halffixed"/>
                <cd:constant type="quarterfixed"/>
                <cd:constant type="eightsfixed"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetprofile" level="system" category="pdf" file="spac-prf.mklx"/>

    <cd:command name="useprofileparameter" level="system" category="pdf" file="spac-prf.mklx">
        <cd:arguments>
            <cd:csname/>
        </cd:arguments>
    </cd:command>

    <cd:command name="profiledbox" level="system" category="pdf" file="spac-prf.mklx">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="none"/>
                <cd:constant type="fixed"/>
                <cd:constant type="strict"/>
                <cd:constant type="halffixed"/>
                <cd:constant type="quarterfixed"/>
                <cd:constant type="eightsfixed"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupprofile"/>
            </cd:assignments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="profilegivenbox" level="system" category="pdf" file="spac-prf.mklx">
        <cd:arguments>
            <cd:keywords delimiters="braces" optional="yes">
                <cd:constant type="none"/>
                <cd:constant type="fixed"/>
                <cd:constant type="strict"/>
                <cd:constant type="halffixed"/>
                <cd:constant type="quarterfixed"/>
                <cd:constant type="eightsfixed"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
            <cd:resolve name="string-box"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="definelineprofile" level="style" category="pdf" file="spac-prf.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuplineprofile"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setuplineprofile" level="style" category="pdf" file="spac-prf.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="step">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="factor">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:constant type="a" default="yes"/>
                </cd:parameter>
                <cd:parameter name="paragraph">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setlineprofile" level="system" category="pdf" file="spac-prf.mklx">
        <cd:arguments>
            <cd:keywords>
                <cd:constant type="cd:name"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetlineprofile" level="system" category="pdf" file="spac-prf.mklx"/>

    <cd:command name="setmainlineprofile" level="system" category="pdf" file="spac-prf.mklx"/>

</cd:interface>
