<?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="definefiller" level="style" category="rules" file="spac-flr.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupfiller"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupfiller" level="style" category="rules" file="spac-flr.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="leftmargin">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="rightmargin">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="left">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="right">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="alternative">
                    <cd:constant type="symbol" default="yes"/>
                    <cd:constant type="stretch"/>
                    <cd:constant type="rule"/>
                    <cd:constant type="space"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:constant type="local" default="yes"/>
                    <cd:constant type="global"/>
                    <cd:constant type="middle"/>
                    <cd:constant type="broad"/>
                </cd:parameter>
                <cd:parameter name="width">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <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="offset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="align">
                    <cd:resolve name="value-alignsimple"/>
                </cd:parameter>
                <cd:parameter name="symbol">
                    <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:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="setupfillers" level="style" category="rules" file="spac-flr.mkxl">
            <cd:arguments>
                <cd:resolve name="keyword-name-list-optional"/>
                <cd:assignments list="yes">
                    <cd:inherit name="setupfiller"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="filler" level="style" category="rules" file="spac-flr.mkxl">
        <cd:arguments>
            <cd:keywords>
                <cd:constant type="sym"/>
                <cd:constant type="symbol"/>
                <cd:constant type="rule"/>
                <cd:constant type="width"/>
                <cd:constant type="space"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="fillupto" level="style" category="rules" file="spac-flr.mkxl">
        <cd:arguments>
            <cd:keywords>
                <cd:constant type="sym"/>
                <cd:constant type="symbol"/>
                <cd:constant type="rule"/>
                <cd:constant type="width"/>
                <cd:constant type="space"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
            <cd:resolve name="argument-text"/>
       </cd:arguments>
    </cd:command>

    <cd:command name="checkedfiller" level="style" category="rules" file="spac-flr.mkxl">
        <cd:arguments>
            <cd:keywords delimiters="braces">
                <cd:constant type="sym"/>
                <cd:constant type="symbol"/>
                <cd:constant type="rule"/>
                <cd:constant type="width"/>
                <cd:constant type="space"/>
                <cd:constant type="cd:name"/>
                <cd:constant type="cd:command"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="dotfill" level="document" category="rules" file="spac-flr.mkxl"/>

</cd:interface>
