<?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="definelinefiller" level="style" category="rules" keywords="metapost" file="node-rul.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuplinefiller"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setuplinefiller" level="style" category="rules" keywords="metapost" file="node-rul.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="location">
                    <cd:constant type="left"/>
                    <cd:constant type="right"/>
                    <cd:constant type="both" default="yes"/>
                </cd:parameter>
                <cd:parameter name="scope">
                    <cd:constant type="left"/>
                    <cd:constant type="right"/>
                    <cd:constant type="local" default="yes"/>
                    <cd:constant type="global"/>
                </cd:parameter>
                <cd:parameter name="mp">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <!--
                    cd:parameter name="method">
                        <cd:constant type="cd:number"/>
                    </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="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="threshold">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="rulethickness">
                    <cd:constant type="cd:dimension"/>
                </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="color">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="textstyle">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="textcolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="align">
                    <cd:inherit name="setupalign"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setuplinefillers" level="style" category="rules" keywords="metapost" file="node-rul.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:inherit name="setuplinefiller"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="linefiller" type="environment" level="style" category="rules" keywords="metapost" file="node-rul.mkxl">
        <cd:arguments>
            <cd:keywords>
                <cd:constant type="filler"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuplinefiller"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setlinefiller" level="style" category="rules" keywords="metapost" file="node-rul.mkxl">
        <cd:arguments>
            <cd:keywords>
                <cd:constant type="filler"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="linefillerhbox" level="document" category="rules" keywords="metapost boxes" file="node-rul.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="string-boxoptions"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="linefillervbox" level="document" category="rules" keywords="metapost boxes" file="node-rul.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="string-boxoptions"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="linefillervtop" level="document" category="rules" keywords="metapost boxes" file="node-rul.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="string-boxoptions"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

</cd:interface>
