<?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="defineindentedtext" file="strc-ind.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupindentedtext"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupindentedtext" file="strc-ind.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <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="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="sample">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="text">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="width">
                    <cd:constant type="fit" default="yes"/>
                    <cd:constant type="broad"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="separator">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="style">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="color">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="headstyle">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="headcolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="indentedtext" type="environment" generated="yes" variant="example" file="strc-ind.mkiv">
        <cd:sequence>
            <cd:variable value="indentedtext"/>
        </cd:sequence>
    </cd:command>

    <cd:command name="indentedtext" type="environment" file="strc-ind.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

</cd:interface>
