<?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="setuplinetable" level="style" category="tables" file="tabl-ltb.mkiv">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="r"/>
                <cd:constant type="c"/>
            </cd:keywords>
            <cd:keywords optional="yes">
                <cd:constant type="odd"/>
                <cd:constant type="even"/>
                <cd:constant type="header"/>
                <cd:constant type="cd:number"/>
            </cd:keywords>
            <cd:assignments list="yes">
                <!-- begin root only -->
                <cd:parameter name="lines">
                    <cd:constant type="fit"/>
                    <cd:constant type="cd:number"/>
                </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="inbetween">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="stretch">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="maxwidth">
                    <cd:constant type="fit"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="nleft">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="n">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="repeat">
                    <cd:constant type="yes" default="yes"/>
                    <cd:constant type="no"/>
                </cd:parameter>
                <!-- end root only -->
                <cd:parameter name="nx">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="width">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="height">
                    <cd:constant type="fit" default="yes"/>
                    <cd:constant type="line"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="leftoffset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="rightoffset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="align">
                    <cd:inherit name="setupalign"/>
                </cd:parameter>
                <cd:parameter name="background">
                    <cd:constant type="color"/>
                </cd:parameter>
                <cd:parameter name="backgroundcolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="xheight">
                    <cd:constant type="max"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="xdepth">
                    <cd:constant type="max"/>
                    <cd:constant type="cd:dimension"/>
                </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="linetablecell" type="environment" level="document" category="tables" file="tabl-ltb.mkiv">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuplinetable"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="linetable" type="environment" level="document" category="tables" file="tabl-ltb.mkiv"/>

    <cd:command name="linetablehead" type="environment" level="document" category="tables" file="tabl-ltb.mkiv"/>

    <cd:command name="linetablebody" type="environment" level="document" category="tables" file="tabl-ltb.mkiv"/>

    <cd:command name="processlinetablebuffer" level="document" category="tables buffer" file="tabl-ltb.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-buffer-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="processlinetablefile" level="document" category="tables" file="tabl-ltb.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="BC" scope="linetable" level="document" category="tables" file="tabl-ltb.mkiv">
            <cd:arguments>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setuplinetable"/>
                </cd:assignments>
                <cd:resolve name="string-content"/>
                <cd:delimiter name="EC"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="BR" scope="linetable" level="document" category="tables" file="tabl-ltb.mkiv">
            <cd:arguments>
                <cd:resolve name="string-content"/>
                <cd:delimiter name="ER"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="BH" scope="linetable" level="document" category="tables" file="tabl-ltb.mkiv">
            <cd:arguments>
                <cd:resolve name="string-content"/>
                <cd:delimiter name="EH"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="NC" scope="linetable" level="document" category="tables" file="tabl-ltb.mkiv">
            <cd:arguments>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setuplinetable"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

        <cd:command name="NR" scope="linetable" level="document" category="tables" file="tabl-ltb.mkiv"/>

    -->

</cd:interface>