<?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="definecollector" level="style" category="graphics" file="pack-box.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupcollector"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupcollector" level="style" category="graphics" file="pack-box.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="rotation">
                    <cd:constant type="left"/>
                    <cd:constant type="right"/>
                    <cd:constant type="inner"/>
                    <cd:constant type="outer"/>
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="corner">
                    <cd:constant type="left" default="yes"/>
                    <cd:constant type="middle"/>
                    <cd:constant type="right"/>
                    <cd:constant type="top" default="yes"/>
                    <cd:constant type="bottom"/>
                </cd:parameter>
                <cd:parameter name="x">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="y">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="hoffset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="voffset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="location">
                    <cd:resolve name="value-aligned"/>
                </cd:parameter>
                <cd:parameter name="state">
                    <cd:constant type="start" default="yes"/>
                    <cd:constant type="stop"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setcollector" level="document" category="graphics" file="pack-box.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupcollector"/>
            </cd:assignments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetcollector" level="style" category="graphics" file="pack-box.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="flushcollector" level="document" category="graphics" file="pack-box.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="composedcollector" level="document" category="graphics" file="pack-box.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="adaptcollector" level="style" category="graphics" file="pack-box.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupcollector"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="collectedtext" level="document" category="graphics" file="pack-box.mkxl">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupcollector"/>
            </cd:assignments>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="style">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="color">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
            <cd:resolve name="argument-text"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

</cd:interface>
