<?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="definewrows" level="style" category="layout" file="typo-swp.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuprows"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setuprows" level="style" category="layout" file="typo-swp.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="define">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="n">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="width">
                    <cd:constant type="fit"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="align" list="yes">
                    <cd:inherit name="setupalign"/>
                </cd:parameter>
                <cd:parameter name="before">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="after">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="alternative">
                    <cd:constant type="tight"/>
                </cd:parameter>
                <cd:parameter name="order">
                    <cd:constant type="vertical" default="yes"/>
                </cd:parameter>
                <cd:parameter name="height">
                    <cd:constant type="max"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="depth">
                    <cd:constant type="max"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="rows" type="environment" level="document" category="layout" file="typo-swp.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuprows"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="rows" type="environment" generated="yes" variant="example" level="document" category="layout" file="typo-swp.mkxl">
        <cd:sequence>
            <cd:variable value="rows"/>
        </cd:sequence>
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuprows"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

</cd:interface>
