<?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.mkvi">
        <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.mkvi">
        <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:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setprofile" level="system" category="pdf" file="spac-prf.mkvi">
        <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.mkvi"/>

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

    <cd:command name="profiledbox" level="system" category="pdf" file="spac-prf.mkvi">
        <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.mkvi">
        <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:interface>